b9f12f10689a95cc9461c6d84d8ed33d3860fca6
[openwrt/staging/lynxis.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 trigger-sources = <&ohci_port1>, <&ehci_port1>;
98 linux,default-trigger = "usbport";
99 };
100 };
101 };
102
103 &gpio1 {
104 status = "okay";
105 };
106
107 &pinctrl {
108 state_default: pinctrl0 {
109 gpio {
110 ralink,group = "i2c", "spi";
111 ralink,function = "gpio";
112 };
113 };
114 };
115
116 &ethernet {
117 port@0 {
118 mediatek,fixed-link = <1000 1 1 1>;
119 phy-mode = "rgmii";
120 };
121 };
122
123 &pci {
124 status = "okay";
125 };
126
127 &pci1 {
128 status = "okay";
129
130 wifi@0,0 {
131 compatible = "pci0,0";
132 reg = <0x10000 0 0 0 0>;
133 ralink,5ghz = <0>;
134 ralink,mtd-eeprom = <&factory 0x2000>;
135 };
136 };
137
138 &wmac {
139 status = "okay";
140 ralink,2ghz = <0>;
141 ralink,mtd-eeprom = <&factory 0>;
142 };
143
144 &ehci {
145 status = "okay";
146 };
147
148 &ohci {
149 status = "okay";
150 };