Commit 89daf7b9 authored by Loic Poulain's avatar Loic Poulain Committed by Bjorn Andersson
Browse files

arm64: dts: qcom: qrb2210-rb1: Add overlay for vision mezzanine

parent 141f3844
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -149,6 +149,11 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs9100-ride-r3.dtb
dtb-$(CONFIG_ARCH_QCOM)	+= qdu1000-idp.dtb
dtb-$(CONFIG_ARCH_QCOM)	+= qrb2210-arduino-imola.dtb
dtb-$(CONFIG_ARCH_QCOM)	+= qrb2210-rb1.dtb

qrb2210-rb1-vision-mezzanine-dtbs	:= qrb2210-rb1.dtb qrb2210-rb1-vision-mezzanine.dtbo

dtb-$(CONFIG_ARCH_QCOM)	+= qrb2210-rb1-vision-mezzanine.dtb

dtb-$(CONFIG_ARCH_QCOM)	+= qrb4210-rb2.dtb
dtb-$(CONFIG_ARCH_QCOM)	+= qrb5165-rb5.dtb

+66 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: BSD-3-Clause
/*
 * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
 */

/dts-v1/;
/plugin/;

#include <dt-bindings/clock/qcom,gcc-qcm2290.h>
#include <dt-bindings/gpio/gpio.h>

&pm8008 {
	status = "okay";
};

&camss {
	status = "okay";

	vdd-csiphy-1p2-supply = <&pm4125_l5>;
	vdd-csiphy-1p8-supply = <&pm4125_l13>;

	ports {
		port@0 {
			csiphy0_ep: endpoint {
				data-lanes = <0 1>;
				remote-endpoint = <&ov9282_ep>;
			};
		};
	};
};

&cci {
	status = "okay";
};

&cci_i2c1 {
	#address-cells = <1>;
	#size-cells = <0>;

	/* Vision Mezzanine DIP3-1 must be ON (Selects camera CAM0A&B) */
	camera@60 {
		compatible = "ovti,ov9282";
		reg = <0x60>;

		/* Reset is active-low, but driver applies inverted reset logic */
		reset-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
		pinctrl-0 = <&mclk3_default>;
		pinctrl-names = "default";

		clocks = <&gcc GCC_CAMSS_MCLK3_CLK>;
		assigned-clocks = <&gcc GCC_CAMSS_MCLK3_CLK>;
		assigned-clock-rates = <24000000>;

		avdd-supply = <&vreg_l3p>;
		dvdd-supply = <&vreg_l1p>;
		dovdd-supply = <&vreg_l7p>;

		port {
			ov9282_ep: endpoint {
				link-frequencies = /bits/ 64 <400000000>;
				data-lanes = <1 2>;
				remote-endpoint = <&csiphy0_ep>;
                        };
                };
	};
};