ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / DIR-645.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "DIR-645", "ralink,rt3883-soc";
9 model = "D-Link DIR-645";
10
11 rtl8367b {
12 compatible = "realtek,rtl8367b";
13 gpio-sda = <&gpio0 1 0>;
14 gpio-sck = <&gpio0 2 0>;
15 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
16 };
17
18 gpio-keys-polled {
19 compatible = "gpio-keys-polled";
20 #address-cells = <1>;
21 #size-cells = <0>;
22 poll-interval = <100>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio0 9 0>;
27 linux,code = <KEY_RESTART>;
28 };
29
30 wps {
31 label = "wps";
32 gpios = <&gpio0 14 0>;
33 linux,code = <KEY_WPS_BUTTON>;
34 };
35 };
36
37 gpio-leds {
38 compatible = "gpio-leds";
39
40 inet {
41 label = "dir-645:green:inet";
42 gpios = <&gpio0 0 1>;
43 };
44
45 wps {
46 label = "dir-645:green:wps";
47 gpios = <&gpio1 2 0>;
48 };
49 };
50
51 gpio_export {
52 compatible = "gpio-export";
53 #size-cells = <0>;
54
55 usb {
56 gpio-export,name = "usb";
57 gpio-export,output = <1>;
58 gpios = <&gpio1 6 0>;
59 };
60 };
61 };
62
63 &gpio1 {
64 status = "okay";
65 };
66
67 &spi0 {
68 status = "okay";
69
70 m25p80@0 {
71 #address-cells = <1>;
72 #size-cells = <1>;
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <25000000>;
76
77 partition@0 {
78 label = "uboot";
79 reg = <0x0 0x30000>;
80 read-only;
81 };
82
83 partition@30000 {
84 label = "uboot-env";
85 reg = <0x30000 0x4000>;
86 read-only;
87 };
88
89 factory: partition@34000 {
90 label = "factory";
91 reg = <0x34000 0x4000>;
92 read-only;
93 };
94
95 partition@38000 {
96 label = "nvram";
97 reg = <0x38000 0x8000>;
98 read-only;
99 };
100
101 partition@40000 {
102 label = "devdata";
103 reg = <0x40000 0x10000>;
104 };
105
106 partition@50000 {
107 label = "firmware";
108 reg = <0x50000 0x7b0000>;
109 };
110 };
111 };
112
113 &pinctrl {
114 state_default: pinctrl0 {
115 gpio {
116 ralink,group = "i2c", "jtag", "uartf";
117 ralink,function = "gpio";
118 };
119 };
120 };
121
122 &ethernet {
123 mtd-mac-address = <&factory 0x4>;
124
125 port@0 {
126 mediatek,fixed-link = <1000 1 1 0>;
127 };
128 };
129
130 &wmac {
131 ralink,5ghz = <0>;
132 ralink,mtd-eeprom = <&factory 0>;
133 };
134
135 &ehci {
136 status = "okay";
137 };
138
139 &ohci {
140 status = "okay";
141 };