[openwrt/openwrt] ramips: add i2c in dts for GL-MT300N-V2

LEDE Commits lede-commits at lists.infradead.org
Wed May 4 17:20:23 PDT 2022


mans0n pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b697b5c55e4b7f77913db2e74239bdfe3e47ad26

commit b697b5c55e4b7f77913db2e74239bdfe3e47ad26
Author: Ptilopsis Leucotis <PtilopsisLeucotis at yandex.com>
AuthorDate: Sat Apr 30 23:57:04 2022 +0300

    ramips: add i2c in dts for GL-MT300N-V2
    
    According wiki https://docs.gl-inet.com/en/2/hardware/mt300n-v2/
    GL-MT300N-V2 have I2C interface on GPIO4, GPIO5.
    Adding I2C in device tree make possible using I2C on this device.
    
    Signed-off-by: Ptilopsis Leucotis <PtilopsisLeucotis at yandex.com>
---
 target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts | 4 ++++
 1 file changed, 4 insertions(+)

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 48f0fbd92b..b002b618b3 100644
--- a/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
+++ b/target/linux/ramips/dts/mt7628an_glinet_gl-mt300n-v2.dts
@@ -131,6 +131,10 @@
 	};
 };
 
+&i2c {
+	status = "okay";
+};
+
 &uart1 {
 	status = "okay";
 };




More information about the lede-commits mailing list