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