xref: /linux/arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts (revision 5859b5a9c3ac92d831bed164374cb837519524ad)
1*5859b5a9SPeter Geis// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*5859b5a9SPeter Geis
3*5859b5a9SPeter Geis/dts-v1/;
4*5859b5a9SPeter Geis
5*5859b5a9SPeter Geis#include "rk3566-soquartz.dtsi"
6*5859b5a9SPeter Geis
7*5859b5a9SPeter Geis/ {
8*5859b5a9SPeter Geis	model = "Pine64 RK3566 SoQuartz with CM4-IO Carrier Board";
9*5859b5a9SPeter Geis	compatible = "pine64,soquartz-cm4io", "pine64,soquartz", "rockchip,rk3566";
10*5859b5a9SPeter Geis
11*5859b5a9SPeter Geis	/* labeled +12v in schematic */
12*5859b5a9SPeter Geis	vcc12v_dcin: vcc12v-dcin-regulator {
13*5859b5a9SPeter Geis		compatible = "regulator-fixed";
14*5859b5a9SPeter Geis		regulator-name = "vcc12v_dcin";
15*5859b5a9SPeter Geis		regulator-always-on;
16*5859b5a9SPeter Geis		regulator-boot-on;
17*5859b5a9SPeter Geis		regulator-min-microvolt = <12000000>;
18*5859b5a9SPeter Geis		regulator-max-microvolt = <12000000>;
19*5859b5a9SPeter Geis	};
20*5859b5a9SPeter Geis
21*5859b5a9SPeter Geis	/* labeled +5v in schematic */
22*5859b5a9SPeter Geis	vcc_5v: vcc-5v-regulator {
23*5859b5a9SPeter Geis		compatible = "regulator-fixed";
24*5859b5a9SPeter Geis		regulator-name = "vcc_5v";
25*5859b5a9SPeter Geis		regulator-always-on;
26*5859b5a9SPeter Geis		regulator-boot-on;
27*5859b5a9SPeter Geis		regulator-min-microvolt = <5000000>;
28*5859b5a9SPeter Geis		regulator-max-microvolt = <5000000>;
29*5859b5a9SPeter Geis		vin-supply = <&vcc12v_dcin>;
30*5859b5a9SPeter Geis	};
31*5859b5a9SPeter Geis};
32*5859b5a9SPeter Geis
33*5859b5a9SPeter Geis&gmac1 {
34*5859b5a9SPeter Geis	status = "okay";
35*5859b5a9SPeter Geis};
36*5859b5a9SPeter Geis
37*5859b5a9SPeter Geis/*
38*5859b5a9SPeter Geis * i2c1 is exposed on CM1 / Module1A
39*5859b5a9SPeter Geis * pin 80 - SCL0 - i2c1_scl_m0, pullup to vcc3v3_pmu
40*5859b5a9SPeter Geis * pin 82 - SDA0 - i2c1_sda_m0, pullup to vcc3v3_pmu
41*5859b5a9SPeter Geis */
42*5859b5a9SPeter Geis&i2c1 {
43*5859b5a9SPeter Geis	status = "okay";
44*5859b5a9SPeter Geis
45*5859b5a9SPeter Geis	/*
46*5859b5a9SPeter Geis	 * the rtc interrupt is tied to PMIC_PWRON,
47*5859b5a9SPeter Geis	 * it will force reset the board if triggered.
48*5859b5a9SPeter Geis	 */
49*5859b5a9SPeter Geis	pcf85063: rtc@51 {
50*5859b5a9SPeter Geis		compatible = "nxp,pcf85063";
51*5859b5a9SPeter Geis		reg = <0x51>;
52*5859b5a9SPeter Geis	};
53*5859b5a9SPeter Geis};
54*5859b5a9SPeter Geis
55*5859b5a9SPeter Geis/*
56*5859b5a9SPeter Geis * i2c2 is exposed on CM1 / Module1A - to PI40
57*5859b5a9SPeter Geis * pin 56 - GPIO3 - i2c2_scl_m1, pullup to vcc_3v3, shared with i2s1_8ch
58*5859b5a9SPeter Geis * pin 58 - GPIO2 - i2c2_sda_m1, pullup to vcc_3v3
59*5859b5a9SPeter Geis */
60*5859b5a9SPeter Geis&i2c2 {
61*5859b5a9SPeter Geis	status = "disabled";
62*5859b5a9SPeter Geis};
63*5859b5a9SPeter Geis
64*5859b5a9SPeter Geis/*
65*5859b5a9SPeter Geis * i2c3 is exposed on CM1 / Module1A - to PI40
66*5859b5a9SPeter Geis * pin 35 - ID_SC(GPIO28) - i2c3_scl_m0, pullup to vcc_3v3
67*5859b5a9SPeter Geis * pin 36 - ID_SD(GPIO27) - i2c3_sda_m0, pullup to vcc_3v3
68*5859b5a9SPeter Geis */
69*5859b5a9SPeter Geis&i2c3 {
70*5859b5a9SPeter Geis	status = "disabled";
71*5859b5a9SPeter Geis};
72*5859b5a9SPeter Geis
73*5859b5a9SPeter Geis/*
74*5859b5a9SPeter Geis * i2c4 is exposed on CM2 / Module1B - to PI40
75*5859b5a9SPeter Geis * pin 45 - GPIO24 - i2c4_scl_m1
76*5859b5a9SPeter Geis * pin 47 - GPIO23 - i2c4_sda_m1
77*5859b5a9SPeter Geis */
78*5859b5a9SPeter Geis&i2c4 {
79*5859b5a9SPeter Geis	status = "disabled";
80*5859b5a9SPeter Geis};
81*5859b5a9SPeter Geis
82*5859b5a9SPeter Geis/*
83*5859b5a9SPeter Geis * i2s1_8ch is exposed on CM1 / Module1A - to PI40
84*5859b5a9SPeter Geis * pin 24 - GPIO26 - i2s1_sdi1_m1
85*5859b5a9SPeter Geis * pin 25 - GPIO21 - i2s1_sdo0_m1
86*5859b5a9SPeter Geis * pin 26 - GPIO19 - i2s1_lrck_tx_m1
87*5859b5a9SPeter Geis * pin 27 - GPIO20 - i2s1_sdi0_m1
88*5859b5a9SPeter Geis * pin 29 - GPIO16 - i2s1_sdi3_m1
89*5859b5a9SPeter Geis * pin 30 - GPIO6  - i2s1_sdi2_m1
90*5859b5a9SPeter Geis * pin 40 - GPIO9  - i2s1_sdo1_m1, shared with spi3
91*5859b5a9SPeter Geis * pin 41 - GPIO25 - i2s1_sdo2_m1
92*5859b5a9SPeter Geis * pin 49 - GPIO18 - i2s1_sclk_tx_m1
93*5859b5a9SPeter Geis * pin 50 - GPIO17 - i2s1_mclk_m1
94*5859b5a9SPeter Geis * pin 56 - GPIO3  - i2s1_sdo3_m1, shared with i2c2
95*5859b5a9SPeter Geis */
96*5859b5a9SPeter Geis&i2s1_8ch {
97*5859b5a9SPeter Geis	status = "disabled";
98*5859b5a9SPeter Geis};
99*5859b5a9SPeter Geis
100*5859b5a9SPeter Geis&led_diy {
101*5859b5a9SPeter Geis	status = "okay";
102*5859b5a9SPeter Geis};
103*5859b5a9SPeter Geis
104*5859b5a9SPeter Geis&led_work {
105*5859b5a9SPeter Geis	status = "okay";
106*5859b5a9SPeter Geis};
107*5859b5a9SPeter Geis
108*5859b5a9SPeter Geis&rgmii_phy1 {
109*5859b5a9SPeter Geis	status = "okay";
110*5859b5a9SPeter Geis};
111*5859b5a9SPeter Geis
112*5859b5a9SPeter Geis/*
113*5859b5a9SPeter Geis * saradc is exposed on CM1 / Module1A - to J2
114*5859b5a9SPeter Geis * pin 94 - AIN1 - saradc_vin3
115*5859b5a9SPeter Geis * pin 96 - AIN0 - saradc_vin2
116*5859b5a9SPeter Geis */
117*5859b5a9SPeter Geis&saradc {
118*5859b5a9SPeter Geis	status = "disabled";
119*5859b5a9SPeter Geis};
120*5859b5a9SPeter Geis
121*5859b5a9SPeter Geis&sdmmc0 {
122*5859b5a9SPeter Geis	vmmc-supply = <&sdmmc_pwr>;
123*5859b5a9SPeter Geis	status = "okay";
124*5859b5a9SPeter Geis};
125*5859b5a9SPeter Geis
126*5859b5a9SPeter Geis&sdmmc_pwr {
127*5859b5a9SPeter Geis	regulator-min-microvolt = <3300000>;
128*5859b5a9SPeter Geis	regulator-max-microvolt = <3300000>;
129*5859b5a9SPeter Geis	status = "okay";
130*5859b5a9SPeter Geis};
131*5859b5a9SPeter Geis
132*5859b5a9SPeter Geis/*
133*5859b5a9SPeter Geis *  spi3 is exposed on CM1 / Module1A - to PI40
134*5859b5a9SPeter Geis * pin 37 - GPIO7  - spi3_cs1_m0
135*5859b5a9SPeter Geis * pin 38 - GPIO11 - spi3_clk_m0
136*5859b5a9SPeter Geis * pin 39 - GPIO8  - spi3_cs0_m0
137*5859b5a9SPeter Geis * pin 40 - GPIO9  - spi3_miso_m0, shared with i2s1_8ch
138*5859b5a9SPeter Geis * pin 44 - GPIO10 - spi3_mosi_m0
139*5859b5a9SPeter Geis */
140*5859b5a9SPeter Geis&spi3 {
141*5859b5a9SPeter Geis	status = "disabled";
142*5859b5a9SPeter Geis};
143*5859b5a9SPeter Geis
144*5859b5a9SPeter Geis/*
145*5859b5a9SPeter Geis * uart2 is exposed on CM1 / Module1A - to PI40
146*5859b5a9SPeter Geis * pin 51 - GPIO15 - uart2_rx_m0
147*5859b5a9SPeter Geis * pin 55 - GPIO14 - uart2_tx_m0
148*5859b5a9SPeter Geis */
149*5859b5a9SPeter Geis&uart2 {
150*5859b5a9SPeter Geis	status = "okay";
151*5859b5a9SPeter Geis};
152*5859b5a9SPeter Geis
153*5859b5a9SPeter Geis/*
154*5859b5a9SPeter Geis * uart7 is exposed on CM1 / Module1A - to PI40
155*5859b5a9SPeter Geis * pin 46 - GPIO22 - uart7_tx_m2
156*5859b5a9SPeter Geis * pin 47 - GPIO23 - uart7_rx_m2
157*5859b5a9SPeter Geis */
158*5859b5a9SPeter Geis&uart7 {
159*5859b5a9SPeter Geis	status = "okay";
160*5859b5a9SPeter Geis};
161*5859b5a9SPeter Geis
162*5859b5a9SPeter Geis&usb2phy0 {
163*5859b5a9SPeter Geis	status = "okay";
164*5859b5a9SPeter Geis};
165*5859b5a9SPeter Geis
166*5859b5a9SPeter Geis&usb2phy0_otg {
167*5859b5a9SPeter Geis	phy-supply = <&vcc_5v>;
168*5859b5a9SPeter Geis	status = "okay";
169*5859b5a9SPeter Geis};
170*5859b5a9SPeter Geis
171*5859b5a9SPeter Geis&usb_host0_xhci {
172*5859b5a9SPeter Geis	status = "okay";
173*5859b5a9SPeter Geis};
174*5859b5a9SPeter Geis
175*5859b5a9SPeter Geis&vbus {
176*5859b5a9SPeter Geis	vin-supply = <&vcc_5v>;
177*5859b5a9SPeter Geis};
178