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