ramips: Add support for ZTE Q7
[openwrt/openwrt.git] / target / linux / ramips / dts / 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 palmbus@10000000 {
10
11 gpio0: gpio@600 {
12 status = "okay";
13 };
14
15 gpio1: gpio@638 {
16 status = "okay";
17 };
18
19 spi@b00 {
20 status = "okay";
21
22 m25p80@0 {
23 #address-cells = <1>;
24 #size-cells = <1>;
25 compatible = "en25q64";
26 reg = <0 0>;
27 linux,modalias = "m25p80", "en25q64";
28 spi-max-frequency = <10000000>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x30000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "u-boot-env";
38 reg = <0x30000 0x10000>;
39 read-only;
40 };
41
42 factory: partition@40000 {
43 label = "factory";
44 reg = <0x40000 0x10000>;
45 read-only;
46 };
47
48 partition@50000 {
49 label = "firmware";
50 reg = <0x50000 0x7b0000>;
51 };
52 };
53 };
54 };
55
56 pinctrl {
57 state_default: pinctrl0 {
58 gpio {
59 ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled", "nd_sd";
60 ralink,function = "gpio";
61 };
62 };
63 };
64
65 ethernet@10100000 {
66 pinctrl-names = "default";
67 pinctrl-0 = <&ephy_pins>;
68 mtd-mac-address = <&factory 0x4>;
69 ralink,port-map = "wllll";
70 };
71
72 wmac@10180000 {
73 ralink,mtd-eeprom = <&factory 0>;
74 };
75
76 sdhci@10130000 {
77 status = "okay";
78 };
79
80 ehci@101c0000 {
81 status = "okay";
82 };
83
84 ohci@101c1000 {
85 status = "okay";
86 };
87
88 gpio-leds {
89 compatible = "gpio-leds";
90 statred {
91 label = "zte:red:status";
92 gpios = <&gpio0 13 1>;
93 };
94 statblue {
95 label = "zte:blue:status";
96 gpios = <&gpio0 9 1>;
97 };
98 };
99
100 gpio-keys-polled {
101 compatible = "gpio-keys-polled";
102 #address-cells = <1>;
103 #size-cells = <0>;
104 poll-interval = <20>;
105 reset {
106 label = "reset";
107 gpios = <&gpio1 2 1>;
108 linux,code = <0x198>;
109 };
110 };
111 };