brcm63xx: drop linux,part-probe usage where possible
[oweals/openwrt.git] / target / linux / brcm63xx / dts / wap-5813n.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Comtrend WAP-5813n";
9         compatible = "comtrend,wap-5813n", "brcm,bcm6368";
10
11         chosen {
12                 bootargs = "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 32 1>;
26                         linux,code = <KEY_WLAN>;
27                 };
28                 reset {
29                         label = "reset";
30                         gpios = <&pinctrl 34 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                 inet_green {
44                         label = "WAP-5813n:green:inet";
45                         gpios = <&pinctrl 5 0>;
46                 };
47                 power_green {
48                         label = "WAP-5813n:green:power";
49                         gpios = <&pinctrl 22 0>;
50                         default-state = "on";
51                 };
52                 wps_green {
53                         label = "WAP-5813n:green:wps";
54                         gpios = <&pinctrl 23 1>;
55                 };
56                 power_red {
57                         label = "WAP-5813n:red:power";
58                         gpios = <&pinctrl 24 0>;
59                 };
60                 inet_red {
61                         label = "WAP-5813n:red:inet";
62                         gpios = <&pinctrl 31 0>;
63                 };
64         };
65 };
66
67 &pflash {
68         status = "ok";
69
70         partitions {
71                 compatible = "fixed-partitions";
72                 #address-cells = <1>;
73                 #size-cells = <1>;
74
75                 cfe@0 {
76                         label = "CFE";
77                         reg = <0x000000 0x010000>;
78                         read-only;
79                 };
80
81                 linux@10000 {
82                         label = "linux";
83                         reg = <0x010000 0x7e0000>;
84                         compatible = "brcm,bcm963xx-imagetag";
85                 };
86
87                 nvram@7f0000 {
88                         label = "nvram";
89                         reg = <0x7f0000 0x010000>;
90                 };
91         };
92 };
93
94 &lsspi {
95         switch@0 {
96                 compatible = "brcm,bcm53115";
97                 reg = <0>;
98                 spi-max-frequency = <781000>;
99
100                 lede,alias = "eth0";
101
102                 ports {
103                         #address-cells = <1>;
104                         #size-cells = <0>;
105
106                         lan@0 {
107                                 reg = <0>;
108                                 label = "lan4";
109                         };
110
111                         lan@1 {
112                                 reg = <1>;
113                                 label = "lan3";
114                         };
115
116                         lan@2 {
117                                 reg = <2>;
118                                 label = "lan2";
119                         };
120
121                         lan@3 {
122                                 reg = <3>;
123                                 label = "lan1";
124                         };
125
126                         wan@4 {
127                                 reg = <4>;
128                                 label = "wan";
129                         };
130
131                         cpu@5 {
132                                 reg = <5>;
133                                 label = "cpu";
134
135                                 fixed-link {
136                                         speed = <1000>;
137                                         full-duplex;
138                                         asym-pause;
139                                         pause;
140                                 };
141                         };
142                 };
143         };
144 };
145
146 &pinctrl {
147         pinctrl-names = "default";
148         pinctrl-0 = <&pinctrl_pci>;
149 };
150
151 &uart0 {
152         status = "ok";
153 };