ramips: add support for indicating the boot state using multiple leds
[openwrt/openwrt.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-boot = &led_wps;
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
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 = "devdata";
55 reg = <0x40000 0x10000>;
56 };
57
58 partition@50000 {
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 gpio-keys-polled {
73 compatible = "gpio-keys-polled";
74 poll-interval = <100>;
75
76 reset {
77 label = "reset";
78 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RESTART>;
80 };
81
82 wps {
83 label = "wps";
84 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_WPS_BUTTON>;
86 };
87 };
88
89 gpio-leds {
90 compatible = "gpio-leds";
91
92 led_wps: wps {
93 label = "cy-swr1100:blue:wps";
94 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
95 };
96
97 usb {
98 label = "cy-swr1100:blue:usb";
99 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
100 trigger-sources = <&ohci_port1>, <&ehci_port1>;
101 linux,default-trigger = "usbport";
102 };
103 };
104 };
105
106 &gpio1 {
107 status = "okay";
108 };
109
110 &pinctrl {
111 state_default: pinctrl0 {
112 gpio {
113 ralink,group = "i2c", "spi";
114 ralink,function = "gpio";
115 };
116 };
117 };
118
119 &ethernet {
120 port@0 {
121 mediatek,fixed-link = <1000 1 1 1>;
122 phy-mode = "rgmii";
123 };
124 };
125
126 &pci {
127 status = "okay";
128 };
129
130 &pci1 {
131 status = "okay";
132
133 wifi@0,0 {
134 compatible = "pci0,0";
135 reg = <0x10000 0 0 0 0>;
136 ralink,5ghz = <0>;
137 ralink,mtd-eeprom = <&factory 0x2000>;
138 };
139 };
140
141 &wmac {
142 status = "okay";
143 ralink,2ghz = <0>;
144 ralink,mtd-eeprom = <&factory 0>;
145 };
146
147 &ehci {
148 status = "okay";
149 };
150
151 &ohci {
152 status = "okay";
153 };