4aa805e5740b5443d001933c207f8770cb4684e2
[oweals/openwrt.git] / target / linux / bcm63xx / dts / bcm6359-huawei-echolife-hg520v.dts
1 /dts-v1/;
2
3 #include "bcm6358.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Huawei EchoLife HG520v";
9         compatible = "huawei,echolife-hg520v", "brcm,bcm6359", "brcm,bcm6358";
10
11         aliases {
12                 led-boot = &led_inet_green;
13                 led-failsafe = &led_inet_green;
14                 led-running = &led_inet_green;
15                 led-upgrade = &led_inet_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 37 1>;
32                         linux,code = <KEY_RESTART>;
33                         debounce-interval = <60>;
34                 };
35         };
36
37         leds {
38                 compatible = "gpio-leds";
39
40                 led_inet_green: inet_green {
41                         label = "HW520:green:net";
42                         gpios = <&pinctrl 32 1>;
43                 };
44         };
45 };
46
47 &pflash {
48         status = "ok";
49
50         partitions {
51                 compatible = "fixed-partitions";
52                 #address-cells = <1>;
53                 #size-cells = <1>;
54
55                 cfe@0 {
56                         label = "CFE";
57                         reg = <0x000000 0x010000>;
58                         read-only;
59                 };
60
61                 linux@10000 {
62                         label = "linux";
63                         reg = <0x010000 0x3e0000>;
64                         compatible = "brcm,bcm963xx-imagetag";
65                 };
66
67                 nvram@3f0000 {
68                         label = "nvram";
69                         reg = <0x3f0000 0x010000>;
70                 };
71         };
72 };
73
74 &uart0 {
75         status = "ok";
76 };