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