Skip to content

Commit 594be93

Browse files
wenmliuandersson
authored andcommitted
arm64: dts: qcom: talos-evk-camera: Add DT overlay
Enable IMX577 via CCI on Talos EVK Core Kit. The Talos EVK board does not include a camera sensor by default. This DTSO has enabled the Arducam 12.3MP IMX577 Mini Camera Module on the CSI-1 interface. CSI-1 interface using mclk2 as the MCLK source on this board. Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260305-sm6150_evk-v6-5-38ce4360d5e0@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent fd3850c commit 594be93

3 files changed

Lines changed: 73 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ dtb-$(CONFIG_ARCH_QCOM) += sm8750-qrd.dtb
394394
dtb-$(CONFIG_ARCH_QCOM) += talos-evk.dtb
395395
talos-evk-usb1-peripheral-dtbs := talos-evk.dtb talos-evk-usb1-peripheral.dtbo
396396
dtb-$(CONFIG_ARCH_QCOM) += talos-evk-usb1-peripheral.dtb
397+
dtb-$(CONFIG_ARCH_QCOM) += talos-evk-camera-imx577.dtbo
398+
talos-evk-camera-imx577-dtbs := talos-evk.dtb talos-evk-camera-imx577.dtbo
399+
dtb-$(CONFIG_ARCH_QCOM) += talos-evk-camera-imx577.dtb
397400
talos-evk-lvds-auo,g133han01-dtbs := \
398401
talos-evk.dtb talos-evk-lvds-auo,g133han01.dtbo
399402
dtb-$(CONFIG_ARCH_QCOM) += talos-evk-lvds-auo,g133han01.dtb
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// SPDX-License-Identifier: BSD-3-Clause
2+
/*
3+
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
#include <dt-bindings/clock/qcom,qcs615-camcc.h>
10+
#include <dt-bindings/gpio/gpio.h>
11+
12+
&camss {
13+
vdd-csiphy-1p2-supply = <&vreg_l11a>;
14+
vdd-csiphy-1p8-supply = <&vreg_l12a>;
15+
16+
status = "okay";
17+
18+
ports {
19+
#address-cells = <1>;
20+
#size-cells = <0>;
21+
22+
port@1 {
23+
reg = <1>;
24+
25+
csiphy1_ep: endpoint {
26+
data-lanes = <0 1 2 3>;
27+
remote-endpoint = <&imx577_ep>;
28+
};
29+
};
30+
};
31+
};
32+
33+
&cci {
34+
status = "okay";
35+
};
36+
37+
&cci_i2c1 {
38+
#address-cells = <1>;
39+
#size-cells = <0>;
40+
41+
camera@1a {
42+
compatible = "sony,imx577";
43+
reg = <0x1a>;
44+
45+
reset-gpios = <&tlmm 29 GPIO_ACTIVE_LOW>;
46+
pinctrl-0 = <&cam_mclk2_default &cam1_reset_default>;
47+
pinctrl-names = "default";
48+
49+
clocks = <&camcc CAM_CC_MCLK2_CLK>;
50+
assigned-clocks = <&camcc CAM_CC_MCLK2_CLK>;
51+
assigned-clock-rates = <24000000>;
52+
53+
avdd-supply = <&vreg_s4a>;
54+
55+
port {
56+
imx577_ep: endpoint {
57+
link-frequencies = /bits/ 64 <600000000>;
58+
data-lanes = <1 2 3 4>;
59+
remote-endpoint = <&csiphy1_ep>;
60+
};
61+
};
62+
};
63+
};

arch/arm64/boot/dts/qcom/talos-evk-som.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,13 @@
463463
bias-pull-down;
464464
};
465465

466+
cam1_reset_default: cam1-reset-default-state {
467+
pins = "gpio29";
468+
function = "gpio";
469+
drive-strength = <2>;
470+
bias-disable;
471+
};
472+
466473
pcie_default_state: pcie-default-state {
467474
clkreq-pins {
468475
pins = "gpio90";

0 commit comments

Comments
 (0)