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