brcm63xx: add pinctrl support
[oweals/openwrt.git] / target / linux / brcm63xx / dts / 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,hg520v", "brcm,bcm6358";
10
11         chosen {
12                 bootargs = "root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
13         };
14
15         gpio-keys-polled {
16                 compatible = "gpio-keys-polled";
17                 #address-cells = <1>;
18                 #size-cells = <0>;
19                 poll-interval = <20>;
20                 debounce-interval = <60>;
21
22                 reset {
23                         label = "reset";
24                         gpios = <&pinctrl 37 1>;
25                         linux,code = <KEY_RESTART>;
26                 };
27         };
28
29         gpio-leds {
30                 compatible = "gpio-leds";
31
32                 inet_green {
33                         label = "HW520:green:net";
34                         gpios = <&pinctrl 32 1>;
35                 };
36         };
37 };
38
39 &pflash {
40         status = "ok";
41
42         linux,part-probe = "bcm63xxpart";
43
44         cfe@0 {
45                 label = "CFE";
46                 reg = <0x000000 0x010000>;
47                 read-only;
48         };
49
50         linux@10000 {
51                 label = "linux";
52                 reg = <0x010000 0x3e0000>;
53         };
54
55         nvram@3f0000 {
56                 label = "nvram";
57                 reg = <0x3f0000 0x010000>;
58         };
59 };