ARM: dts: imx: Provide 'gpio-ranges' for mxs_gpio driver
authorLukasz Majewski <lukma@denx.de>
Wed, 19 Jun 2019 15:31:04 +0000 (17:31 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 12:57:14 +0000 (14:57 +0200)
Those properties are U-Boot specific as the mxs gpio Linux driver (up to
version v5.1.11) is not supporting them.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
arch/arm/dts/imx28-u-boot.dtsi [new file with mode: 0644]

diff --git a/arch/arm/dts/imx28-u-boot.dtsi b/arch/arm/dts/imx28-u-boot.dtsi
new file mode 100644 (file)
index 0000000..d545b40
--- /dev/null
@@ -0,0 +1,28 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2019
+ * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
+ *
+ * SPDX-License-Identifier:     GPL-2.0+ or X11
+ */
+#include "imx28.dtsi"
+
+&gpio0 {
+       gpio-ranges = <&pinctrl 0 0 29>;
+};
+
+&gpio1 {
+       gpio-ranges = <&pinctrl 0 29 32>;
+};
+
+&gpio2 {
+       gpio-ranges = <&pinctrl 0 61 28>;
+};
+
+&gpio3 {
+       gpio-ranges = <&pinctrl 0 89 31>;
+};
+
+&gpio4 {
+       gpio-ranges = <&pinctrl 0 120 21>;
+};