]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/ASL26555-8M.dts
MFV r349134:
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / ASL26555-8M.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", "s25sl064p";
86                 spi-max-frequency = <10000000>;
87
88                 partition@0 {
89                         label = "uboot";
90                         reg = <0x0 0x30000>;
91                         read-only;
92                 };
93
94                 ubootenv: partition@30000 {
95                         label = "uboot-env";
96                         reg = <0x30000 0x10000>;
97                         read-only;
98                 };
99
100                 partition@40000 {
101                         label = "rgdb";
102                         reg = <0x40000 0x10000>;
103                         read-only;
104                 };
105
106                 partition@50000 {
107                         label = "firmware";
108                         reg = <0x50000 0x790000>;
109                 };
110
111                 partition@7e0000 {
112                         label = "cert";
113                         reg = <0x7e0000 0x10000>;
114                         read-only;
115                 };
116
117                 partition@7f0000 {
118                         label = "langpack";
119                         reg = <0x7f0000 0x10000>;
120                         read-only;
121                 };
122         };
123 };
124
125 &pinctrl {
126         state_default: pinctrl0 {
127                 gpio {
128                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
129                         ralink,function = "gpio";
130                 };
131         };
132 };
133
134 &ethernet {
135         mtd-mac-address = <&ubootenv 0x4004>;
136 };
137
138 &esw {
139         mediatek,portmap = <0x1e>;
140 };
141
142 &wmac {
143         ralink,mtd-eeprom = <&ubootenv 0x4000>;
144 };
145
146 &otg {
147         status = "okay";
148 };