bcm63xx: convert to new LED color/function format where possible
[openwrt/staging/stintel.git] / target / linux / bcm63xx / dts / bcm6358-pirelli-a226.dtsi
1 #include "bcm6358.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 chosen {
8 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
9 stdout-path = "serial0:115200n8";
10 };
11
12 keys {
13 compatible = "gpio-keys-polled";
14 #address-cells = <1>;
15 #size-cells = <0>;
16 poll-interval = <20>;
17
18 wps {
19 label = "wps";
20 gpios = <&pinctrl 34 1>;
21 linux,code = <KEY_WPS_BUTTON>;
22 debounce-interval = <60>;
23 };
24
25 reset {
26 label = "reset";
27 gpios = <&pinctrl 37 1>;
28 linux,code = <KEY_RESTART>;
29 debounce-interval = <60>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 voip_red {
37 label = "red:VoIP";
38 gpios = <&pinctrl 0 1>;
39 };
40 eth_red {
41 label = "red:ethernet";
42 gpios = <&pinctrl 1 1>;
43 };
44 dsl_green {
45 label = "green:ADSL";
46 gpios = <&pinctrl 2 1>;
47 };
48 usb_green {
49 function = LED_FUNCTION_USB;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&pinctrl 3 1>;
52 };
53 power_green {
54 function = LED_FUNCTION_POWER;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&pinctrl 4 1>;
57 default-state = "on";
58 };
59 power_red {
60 function = LED_FUNCTION_POWER;
61 color = <LED_COLOR_ID_RED>;
62 gpios = <&pinctrl 5 1>;
63 };
64 inet_red {
65 label = "red:internet";
66 gpios = <&pinctrl 6 1>;
67 };
68 inet_green {
69 label = "green:internet";
70 gpios = <&pinctrl 7 1>;
71 };
72 eth_green {
73 label = "green:ethernet";
74 gpios = <&pinctrl 8 1>;
75 };
76 voip_green {
77 label = "green:VoIP";
78 gpios = <&pinctrl 9 1>;
79 };
80 wifi_red {
81 label = "red:wifi";
82 gpios = <&pinctrl 10 1>;
83 };
84 usb_red {
85 function = LED_FUNCTION_USB;
86 color = <LED_COLOR_ID_RED>;
87 gpios = <&pinctrl 11 1>;
88 };
89 dsl_red {
90 label = "red:ADSL";
91 gpios = <&pinctrl 12 1>;
92 };
93 };
94 };
95
96 &uart0 {
97 status = "okay";
98 };