brcm63xx: probe SPI connected switches through DT
[openwrt/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 = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13 };
14
15 gpio-keys-polled {
16 compatible = "gpio-keys-polled";
17 #address-cells = <1>;
18 #size-cells = <0>;
19 poll-interval = <20>;
20 debounce-interval = <60>;
21
22 wlan {
23 label = "wlan";
24 gpios = <&pinctrl 32 1>;
25 linux,code = <KEY_WLAN>;
26 };
27 reset {
28 label = "reset";
29 gpios = <&pinctrl 34 1>;
30 linux,code = <KEY_RESTART>;
31 };
32 wps {
33 label = "wps";
34 gpios = <&pinctrl 35 1>;
35 linux,code = <KEY_WPS_BUTTON>;
36 };
37 };
38
39 gpio-leds {
40 compatible = "gpio-leds";
41
42 inet_green {
43 label = "WAP-5813n:green:inet";
44 gpios = <&pinctrl 5 0>;
45 };
46 power_green {
47 label = "WAP-5813n:green:power";
48 gpios = <&pinctrl 22 0>;
49 default-state = "on";
50 };
51 wps_green {
52 label = "WAP-5813n:green:wps";
53 gpios = <&pinctrl 23 1>;
54 };
55 power_red {
56 label = "WAP-5813n:red:power";
57 gpios = <&pinctrl 24 0>;
58 };
59 inet_red {
60 label = "WAP-5813n:red:inet";
61 gpios = <&pinctrl 31 0>;
62 };
63 };
64 };
65
66 &pflash {
67 status = "ok";
68
69 linux,part-probe = "bcm63xxpart";
70
71 cfe@0 {
72 label = "CFE";
73 reg = <0x000000 0x010000>;
74 read-only;
75 };
76
77 linux@10000 {
78 label = "linux";
79 reg = <0x010000 0x7e0000>;
80 };
81
82 nvram@7f0000 {
83 label = "nvram";
84 reg = <0x7f0000 0x010000>;
85 };
86 };
87
88 &lsspi {
89 switch@0 {
90 compatible = "brcm,bcm53115";
91 reg = <0>;
92 spi-max-frequency = <781000>;
93
94 lede,alias = "eth0";
95
96 ports {
97 #address-cells = <1>;
98 #size-cells = <0>;
99
100 lan@0 {
101 reg = <0>;
102 label = "lan4";
103 };
104
105 lan@1 {
106 reg = <1>;
107 label = "lan3";
108 };
109
110 lan@2 {
111 reg = <2>;
112 label = "lan2";
113 };
114
115 lan@3 {
116 reg = <3>;
117 label = "lan1";
118 };
119
120 wan@4 {
121 reg = <4>;
122 label = "wan";
123 };
124
125 cpu@5 {
126 reg = <5>;
127 label = "cpu";
128
129 fixed-link {
130 speed = <1000>;
131 full-duplex;
132 asym-pause;
133 pause;
134 };
135 };
136 };
137 };
138 };
139
140 &pinctrl {
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_pci>;
143 };