cd691f78fd7b4f608ef0b77eaa75926aff0a42f9
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.14 / 130-ARM-dts-BCM5301X-add-missing-LEDs-for-Buffalo-WZR-90.patch
1 From c830b958f52fc666919439d6f8f6caa8b6844d44 Mon Sep 17 00:00:00 2001
2 From: INAGAKI Hiroshi <musashino.open@gmail.com>
3 Date: Wed, 7 Mar 2018 20:33:56 +0900
4 Subject: [PATCH] ARM: dts: BCM5301X: add missing LEDs for Buffalo WZR-900DHP
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Buffalo WZR-900DHP has 8 LEDs, but there is not LED definitions in the
10 dts and cannot configure these LEDs.
11 I Added missing LED definitions for WZR-900DHP.
12
13 Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
14 Reviewed-by: Rafał Miłecki <rafal@milecki.pl>
15 ---
16 arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 68 +++++++++++++++++++++++
17 1 file changed, 68 insertions(+)
18
19 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
20 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
21 @@ -35,6 +35,74 @@
22 0x88000000 0x08000000>;
23 };
24
25 + spi {
26 + compatible = "spi-gpio";
27 + num-chipselects = <1>;
28 + gpio-sck = <&chipcommon 7 0>;
29 + gpio-mosi = <&chipcommon 4 0>;
30 + cs-gpios = <&chipcommon 6 0>;
31 + #address-cells = <1>;
32 + #size-cells = <0>;
33 +
34 + hc595: gpio_spi@0 {
35 + compatible = "fairchild,74hc595";
36 + reg = <0>;
37 + registers-number = <1>;
38 + spi-max-frequency = <100000>;
39 +
40 + gpio-controller;
41 + #gpio-cells = <2>;
42 +
43 + };
44 + };
45 +
46 + leds {
47 + compatible = "gpio-leds";
48 +
49 + usb {
50 + label = "bcm53xx:green:usb";
51 + gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
52 + };
53 +
54 + power0 {
55 + label = "bcm53xx:green:power";
56 + gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
57 + linux,default-trigger = "default-on";
58 + };
59 +
60 + power1 {
61 + label = "bcm53xx:red:power";
62 + gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
63 + };
64 +
65 + router0 {
66 + label = "bcm53xx:green:router";
67 + gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
68 + linux,default-trigger = "default-on";
69 + };
70 +
71 + router1 {
72 + label = "bcm53xx:amber:router";
73 + gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
74 + };
75 +
76 + wan {
77 + label = "bcm53xx:green:wan";
78 + gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
79 + linux,default-trigger = "default-on";
80 + };
81 +
82 + wireless0 {
83 + label = "bcm53xx:green:wireless";
84 + gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
85 + };
86 +
87 + wireless1 {
88 + label = "bcm53xx:amber:wireless";
89 + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
90 + };
91 + };
92 +
93 gpio-keys {
94 compatible = "gpio-keys";
95 #address-cells = <1>;