kirkwood: dns320l: export mcu_power GPIO
authorZoltan HERPAI <wigyori@uid0.hu>
Sun, 27 Oct 2024 17:35:11 +0000 (17:35 +0000)
committerZoltan HERPAI <wigyori@uid0.hu>
Mon, 28 Oct 2024 08:24:32 +0000 (09:24 +0100)
This GPIO is pulled down by the onboard MCU when the power button
is pressed for 5 seconds, indicating a user-initiated shutdown.

Refresh patches at the same time.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
target/linux/kirkwood/files-6.6/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts
target/linux/kirkwood/patches-6.6/118-dns-320l.patch

index afeb76d5ffe39b074b150d67796adbaed326bc7c..883224316dad90420e39d82b8017ec9b2edf0b7a 100644 (file)
                stdout-path = &uart0;
        };
 
+       gpio-export {
+               compatible = "gpio-export";
+               #size-cells = <0>;
+
+               mcu_power {
+                       gpio-export,name = "mcu_power";
+                       gpio-export,input = <0>;
+                       gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
+               };
+       };
+
        gpio-keys {
                compatible = "gpio-keys";
                #address-cells = <1>;
index 8f19441bbeb1adf6c53b0cb0b16324ad73c9957d..3fa0d94c66402a48801dc54f1196d71a3cbe4f4a 100644 (file)
@@ -24,7 +24,7 @@
        chosen {
                bootargs = "console=ttyS0,115200n8 earlyprintk";
                stdout-path = &uart0;
-@@ -68,7 +75,7 @@
+@@ -79,7 +86,7 @@
                        linux,default-trigger = "usbport";
                };