]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/WNCE2001.dts
Merge bmake-20180512
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / WNCE2001.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "WNCE2001", "ralink,rt3052-soc";
7         model = "Netgear WNCE2001";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         gpio-leds {
14                 compatible = "gpio-leds";
15
16                 power-green {
17                         label = "wnce2001:green:power";
18                         gpios = <&gpio0 8 1>;
19                 };
20
21                 power-red {
22                         label = "wnce2001:red:power";
23                         gpios = <&gpio0 9 1>;
24                 };
25
26                 wlan-green {
27                         label = "wnce2001:green:wlan";
28                         gpios = <&gpio0 12 0>;
29                 };
30
31                 wlan-red {
32                         label = "wnce2001:red:wlan";
33                         gpios = <&gpio0 13 0>;
34                 };
35         };
36
37         gpio-keys-polled {
38                 compatible = "gpio-keys-polled";
39                 #address-cells = <1>;
40                 #size-cells = <0>;
41                 poll-interval = <20>;
42
43                 reset {
44                         label = "reset";
45                         gpios = <&gpio0 10 1>;
46                         linux,code = <0x198>;
47                 };
48
49                 wps {
50                         label = "wps";
51                         gpios = <&gpio0 0 1>;
52                         linux,code = <0x211>;
53                 };
54
55                 rt {
56                         label = "rt";
57                         gpios = <&gpio0 11 1>;
58                         linux,code = <0x100>;
59                 };
60
61                 ap {
62                         label = "ap";
63                         gpios = <&gpio0 7 1>;
64                         linux,code = <0x101>;
65                 };
66         };
67 };
68
69 &spi0 {
70         status = "okay";
71
72         m25p80@0 {
73                 #address-cells = <1>;
74                 #size-cells = <1>;
75                 compatible = "jedec,spi-nor";
76                 reg = <0>;
77                 linux,modalias = "m25p80", "mx25l3205d";
78                 spi-max-frequency = <10000000>;
79
80                 partition@0 {
81                         label = "u-boot";
82                         reg = <0x0 0x30000>;
83                         read-only;
84                 };
85
86                 factory: partition@30000 {
87                         label = "factory";
88                         reg = <0x30000 0x10000>;
89                         read-only;
90                 };
91
92                 partition@40000 {
93                         label = "config";
94                         reg = <0x40000 0x20000>;
95                         read-only;
96                 };
97
98                 partition@60000 {
99                         label = "language";
100                         reg = <0x60000 0x30000>;
101                         read-only;
102                 };
103
104                 partition@90000 {
105                         label = "pot";
106                         reg = <0x90000 0x10000>;
107                         read-only;
108                 };
109
110                 partition@a0000 {
111                         label = "checksum";
112                         reg = <0xa0000 0x10000>;
113                 };
114
115                 partition@b0000 {
116                         label = "firmware";
117                         reg = <0xb0000 0x350000>;
118                 };
119         };
120 };
121
122 &pinctrl {
123         state_default: pinctrl0 {
124                 gpio {
125                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
126                         ralink,function = "gpio";
127                 };
128         };
129 };
130
131 &ethernet {
132         mtd-mac-address = <&factory 0x28>;
133 };
134
135 &wmac {
136         ralink,mtd-eeprom = <&factory 0>;
137 };