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