bcm63xx: ar-5315u: expose LEDs through controller
[openwrt/staging/stintel.git] / target / linux / bcm63xx / dts / bcm6328-comtrend-ar-5387un.dts
1 /dts-v1/;
2
3 #include "bcm6328.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Comtrend AR-5387un";
9 compatible = "comtrend,ar-5387un", "brcm,bcm6328";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 chosen {
19 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
20 stdout-path = "serial0:115200n8";
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&pinctrl 23 1>;
32 linux,code = <KEY_RESTART>;
33 debounce-interval = <60>;
34 };
35 };
36 };
37
38 &hsspi {
39 status = "okay";
40
41 flash@0 {
42 compatible = "jedec,spi-nor";
43 spi-max-frequency = <16666667>;
44 spi-tx-bus-width = <2>;
45 spi-rx-bus-width = <2>;
46 reg = <0>;
47
48 #address-cells = <1>;
49 #size-cells = <1>;
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 cfe@0 {
57 reg = <0x000000 0x010000>;
58 label = "cfe";
59 read-only;
60 };
61
62 linux@10000 {
63 reg = <0x010000 0xfe0000>;
64 label = "linux";
65 compatible = "brcm,bcm963xx-imagetag";
66 };
67
68 nvram@ff0000 {
69 reg = <0xff0000 0x010000>;
70 label = "nvram";
71 };
72 };
73 };
74 };
75
76 &leds {
77 status = "okay";
78
79 pinctrl-names = "default";
80 pinctrl-0 = <&pinctrl_leds>;
81
82 led@1 {
83 reg = <1>;
84 label = "AR-5387un:red:inet";
85 };
86
87 led@4 {
88 reg = <4>;
89 label = "AR-5387un:red:power";
90 };
91
92 led@7 {
93 reg = <7>;
94 label = "AR-5387un:green:inet";
95 };
96
97 led_power_green: led@8 {
98 reg = <8>;
99 label = "AR-5387un:green:power";
100 default-state = "on";
101 };
102
103 led@11 {
104 reg = <11>;
105 active-low;
106 label = "AR-5387un:green:dsl";
107 };
108 };
109
110 &pinctrl {
111 pinctrl_leds: leds {
112 function = "led";
113 pins = "gpio1", "gpio4", "gpio7",
114 "gpio8", "gpio11";
115 };
116 };
117
118 &uart0 {
119 status = "okay";
120 };