[openwrt/openwrt] mpc85xx: move Extreme WS-AP3825i GPIO extender

LEDE Commits lede-commits at lists.infradead.org
Thu Mar 24 15:26:18 PDT 2022


blocktrron pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f0c09d0305835abc7bcc32285dc82c008159936d

commit f0c09d0305835abc7bcc32285dc82c008159936d
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Thu Mar 24 22:53:43 2022 +0100

    mpc85xx: move Extreme WS-AP3825i GPIO extender
    
    Move the GPIO extender to the SoC node. Otherwise, the legacy PowerPC
    init code will not populate the BUS and thus never probe spi-gpio.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
---
 .../files/arch/powerpc/boot/dts/ws-ap3825i.dts     | 48 +++++++++++-----------
 1 file changed, 25 insertions(+), 23 deletions(-)

diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts
index b4a90b31c7..7385f3402c 100644
--- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts
+++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts
@@ -26,29 +26,6 @@
 		device_type = "memory";
 	};
 
-	led_spi {
-		/*
-		 * This is currently non-functioning because the spi-gpio
-		 * driver refuses to register when presented with this node.
-		 */
-		compatible = "spi-gpio";
-		#address-cells = <1>;
-		#size-cells = <0>;
-
-		sck-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
-		mosi-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
-		num-chipselects = <0>;
-
-		spi_gpio: led_gpio at 0 {
-			compatible = "fairchild,74hc595";
-			reg = <0>;
-			gpio-controller;
-			#gpio-cells = <2>;
-			registers-number = <1>;
-			spi-max-frequency = <100000>;
-		};
-	};
-
 	leds {
 		compatible = "gpio-leds";
 
@@ -246,4 +223,29 @@
 	};
 };
 
+&soc {
+	led_spi {
+		/*
+		 * This is currently non-functioning because the spi-gpio
+		 * driver refuses to register when presented with this node.
+		 */
+		compatible = "spi-gpio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		sck-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
+		mosi-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
+		num-chipselects = <0>;
+
+		spi_gpio: led_gpio at 0 {
+			compatible = "fairchild,74hc595";
+			reg = <0>;
+			gpio-controller;
+			#gpio-cells = <2>;
+			registers-number = <1>;
+			spi-max-frequency = <100000>;
+		};
+	};
+};
+
 /include/ "fsl/p1020si-post.dtsi"




More information about the lede-commits mailing list