xref: /linux/arch/arm64/boot/dts/qcom/apq8016-sbc-d3-camera-mezzanine.dtso (revision 3a931f4aa3982f77f32050b4869afa76a711e5c7)
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/plugin/;
9
10#include <dt-bindings/clock/qcom,gcc-msm8916.h>
11#include <dt-bindings/gpio/gpio.h>
12
13&{/} {
14	camera_vdddo_1v8: regulator-camera-vdddo {
15		compatible = "regulator-fixed";
16		regulator-name = "camera_vdddo";
17		regulator-min-microvolt = <1800000>;
18		regulator-max-microvolt = <1800000>;
19		regulator-always-on;
20	};
21
22	camera_vdda_2v8: regulator-camera-vdda {
23		compatible = "regulator-fixed";
24		regulator-name = "camera_vdda";
25		regulator-min-microvolt = <2800000>;
26		regulator-max-microvolt = <2800000>;
27		regulator-always-on;
28	};
29
30	camera_vddd_1v5: regulator-camera-vddd {
31		compatible = "regulator-fixed";
32		regulator-name = "camera_vddd";
33		regulator-min-microvolt = <1500000>;
34		regulator-max-microvolt = <1500000>;
35		regulator-always-on;
36	};
37};
38
39&camss {
40	status = "okay";
41
42	ports {
43		#address-cells = <1>;
44		#size-cells = <0>;
45
46		port@0 {
47			reg = <0>;
48			csiphy0_ep: endpoint {
49				data-lanes = <0 2>;
50				remote-endpoint = <&ov5640_ep>;
51			};
52		};
53	};
54};
55
56&cci {
57	status = "okay";
58};
59
60&cci_i2c0 {
61	#address-cells = <1>;
62	#size-cells = <0>;
63
64	camera@3b {
65		compatible = "ovti,ov5640";
66		reg = <0x3b>;
67
68		powerdown-gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
69		reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
70		pinctrl-names = "default";
71		pinctrl-0 = <&camera_rear_default>;
72
73		clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
74		clock-names = "xclk";
75		assigned-clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
76		assigned-clock-rates = <23880000>;
77
78		DOVDD-supply = <&camera_vdddo_1v8>;
79		AVDD-supply = <&camera_vdda_2v8>;
80		DVDD-supply = <&camera_vddd_1v5>;
81
82		port {
83			ov5640_ep: endpoint {
84				data-lanes = <1 2>;
85				remote-endpoint = <&csiphy0_ep>;
86			};
87		};
88	};
89};
90