ramips: add support for SNR-CPE-ME2-SFP
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3662_samsung_cy-swr1100.dts
1 #include "rt3883.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "samsung,cy-swr1100", "ralink,rt3662-soc", "ralink,rt3883-soc";
8 model = "Samsung CY-SWR1100";
9
10 aliases {
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
15 };
16
17 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 = "devconf";
53 reg = <0x40000 0x10000>;
54 read-only;
55 };
56
57 partition@50000 {
58 compatible = "seama";
59 label = "firmware";
60 reg = <0x50000 0x7b0000>;
61 };
62 };
63 };
64
65 rtl8367 {
66 compatible = "realtek,rtl8367";
67 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
68 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
69 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
70 };
71
72 keys {
73 compatible = "gpio-keys";
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 wps {
92 label = "blue:wps";
93 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
94 };
95
96 usb {
97 label = "blue:usb";
98 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
99 trigger-sources = <&ohci_port1>, <&ehci_port1>;
100 linux,default-trigger = "usbport";
101 };
102
103 led_power: power {
104 label = "blue:power";
105 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
106 };
107 };
108 };
109
110 &gpio1 {
111 status = "okay";
112 };
113
114 &state_default {
115 gpio {
116 groups = "i2c", "spi";
117 function = "gpio";
118 };
119 };
120
121 &ethernet {
122 port@0 {
123 mediatek,fixed-link = <1000 1 1 1>;
124 phy-mode = "rgmii";
125 };
126 };
127
128 &pci {
129 status = "okay";
130 };
131
132 &pci1 {
133 status = "okay";
134
135 wifi@0,0 {
136 compatible = "pci1814,3091";
137 reg = <0x10000 0 0 0 0>;
138 ralink,mtd-eeprom = <&factory 0x2000>;
139 };
140 };
141
142 &wmac {
143 status = "okay";
144 ralink,2ghz = <0>;
145 ralink,mtd-eeprom = <&factory 0x0>;
146 };
147
148 &ehci {
149 status = "okay";
150 };
151
152 &ohci {
153 status = "okay";
154 };