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