ramips: fix power LED DTB for wt3020
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / CY-SWR1100.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 = "samsung,cy-swr1100", "ralink,rt3883-soc";
10 model = "Samsung CY-SWR1100";
11
12 aliases {
13 led-status = &led_wps;
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 label = "uboot";
28 reg = <0x0 0x30000>;
29 read-only;
30 };
31
32 partition@30000 {
33 label = "uboot-env";
34 reg = <0x30000 0x4000>;
35 read-only;
36 };
37
38 factory: partition@34000 {
39 label = "factory";
40 reg = <0x34000 0x4000>;
41 read-only;
42 };
43
44 partition@38000 {
45 label = "nvram";
46 reg = <0x38000 0x8000>;
47 read-only;
48 };
49
50 partition@40000 {
51 label = "devdata";
52 reg = <0x40000 0x10000>;
53 };
54
55 partition@50000 {
56 label = "firmware";
57 reg = <0x50000 0x7b0000>;
58 };
59 };
60 };
61
62 rtl8367 {
63 compatible = "realtek,rtl8367";
64 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
65 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
66 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
67 };
68
69 gpio-keys-polled {
70 compatible = "gpio-keys-polled";
71 poll-interval = <100>;
72
73 reset {
74 label = "reset";
75 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
77 };
78
79 wps {
80 label = "wps";
81 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_WPS_BUTTON>;
83 };
84 };
85
86 gpio-leds {
87 compatible = "gpio-leds";
88
89 led_wps: wps {
90 label = "cy-swr1100:blue:wps";
91 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
92 };
93
94 usb {
95 label = "cy-swr1100:blue:usb";
96 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
97 };
98 };
99 };
100
101 &gpio1 {
102 status = "okay";
103 };
104
105 &pinctrl {
106 state_default: pinctrl0 {
107 gpio {
108 ralink,group = "i2c", "spi";
109 ralink,function = "gpio";
110 };
111 };
112 };
113
114 &ethernet {
115 port@0 {
116 mediatek,fixed-link = <1000 1 1 1>;
117 phy-mode = "rgmii";
118 };
119 };
120
121 &pci {
122 status = "okay";
123 };
124
125 &pci1 {
126 status = "okay";
127
128 wifi@0,0 {
129 compatible = "pci0,0";
130 reg = <0x10000 0 0 0 0>;
131 ralink,5ghz = <0>;
132 ralink,mtd-eeprom = <&factory 0x2000>;
133 };
134 };
135
136 &wmac {
137 status = "okay";
138 ralink,2ghz = <0>;
139 ralink,mtd-eeprom = <&factory 0>;
140 };
141
142 &ehci {
143 status = "okay";
144 };
145
146 &ohci {
147 status = "okay";
148 };