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