ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-G32-B1.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 = "asus,rt-g32-b1", "ralink,rt3050-soc";
10 model = "Asus RT-G32 B1";
11
12 gpio-keys-polled {
13 compatible = "gpio-keys-polled";
14 poll-interval = <20>;
15
16 reset {
17 label = "reset";
18 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21
22 wps {
23 label = "wps";
24 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27 };
28 };
29
30 &spi0 {
31 status = "okay";
32
33 m25p80@0 {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <10000000>;
39
40 partition@0 {
41 label = "u-boot";
42 reg = <0x0 0x30000>;
43 read-only;
44 };
45
46 partition@30000 {
47 label = "devdata";
48 reg = <0x30000 0x10000>;
49 read-only;
50 };
51
52 devconf: partition@40000 {
53 label = "devconf";
54 reg = <0x40000 0x10000>;
55 read-only;
56 };
57
58 partition@50000 {
59 label = "firmware";
60 reg = <0x50000 0x3b0000>;
61 };
62 };
63 };
64
65 &pinctrl {
66 state_default: pinctrl0 {
67 gpio {
68 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
69 ralink,function = "gpio";
70 };
71 };
72 };
73
74 &ethernet {
75 mtd-mac-address = <&devconf 0x4>;
76 };
77
78 &esw {
79 mediatek,portmap = <0x2f>;
80 };
81
82 &wmac {
83 ralink,mtd-eeprom = <&devconf 0>;
84 };