]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: qrb2210-rb1: Add overlay for vision mezzanine
authorLoic Poulain <loic.poulain@oss.qualcomm.com>
Thu, 8 Jan 2026 17:05:50 +0000 (18:05 +0100)
committerBjorn Andersson <andersson@kernel.org>
Thu, 8 Jan 2026 21:33:28 +0000 (15:33 -0600)
This initial version includes support for OV9282 camera sensor.

Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Link: https://lore.kernel.org/r/20260108170550.359968-4-loic.poulain@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/Makefile
arch/arm64/boot/dts/qcom/qrb2210-rb1-vision-mezzanine.dtso [new file with mode: 0644]

index 0ccd6ec16dfbe19b558fe3aa39c9fc3245f537ea..a5d6f451f85c0031bead9d23d62bbdfff9f36424 100644 (file)
@@ -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
 
diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1-vision-mezzanine.dtso b/arch/arm64/boot/dts/qcom/qrb2210-rb1-vision-mezzanine.dtso
new file mode 100644 (file)
index 0000000..c314cd6
--- /dev/null
@@ -0,0 +1,66 @@
+// 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>;
+                        };
+                };
+       };
+};