brcm63xx: switch to new partition layout specification
[oweals/openwrt.git] / target / linux / brcm63xx / dts / dgnd3700v1.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Netgear DGND3700v1/DGND3800B";
9         compatible = "netgear,dgnd3700v1", "brcm,bcm6368";
10
11         chosen {
12                 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13                 stdout-path = "serial0:115200n8";
14         };
15
16         gpio-keys-polled {
17                 compatible = "gpio-keys-polled";
18                 #address-cells = <1>;
19                 #size-cells = <0>;
20                 poll-interval = <20>;
21                 debounce-interval = <60>;
22
23                 wlan {
24                         label = "wlan";
25                         gpios = <&pinctrl 10 1>;
26                         linux,code = <KEY_WLAN>;
27                 };
28                 reset {
29                         label = "reset";
30                         gpios = <&pinctrl 12 1>;
31                         linux,code = <KEY_RESTART>;
32                 };
33                 wps {
34                         label = "wps";
35                         gpios = <&pinctrl 35 1>;
36                         linux,code = <KEY_WPS_BUTTON>;
37                 };
38         };
39
40         gpio-leds {
41                 compatible = "gpio-leds";
42
43                 dsl_green {
44                         label = "DGND3700v1_3800B:green:dsl";
45                         gpios = <&pinctrl 2 1>;
46                 };
47                 inet_red {
48                         label = "DGND3700v1_3800B:red:inet";
49                         gpios = <&pinctrl 4 1>;
50                 };
51                 inet_green {
52                         label = "DGND3700v1_3800B:green:inet";
53                         gpios = <&pinctrl 5 1>;
54                 };
55                 wps_green {
56                         label = "DGND3700v1_3800B:green:wps";
57                         gpios = <&pinctrl 11 1>;
58                 };
59                 usbfront_green {
60                         label = "DGND3700v1_3800B:green:usb-front";
61                         gpios = <&pinctrl 13 1>;
62                 };
63                 usbback_green {
64                         label = "DGND3700v1_3800B:green:usb-back";
65                         gpios = <&pinctrl 14 1>;
66                 };
67                 power_red {
68                         label = "DGND3700v1_3800B:red:power";
69                         gpios = <&pinctrl 22 1>;
70                 };
71                 lan_green {
72                         label = "DGND3700v1_3800B:green:lan";
73                         gpios = <&pinctrl 23 1>;
74                 };
75                 power_green {
76                         label = "DGND3700v1_3800B:green:power";
77                         gpios = <&pinctrl 24 1>;
78                         default-state = "on";
79                 };
80                 wifi2g_green {
81                         label = "DGND3700v1_3800B:green:wifi2g";
82                         gpios = <&pinctrl 26 1>;
83                 };
84                 wifi5g_blue {
85                         label = "DGND3700v1_3800B:blue:wifi5g";
86                         gpios = <&pinctrl 27 1>;
87                 };
88         };
89 };
90
91 &pflash {
92         status = "ok";
93
94         linux,part-probe = "bcm63xxpart";
95
96         partitions {
97                 compatible = "fixed-partitions";
98                 #address-cells = <1>;
99                 #size-cells = <1>;
100
101                 cfe@0 {
102                         label = "CFE";
103                         reg = <0x000000 0x020000>;
104                         read-only;
105                 };
106
107                 linux@20000 {
108                         label = "linux";
109                         reg = <0x020000 0x1e20000>;
110                         compatible = "brcm,bcm963xx-imagetag";
111                 };
112
113                 board_data@1e40000 {
114                         label = "board_data";
115                         reg = <0x1e40000 0x1a0000>;
116                         read-only;
117                 };
118
119                 nvram@1fe0000 {
120                         label = "nvram";
121                         reg = <0x1fe0000 0x20000>;
122                 };
123         };
124 }; 
125
126 &pinctrl {
127         pinctrl-names = "default";
128         pinctrl-0 = <&pinctrl_pci>;
129 };
130
131 &lsspi {
132         switch@1 {
133                 compatible = "brcm,bcm53115";
134                 reg = <1>;
135                 spi-max-frequency = <781000>;
136
137                 lede,alias = "eth0";
138
139                 ports {
140                         #address-cells = <1>;
141                         #size-cells = <0>;
142
143                         wan@0 {
144                                 reg = <0>;
145                                 label = "wan";
146                         };
147
148                         lan@1 {
149                                 reg = <1>;
150                                 label = "lan1";
151                         };
152
153                         lan@2 {
154                                 reg = <2>;
155                                 label = "lan2";
156                         };
157
158                         lan@3 {
159                                 reg = <3>;
160                                 label = "lan3";
161                         };
162
163                         lan@4 {
164                                 reg = <4>;
165                                 label = "lan4";
166                         };
167
168                         cpu@8 {
169                                 reg = <8>;
170                                 label = "cpu";
171
172                                 fixed-link {
173                                         speed = <1000>;
174                                         full-duplex;
175                                 };
176                         };
177                 };
178         };
179 };
180
181 &uart0 {
182         status = "ok";
183 };