bcm63xx: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6358-pirelli-agpf-s0.dts
1 #include "bcm6358.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 model = "Pirelli Alice Gate AGPF-S0";
8 compatible = "pirelli,agpf-s0", "brcm,bcm6358";
9
10 chosen {
11 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
12 stdout-path = "serial0:115200n8";
13 };
14
15 keys {
16 compatible = "gpio-keys-polled";
17 #address-cells = <1>;
18 #size-cells = <0>;
19 poll-interval = <20>;
20
21 wps {
22 label = "wps";
23 gpios = <&pinctrl 34 1>;
24 linux,code = <KEY_WPS_BUTTON>;
25 debounce-interval = <60>;
26 };
27
28 reset {
29 label = "reset";
30 gpios = <&pinctrl 37 1>;
31 linux,code = <KEY_RESTART>;
32 debounce-interval = <60>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 power_green {
40 function = LED_FUNCTION_POWER;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&pinctrl 4 1>;
43 default-state = "on";
44 };
45 power_red {
46 function = LED_FUNCTION_POWER;
47 color = <LED_COLOR_ID_RED>;
48 gpios = <&pinctrl 5 1>;
49 };
50 service_green {
51 label = "green:service";
52 gpios = <&pinctrl 6 1>;
53 };
54 service_red {
55 label = "red:service";
56 gpios = <&pinctrl 7 1>;
57 };
58 dsl_green {
59 label = "green:adsl";
60 gpios = <&pinctrl 9 1>;
61 };
62 dsl_red {
63 label = "red:adsl";
64 gpios = <&pinctrl 10 1>;
65 };
66 wifi_green {
67 label = "green:wifi";
68 gpios = <&pinctrl 22 1>;
69 };
70 wifi_red {
71 label = "red:wifi";
72 gpios = <&pinctrl 23 1>;
73 };
74 inet_red {
75 label = "red:internet";
76 gpios = <&pinctrl 24 1>;
77 };
78 inet_green {
79 label = "green:internet";
80 gpios = <&pinctrl 25 1>;
81 };
82 usr1_green {
83 label = "green:usr1";
84 gpios = <&pinctrl 26 1>;
85 };
86 usr1_red {
87 label = "red:usr1";
88 gpios = <&pinctrl 27 1>;
89 };
90 usr2_green {
91 label = "green:usr2";
92 gpios = <&pinctrl 29 1>;
93 };
94 usr2_red {
95 label = "red:usr2";
96 gpios = <&pinctrl 30 1>;
97 };
98 };
99 };
100
101 &pflash {
102 status = "okay";
103
104 partitions {
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 cfe@0 {
110 label = "CFE";
111 reg = <0x000000 0x020000>;
112 read-only;
113 };
114
115 linux@20000 {
116 label = "linux";
117 reg = <0x020000 0xfc0000>;
118 compatible = "brcm,bcm963xx-imagetag";
119 };
120
121 nvram@fe0000 {
122 label = "nvram";
123 reg = <0xfe0000 0x020000>;
124 };
125 };
126 };
127
128 &uart0 {
129 status = "okay";
130 };