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