e61baf94a185982968559f603fd5b79541746e9d
[oweals/openwrt.git] / target / linux / brcm63xx / dts / av4202n.dts
1 /dts-v1/;
2
3 #include "bcm6368.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         model = "ADB P.DG AV4202N";
10         compatible = "adb,av4202n", "brcm,bcm6368";
11
12         chosen {
13                 bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
14                 stdout-path = "serial0:115200n8";
15         };
16
17         gpio-keys-polled {
18                 compatible = "gpio-keys-polled";
19                 #address-cells = <1>;
20                 #size-cells = <0>;
21                 poll-interval = <20>;
22                 debounce-interval = <60>;
23
24                 reset {
25                         label = "reset";
26                         gpios = <&pinctrl 34 GPIO_ACTIVE_LOW>;
27                         linux,code = <KEY_RESTART>;
28                 };
29                 wlan {
30                         label = "wlan";
31                         gpios = <&pinctrl 37 GPIO_ACTIVE_LOW>;
32                         linux,code = <KEY_WLAN>;
33                 };
34         };
35
36         gpio-leds {
37                 compatible = "gpio-leds";
38
39                 power_white {
40                         label = "AV4202N:white:power";
41                         gpios = <&pinctrl 10 GPIO_ACTIVE_LOW>;
42                         default-state = "on";
43                 };
44                 power_red {
45                         label = "AV4202N:red:power";
46                         gpios = <&pinctrl 11 GPIO_ACTIVE_LOW>;
47                 };
48                 wan_white {
49                         label = "AV4202N:white:wan";
50                         gpios = <&pinctrl 26 GPIO_ACTIVE_LOW>;
51                 };
52                 wan_red {
53                         label = "AV4202N:red:wan";
54                         gpios = <&pinctrl 27 GPIO_ACTIVE_LOW>;
55                 };
56                 phone_white {
57                         label = "AV4202N:white:phone";
58                         gpios = <&pinctrl 24 GPIO_ACTIVE_LOW>;
59                 };
60                 phone_red {
61                         label = "AV4202N:red:phone";
62                         gpios = <&pinctrl 25 GPIO_ACTIVE_LOW>;
63                 };
64                 wifi {
65                         label = "AV4202N:blue:wifi";
66                         gpios = <&pinctrl 22 GPIO_ACTIVE_LOW>;
67                 };
68         };
69 };
70
71 &pflash {
72         status = "ok";
73
74         partitions {
75                 compatible = "fixed-partitions";
76                 #address-cells = <1>;
77                 #size-cells = <1>;
78
79                 cfe@0 {
80                         label = "CFE";
81                         reg = <0x000000 0x020000>;
82                         read-only;
83                 };
84
85                 linux@20000 {
86                         label = "linux";
87                         reg = <0x020000 0xfc0000>;
88                         compatible = "brcm,bcm963xx-imagetag";
89                 };
90
91                 nvram@fe0000 {
92                         label = "nvram";
93                         reg = <0xfe0000 0x020000>;
94                 };
95         };
96 };
97
98 &uart0 {
99         status = "ok";
100 };