brcm63xx: add pinctrl support
[oweals/openwrt.git] / target / linux / brcm63xx / dts / vr-3025u.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "Comtrend VR-3025u";
9         compatible = "comtrend,vr-3025u", "brcm,bcm6368";
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 34 1>;
25                         linux,code = <KEY_RESTART>;
26                 };
27         };
28
29         gpio-leds {
30                 compatible = "gpio-leds";
31
32                 dsl_green {
33                         label = "VR-3025u:green:dsl";
34                         gpios = <&pinctrl 2 1>;
35                 };
36                 inet_green {
37                         label = "VR-3025u:green:inet";
38                         gpios = <&pinctrl 5 0>;
39                 };
40                 power_green {
41                         label = "VR-3025u:green:power";
42                         gpios = <&pinctrl 22 0>;
43                         default-state = "on";
44                 };
45                 power_red {
46                         label = "VR-3025u:red:power";
47                         gpios = <&pinctrl 24 0>;
48                 };
49                 inet_red {
50                         label = "VR-3025u:red:inet";
51                         gpios = <&pinctrl 31 0>;
52                 };
53         };
54 };
55
56 &pflash {
57         status = "ok";
58
59         linux,part-probe = "bcm63xxpart";
60
61         cfe@0 {
62                 label = "CFE";
63                 reg = <0x0000000 0x0020000>;
64                 read-only;
65         };
66
67         linux@20000 {
68                 label = "linux";
69                 reg = <0x0020000 0x1fc0000>;
70         };
71
72         nvram@1fe0000 {
73                 label = "nvram";
74                 reg = <0x1fe0000 0x020000>;
75         };
76 };
77
78 &pinctrl {
79         pinctrl-names = "default";
80         pinctrl-0 = <&pinctrl_pci &pinctrl_ephy0_led &pinctrl_ephy1_led
81                      &pinctrl_ephy2_led &pinctrl_ephy3_led>;
82 };