brcm63xx: move buttons and leds to dts files
[openwrt.git] / target / linux / brcm63xx / dts / hg520v.dts
1 /dts-v1/;
2
3 /include/ "bcm6358.dtsi"
4
5 / {
6         model = "Huawei EchoLife HG520v";
7         compatible = "huawei,hg520v", "brcm,bcm6358";
8
9         gpio-keys-polled {
10                 compatible = "gpio-keys-polled";
11                 #address-cells = <1>;
12                 #size-cells = <0>;
13                 poll-interval = <20>;
14                 debounce-interval = <60>;
15
16                 reset {
17                         label = "reset";
18                         gpios = <&gpio1 5 1>;
19                         linux,code = <0x198>;
20                 };
21         };
22
23         gpio-leds {
24                 compatible = "gpio-leds";
25
26                 inet_green {
27                         label = "HW520:green:net";
28                         gpios = <&gpio1 0 1>;
29                 };
30         };
31 };
32
33 &pflash {
34         status = "ok";
35
36         linux,part-probe = "bcm63xxpart";
37
38         cfe@0 {
39                 label = "CFE";
40                 reg = <0x000000 0x010000>;
41                 read-only;
42         };
43
44         linux@10000 {
45                 label = "linux";
46                 reg = <0x010000 0x3e0000>;
47         };
48
49         nvram@3f0000 {
50                 label = "nvram";
51                 reg = <0x3f0000 0x010000>;
52         };
53 };