xref: /OK3568_Linux_fs/kernel/arch/arm/boot/dts/rv1103g-battery-ipc-v10.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4 */
5
6/dts-v1/;
7
8#include "rv1103.dtsi"
9#include "rv1106-evb.dtsi"
10#include "rv1106-thunder-boot-spi-nor.dtsi"
11
12/ {
13	model = "Rockchip RV1103G Battery IPC V10 Board";
14	compatible = "rockchip,rv1103g-battery-ipc-v10", "rockchip,rv1103";
15
16	aliases {
17		/delete-property/ csi2dphy1;
18		/delete-property/ csi2dphy2;
19		/delete-property/ ethernet0;
20		/delete-property/ i2c0;
21		/delete-property/ i2c1;
22		/delete-property/ i2c2;
23		/delete-property/ i2c3;
24		/delete-property/ mmc0;
25		/delete-property/ mmc1;
26		/delete-property/ pwm0;
27		/delete-property/ pwm1;
28		/delete-property/ pwm2;
29		/delete-property/ pwm3;
30		/delete-property/ pwm4;
31		/delete-property/ pwm5;
32		/delete-property/ pwm6;
33		/delete-property/ pwm7;
34		/delete-property/ pwm8;
35		/delete-property/ pwm9;
36		/delete-property/ rkcif_mipi_lvds1;
37		/delete-property/ serial0;
38		/delete-property/ serial1;
39		/delete-property/ serial3;
40		/delete-property/ serial4;
41		/delete-property/ serial5;
42		/delete-property/ spi0;
43		/delete-property/ spi1;
44	};
45
46	chosen {
47		bootargs = "loglevel=0 rootfstype=erofs rootflags=dax console=ttyFIQ0 root=/dev/rd0 snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0 driver_async_probe=dwmmc_rockchip storagemedia=mtd androidboot.storagemedia=mtd androidboot.mode=normal";
48	};
49
50	acodec_sound: acodec-sound {
51		compatible = "simple-audio-card";
52		simple-audio-card,name = "rv1103-acodec";
53		simple-audio-card,format = "i2s";
54		simple-audio-card,mclk-fs = <256>;
55		simple-audio-card,cpu {
56			sound-dai = <&i2s0_8ch>;
57		};
58		simple-audio-card,codec {
59			sound-dai = <&acodec>;
60		};
61	};
62
63	vcc_1v8: vcc-1v8 {
64		compatible = "regulator-fixed";
65		regulator-name = "vcc_1v8";
66		regulator-always-on;
67		regulator-boot-on;
68		regulator-min-microvolt = <1800000>;
69		regulator-max-microvolt = <1800000>;
70	};
71};
72
73/delete-node/ &dsm;
74/delete-node/ &i2c0;
75/delete-node/ &i2c1;
76/delete-node/ &i2c2;
77/delete-node/ &i2c3;
78/delete-node/ &emmc;
79/delete-node/ &gmac;
80/delete-node/ &pwm0;
81/delete-node/ &pwm1;
82/delete-node/ &pwm2;
83/delete-node/ &pwm3;
84/delete-node/ &pwm4;
85/delete-node/ &pwm5;
86/delete-node/ &pwm6;
87/delete-node/ &pwm7;
88/delete-node/ &pwm8;
89/delete-node/ &pwm9;
90/delete-node/ &rkcif_dvp;
91/delete-node/ &rkcif_dvp_sditf;
92/delete-node/ &rkcif_mipi_lvds1;
93/delete-node/ &rkcif_mipi_lvds1_sditf;
94/delete-node/ &sdmmc;
95/delete-node/ &spi0;
96/delete-node/ &spi1;
97/delete-node/ &uart0;
98/delete-node/ &uart1;
99/delete-node/ &uart3;
100/delete-node/ &uart4;
101/delete-node/ &uart5;
102
103&acodec {
104	#sound-dai-cells = <0>;
105	pa-ctl-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
106	status = "okay";
107};
108
109&csi2_dphy_hw {
110	status = "okay";
111};
112
113&csi2_dphy0 {
114	status = "okay";
115
116	ports {
117		#address-cells = <1>;
118		#size-cells = <0>;
119
120		port@0 {
121			reg = <0>;
122			#address-cells = <1>;
123			#size-cells = <0>;
124
125			csi_dphy_input0: endpoint@0 {
126				reg = <0>;
127				remote-endpoint = <&sc230ai_out>;
128				data-lanes = <1 2>;
129			};
130		};
131
132		port@1 {
133			reg = <1>;
134			#address-cells = <1>;
135			#size-cells = <0>;
136
137			csi_dphy_output: endpoint@0 {
138				reg = <0>;
139				remote-endpoint = <&mipi_csi2_input>;
140			};
141		};
142	};
143};
144
145&fiq_debugger {
146	rockchip,baudrate = <1500000>;
147	pinctrl-names = "default";
148	pinctrl-0 = <&uart2m1_xfer>;
149};
150
151&i2c4 {
152	rockchip,amp-shared;
153	clock-frequency = <400000>;
154	pinctrl-names = "default";
155	pinctrl-0 = <&i2c4m2_xfer>;
156	status = "okay";
157
158	sc230ai: sc230ai@30 {
159		compatible = "smartsens,sc230ai";
160		status = "okay";
161		reg = <0x30>;
162		clocks = <&cru MCLK_REF_MIPI0>;
163		clock-names = "xvclk";
164		pwdn-gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
165		pinctrl-names = "default";
166		pinctrl-0 = <&mipi_refclk_out0>;
167		rockchip,camera-module-index = <0>;
168		rockchip,camera-module-facing = "back";
169		rockchip,camera-module-name = "CMK-OT2115-PC1";
170		rockchip,camera-module-lens-name = "30IRC-F16";
171		port {
172			sc230ai_out: endpoint {
173				remote-endpoint = <&csi_dphy_input0>;
174				data-lanes = <1 2>;
175			};
176		};
177	};
178};
179
180&i2s0_8ch {
181	#sound-dai-cells = <0>;
182	status = "okay";
183};
184
185&mailbox {
186	status = "okay";
187};
188
189&memory {
190	reg = <0x00000000 0x04000000>;
191};
192
193&mipi0_csi2 {
194	status = "okay";
195
196	ports {
197		#address-cells = <1>;
198		#size-cells = <0>;
199
200		port@0 {
201			reg = <0>;
202			#address-cells = <1>;
203			#size-cells = <0>;
204
205			mipi_csi2_input: endpoint@1 {
206				reg = <1>;
207				remote-endpoint = <&csi_dphy_output>;
208			};
209		};
210
211		port@1 {
212			reg = <1>;
213			#address-cells = <1>;
214			#size-cells = <0>;
215
216			mipi_csi2_output: endpoint@0 {
217				reg = <0>;
218				remote-endpoint = <&cif_mipi_in>;
219			};
220		};
221	};
222};
223
224&pwm10 {
225	status = "okay";
226};
227
228&pwm11 {
229	status = "okay";
230};
231
232&rkcif {
233	status = "okay";
234};
235
236&rkcif_mipi_lvds {
237	status = "okay";
238
239	memory-region-thunderboot = <&rkisp_thunderboot>;
240	pinctrl-names = "default";
241	pinctrl-0 = <&mipi_pins>;
242	port {
243		/* MIPI CSI-2 endpoint */
244		cif_mipi_in: endpoint {
245			remote-endpoint = <&mipi_csi2_output>;
246		};
247	};
248};
249
250&rkcif_mipi_lvds_sditf {
251	status = "okay";
252
253	port {
254		/* MIPI CSI-2 endpoint */
255		mipi_lvds_sditf: endpoint {
256			remote-endpoint = <&isp_in>;
257		};
258	};
259};
260
261&rkisp {
262	status = "okay";
263};
264
265&rkisp_vir0 {
266	status = "okay";
267
268	port@0 {
269		isp_in: endpoint {
270			remote-endpoint = <&mipi_lvds_sditf>;
271		};
272	};
273};
274
275&saradc {
276	status = "okay";
277	vref-supply = <&vcc_1v8>;
278};
279
280&sdio {
281	max-frequency = <30000000>;
282	no-sd;
283	no-mmc;
284	bus-width = <4>;
285	cap-sd-highspeed;
286	cap-sdio-irq;
287	keep-power-in-suspend;
288	non-removable;
289	pinctrl-names = "normal", "idle";
290	pinctrl-0 = <&sdmmc1m1_cmd &sdmmc1m1_clk &sdmmc1m1_bus4>;
291	pinctrl-1 = <&sdmmc1m1_idle_pins>;
292	no-prescan-powerup;
293	post-power-on-delay-ms = <0>;
294	status = "okay";
295};
296
297&sfc {
298	assigned-clocks = <&cru SCLK_SFC>;
299	assigned-clock-rates = <125000000>;
300	status = "okay";
301
302	flash@0 {
303		compatible = "jedec,spi-nor";
304		reg = <0>;
305		spi-max-frequency = <125000000>;
306		spi-rx-bus-width = <4>;
307		spi-tx-bus-width = <1>;
308	};
309};
310
311&thunder_boot_service {
312	status = "okay";
313};
314