043d38b832619c586d7ca03872e6e1a778c8bf83
[openwrt/staging/mkresin.git] /
1 From 811ae58e76da88106f6d28159d4ea7b163dfaa48 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 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
16 ---
17 arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts | 68 +++++++++++++++++++++++
18 1 file changed, 68 insertions(+)
19
20 --- a/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
21 +++ b/arch/arm/boot/dts/bcm47081-buffalo-wzr-900dhp.dts
22 @@ -35,6 +35,74 @@
23 0x88000000 0x08000000>;
24 };
25
26 + spi {
27 + compatible = "spi-gpio";
28 + num-chipselects = <1>;
29 + gpio-sck = <&chipcommon 7 0>;
30 + gpio-mosi = <&chipcommon 4 0>;
31 + cs-gpios = <&chipcommon 6 0>;
32 + #address-cells = <1>;
33 + #size-cells = <0>;
34 +
35 + hc595: gpio_spi@0 {
36 + compatible = "fairchild,74hc595";
37 + reg = <0>;
38 + registers-number = <1>;
39 + spi-max-frequency = <100000>;
40 +
41 + gpio-controller;
42 + #gpio-cells = <2>;
43 +
44 + };
45 + };
46 +
47 + leds {
48 + compatible = "gpio-leds";
49 +
50 + usb {
51 + label = "bcm53xx:green:usb";
52 + gpios = <&hc595 0 GPIO_ACTIVE_HIGH>;
53 + };
54 +
55 + power0 {
56 + label = "bcm53xx:green:power";
57 + gpios = <&hc595 1 GPIO_ACTIVE_HIGH>;
58 + linux,default-trigger = "default-on";
59 + };
60 +
61 + power1 {
62 + label = "bcm53xx:red:power";
63 + gpios = <&hc595 2 GPIO_ACTIVE_HIGH>;
64 + };
65 +
66 + router0 {
67 + label = "bcm53xx:green:router";
68 + gpios = <&hc595 3 GPIO_ACTIVE_HIGH>;
69 + linux,default-trigger = "default-on";
70 + };
71 +
72 + router1 {
73 + label = "bcm53xx:amber:router";
74 + gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
75 + };
76 +
77 + wan {
78 + label = "bcm53xx:green:wan";
79 + gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
80 + linux,default-trigger = "default-on";
81 + };
82 +
83 + wireless0 {
84 + label = "bcm53xx:green:wireless";
85 + gpios = <&hc595 6 GPIO_ACTIVE_HIGH>;
86 + };
87 +
88 + wireless1 {
89 + label = "bcm53xx:amber:wireless";
90 + gpios = <&hc595 7 GPIO_ACTIVE_HIGH>;
91 + };
92 + };
93 +
94 gpio-keys {
95 compatible = "gpio-keys";
96 #address-cells = <1>;