Skip to content

Commit 3bb77c0

Browse files
wenmliujiegan0107
authored andcommitted
FROMLIST: arm64: dts: qcom: hamoa-iot-evk-camera-imx577: Add DT overlay
Enable IMX577 via CCI on Hamoa EVK Core Kit. The Hamoa 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. Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com> Link: https://lore.kernel.org/all/20260227-hamoa_evk-v1-2-36f895a24d8f@oss.qualcomm.com/
1 parent 1f50dc4 commit 3bb77c0

3 files changed

Lines changed: 100 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
@@ -14,9 +14,12 @@ dtb-$(CONFIG_ARCH_QCOM) += apq8094-sony-xperia-kitakami-karin_windy.dtb
1414
dtb-$(CONFIG_ARCH_QCOM) += apq8096-db820c.dtb
1515
dtb-$(CONFIG_ARCH_QCOM) += apq8096-ifc6640.dtb
1616
dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk.dtb
17+
dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk-camera-imx577.dtbo
1718

19+
hamoa-iot-evk-camera-imx577-dtbs := hamoa-iot-evk.dtb hamoa-iot-evk-camera-imx577.dtbo
1820
hamoa-iot-evk-el2-dtbs := hamoa-iot-evk.dtb x1-el2.dtbo
1921

22+
dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk-camera-imx577.dtb
2023
dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk-el2.dtb
2124
dtb-$(CONFIG_ARCH_QCOM) += ipq5018-rdp432-c2.dtb
2225
dtb-$(CONFIG_ARCH_QCOM) += ipq5018-tplink-archer-ax55-v1.dtb
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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,x1e80100-camcc.h>
10+
#include <dt-bindings/gpio/gpio.h>
11+
#include <dt-bindings/phy/phy.h>
12+
13+
&{/} {
14+
vreg_cam1_1p8: regulator-cam1 {
15+
compatible = "regulator-fixed";
16+
regulator-name = "vreg_cam1";
17+
startup-delay-us = <1000>;
18+
enable-active-high;
19+
gpio = <&tlmm 19 GPIO_ACTIVE_HIGH>;
20+
};
21+
};
22+
23+
&camss {
24+
status = "okay";
25+
26+
ports {
27+
#address-cells = <1>;
28+
#size-cells = <0>;
29+
30+
port@1 {
31+
#address-cells = <1>;
32+
#size-cells = <0>;
33+
34+
csiphy1_ep: endpoint@0 {
35+
clock-lanes = <7>;
36+
data-lanes = <0 1 2 3>;
37+
remote-endpoint = <&imx577_ep>;
38+
};
39+
};
40+
};
41+
};
42+
43+
&cci0 {
44+
status = "okay";
45+
};
46+
47+
&cci0_i2c1 {
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
51+
camera@1a {
52+
compatible = "sony,imx577";
53+
reg = <0x1a>;
54+
55+
reset-gpios = <&tlmm 110 GPIO_ACTIVE_LOW>;
56+
pinctrl-0 = <&cam1_default>;
57+
pinctrl-names = "default";
58+
59+
clocks = <&camcc CAM_CC_MCLK1_CLK>;
60+
assigned-clocks = <&camcc CAM_CC_MCLK1_CLK>;
61+
assigned-clock-rates = <24000000>;
62+
63+
dvdd-supply = <&vreg_cam1_1p8>;
64+
dovdd-supply = <&vreg_l4m_1p8>;
65+
66+
port {
67+
imx577_ep: endpoint {
68+
link-frequencies = /bits/ 64 <600000000>;
69+
data-lanes = <0 1 2 3>;
70+
remote-endpoint = <&csiphy1_ep>;
71+
};
72+
};
73+
};
74+
};
75+
76+
&csiphy1 {
77+
vdda-0p8-supply = <&vreg_l2c_0p8>;
78+
vdda-1p2-supply = <&vreg_l1c_1p2>;
79+
80+
status = "okay";
81+
};

arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,22 @@
13241324
};
13251325

13261326
&tlmm {
1327+
cam1_default: cam1-default-state {
1328+
mclk-pins {
1329+
pins = "gpio97";
1330+
function = "cam_mclk";
1331+
drive-strength = <2>;
1332+
bias-disable;
1333+
};
1334+
1335+
rst-pins {
1336+
pins = "gpio110";
1337+
function = "gpio";
1338+
drive-strength = <2>;
1339+
bias-disable;
1340+
};
1341+
};
1342+
13271343
edp_reg_en: edp-reg-en-state {
13281344
pins = "gpio70";
13291345
function = "gpio";

0 commit comments

Comments
 (0)