xref: /linux/scripts/dtc/include-prefixes/arm/mediatek/mt7623a-rfb-emmc.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (c) 2017-2018 MediaTek Inc.
4*724ba675SRob Herring * Author: Sean Wang <sean.wang@mediatek.com>
5*724ba675SRob Herring *
6*724ba675SRob Herring */
7*724ba675SRob Herring
8*724ba675SRob Herring/dts-v1/;
9*724ba675SRob Herring#include <dt-bindings/input/input.h>
10*724ba675SRob Herring#include "mt7623a.dtsi"
11*724ba675SRob Herring#include "mt6323.dtsi"
12*724ba675SRob Herring
13*724ba675SRob Herring/ {
14*724ba675SRob Herring	model = "MediaTek MT7623A with eMMC reference board";
15*724ba675SRob Herring	compatible = "mediatek,mt7623a-rfb-emmc", "mediatek,mt7623";
16*724ba675SRob Herring
17*724ba675SRob Herring	aliases {
18*724ba675SRob Herring		serial2 = &uart2;
19*724ba675SRob Herring	};
20*724ba675SRob Herring
21*724ba675SRob Herring	chosen {
22*724ba675SRob Herring		stdout-path = "serial2:115200n8";
23*724ba675SRob Herring	};
24*724ba675SRob Herring
25*724ba675SRob Herring	cpus {
26*724ba675SRob Herring		cpu@0 {
27*724ba675SRob Herring			proc-supply = <&mt6323_vproc_reg>;
28*724ba675SRob Herring		};
29*724ba675SRob Herring
30*724ba675SRob Herring		cpu@1 {
31*724ba675SRob Herring			proc-supply = <&mt6323_vproc_reg>;
32*724ba675SRob Herring		};
33*724ba675SRob Herring
34*724ba675SRob Herring		cpu@2 {
35*724ba675SRob Herring			proc-supply = <&mt6323_vproc_reg>;
36*724ba675SRob Herring		};
37*724ba675SRob Herring
38*724ba675SRob Herring		cpu@3 {
39*724ba675SRob Herring			proc-supply = <&mt6323_vproc_reg>;
40*724ba675SRob Herring		};
41*724ba675SRob Herring	};
42*724ba675SRob Herring
43*724ba675SRob Herring	gpio-keys {
44*724ba675SRob Herring		compatible = "gpio-keys";
45*724ba675SRob Herring		pinctrl-names = "default";
46*724ba675SRob Herring		pinctrl-0 = <&key_pins_a>;
47*724ba675SRob Herring
48*724ba675SRob Herring		button-factory {
49*724ba675SRob Herring			label = "factory";
50*724ba675SRob Herring			linux,code = <BTN_0>;
51*724ba675SRob Herring			gpios = <&pio 256 GPIO_ACTIVE_LOW>;
52*724ba675SRob Herring		};
53*724ba675SRob Herring
54*724ba675SRob Herring		button-wps {
55*724ba675SRob Herring			label = "wps";
56*724ba675SRob Herring			linux,code = <KEY_WPS_BUTTON>;
57*724ba675SRob Herring			gpios = <&pio 257 GPIO_ACTIVE_HIGH>;
58*724ba675SRob Herring		};
59*724ba675SRob Herring	};
60*724ba675SRob Herring
61*724ba675SRob Herring	memory@80000000 {
62*724ba675SRob Herring		device_type = "memory";
63*724ba675SRob Herring		reg = <0 0x80000000 0 0x20000000>;
64*724ba675SRob Herring	};
65*724ba675SRob Herring
66*724ba675SRob Herring	reg_1p8v: regulator-1p8v {
67*724ba675SRob Herring		compatible = "regulator-fixed";
68*724ba675SRob Herring		regulator-name = "fixed-1.8V";
69*724ba675SRob Herring		regulator-min-microvolt = <1800000>;
70*724ba675SRob Herring		regulator-max-microvolt = <1800000>;
71*724ba675SRob Herring		regulator-boot-on;
72*724ba675SRob Herring		regulator-always-on;
73*724ba675SRob Herring	};
74*724ba675SRob Herring
75*724ba675SRob Herring	reg_3p3v: regulator-3p3v {
76*724ba675SRob Herring		compatible = "regulator-fixed";
77*724ba675SRob Herring		regulator-name = "fixed-3.3V";
78*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
79*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
80*724ba675SRob Herring		regulator-boot-on;
81*724ba675SRob Herring		regulator-always-on;
82*724ba675SRob Herring	};
83*724ba675SRob Herring
84*724ba675SRob Herring	reg_5v: regulator-5v {
85*724ba675SRob Herring		compatible = "regulator-fixed";
86*724ba675SRob Herring		regulator-name = "fixed-5V";
87*724ba675SRob Herring		regulator-min-microvolt = <5000000>;
88*724ba675SRob Herring		regulator-max-microvolt = <5000000>;
89*724ba675SRob Herring		regulator-boot-on;
90*724ba675SRob Herring		regulator-always-on;
91*724ba675SRob Herring	};
92*724ba675SRob Herring
93*724ba675SRob Herring	sound {
94*724ba675SRob Herring		compatible = "mediatek,mt2701-wm8960-machine";
95*724ba675SRob Herring		mediatek,platform = <&afe>;
96*724ba675SRob Herring		audio-routing =
97*724ba675SRob Herring			"Headphone", "HP_L",
98*724ba675SRob Herring			"Headphone", "HP_R",
99*724ba675SRob Herring			"LINPUT1", "AMIC",
100*724ba675SRob Herring			"RINPUT1", "AMIC";
101*724ba675SRob Herring		mediatek,audio-codec = <&wm8960>;
102*724ba675SRob Herring		pinctrl-names = "default";
103*724ba675SRob Herring		pinctrl-0 = <&i2s0_pins_a>;
104*724ba675SRob Herring	};
105*724ba675SRob Herring};
106*724ba675SRob Herring
107*724ba675SRob Herring&btif {
108*724ba675SRob Herring	status = "okay";
109*724ba675SRob Herring};
110*724ba675SRob Herring
111*724ba675SRob Herring&crypto {
112*724ba675SRob Herring	status = "okay";
113*724ba675SRob Herring};
114*724ba675SRob Herring
115*724ba675SRob Herring&switch0 {
116*724ba675SRob Herring	ports {
117*724ba675SRob Herring		port@0 {
118*724ba675SRob Herring			status = "okay";
119*724ba675SRob Herring			label = "lan0";
120*724ba675SRob Herring		};
121*724ba675SRob Herring
122*724ba675SRob Herring		port@1 {
123*724ba675SRob Herring			status = "okay";
124*724ba675SRob Herring			label = "lan1";
125*724ba675SRob Herring		};
126*724ba675SRob Herring
127*724ba675SRob Herring		port@2 {
128*724ba675SRob Herring			status = "okay";
129*724ba675SRob Herring			label = "lan2";
130*724ba675SRob Herring		};
131*724ba675SRob Herring
132*724ba675SRob Herring		port@3 {
133*724ba675SRob Herring			status = "okay";
134*724ba675SRob Herring			label = "lan3";
135*724ba675SRob Herring		};
136*724ba675SRob Herring
137*724ba675SRob Herring		port@4 {
138*724ba675SRob Herring			status = "okay";
139*724ba675SRob Herring			label = "wan";
140*724ba675SRob Herring		};
141*724ba675SRob Herring	};
142*724ba675SRob Herring};
143*724ba675SRob Herring
144*724ba675SRob Herring&i2c0 {
145*724ba675SRob Herring	pinctrl-names = "default";
146*724ba675SRob Herring	pinctrl-0 = <&i2c0_pins_a>;
147*724ba675SRob Herring	status = "okay";
148*724ba675SRob Herring};
149*724ba675SRob Herring
150*724ba675SRob Herring&i2c1 {
151*724ba675SRob Herring	pinctrl-names = "default";
152*724ba675SRob Herring	pinctrl-0 = <&i2c1_pins_b>;
153*724ba675SRob Herring	status = "okay";
154*724ba675SRob Herring
155*724ba675SRob Herring	wm8960: wm8960@1a {
156*724ba675SRob Herring		compatible = "wlf,wm8960";
157*724ba675SRob Herring		reg = <0x1a>;
158*724ba675SRob Herring	};
159*724ba675SRob Herring};
160*724ba675SRob Herring
161*724ba675SRob Herring&i2c2 {
162*724ba675SRob Herring	pinctrl-names = "default";
163*724ba675SRob Herring	pinctrl-0 = <&i2c2_pins_b>;
164*724ba675SRob Herring	status = "okay";
165*724ba675SRob Herring};
166*724ba675SRob Herring
167*724ba675SRob Herring&mmc0 {
168*724ba675SRob Herring	pinctrl-names = "default", "state_uhs";
169*724ba675SRob Herring	pinctrl-0 = <&mmc0_pins_default>;
170*724ba675SRob Herring	pinctrl-1 = <&mmc0_pins_uhs>;
171*724ba675SRob Herring	status = "okay";
172*724ba675SRob Herring	bus-width = <8>;
173*724ba675SRob Herring	max-frequency = <50000000>;
174*724ba675SRob Herring	cap-mmc-highspeed;
175*724ba675SRob Herring	vmmc-supply = <&reg_3p3v>;
176*724ba675SRob Herring	vqmmc-supply = <&reg_1p8v>;
177*724ba675SRob Herring	non-removable;
178*724ba675SRob Herring};
179*724ba675SRob Herring
180*724ba675SRob Herring&mmc1 {
181*724ba675SRob Herring	pinctrl-names = "default", "state_uhs";
182*724ba675SRob Herring	pinctrl-0 = <&mmc1_pins_default>;
183*724ba675SRob Herring	pinctrl-1 = <&mmc1_pins_uhs>;
184*724ba675SRob Herring	status = "okay";
185*724ba675SRob Herring	bus-width = <4>;
186*724ba675SRob Herring	max-frequency = <50000000>;
187*724ba675SRob Herring	cap-sd-highspeed;
188*724ba675SRob Herring	cd-gpios = <&pio 261 GPIO_ACTIVE_LOW>;
189*724ba675SRob Herring	vmmc-supply = <&reg_3p3v>;
190*724ba675SRob Herring	vqmmc-supply = <&reg_3p3v>;
191*724ba675SRob Herring};
192*724ba675SRob Herring
193*724ba675SRob Herring&pcie {
194*724ba675SRob Herring	pinctrl-names = "default";
195*724ba675SRob Herring	pinctrl-0 = <&pcie_default>;
196*724ba675SRob Herring	status = "okay";
197*724ba675SRob Herring
198*724ba675SRob Herring	pcie@0,0 {
199*724ba675SRob Herring		status = "okay";
200*724ba675SRob Herring	};
201*724ba675SRob Herring
202*724ba675SRob Herring	pcie@1,0 {
203*724ba675SRob Herring		status = "okay";
204*724ba675SRob Herring	};
205*724ba675SRob Herring};
206*724ba675SRob Herring
207*724ba675SRob Herring&pcie0_phy {
208*724ba675SRob Herring	status = "okay";
209*724ba675SRob Herring};
210*724ba675SRob Herring
211*724ba675SRob Herring&pcie1_phy {
212*724ba675SRob Herring	status = "okay";
213*724ba675SRob Herring};
214*724ba675SRob Herring
215*724ba675SRob Herring&pwm {
216*724ba675SRob Herring	pinctrl-names = "default";
217*724ba675SRob Herring	pinctrl-0 = <&pwm_pins_a>;
218*724ba675SRob Herring	status = "okay";
219*724ba675SRob Herring};
220*724ba675SRob Herring
221*724ba675SRob Herring&spi0 {
222*724ba675SRob Herring	pinctrl-names = "default";
223*724ba675SRob Herring	pinctrl-0 = <&spi0_pins_a>;
224*724ba675SRob Herring	status = "okay";
225*724ba675SRob Herring};
226*724ba675SRob Herring
227*724ba675SRob Herring&spi1 {
228*724ba675SRob Herring	pinctrl-names = "default";
229*724ba675SRob Herring	pinctrl-0 = <&spi1_pins_a>;
230*724ba675SRob Herring	status = "okay";
231*724ba675SRob Herring};
232*724ba675SRob Herring
233*724ba675SRob Herring&uart2 {
234*724ba675SRob Herring	pinctrl-names = "default";
235*724ba675SRob Herring	pinctrl-0 = <&uart2_pins_b>;
236*724ba675SRob Herring	status = "okay";
237*724ba675SRob Herring};
238*724ba675SRob Herring
239*724ba675SRob Herring&usb1 {
240*724ba675SRob Herring	vusb33-supply = <&reg_3p3v>;
241*724ba675SRob Herring	vbus-supply = <&reg_5v>;
242*724ba675SRob Herring	status = "okay";
243*724ba675SRob Herring};
244*724ba675SRob Herring
245*724ba675SRob Herring&u3phy1 {
246*724ba675SRob Herring	status = "okay";
247*724ba675SRob Herring};
248