ramips: Buffalo WZR-AGL300NH target support
[openwrt/openwrt.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
30 bank-width = <2>;
31 device-width = <2>;
32 #address-cells = <1>;
33 #size-cells = <1>;
34
35 partition@0 {
36 label = "uboot";
37 reg = <0x0 0x30000>;
38 read-only;
39 };
40 partition@30000 {
41 label = "uboot-env";
42 reg = <0x30000 0x10000>;
43 read-only;
44 };
45 factory: partition@40000 {
46 label = "factory";
47 reg = <0x40000 0x10000>;
48 read-only;
49 };
50 partition@50000 {
51 label = "firmware";
52 reg = <0x50000 0x3b0000>;
53 };
54 };
55
56 ethernet@400000 {
57 status = "okay";
58 mtd-mac-address = <&factory 0x4>;
59
60 port@0 {
61 ralink,fixed-link = <1000 1 1 1>;
62 };
63
64 mdio-bus {
65 status = "okay";
66 phy0: ethernet-phy@0 {
67 phy-mode = "mii";
68 reg = <0>;
69 };
70 };
71 };
72
73 rtl8366s {
74 compatible = "realtek,rtl8366s";
75 gpio-sda = <&gpio0 1 0>;
76 gpio-sck = <&gpio0 2 0>;
77 };
78
79 wmac@480000 {
80 ralink,mtd-eeprom = <&factory 0>;
81 };
82
83 gpio-keys-polled {
84 compatible = "gpio-keys-polled";
85 #address-cells = <1>;
86 #size-cells = <0>;
87 poll-interval = <100>;
88 wps {
89 label = "wps";
90 gpios = <&gpio0 0 1>;
91 linux,code = <0x211>;
92 };
93 router {
94 label = "router_switch";
95 gpios = <&gpio0 7 0>;
96 linux,code = <0x100>;
97 };
98 reset {
99 label = "reset";
100 gpios = <&gpio0 9 1>;
101 linux,code = <0x198>;
102 };
103 };
104
105 gpio-leds {
106 compatible = "gpio-leds";
107
108 router {
109 label = "buffalo:green:router";
110 gpios = <&gpio0 8 1>;
111 };
112 diag {
113 label = "buffalo:red:diag";
114 gpios = <&gpio0 12 1>;
115 };
116 security_g {
117 label = "buffalo:orange:security_g";
118 gpios = <&gpio0 11 1>;
119 };
120 security_n {
121 label = "buffalo:orange:security_n";
122 gpios = <&gpio0 13 1>;
123 };
124 };
125
126
127 pcibus0: pci@00440000 {
128 compatible = "ralink,rt288x-pci";
129 reg = <0x00440000 0x20000>;
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 status = "ok";
134 };
135 };