bcm63xx: use generic diag.sh
[oweals/openwrt.git] / target / linux / bcm63xx / dts / bcm6368-observa-vh4032n.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Observa VH4032N";
9         compatible = "observa,vh4032n", "brcm,bcm6368";
10
11         aliases {
12                 led-boot = &led_power_blue;
13                 led-failsafe = &led_power_blue;
14                 led-running = &led_power_blue;
15                 led-upgrade = &led_power_blue;
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 34 1>;
32                         linux,code = <KEY_RESTART>;
33                         debounce-interval = <60>;
34                 };
35
36                 wlan {
37                         label = "wlan";
38                         gpios = <&pinctrl 35 1>;
39                         linux,code = <KEY_WLAN>;
40                         debounce-interval = <60>;
41                 };
42         };
43
44         leds {
45                 compatible = "gpio-leds";
46
47                 dsl_blue {
48                         label = "VH4032N:blue:dsl";
49                         gpios = <&pinctrl 2 1>;
50                 };
51                 dsl_red {
52                         label = "VH4032N:red:dsl";
53                         gpios = <&pinctrl 5 1>;
54                 };
55                 hspa_blue {
56                         label = "VH4032N:blue:hspa";
57                         gpios = <&pinctrl 11 1>;
58                 };
59                 hspa_red {
60                         label = "VH4032N:red:hspa";
61                         gpios = <&pinctrl 12 1>;
62                 };
63                 led_power_blue: power_blue {
64                         label = "VH4032N:blue:power";
65                         gpios = <&pinctrl 22 0>;
66                         default-state = "on";
67                 };
68                 power_red {
69                         label = "VH4032N:red:power";
70                         gpios = <&pinctrl 24 0>;
71                 };
72                 voice_blue {
73                         label = "VH4032N:blue:voice";
74                         gpios = <&pinctrl 25 1>;
75                 };
76                 voice_red {
77                         label = "VH4032N:red:voice";
78                         gpios = <&pinctrl 26 1>;
79                 };
80         };
81 };
82
83 &pinctrl {
84        pinctrl-names = "default";
85        pinctrl-0 = <&pinctrl_pci &pinctrl_ephy0_led &pinctrl_ephy1_led
86                     &pinctrl_ephy2_led &pinctrl_ephy3_led>;
87
88         usb_hub_reset {
89                 gpio-hog;
90                 gpios = <27 0>;
91                 output-high;
92                 line-name = "usb-hub-reset-gpio";
93         };
94 };
95
96 &pflash {
97         status = "ok";
98
99         partitions {
100                 compatible = "fixed-partitions";
101                 #address-cells = <1>;
102                 #size-cells = <1>;
103
104                 cfe@0 {
105                         label = "CFE";
106                         reg = <0x0000000 0x0020000>;
107                         read-only;
108                 };
109
110                 linux@20000 {
111                         label = "linux";
112                         reg = <0x0020000 0x1fc0000>;
113                         compatible = "brcm,bcm963xx-imagetag";
114                 };
115
116                 nvram@1fe0000 {
117                         label = "nvram";
118                         reg = <0x1fe0000 0x020000>;
119                 };
120         };
121 };
122
123 &uart0 {
124         status = "ok";
125 };