ipq40xx: move Teltonika RUT STM32 IO to specific DTS
authorDavid Bauer <mail@david-bauer.net>
Sat, 6 May 2023 14:51:18 +0000 (16:51 +0200)
committerDavid Bauer <mail@david-bauer.net>
Wed, 26 Jul 2023 13:37:56 +0000 (15:37 +0200)
Prepare to re-use the DTS for the RUTX50.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit dbc4be142e206e681ac53afa3fd1e4018e7843b7)

target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-rutx.dtsi
target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-rutx10.dts

index 230b62a94ee3c1af851a9c92ebc377f3e6797f17..df9425b12a880ce7b1610303fcbdd9cc77c81eca 100644 (file)
                                linux,code = <KEY_RESTART>;
                        };
                };
-
-               gpio_export {
-                       compatible = "gpio-export";
-                       #size-cells = <0>;
-
-                       gpio_out {
-                               gpio-export,name = "gpio_out";
-                               gpio-export,output = <0>;
-                               gpio-export,direction_may_change = <0>;
-                               gpios = <&stm32_io 23 GPIO_ACTIVE_HIGH>;
-                       };
-
-                       gpio_in {
-                               gpio-export,name = "gpio_in";
-                               gpio-export,input = <0>;
-                               gpio-export,direction_may_change = <0>;
-                               gpios = <&stm32_io 24 GPIO_ACTIVE_LOW>;
-                       };
-               };
-       };
-};
-
-&blsp1_i2c3 {
-       status = "okay";
-       pinctrl-0 = <&i2c_0_pins>;
-       pinctrl-names = "default";
-       clock-frequency = <400000>;
-
-       stm32_io: stm32@74 {
-               compatible = "tlt,stm32v1";
-               #gpio-cells = <2>;
-               #interrupt-cells = <2>;
-               gpio-controller;
-               interrupt-controller;
-               interrupt-parent = <&tlmm>;
-               interrupts = <5 2>;
-               reg = <0x74>;
        };
 };
 
index 31d14aa6ae18471dfe583bd9be15be23f6690569..8fc976a11b1fe6fc77f56dd281b2493b55612e24 100644 (file)
                                linux,default-trigger = "phy1tpt";
                        };
                };
+
+               gpio_export {
+                       compatible = "gpio-export";
+                       #size-cells = <0>;
+
+                       gpio_out {
+                               gpio-export,name = "gpio_out";
+                               gpio-export,output = <0>;
+                               gpio-export,direction_may_change = <0>;
+                               gpios = <&stm32_io 23 GPIO_ACTIVE_HIGH>;
+                       };
+
+                       gpio_in {
+                               gpio-export,name = "gpio_in";
+                               gpio-export,input = <0>;
+                               gpio-export,direction_may_change = <0>;
+                               gpios = <&stm32_io 24 GPIO_ACTIVE_LOW>;
+                       };
+               };
+       };
+};
+
+&blsp1_i2c3 {
+       status = "okay";
+       pinctrl-0 = <&i2c_0_pins>;
+       pinctrl-names = "default";
+       clock-frequency = <400000>;
+
+       stm32_io: stm32@74 {
+               compatible = "tlt,stm32v1";
+               #gpio-cells = <2>;
+               #interrupt-cells = <2>;
+               gpio-controller;
+               interrupt-controller;
+               interrupt-parent = <&tlmm>;
+               interrupts = <5 2>;
+               reg = <0x74>;
        };
 };