brcm63xx: register serial through device tree
[openwrt/staging/mkresin.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 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 linux,part-probe = "bcm63xxpart";
71
72 cfe@0 {
73 label = "CFE";
74 reg = <0x000000 0x010000>;
75 read-only;
76 };
77
78 linux@10000 {
79 label = "linux";
80 reg = <0x010000 0x7e0000>;
81 };
82
83 nvram@7f0000 {
84 label = "nvram";
85 reg = <0x7f0000 0x010000>;
86 };
87 };
88
89 &lsspi {
90 switch@0 {
91 compatible = "brcm,bcm53115";
92 reg = <0>;
93 spi-max-frequency = <781000>;
94
95 lede,alias = "eth0";
96
97 ports {
98 #address-cells = <1>;
99 #size-cells = <0>;
100
101 lan@0 {
102 reg = <0>;
103 label = "lan4";
104 };
105
106 lan@1 {
107 reg = <1>;
108 label = "lan3";
109 };
110
111 lan@2 {
112 reg = <2>;
113 label = "lan2";
114 };
115
116 lan@3 {
117 reg = <3>;
118 label = "lan1";
119 };
120
121 wan@4 {
122 reg = <4>;
123 label = "wan";
124 };
125
126 cpu@5 {
127 reg = <5>;
128 label = "cpu";
129
130 fixed-link {
131 speed = <1000>;
132 full-duplex;
133 asym-pause;
134 pause;
135 };
136 };
137 };
138 };
139 };
140
141 &pinctrl {
142 pinctrl-names = "default";
143 pinctrl-0 = <&pinctrl_pci>;
144 };
145
146 &uart0 {
147 status = "ok";
148 };