brcm63xx: add pinctrl support
[oweals/openwrt.git] / target / linux / brcm63xx / dts / ar1004g.dts
1 /dts-v1/;
2
3 #include "bcm6348.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         model = "ASMAX AR 1004g";
9         compatible = "asmax,ar1004g", "brcm,bcm6348";
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 33 1>;
25                         linux,code = <KEY_RESTART>;
26                 };
27         };
28
29         gpio-leds {
30                 compatible = "gpio-leds";
31
32                 power_green {
33                         label = "AR1004G:green:power";
34                         gpios = <&pinctrl 0 1>;
35                         default-state = "on";
36                 };
37                 inet_green {
38                         label = "AR1004G:green:inet";
39                         gpios = <&pinctrl 3 1>;
40                 };
41                 power_red {
42                         label = "AR1004G:red:power";
43                         gpios = <&pinctrl 6 1>;
44                 };
45         };
46 };
47
48 &pflash {
49         status = "ok";
50
51         linux,part-probe = "bcm63xxpart";
52
53         cfe@0 {
54                 label = "CFE";
55                 reg = <0x000000 0x010000>;
56                 read-only;
57         };
58
59         linux@10000 {
60                 label = "linux";
61                 reg = <0x010000 0x3e0000>;
62         };
63
64         nvram@3f0000 {
65                 label = "nvram";
66                 reg = <0x3f0000 0x010000>;
67         };
68 };
69
70 &pinctrl {
71         pinctrl-names = "default";
72         pinctrl-0 = <&pinctrl_ext_mii &pinctrl_pci>;
73 };