]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/ASL26555-16M.dts
MFC r348554: 9688 aggsum_fini leaks memory
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / ASL26555-16M.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "ASL26555", "ralink,rt3050-soc";
7         model = "Alpha ASL26555";
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 0>;
18                         linux,code = <0x198>;
19                 };
20
21                 wps {
22                         label = "wps";
23                         gpios = <&gpio0 12 0>;
24                         linux,code = <0x211>;
25                 };
26         };
27
28         gpio-leds {
29                 compatible = "gpio-leds";
30
31                 eth {
32                         label = "asl26555:green:eth";
33                         gpios = <&gpio0 0 1>;
34                 };
35
36                 wan-red {
37                         label = "asl26555:red:wan";
38                         gpios = <&gpio0 1 0>;
39                 };
40
41                 wan-green {
42                         label = "asl26555:green:wan";
43                         gpios = <&gpio0 2 0>;
44                 };
45
46                 wlan {
47                         label = "asl26555:green:wlan";
48                         gpios = <&gpio0 7 0>;
49                 };
50
51                 power-green {
52                         label = "asl26555:green:power";
53                         gpios = <&gpio0 8 0>;
54                 };
55
56                 power-red {
57                         label = "asl26555:red:power";
58                         gpios = <&gpio0 9 0>;
59                 };
60
61                 3g-green {
62                         label = "asl26555:green:3g";
63                         gpios = <&gpio0 14 1>;
64                 };
65
66                 3g-red {
67                         label = "asl26555:red:3g";
68                         gpios = <&gpio0 17 1>;
69                 };
70         };
71 };
72
73 &gpio0 {
74         status = "okay";
75 };
76
77 &spi0 {
78         status = "okay";
79
80         m25p80@0 {
81                 #address-cells = <1>;
82                 #size-cells = <1>;
83                 compatible = "jedec,spi-nor";
84                 reg = <0>;
85                 linux,modalias = "m25p80", "s25sl12801";
86                 spi-max-frequency = <10000000>;
87
88                 partition@0 {
89                         label = "uboot";
90                         reg = <0x0 0x30000>;
91                         read-only;
92                 };
93
94                 partition@30000 {
95                         label = "uboot-env";
96                         reg = <0x30000 0x10000>;
97                         read-only;
98                 };
99
100                 partition@40000 {
101                         label = "factory";
102                         reg = <0x40000 0x10000>;
103                         read-only;
104                 };
105
106                 partition@50000 {
107                         label = "firmware";
108                         reg = <0x50000 0xf80000>;
109                 };
110
111                 partition@fd0000 {
112                         label = "cert";
113                         reg = <0xfd0000 0x10000>;
114                         read-only;
115                 };
116
117                 partition@fe0000 {
118                         label = "langpack";
119                         reg = <0xfe0000 0x10000>;
120                         read-only;
121                 };
122
123                 devdata: partition@ff0000 {
124                         label = "devdata";
125                         reg = <0xff0000 0x10000>;
126                         read-only;
127                 };
128         };
129 };
130
131 &pinctrl {
132         state_default: pinctrl0 {
133                 gpio {
134                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
135                         ralink,function = "gpio";
136                 };
137         };
138 };
139
140 &ethernet {
141         mtd-mac-address = <&devdata 0x4004>;
142 };
143
144 &esw {
145         mediatek,portmap = <0x1e>;
146 };
147
148 &wmac {
149         ralink,mtd-eeprom = <&devdata 0x4000>;
150 };
151
152 &otg {
153         status = "okay";
154 };