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