ramips: DTS rework
[openwrt/openwrt.git] / target / linux / ramips / dts / AR670W.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 / {
6 compatible = "AR670W", "ralink,rt2880-soc";
7 model = "Airlink101 AR670W";
8
9 cfi@bdc00000 {
10 compatible = "cfi-flash";
11 reg = <0xbc400000 0x800000>;
12 bank-width = <2>;
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 u-boot@0 {
17 reg = <0x0 0x30000>;
18 label = "u-boot";
19 read-only;
20 };
21
22 factory: factory@30000 {
23 reg = <0x30000 0x10000>;
24 label = "factory";
25 read-only;
26 };
27
28 firmware@40000 {
29 reg = <0x40000 0x3c0000>;
30 label = "firmware";
31 };
32 };
33
34 gpio-leds {
35 compatible = "gpio-leds";
36
37 status {
38 label = "ar670w:green:power";
39 gpios = <&gpio0 7 1>;
40 };
41
42 wpsblue {
43 label = "ar670w:blue:wps";
44 gpios = <&gpio0 13 1>;
45 };
46 };
47
48 gpio-keys-polled {
49 compatible = "gpio-keys-polled";
50 #address-cells = <1>;
51 #size-cells = <0>;
52 poll-interval = <100>;
53
54 wps {
55 label = "wps";
56 gpios = <&gpio0 0 1>;
57 linux,code = <0x211>;
58 };
59
60 reset {
61 label = "reset";
62 gpios = <&gpio0 9 1>;
63 linux,code = <0x198>;
64 };
65 };
66 };
67
68 &gpio0 {
69 status = "okay";
70 };
71
72 &pinctrl {
73 state_default: pinctrl0 {
74 gpio {
75 ralink,group = "i2c", "spi", "uartlite";
76 ralink,function = "gpio";
77 };
78 };
79 };
80
81 &ethernet {
82 status = "okay";
83 mtd-mac-address = <&factory 0x2004>;
84
85 port@0 {
86 phy-handle = <&phy0>;
87 phy-mode = "mii";
88 };
89
90 mdio-bus {
91 status = "okay";
92
93 phy0: ethernet-phy@0 {
94 phy-mode = "mii";
95 reg = <0>;
96 };
97 };
98 };
99
100 &wmac {
101 status = "okay";
102 ralink,mtd-eeprom = <&factory 0x2000>;
103 };