20d820bd182339c42ab8b2fce0143609fa62f9fc
[openwrt/openwrt.git] / target / linux / brcm63xx / dts / p870hw-51a-v2.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "Zyxel P870HW-51a v2";
9 compatible = "zyxel,p870hw-51a-v2", "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 reset {
24 label = "reset";
25 gpios = <&pinctrl 35 1>;
26 linux,code = <KEY_RESTART>;
27 };
28 wps {
29 label = "wps";
30 gpios = <&pinctrl 36 1>;
31 linux,code = <KEY_WPS_BUTTON>;
32 };
33 };
34
35 gpio-leds {
36 compatible = "gpio-leds";
37
38 power_green {
39 label = "P870HW-51a:green:power";
40 gpios = <&pinctrl 0 0>;
41 default-state = "on";
42 };
43 dsl_green {
44 label = "P870HW-51a:green:dsl";
45 gpios = <&pinctrl 2 1>;
46 };
47 inet_green {
48 label = "P870HW-51a:green:inet";
49 gpios = <&pinctrl 22 1>;
50 };
51 wps_orange {
52 label = "P870HW-51a:orange:wps";
53 gpios = <&pinctrl 24 1>;
54 };
55 inet_red {
56 label = "P870HW-51a:red:inet";
57 gpios = <&pinctrl 33 1>;
58 };
59 };
60 };
61
62 &pflash {
63 status = "ok";
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 cfe@0 {
71 label = "CFE";
72 reg = <0x000000 0x010000>;
73 read-only;
74 };
75
76 linux@10000 {
77 label = "linux";
78 reg = <0x010000 0x3e0000>;
79 compatible = "brcm,bcm963xx-imagetag";
80 };
81
82 nvram@3f0000 {
83 label = "nvram";
84 reg = <0x3f0000 0x010000>;
85 };
86 };
87 };
88
89 &pinctrl {
90 pinctrl-names = "default";
91 pinctrl-0 = <&pinctrl_pci>;
92 };
93
94 &uart0 {
95 status = "ok";
96 };