ramips: change status LED of Samsung CY-SWR1100
[oweals/openwrt.git] / target / linux / ramips / dts / rt3662_samsung_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,rt3662-soc", "ralink,rt3883-soc";
10         model = "Samsung CY-SWR1100";
11
12         aliases {
13                 led-boot = &led_power;
14                 led-failsafe = &led_power;
15                 led-running = &led_power;
16                 led-upgrade = &led_power;
17         };
18
19         nor-flash@1c000000 {
20                 compatible = "cfi-flash";
21                 reg = <0x1c000000 0x800000>;
22                 bank-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 0x4000>;
38                                 read-only;
39                         };
40
41                         factory: partition@34000 {
42                                 label = "factory";
43                                 reg = <0x34000 0x4000>;
44                                 read-only;
45                         };
46
47                         partition@38000 {
48                                 label = "nvram";
49                                 reg = <0x38000 0x8000>;
50                                 read-only;
51                         };
52
53                         partition@40000 {
54                                 label = "devconf";
55                                 reg = <0x40000 0x10000>;
56                                 read-only;
57                         };
58
59                         partition@50000 {
60                                 compatible = "seama";
61                                 label = "firmware";
62                                 reg = <0x50000 0x7b0000>;
63                         };
64                 };
65         };
66
67         rtl8367 {
68                 compatible = "realtek,rtl8367";
69                 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
70                 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
71                 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
72         };
73
74         keys {
75                 compatible = "gpio-keys";
76
77                 reset {
78                         label = "reset";
79                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
80                         linux,code = <KEY_RESTART>;
81                 };
82
83                 wps {
84                         label = "wps";
85                         gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
86                         linux,code = <KEY_WPS_BUTTON>;
87                 };
88         };
89
90         leds {
91                 compatible = "gpio-leds";
92
93                 wps {
94                         label = "cy-swr1100:blue:wps";
95                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
96                 };
97
98                 usb {
99                         label = "cy-swr1100:blue:usb";
100                         gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
101                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
102                         linux,default-trigger = "usbport";
103                 };
104
105                 led_power: power {
106                         label = "cy-swr1100:blue:power";
107                         gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
108                 };
109         };
110 };
111
112 &gpio1 {
113         status = "okay";
114 };
115
116 &pinctrl {
117         state_default: pinctrl0 {
118                 gpio {
119                         ralink,group = "i2c", "spi";
120                         ralink,function = "gpio";
121                 };
122         };
123 };
124
125 &ethernet {
126         port@0 {
127                 mediatek,fixed-link = <1000 1 1 1>;
128                 phy-mode = "rgmii";
129         };
130 };
131
132 &pci {
133         status = "okay";
134 };
135
136 &pci1 {
137         status = "okay";
138
139         wifi@0,0 {
140                 compatible = "pci1814,3091";
141                 reg = <0x10000 0 0 0 0>;
142                 ralink,mtd-eeprom = <&factory 0x2000>;
143         };
144 };
145
146 &wmac {
147         status = "okay";
148         ralink,2ghz = <0>;
149         ralink,mtd-eeprom = <&factory 0>;
150 };
151
152 &ehci {
153         status = "okay";
154 };
155
156 &ohci {
157         status = "okay";
158 };