ramips: HLK-RM04 - Enable GPIO14 for WPS button
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / WZR-AGL300NH.dts
1 /dts-v1/;
2
3 /include/ "rt2880.dtsi"
4
5 / {
6 #address-cells = <1>;
7 #size-cells = <1>;
8 compatible = "WZR-AGL300NH", "ralink,rt2880-soc";
9 model = "Buffalo WZR-AGL300NH";
10
11 palmbus@300000 {
12 gpio0: gpio@600 {
13 status = "okay";
14 };
15 };
16
17 pinctrl {
18 state_default: pinctrl0 {
19 gpio {
20 ralink,group = "i2c", "uartlite", "mdio";
21 ralink,function = "gpio";
22 };
23 };
24 };
25
26 cfi@1f000000 {
27 compatible = "cfi-flash";
28 reg = <0x1f000000 0x800000>;
29 bank-width = <2>;
30 device-width = <2>;
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "uboot";
36 reg = <0x0 0x30000>;
37 read-only;
38 };
39
40 partition@30000 {
41 label = "uboot-env";
42 reg = <0x30000 0x10000>;
43 read-only;
44 };
45
46 factory: partition@40000 {
47 label = "factory";
48 reg = <0x40000 0x10000>;
49 read-only;
50 };
51
52 partition@50000 {
53 label = "firmware";
54 reg = <0x50000 0x3b0000>;
55 };
56 };
57
58 ethernet@400000 {
59 status = "okay";
60 mtd-mac-address = <&factory 0x4>;
61
62 port@0 {
63 mediatek,fixed-link = <1000 1 1 1>;
64 };
65
66 mdio-bus {
67 status = "okay";
68
69 phy0: ethernet-phy@0 {
70 phy-mode = "mii";
71 reg = <0>;
72 };
73 };
74 };
75
76 rtl8366s {
77 compatible = "realtek,rtl8366s";
78 gpio-sda = <&gpio0 1 0>;
79 gpio-sck = <&gpio0 2 0>;
80 };
81
82 wmac@480000 {
83 ralink,mtd-eeprom = <&factory 0>;
84 };
85
86 gpio-keys-polled {
87 compatible = "gpio-keys-polled";
88 #address-cells = <1>;
89 #size-cells = <0>;
90 poll-interval = <100>;
91
92 wps {
93 label = "wps";
94 gpios = <&gpio0 0 1>;
95 linux,code = <0x211>;
96 };
97
98 router {
99 label = "router_switch";
100 gpios = <&gpio0 7 0>;
101 linux,code = <0x100>;
102 };
103
104 reset {
105 label = "reset";
106 gpios = <&gpio0 9 1>;
107 linux,code = <0x198>;
108 };
109 };
110
111 gpio-leds {
112 compatible = "gpio-leds";
113
114 router {
115 label = "wzr-agl300nh:green:router";
116 gpios = <&gpio0 8 1>;
117 };
118
119 diag {
120 label = "wzr-agl300nh:red:diag";
121 gpios = <&gpio0 12 1>;
122 };
123
124 security_g {
125 label = "wzr-agl300nh:orange:security_g";
126 gpios = <&gpio0 11 1>;
127 };
128
129 security_n {
130 label = "wzr-agl300nh:orange:security_n";
131 gpios = <&gpio0 13 1>;
132 };
133 };
134
135
136 pcibus0: pci@00440000 {
137 compatible = "ralink,rt288x-pci";
138 reg = <0x00440000 0x20000>;
139 #address-cells = <1>;
140 #size-cells = <1>;
141 status = "ok";
142 };
143 };