From acc49770c2a8d2180b5a68b44fe9dda56079e2d9 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 24 May 2025 20:41:27 -0700 Subject: [PATCH] ath79: dir-825-c1: set LED pin properly The ath9k driver creates an ath9k LED by default. Instead of having a non functional LED, configure it properly and remove the extra as it's not needed. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/18908 Signed-off-by: Robert Marko --- .../ath79/dts/ar9344_dlink_dir-825-c1.dts | 24 +++++++++---------- .../linux/ath79/dts/ar9344_dlink_dir-8x5.dtsi | 2 -- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/target/linux/ath79/dts/ar9344_dlink_dir-825-c1.dts b/target/linux/ath79/dts/ar9344_dlink_dir-825-c1.dts index f0ca94f2317..d99fd7714d1 100644 --- a/target/linux/ath79/dts/ar9344_dlink_dir-825-c1.dts +++ b/target/linux/ath79/dts/ar9344_dlink_dir-825-c1.dts @@ -41,12 +41,6 @@ gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; - wlan2g { - label = "blue:wlan2g"; - gpios = <&gpio 13 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; - }; - wps { function = LED_FUNCTION_WPS; color = ; @@ -65,15 +59,19 @@ gpios = <&gpio 19 GPIO_ACTIVE_LOW>; }; }; +}; - leds-ath9k { - compatible = "gpio-leds"; +&ath9k { + led { + led-sources = <0>; + led-active-low; + }; +}; - wlan5g { - label = "blue:wlan5g"; - gpios = <&ath9k 0 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy1tpt"; - }; +&wmac { + led { + led-sources = <13>; + led-active-low; }; }; diff --git a/target/linux/ath79/dts/ar9344_dlink_dir-8x5.dtsi b/target/linux/ath79/dts/ar9344_dlink_dir-8x5.dtsi index 3c718f5c6e8..e4eda6cde76 100644 --- a/target/linux/ath79/dts/ar9344_dlink_dir-8x5.dtsi +++ b/target/linux/ath79/dts/ar9344_dlink_dir-8x5.dtsi @@ -65,8 +65,6 @@ nvmem-cell-names = "mac-address", "calibration"; */ qca,no-eeprom; /* remove this when "mac-address" works */ - gpio-controller; - #gpio-cells = <2>; }; }; -- 2.47.2