xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/apq8016-sbc-d3-camera-mezzanine.dts (revision a90b9d0159070121c221b966469c3e36d912bf82)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2023, Linaro Ltd.
5 */
6
7/dts-v1/;
8
9#include "apq8016-sbc.dts"
10
11/ {
12	camera_vdddo_1v8: camera-vdddo-1v8 {
13		compatible = "regulator-fixed";
14		regulator-name = "camera_vdddo";
15		regulator-min-microvolt = <1800000>;
16		regulator-max-microvolt = <1800000>;
17		regulator-always-on;
18	};
19
20	camera_vdda_2v8: camera-vdda-2v8 {
21		compatible = "regulator-fixed";
22		regulator-name = "camera_vdda";
23		regulator-min-microvolt = <2800000>;
24		regulator-max-microvolt = <2800000>;
25		regulator-always-on;
26	};
27
28	camera_vddd_1v5: camera-vddd-1v5 {
29		compatible = "regulator-fixed";
30		regulator-name = "camera_vddd";
31		regulator-min-microvolt = <1500000>;
32		regulator-max-microvolt = <1500000>;
33		regulator-always-on;
34	};
35};
36
37&camss {
38	status = "okay";
39
40	ports {
41		port@0 {
42			reg = <0>;
43			csiphy0_ep: endpoint {
44				data-lanes = <0 2>;
45				remote-endpoint = <&ov5640_ep>;
46			};
47		};
48	};
49};
50
51&cci {
52	status = "okay";
53};
54
55&cci_i2c0 {
56	camera_rear@3b {
57		compatible = "ovti,ov5640";
58		reg = <0x3b>;
59
60		powerdown-gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
61		reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
62		pinctrl-names = "default";
63		pinctrl-0 = <&camera_rear_default>;
64
65		clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
66		clock-names = "xclk";
67		assigned-clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
68		assigned-clock-rates = <23880000>;
69
70		DOVDD-supply = <&camera_vdddo_1v8>;
71		AVDD-supply = <&camera_vdda_2v8>;
72		DVDD-supply = <&camera_vddd_1v5>;
73
74		port {
75			ov5640_ep: endpoint {
76				data-lanes = <1 2>;
77				remote-endpoint = <&csiphy0_ep>;
78			};
79		};
80	};
81};
82