xref: /OK3568_Linux_fs/kernel/arch/arm/boot/dts/rv1126-ai-cam-ddr3-v1.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd.
4 */
5
6/dts-v1/;
7#include "rv1126.dtsi"
8#include "rv1126-ai-cam.dtsi"
9
10/ {
11	model = "Rockchip RV1126 AI CAMERA DDR3L Board";
12	compatible = "rockchip,rv1126-ai-cam-ddr3L-v1", "rockchip,rv1126";
13
14	chosen {
15		bootargs = "earlycon=uart8250,mmio32,0xff570000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=ext4 rootwait snd_aloop.index=7";
16	};
17
18	gpio-leds {
19		compatible = "gpio-leds";
20
21		work-led {
22			gpios = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>;
23			linux,default-trigger = "timer";
24		};
25	};
26};
27
28&csi_dphy0 {
29	status = "okay";
30
31	ports {
32		port@0 {
33			reg = <0>;
34			#address-cells = <1>;
35			#size-cells = <0>;
36
37			mipi_in_ucam0: endpoint@0 {
38				reg = <1>;
39				remote-endpoint = <&ucam_out0>;
40				data-lanes = <1 2 3 4>;
41			};
42
43			mipi_in_ucam1: endpoint@1 {
44				reg = <1>;
45				remote-endpoint = <&ucam_out1>;
46				data-lanes = <1 2>;
47			};
48		};
49	};
50};
51
52&i2c1 {
53	status = "okay";
54	clock-frequency = <400000>;
55
56	imx378: imx378@1a {
57		compatible = "sony,imx378";
58		reg = <0x1a>;
59		clocks = <&cru CLK_MIPICSI_OUT>;
60		clock-names = "xvclk";
61		power-domains = <&power RV1126_PD_VI>;
62		pinctrl-names = "default";
63		pinctrl-0 = <&mipicsi_clk0>;
64		pwren-gpios= <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
65		pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
66		reset-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
67		rockchip,camera-module-index = <1>;
68		rockchip,camera-module-facing = "front";
69		rockchip,camera-module-name = "A12N01B";
70		rockchip,camera-module-lens-name = "48IRC-12M-F18";
71		// NO_HDR:0 HDR_X2:5 HDR_X3:6
72		rockchip,camera-hdr-mode = <0>;
73		port {
74			ucam_out0: endpoint {
75				remote-endpoint = <&mipi_in_ucam0>;
76				data-lanes = <1 2 3 4>;
77			};
78		};
79	};
80
81	gc4c33: gc4c33@29 {
82		compatible = "galaxycore,gc4c33";
83		reg = <0x29>;
84		clocks = <&cru CLK_MIPICSI_OUT>;
85		clock-names = "xvclk";
86		power-domains = <&power RV1126_PD_VI>;
87		pinctrl-names = "rockchip,camera_default";
88		pinctrl-0 = <&mipicsi_clk0>;
89		pwren-gpios= <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
90		pwdn-gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
91		reset-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>;
92		rockchip,camera-module-index = <1>;
93		rockchip,camera-module-facing = "front";
94		rockchip,camera-module-name = "PCORW0009A";
95		rockchip,camera-module-lens-name = "40IRC-4M";
96		// NO_HDR:0 HDR_X2:5 HDR_X3:6
97		rockchip,camera-hdr-mode = <0>;
98		port {
99			ucam_out1: endpoint {
100				remote-endpoint = <&mipi_in_ucam1>;
101				data-lanes = <1 2>;
102			};
103		};
104	};
105
106};
107