886a9402512af9a067362cc8a8aff894b1b16972
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RT-G32-B1.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6 compatible = "RT-G32-B1", "ralink,rt3050-soc";
7 model = "Asus RT-G32 B1";
8
9 gpio-keys-polled {
10 compatible = "gpio-keys-polled";
11 #address-cells = <1>;
12 #size-cells = <0>;
13 poll-interval = <20>;
14
15 reset {
16 label = "reset";
17 gpios = <&gpio0 10 1>;
18 linux,code = <0x198>;
19 };
20
21 wps {
22 label = "wps";
23 gpios = <&gpio0 0 1>;
24 linux,code = <0x211>;
25 };
26 };
27 };
28
29 &spi0 {
30 status = "okay";
31
32 m25p80@0 {
33 #address-cells = <1>;
34 #size-cells = <1>;
35 compatible = "jedec,spi-nor";
36 reg = <0 0>;
37 linux,modalias = "m25p80", "mx25l3205d";
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 };