ramips: improve Skylab SKW92A support
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / BDCOM-WAP2100-SK.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "bdcom,bdcom-wap2100-sk", "ralink,mt7620a-soc";
10 model = "BDCOM WAP2100-SK";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 usb {
20 label = "wap2100-sk:green:usb";
21 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
22 };
23
24 wps {
25 label = "wap2100-sk:green:wps";
26 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
27 };
28
29 wlan2g {
30 label = "wap2100-sk:green:wlan2g";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 gpio-keys-polled {
36 compatible = "gpio-keys-polled";
37 #address-cells = <1>;
38 #size-cells = <0>;
39 poll-interval = <20>;
40
41 wps {
42 label = "wps";
43 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_WPS_BUTTON>;
45 };
46
47 reset {
48 label = "reset";
49 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 };
52 };
53 };
54
55 &spi0 {
56 status = "okay";
57
58 en25q128@0 {
59 #address-cells = <1>;
60 #size-cells = <1>;
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <10000000>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x30000>;
68 read-only;
69 };
70
71 partition@30000 {
72 label = "u-boot-env";
73 reg = <0x30000 0x10000>;
74 read-only;
75 };
76
77 factory: partition@40000 {
78 label = "factory";
79 reg = <0x40000 0x10000>;
80 read-only;
81 };
82
83 firmware: partition@50000 {
84 label = "firmware";
85 reg = <0x50000 0xf70000>;
86 };
87 };
88 };
89
90 &gpio0 {
91 status = "okay";
92 };
93
94 &gpio1 {
95 status = "okay";
96 };
97
98 &gpio3 {
99 status = "okay";
100 };
101
102 &sdhci {
103 status = "okay";
104 };
105
106 &ehci {
107 status = "okay";
108 };
109
110 &ohci {
111 status = "okay";
112 };
113
114 &ethernet {
115 mtd-mac-address = <&factory 0x4>;
116 mediatek,portmap = "llllw";
117 };
118
119 &wmac {
120 ralink,mtd-eeprom = <&factory 0>;
121 };
122
123 &pinctrl {
124 state_default: pinctrl0 {
125 default {
126 ralink,group = "wdt", "mdio", "spi refclk", "uartf", "wled";
127 ralink,function = "gpio";
128 };
129 };
130 };