f4c7d8c489536d70ebec39a141f40182119a2f03
[openwrt/staging/jow.git] /
1 From 3bcae3396e986b4ab97a69e8de517e32f9691a4b Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Mon, 18 Jul 2022 15:21:00 +0200
4 Subject: [PATCH] arm64: dts: broadcom: bcm4908: add Asus GT-AC5300 LEDs
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 There are 5 software-controllable LEDs on PCB.
10
11 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
12 Link: https://lore.kernel.org/r/20220718132100.13277-3-zajec5@gmail.com
13 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
14 ---
15 .../bcmbca/bcm4908-asus-gt-ac5300.dts | 48 +++++++++++++++++++
16 1 file changed, 48 insertions(+)
17
18 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts
19 +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts
20 @@ -2,6 +2,7 @@
21
22 #include <dt-bindings/gpio/gpio.h>
23 #include <dt-bindings/input/input.h>
24 +#include <dt-bindings/leds/common.h>
25
26 #include "bcm4908.dtsi"
27
28 @@ -118,6 +119,53 @@
29 };
30 };
31
32 +&leds {
33 + led-power@11 {
34 + reg = <0x11>;
35 + function = LED_FUNCTION_POWER;
36 + color = <LED_COLOR_ID_WHITE>;
37 + default-state = "on";
38 + active-low;
39 + pinctrl-names = "default";
40 + pinctrl-0 = <&pins_led_17_a>;
41 + };
42 +
43 + led-wan-red@12 {
44 + reg = <0x12>;
45 + function = LED_FUNCTION_WAN;
46 + color = <LED_COLOR_ID_RED>;
47 + active-low;
48 + pinctrl-names = "default";
49 + pinctrl-0 = <&pins_led_18_a>;
50 + };
51 +
52 + led-wps@14 {
53 + reg = <0x14>;
54 + function = LED_FUNCTION_WPS;
55 + color = <LED_COLOR_ID_WHITE>;
56 + active-low;
57 + pinctrl-names = "default";
58 + pinctrl-0 = <&pins_led_20_a>;
59 + };
60 +
61 + led-wan-white@15 {
62 + reg = <0x15>;
63 + function = LED_FUNCTION_WAN;
64 + color = <LED_COLOR_ID_WHITE>;
65 + active-low;
66 + pinctrl-names = "default";
67 + pinctrl-0 = <&pins_led_21_a>;
68 + };
69 +
70 + led-lan@19 {
71 + reg = <0x19>;
72 + function = LED_FUNCTION_LAN;
73 + color = <LED_COLOR_ID_WHITE>;
74 + pinctrl-names = "default";
75 + pinctrl-0 = <&pins_led_25_a>;
76 + };
77 +};
78 +
79 &nandcs {
80 nand-ecc-strength = <4>;
81 nand-ecc-step-size = <512>;