d0b1e55213b9f281fa5fc85ece96b1af126de305
[oweals/openwrt.git] / target / linux / bcm63xx / dts / bcm6358-pirelli-a226m-fwb.dts
1 /dts-v1/;
2
3 #include "bcm6358.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Pirelli A226M-FWB";
9         compatible = "pirelli,a226m-fwb", "brcm,bcm6358";
10
11         chosen {
12                 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13                 stdout-path = "serial0:115200n8";
14         };
15
16         keys {
17                 compatible = "gpio-keys-polled";
18                 #address-cells = <1>;
19                 #size-cells = <0>;
20                 poll-interval = <20>;
21
22                 wps {
23                         label = "wps";
24                         gpios = <&pinctrl 34 1>;
25                         linux,code = <KEY_WPS_BUTTON>;
26                         debounce-interval = <60>;
27                 };
28
29                 reset {
30                         label = "reset";
31                         gpios = <&pinctrl 37 1>;
32                         linux,code = <KEY_RESTART>;
33                         debounce-interval = <60>;
34                 };
35         };
36
37         leds {
38                 compatible = "gpio-leds";
39
40                 voip_red {
41                         label = "DWV-S0:red:VoIP";
42                         gpios = <&pinctrl 0 1>;
43                 };
44                 eth_red {
45                         label = "DWV-S0:red:ethernet";
46                         gpios = <&pinctrl 1 1>;
47                 };
48                 dsl_green {
49                         label = "DWV-S0:green:ADSL";
50                         gpios = <&pinctrl 2 1>;
51                 };
52                 usb_green {
53                         label = "DWV-S0:green:USB";
54                         gpios = <&pinctrl 3 1>;
55                 };
56                 power_green {
57                         label = "DWV-S0:green:power";
58                         gpios = <&pinctrl 4 1>;
59                         default-state = "on";
60                 };
61                 power_red {
62                         label = "DWV-S0:red:power";
63                         gpios = <&pinctrl 5 1>;
64                 };
65                 inet_red {
66                         label = "DWV-S0:red:internet";
67                         gpios = <&pinctrl 6 1>;
68                 };
69                 inet_green {
70                         label = "DWV-S0:green:internet";
71                         gpios = <&pinctrl 7 1>;
72                 };
73                 eth_green {
74                         label = "DWV-S0:green:ethernet";
75                         gpios = <&pinctrl 8 1>;
76                 };
77                 voip_green {
78                         label = "DWV-S0:green:VoIP";
79                         gpios = <&pinctrl 9 1>;
80                 };
81                 wifi_red {
82                         label = "DWV-S0:red:wifi";
83                         gpios = <&pinctrl 10 1>;
84                 };
85                 usb_red {
86                         label = "DWV-S0:red:USB";
87                         gpios = <&pinctrl 11 1>;
88                 };
89                 dsl_red {
90                         label = "DWV-S0:red:ADSL";
91                         gpios = <&pinctrl 12 1>;
92                 };
93         };
94 };
95
96 &pflash {
97         status = "okay";
98
99         partitions {
100                 compatible = "fixed-partitions";
101                 #address-cells = <1>;
102                 #size-cells = <1>;
103
104                 cfe@0 {
105                         label = "CFE";
106                         reg = <0x000000 0x020000>;
107                         read-only;
108                 };
109
110                 linux@10000 {
111                         label = "linux";
112                         reg = <0x010000 0xfc0000>;
113                         compatible = "brcm,bcm963xx-imagetag";
114                 };
115
116                 nvram@7f0000 {
117                         label = "nvram";
118                         reg = <0xfe0000 0x020000>;
119                 };
120         };
121 };
122
123 &uart0 {
124         status = "okay";
125 };