From dced5f2c954060689422d79f3c64a997227ca8f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20VAR=C3=88NE?= Date: Wed, 17 Aug 2022 19:36:41 +0200 Subject: ramips: define Yuncore AX820 switch LEDs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch defines the two switch LED to bring them under user control. Fixes: 158a5af80102d ("ramips: improve YunCore AX820 LEDs") Signed-off-by: Thibaut VARÈNE [rmilecki: leave "label"s in place] Signed-off-by: Rafał Miłecki (cherry picked from commit 7bee10a7d2d16251113147c28dd4548af5c14bab) --- target/linux/ramips/dts/mt7621_yuncore_ax820.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'target/linux/ramips/dts') diff --git a/target/linux/ramips/dts/mt7621_yuncore_ax820.dts b/target/linux/ramips/dts/mt7621_yuncore_ax820.dts index 9638f1f060..bd28c1668e 100644 --- a/target/linux/ramips/dts/mt7621_yuncore_ax820.dts +++ b/target/linux/ramips/dts/mt7621_yuncore_ax820.dts @@ -4,6 +4,7 @@ #include #include +#include / { compatible = "yuncore,ax820", "mediatek,mt7621-soc"; @@ -47,6 +48,18 @@ gpios = <&gpio 16 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy1radio"; }; + + wan { + color = ; + function = LED_FUNCTION_WAN; + gpios = <&switch0 0 GPIO_ACTIVE_LOW>; + }; + + lan { + color = ; + function = LED_FUNCTION_LAN; + gpios = <&switch0 3 GPIO_ACTIVE_LOW>; + }; }; watchdog { @@ -131,6 +144,9 @@ }; &switch0 { + gpio-controller; + #gpio-cells = <2>; + ports { port@0 { status = "okay"; -- cgit v1.2.3