[openwrt/openwrt] kirkwood: dns320l: export mcu_power GPIO

LEDE Commits lede-commits at lists.infradead.org
Mon Oct 28 01:25:51 PDT 2024


wigyori pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e934e67f9c233b0a458771ed8938d295e33d7de0

commit e934e67f9c233b0a458771ed8938d295e33d7de0
Author: Zoltan HERPAI <wigyori at uid0.hu>
AuthorDate: Sun Oct 27 17:35:11 2024 +0000

    kirkwood: dns320l: export mcu_power GPIO
    
    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 at uid0.hu>
---
 .../files-6.6/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts  | 11 +++++++++++
 target/linux/kirkwood/patches-6.6/118-dns-320l.patch          |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/target/linux/kirkwood/files-6.6/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts b/target/linux/kirkwood/files-6.6/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts
index afeb76d5ff..883224316d 100644
--- a/target/linux/kirkwood/files-6.6/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts
+++ b/target/linux/kirkwood/files-6.6/arch/arm/boot/dts/marvell/kirkwood-dns320l.dts
@@ -37,6 +37,17 @@
 		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>;
diff --git a/target/linux/kirkwood/patches-6.6/118-dns-320l.patch b/target/linux/kirkwood/patches-6.6/118-dns-320l.patch
index 8f19441bbe..3fa0d94c66 100644
--- a/target/linux/kirkwood/patches-6.6/118-dns-320l.patch
+++ b/target/linux/kirkwood/patches-6.6/118-dns-320l.patch
@@ -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";
  		};
  




More information about the lede-commits mailing list