bcm63xx: use generic diag.sh
[openwrt/openwrt.git] / target / linux / bcm63xx / dts / bcm6368-zyxel-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 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 chosen {
19 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
20 stdout-path = "serial0:115200n8";
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&pinctrl 35 1>;
32 linux,code = <KEY_RESTART>;
33 debounce-interval = <60>;
34 };
35
36 wps {
37 label = "wps";
38 gpios = <&pinctrl 36 1>;
39 linux,code = <KEY_WPS_BUTTON>;
40 debounce-interval = <60>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46
47 led_power_green: power_green {
48 label = "P870HW-51a:green:power";
49 gpios = <&pinctrl 0 0>;
50 default-state = "on";
51 };
52 dsl_green {
53 label = "P870HW-51a:green:dsl";
54 gpios = <&pinctrl 2 1>;
55 };
56 inet_green {
57 label = "P870HW-51a:green:inet";
58 gpios = <&pinctrl 22 1>;
59 };
60 wps_orange {
61 label = "P870HW-51a:orange:wps";
62 gpios = <&pinctrl 24 1>;
63 };
64 inet_red {
65 label = "P870HW-51a:red:inet";
66 gpios = <&pinctrl 33 1>;
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 0x3e0000>;
88 compatible = "brcm,bcm963xx-imagetag";
89 };
90
91 nvram@3f0000 {
92 label = "nvram";
93 reg = <0x3f0000 0x010000>;
94 };
95 };
96 };
97
98 &pinctrl {
99 pinctrl-names = "default";
100 pinctrl-0 = <&pinctrl_pci>;
101 };
102
103 &uart0 {
104 status = "ok";
105 };