diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-24 20:17:34 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-24 20:17:34 +0200 |
commit | d361aa2ebd040019507f6c3539808e90e454b3b6 (patch) | |
tree | 73dfa074c674464e29189d11db1f1cf976d43d36 /target | |
parent | 09b7922aaab0e849f38fc1172490d0b9ea882b6e (diff) | |
download | upstream-d361aa2ebd040019507f6c3539808e90e454b3b6.tar.gz upstream-d361aa2ebd040019507f6c3539808e90e454b3b6.tar.bz2 upstream-d361aa2ebd040019507f6c3539808e90e454b3b6.zip |
bcm63xx: ar-5387un: expose LEDs through controller
Exposing LEDs through LED controller instead of gpio-leds takes
advantage of HW blinking.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts | 68 |
1 files changed, 42 insertions, 26 deletions
diff --git a/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts b/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts index 0501d237e2..76c9dd8ba4 100644 --- a/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts +++ b/target/linux/bcm63xx/dts/bcm6328-comtrend-ar-5387un.dts @@ -33,32 +33,6 @@ debounce-interval = <60>; }; }; - - leds { - compatible = "gpio-leds"; - - inet_red { - label = "AR-5387un:red:inet"; - gpios = <&pinctrl 1 0>; - }; - power_red { - label = "AR-5387un:red:power"; - gpios = <&pinctrl 4 0>; - }; - inet_green { - label = "AR-5387un:green:inet"; - gpios = <&pinctrl 7 0>; - }; - led_power_green: power_green { - label = "AR-5387un:green:power"; - gpios = <&pinctrl 8 0>; - default-state = "on"; - }; - dsl_green { - label = "AR-5387un:green:dsl"; - gpios = <&pinctrl 11 1>; - }; - }; }; &hsspi { @@ -99,6 +73,48 @@ }; }; +&leds { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_leds>; + + led@1 { + reg = <1>; + label = "AR-5387un:red:inet"; + }; + + led@4 { + reg = <4>; + label = "AR-5387un:red:power"; + }; + + led@7 { + reg = <7>; + label = "AR-5387un:green:inet"; + }; + + led_power_green: led@8 { + reg = <8>; + label = "AR-5387un:green:power"; + default-state = "on"; + }; + + led@11 { + reg = <11>; + active-low; + label = "AR-5387un:green:dsl"; + }; +}; + +&pinctrl { + pinctrl_leds: leds { + function = "led"; + pins = "gpio1", "gpio4", "gpio7", + "gpio8", "gpio11"; + }; +}; + &uart0 { status = "okay"; }; |