ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / WLI-TX4-AG300N.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 #address-cells = <1>;
10 #size-cells = <1>;
11 compatible = "buffalo,wli-tx4-ag300n", "ralink,rt2880-soc";
12 model = "Buffalo WLI-TX4-AG300N";
13
14 aliases {
15 led-status = &led_power;
16 };
17
18 cfi@1f000000 {
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
21 bank-width = <2>;
22 device-width = <2>;
23 #address-cells = <1>;
24 #size-cells = <1>;
25
26 partition@0 {
27 label = "uboot";
28 reg = <0x0 0x30000>;
29 read-only;
30 };
31
32 partition@30000 {
33 label = "uboot-env";
34 reg = <0x30000 0x10000>;
35 read-only;
36 };
37
38 factory: partition@40000 {
39 label = "factory";
40 reg = <0x40000 0x10000>;
41 read-only;
42 };
43
44 partition@50000 {
45 label = "firmware";
46 reg = <0x50000 0x3b0000>;
47 };
48 };
49
50 gpio-keys-polled {
51 compatible = "gpio-keys-polled";
52 poll-interval = <100>;
53
54 wps {
55 label = "wps";
56 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_WPS_BUTTON>;
58 };
59
60 bandwidth {
61 label = "bandwidth";
62 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
63 linux,code = <KEY_RESTART>;
64 };
65
66 reset {
67 label = "reset";
68 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RESTART>;
70 };
71 };
72
73 gpio-leds {
74 compatible = "gpio-leds";
75
76 diag {
77 label = "wli-tx4-ag300n:red:diag";
78 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
79 };
80
81 led_power: power {
82 label = "wli-tx4-ag300n:blue:power";
83 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
84 };
85
86 security {
87 label = "wli-tx4-ag300n:blue:security";
88 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
89 };
90 };
91 };
92
93 &gpio0 {
94 status = "okay";
95 };
96
97 &ethernet {
98 status = "okay";
99 mtd-mac-address = <&factory 0x4>;
100
101 port@0 {
102 mediatek,fixed-link = <100 1 1 1>;
103 };
104
105 mdio-bus {
106 status = "okay";
107
108 phy0: ethernet-phy@0 {
109 phy-mode = "mii";
110 reg = <0>;
111 };
112 };
113 };
114
115 &wmac {
116 ralink,mtd-eeprom = <&factory 0>;
117 };