ramips: set F5D8235 v1 usb led trigger via devicetree
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-N56U.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "asus,rt-n56u", "ralink,rt3883-soc";
10 model = "Asus RT-N56U";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 nor-flash@1c000000 {
17 compatible = "cfi-flash";
18 reg = <0x1c000000 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 0x0030000>;
28 label = "u-boot";
29 read-only;
30 };
31
32 partition@30000 {
33 reg = <0x00030000 0x00010000>;
34 label = "u-boot-env";
35 read-only;
36 };
37
38 factory: partition@40000 {
39 reg = <0x00040000 0x00010000>;
40 label = "factory";
41 read-only;
42 };
43
44 partition@50000 {
45 reg = <0x00050000 0x007b0000>;
46 label = "firmware";
47 };
48 };
49 };
50
51 rtl8367 {
52 compatible = "realtek,rtl8367";
53 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
54 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
55 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
56 };
57
58 gpio-keys-polled {
59 compatible = "gpio-keys-polled";
60 poll-interval = <100>;
61
62 reset {
63 label = "reset";
64 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
66 };
67
68 wps {
69 label = "wps";
70 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WPS_BUTTON>;
72 };
73 };
74
75 gpio-leds {
76 compatible = "gpio-leds";
77
78 led_power: power {
79 label = "rt-n56u:blue:power";
80 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
81 };
82
83 lan {
84 label = "rt-n56u:blue:lan";
85 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
86 };
87
88 wan {
89 label = "rt-n56u:blue:wan";
90 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
91 };
92
93 usb {
94 label = "rt-n56u:blue:usb";
95 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
96 };
97 };
98 };
99
100 &gpio1 {
101 status = "okay";
102 };
103
104 &pinctrl {
105 state_default: pinctrl0 {
106 gpio {
107 ralink,group = "spi", "i2c", "jtag", "uartf";
108 ralink,function = "gpio";
109 };
110 };
111 };
112
113 &ethernet {
114 mtd-mac-address = <&factory 0x4>;
115
116 port@0 {
117 mediatek,fixed-link = <1000 1 1 1>;
118 };
119 };
120
121 &pci {
122 status = "okay";
123 };
124
125 &pci1 {
126 status = "okay";
127
128 wifi@0,0 {
129 compatible = "pci1814,3091";
130 reg = <0x10000 0 0 0 0>;
131 ralink,mtd-eeprom = <&factory 0x8000>;
132 };
133 };
134
135 &wmac {
136 status = "okay";
137 ralink,2ghz = <0>;
138 ralink,mtd-eeprom = <&factory 0>;
139 };
140
141 &ehci {
142 status = "okay";
143 };
144
145 &ohci {
146 status = "okay";
147 };