[openwrt/openwrt] ramips: glinet_gl-mt300n-v2: allow to use I2C and UART1 pins as GPIO

LEDE Commits lede-commits at lists.infradead.org
Sun Nov 13 14:31:43 PST 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/a0b25e17aefab01010f98b270dfea99ff10d828e

commit a0b25e17aefab01010f98b270dfea99ff10d828e
Author: Martin Dziura <m.dziura at tum.de>
AuthorDate: Tue Oct 25 22:05:46 2022 +0200

    ramips: glinet_gl-mt300n-v2: allow to use I2C and UART1 pins as GPIO
    
    This is explicitly intended by the official documentation at
    https://docs.gl-inet.com/en/3/specification/gl-mt300n-v2/#pcb-pinout
    
    Signed-off-by: Martin Dziura <m.dziura at tum.de>
---
 target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
index b002b618b3..a3ce8cc592 100644
--- a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
+++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
@@ -75,7 +75,7 @@
 
 &state_default {
 	gpio {
-		groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s";
+		groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s", "i2c";
 		function = "gpio";
 	};
 };
@@ -131,10 +131,6 @@
 	};
 };
 
-&i2c {
-	status = "okay";
-};
-
 &uart1 {
 	status = "okay";
 };




More information about the lede-commits mailing list