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