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
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 There are 5 software-controllable LEDs on PCB.
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>
15 .../bcmbca/bcm4908-asus-gt-ac5300.dts | 48 +++++++++++++++++++
16 1 file changed, 48 insertions(+)
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
22 #include <dt-bindings/gpio/gpio.h>
23 #include <dt-bindings/input/input.h>
24 +#include <dt-bindings/leds/common.h>
26 #include "bcm4908.dtsi"
35 + function = LED_FUNCTION_POWER;
36 + color = <LED_COLOR_ID_WHITE>;
37 + default-state = "on";
39 + pinctrl-names = "default";
40 + pinctrl-0 = <&pins_led_17_a>;
45 + function = LED_FUNCTION_WAN;
46 + color = <LED_COLOR_ID_RED>;
48 + pinctrl-names = "default";
49 + pinctrl-0 = <&pins_led_18_a>;
54 + function = LED_FUNCTION_WPS;
55 + color = <LED_COLOR_ID_WHITE>;
57 + pinctrl-names = "default";
58 + pinctrl-0 = <&pins_led_20_a>;
63 + function = LED_FUNCTION_WAN;
64 + color = <LED_COLOR_ID_WHITE>;
66 + pinctrl-names = "default";
67 + pinctrl-0 = <&pins_led_21_a>;
72 + function = LED_FUNCTION_LAN;
73 + color = <LED_COLOR_ID_WHITE>;
74 + pinctrl-names = "default";
75 + pinctrl-0 = <&pins_led_25_a>;
80 nand-ecc-strength = <4>;
81 nand-ecc-step-size = <512>;