ramips: set F5D8235 v1 usb led trigger via devicetree
[openwrt/staging/dedeckeh.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
21 partitions {
22 compatible = "fixed-partitions";
23 #address-cells = <1>;
24 #size-cells = <1>;
25
26 partition@0 {
27 reg = <0x0 0x30000>;
28 label = "u-boot";
29 read-only;
30 };
31
32 partition@30000 {
33 reg = <0x30000 0x10000>;
34 label = "u-boot-env";
35 };
36
37 factory: partition@40000 {
38 reg = <0x40000 0x10000>;
39 label = "factory";
40 read-only;
41 };
42
43 partition@50000 {
44 reg = <0x50000 0x3B0000>;
45 label = "firmware";
46 };
47 };
48 };
49
50 gpio-leds {
51 compatible = "gpio-leds";
52
53 led_power: power {
54 label = "ar725w:green:power";
55 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
56 };
57
58 wpsred {
59 label = "ar725w:red:wps";
60 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
61 };
62
63 wpsblue {
64 label = "ar725w:blue:wps";
65 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
66 };
67 };
68
69 gpio-keys-polled {
70 compatible = "gpio-keys-polled";
71 poll-interval = <100>;
72
73 wps {
74 label = "wps";
75 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_WPS_BUTTON>;
77 };
78
79 reset {
80 label = "reset";
81 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RESTART>;
83 };
84 };
85 };
86
87 &gpio0 {
88 status = "okay";
89 };
90
91 &pinctrl {
92 state_default: pinctrl0 {
93 gpio {
94 ralink,group = "i2c", "spi", "uartlite";
95 ralink,function = "gpio";
96 };
97 };
98 };
99
100 &ethernet {
101 status = "okay";
102 mtd-mac-address = <&factory 0x4>;
103
104 port@0 {
105 phy-handle = <&phy0>;
106 phy-mode = "mii";
107 };
108
109 mdio-bus {
110 status = "okay";
111
112 phy0: ethernet-phy@0 {
113 phy-mode = "mii";
114 reg = <0>;
115 };
116 };
117 };
118
119 &wmac {
120 status = "okay";
121 ralink,mtd-eeprom = <&factory 0>;
122 };