ramips: unify partition node names in dts files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / AR725W.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 compatible = "airlink101,ar725w", "ralink,rt2880-soc";
10 model = "Airlink101 AR725W";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 cfi@bdc00000 {
17 compatible = "cfi-flash";
18 reg = <0xbc400000 0x800000>;
19 bank-width = <2>;
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 partition@0 {
24 reg = <0x0 0x30000>;
25 label = "u-boot";
26 read-only;
27 };
28
29 partition@30000 {
30 reg = <0x30000 0x10000>;
31 label = "u-boot-env";
32 };
33
34 factory: partition@40000 {
35 reg = <0x40000 0x10000>;
36 label = "factory";
37 read-only;
38 };
39
40 partition@50000 {
41 reg = <0x50000 0x3B0000>;
42 label = "firmware";
43 };
44 };
45
46 gpio-leds {
47 compatible = "gpio-leds";
48
49 led_power: power {
50 label = "ar725w:green:power";
51 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
52 };
53
54 wpsred {
55 label = "ar725w:red:wps";
56 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
57 };
58
59 wpsblue {
60 label = "ar725w:blue:wps";
61 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 gpio-keys-polled {
66 compatible = "gpio-keys-polled";
67 poll-interval = <100>;
68
69 wps {
70 label = "wps";
71 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
72 linux,code = <KEY_WPS_BUTTON>;
73 };
74
75 reset {
76 label = "reset";
77 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_RESTART>;
79 };
80 };
81 };
82
83 &gpio0 {
84 status = "okay";
85 };
86
87 &pinctrl {
88 state_default: pinctrl0 {
89 gpio {
90 ralink,group = "i2c", "spi", "uartlite";
91 ralink,function = "gpio";
92 };
93 };
94 };
95
96 &ethernet {
97 status = "okay";
98 mtd-mac-address = <&factory 0x4>;
99
100 port@0 {
101 phy-handle = <&phy0>;
102 phy-mode = "mii";
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 status = "okay";
117 ralink,mtd-eeprom = <&factory 0>;
118 };