]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/ZTE-Q7.dts
Update tcsh to 6.21.00.
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / ZTE-Q7.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 / {
6         compatible = "ZTE-Q7", "ralink,mt7620a-soc";
7         model = "ZTE Q7";
8
9         gpio-leds {
10                 compatible = "gpio-leds";
11
12                 statred {
13                         label = "zte-q7:red:status";
14                         gpios = <&gpio0 13 1>;
15                 };
16
17                 statblue {
18                         label = "zte-q7:blue:status";
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                 reset {
30                         label = "reset";
31                         gpios = <&gpio1 2 1>;
32                         linux,code = <0x198>;
33                 };
34         };
35 };
36
37 &gpio0 {
38         status = "okay";
39 };
40
41 &gpio1 {
42         status = "okay";
43 };
44
45 &spi0 {
46         status = "okay";
47
48         m25p80@0 {
49                 #address-cells = <1>;
50                 #size-cells = <1>;
51                 compatible = "jedec,spi-nor";
52                 reg = <0>;
53                 linux,modalias = "m25p80", "en25q64";
54                 spi-max-frequency = <10000000>;
55
56                 partition@0 {
57                         label = "u-boot";
58                         reg = <0x0 0x30000>;
59                         read-only;
60                 };
61
62                 partition@30000 {
63                         label = "u-boot-env";
64                         reg = <0x30000 0x10000>;
65                         read-only;
66                 };
67
68                 factory: partition@40000 {
69                         label = "factory";
70                         reg = <0x40000 0x10000>;
71                         read-only;
72                 };
73
74                 partition@50000 {
75                         label = "firmware";
76                         reg = <0x50000 0x7b0000>;
77                 };
78         };
79 };
80
81 &pinctrl {
82         state_default: pinctrl0 {
83                 gpio {
84                         ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
85                         ralink,function = "gpio";
86                 };
87         };
88 };
89
90 &ethernet {
91         pinctrl-names = "default";
92         pinctrl-0 = <&ephy_pins>;
93         mtd-mac-address = <&factory 0x4>;
94         mediatek,portmap = "wllll";
95 };
96
97 &wmac {
98         ralink,mtd-eeprom = <&factory 0>;
99 };
100
101 &sdhci {
102         status = "okay";
103 };
104
105 &ehci {
106         status = "okay";
107 };
108
109 &ohci {
110         status = "okay";
111 };