brcm63xx: register serial through device tree
[openwrt/staging/mkresin.git] / target / linux / brcm63xx / dts / r1000h.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Actiontec R1000H";
9 compatible = "actiontec,r1000h", "brcm,bcm6368";
10
11 chosen {
12 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs 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 reset {
24 label = "reset";
25 gpios = <&pinctrl 34 1>;
26 linux,code = <KEY_RESTART>;
27 };
28
29 wps {
30 label = "wps";
31 gpios = <&pinctrl 35 1>;
32 linux,code = <KEY_WPS_BUTTON>;
33 };
34 };
35
36 gpio-leds {
37 compatible = "gpio-leds";
38
39 inet_green {
40 label = "R1000H:green:inet";
41 gpios = <&pinctrl 5 0>;
42 };
43
44 usb_green {
45 label = "R1000H:green:usb";
46 gpios = <&pinctrl 21 1>;
47 };
48
49 power_green {
50 label = "R1000H:green:power";
51 gpios = <&pinctrl 22 0>;
52 default-state = "on";
53 };
54
55 wps_green {
56 label = "R1000H:green:wps";
57 gpios = <&pinctrl 23 1>;
58 };
59
60 power_red {
61 label = "R1000H:red:power";
62 gpios = <&pinctrl 24 0>;
63 };
64
65 wps_red {
66 label = "R1000H:red:wps";
67 gpios = <&pinctrl 30 1>;
68 };
69
70 inet_red {
71 label = "R1000H:red:inet";
72 gpios = <&pinctrl 31 0>;
73 };
74 };
75 };
76
77 &pflash {
78 status = "ok";
79
80 linux,part-probe = "bcm63xxpart";
81
82 CFE@0 {
83 reg = <0x000000 0x020000>;
84 read-only;
85 };
86
87 linux@20000 {
88 reg = <0x020000 0x1fc0000>;
89 };
90
91 nvram@1fe0000 {
92 reg = <0x1fe0000 0x20000>;
93 };
94 };
95
96 &uart0 {
97 status = "ok";
98 };
99
100 &uart1 {
101 status = "ok";
102 };