aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2022-03-24 22:53:43 +0100
committerDavid Bauer <mail@david-bauer.net>2022-04-18 01:48:41 +0200
commita2c0de3b9581cda618dcca99d3c2fc2d2dc88210 (patch)
tree32943be39251773bef08c9db8bb8010c0e7ae79b
parent474c3edf2487d143ca001ae44e28e0cac6819798 (diff)
downloadupstream-a2c0de3b9581cda618dcca99d3c2fc2d2dc88210.tar.gz
upstream-a2c0de3b9581cda618dcca99d3c2fc2d2dc88210.tar.bz2
upstream-a2c0de3b9581cda618dcca99d3c2fc2d2dc88210.zip
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@david-bauer.net> (cherry picked from commit f0c09d0305835abc7bcc32285dc82c008159936d)
-rw-r--r--target/linux/mpc85xx/files/arch/powerpc/boot/dts/ws-ap3825i.dts48
1 files 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 aba7739d0d..43c044b4fc 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@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@0 {
+ compatible = "fairchild,74hc595";
+ reg = <0>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ registers-number = <1>;
+ spi-max-frequency = <100000>;
+ };
+ };
+};
+
/include/ "fsl/p1020si-post.dtsi"