ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / AWAPN2403.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "asiarf,awapn2403", "ralink,rt3052-soc";
10 model = "AsiaRF AWAPN2403";
11
12 aliases {
13 led-status = &led_wps;
14 };
15
16
17 gpio-leds {
18 compatible = "gpio-leds";
19
20 led_wps: wps {
21 label = "awapn2403:green:wps";
22 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 gpio-keys-polled {
27 compatible = "gpio-keys-polled";
28 poll-interval = <20>;
29
30 reset {
31 label = "reset";
32 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_RESTART>;
34 };
35 };
36 };
37
38 &spi0 {
39 status = "okay";
40
41 m25p80@0 {
42 #address-cells = <1>;
43 #size-cells = <1>;
44 compatible = "jedec,spi-nor";
45 reg = <0>;
46 spi-max-frequency = <10000000>;
47
48 partition@0 {
49 label = "u-boot";
50 reg = <0x0 0x30000>;
51 read-only;
52 };
53
54 partition@30000 {
55 label = "u-boot-env";
56 reg = <0x30000 0x10000>;
57 read-only;
58 };
59
60 factory: partition@40000 {
61 label = "factory";
62 reg = <0x40000 0x10000>;
63 read-only;
64 };
65
66 partition@50000 {
67 label = "firmware";
68 reg = <0x50000 0x3b0000>;
69 };
70 };
71 };
72
73 &pinctrl {
74 state_default: pinctrl0 {
75 gpio {
76 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
77 ralink,function = "gpio";
78 };
79 };
80 };
81
82 &esw {
83 mediatek,portmap = <0x3e>;
84 };
85
86 &wmac {
87 ralink,mtd-eeprom = <&factory 0>;
88 };