* [PATCH v3 1/3] arm64: dts: qcom: hamoa-iot-som: Add pm8010 camera PMIC regulators
2026-12-01 3:26 [PATCH v3 0/3] Add Hamoa EVK IMX577 camera sensor support Wenmeng Liu
@ 2026-12-01 3:26 ` Wenmeng Liu
2026-12-02 9:55 ` Konrad Dybcio
2026-12-01 3:26 ` [PATCH v3 2/3] arm64: dts: qcom: hamoa-iot-evk: Add camera 3.3V regulator and CAM1 pinctrl Wenmeng Liu
2026-12-01 3:26 ` [PATCH v3 3/3] arm64: dts: qcom: hamoa-iot-evk-camera-imx577: Add DT overlay Wenmeng Liu
2 siblings, 1 reply; 7+ messages in thread
From: Wenmeng Liu @ 2026-12-01 3:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bryan O'Donoghue,
Tingguo Cheng, Wenmeng Liu
From: Tingguo Cheng <tingguo.cheng@oss.qualcomm.com>
Add the PM8010 PMIC providing the following voltage rails:
- vreg_l1m_1p1 @ 1v1 camera core (DVDD)
- vreg_l2m_1p15 @ 1v15 camera core (DVDD)
- vreg_l3m_1p8 @ 1v8 camera analog/IO (AVDD2, DOVDD)
- vreg_l4m_1p8 @ 1v8 camera IO (DOVDD)
- vreg_l5m_3p0 @ 3v0 camera VCM
- vreg_l6m_1p8 @ 1v8 camera analog (AVDD2)
- vreg_l7m_2p9 @ 2v9 camera analog (AVDD)
Signed-off-by: Tingguo Cheng <tingguo.cheng@oss.qualcomm.com>
Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/hamoa-iot-som.dtsi | 61 +++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/hamoa-iot-som.dtsi b/arch/arm64/boot/dts/qcom/hamoa-iot-som.dtsi
index f139f3adb93353ebf99e65d8bdda4e9209e2ef00..8b557455defa745bf5dab94bf5086001ec4bfab0 100644
--- a/arch/arm64/boot/dts/qcom/hamoa-iot-som.dtsi
+++ b/arch/arm64/boot/dts/qcom/hamoa-iot-som.dtsi
@@ -376,6 +376,67 @@ vreg_l3j_0p8: ldo3 {
regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
};
};
+
+ /* PM8010_M */
+ regulators-8 {
+ compatible = "qcom,pm8010-rpmh-regulators";
+ qcom,pmic-id = "m";
+
+ vdd-l1-l2-supply = <&vreg_s5j_1p2>;
+ vdd-l3-l4-supply = <&vreg_s4c_1p8>;
+ vdd-l5-supply = <&vreg_bob1>;
+ vdd-l6-supply = <&vreg_s4c_1p8>;
+ vdd-l7-supply = <&vreg_bob1>;
+
+ vreg_l1m_1p1: ldo1 {
+ regulator-name = "vreg_l1m_1p1";
+ regulator-min-microvolt = <1056000>;
+ regulator-max-microvolt = <1200000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l2m_1p15: ldo2 {
+ regulator-name = "vreg_l2m_1p15";
+ regulator-min-microvolt = <1152000>;
+ regulator-max-microvolt = <1200000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l3m_1p8: ldo3 {
+ regulator-name = "vreg_l3m_1p8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1808000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l4m_1p8: ldo4 {
+ regulator-name = "vreg_l4m_1p8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1808000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l5m_3p0: ldo5 {
+ regulator-name = "vreg_l5m_3p0";
+ regulator-min-microvolt = <2960000>;
+ regulator-max-microvolt = <2960000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l6m_1p8: ldo6 {
+ regulator-name = "vreg_l6m_1p8";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1808000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+
+ vreg_l7m_2p9: ldo7 {
+ regulator-name = "vreg_l7m_2p9";
+ regulator-min-microvolt = <2912000>;
+ regulator-max-microvolt = <2912000>;
+ regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+ };
+ };
};
&iris {
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v3 1/3] arm64: dts: qcom: hamoa-iot-som: Add pm8010 camera PMIC regulators
2026-12-01 3:26 ` [PATCH v3 1/3] arm64: dts: qcom: hamoa-iot-som: Add pm8010 camera PMIC regulators Wenmeng Liu
@ 2026-12-02 9:55 ` Konrad Dybcio
0 siblings, 0 replies; 7+ messages in thread
From: Konrad Dybcio @ 2026-12-02 9:55 UTC (permalink / raw)
To: Wenmeng Liu, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bryan O'Donoghue,
Tingguo Cheng
On 12/1/26 4:26 AM, Wenmeng Liu wrote:
> From: Tingguo Cheng <tingguo.cheng@oss.qualcomm.com>
>
> Add the PM8010 PMIC providing the following voltage rails:
>
> - vreg_l1m_1p1 @ 1v1 camera core (DVDD)
> - vreg_l2m_1p15 @ 1v15 camera core (DVDD)
> - vreg_l3m_1p8 @ 1v8 camera analog/IO (AVDD2, DOVDD)
> - vreg_l4m_1p8 @ 1v8 camera IO (DOVDD)
> - vreg_l5m_3p0 @ 3v0 camera VCM
> - vreg_l6m_1p8 @ 1v8 camera analog (AVDD2)
> - vreg_l7m_2p9 @ 2v9 camera analog (AVDD)
>
> Signed-off-by: Tingguo Cheng <tingguo.cheng@oss.qualcomm.com>
> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 2/3] arm64: dts: qcom: hamoa-iot-evk: Add camera 3.3V regulator and CAM1 pinctrl
2026-12-01 3:26 [PATCH v3 0/3] Add Hamoa EVK IMX577 camera sensor support Wenmeng Liu
2026-12-01 3:26 ` [PATCH v3 1/3] arm64: dts: qcom: hamoa-iot-som: Add pm8010 camera PMIC regulators Wenmeng Liu
@ 2026-12-01 3:26 ` Wenmeng Liu
2026-12-02 10:01 ` Konrad Dybcio
2026-12-01 3:26 ` [PATCH v3 3/3] arm64: dts: qcom: hamoa-iot-evk-camera-imx577: Add DT overlay Wenmeng Liu
2 siblings, 1 reply; 7+ messages in thread
From: Wenmeng Liu @ 2026-12-01 3:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bryan O'Donoghue,
Wenmeng Liu
The Hamoa IoT EVK provides a 3.3V supply for the CAM1 connector, switched
by TLMM GPIO19. Describe it as a fixed regulator together with its enable
pin state, and add the CAM1 MCLK and reset pin states, so that camera
module overlays can reference them.
Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts | 38 ++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts
index 484cb9ee18a22540561d1320f6921db37b849312..821d1960de6089833874419334297c0913650855 100644
--- a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts
+++ b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts
@@ -221,6 +221,21 @@ pmic_glink_ss2_con_sbu_in: endpoint {
};
};
+ vreg_cam1_3p3: regulator-cam1-3p3 {
+ compatible = "regulator-fixed";
+
+ regulator-name = "VREG_CAM1_3P3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ startup-delay-us = <1000>;
+
+ gpio = <&tlmm 19 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+
+ pinctrl-0 = <&cam1_reg_en>;
+ pinctrl-names = "default";
+ };
+
vreg_nvme: regulator-nvme {
compatible = "regulator-fixed";
@@ -1249,6 +1264,29 @@ right_tweeter: speaker@0,1 {
};
&tlmm {
+ cam1_default: cam1-default-state {
+ mclk-pins {
+ pins = "gpio97";
+ function = "cam_mclk";
+ drive-strength = <16>;
+ bias-disable;
+ };
+
+ reset-n-pins {
+ pins = "gpio110";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+ };
+
+ cam1_reg_en: cam1-reg-en-state {
+ pins = "gpio19";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
ec_int_n_default: ec-int-n-state {
pins = "gpio66";
function = "gpio";
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v3 2/3] arm64: dts: qcom: hamoa-iot-evk: Add camera 3.3V regulator and CAM1 pinctrl
2026-12-01 3:26 ` [PATCH v3 2/3] arm64: dts: qcom: hamoa-iot-evk: Add camera 3.3V regulator and CAM1 pinctrl Wenmeng Liu
@ 2026-12-02 10:01 ` Konrad Dybcio
2026-12-02 10:15 ` Wenmeng Liu
0 siblings, 1 reply; 7+ messages in thread
From: Konrad Dybcio @ 2026-12-02 10:01 UTC (permalink / raw)
To: Wenmeng Liu, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bryan O'Donoghue
On 12/1/26 4:26 AM, Wenmeng Liu wrote:
> The Hamoa IoT EVK provides a 3.3V supply for the CAM1 connector, switched
> by TLMM GPIO19. Describe it as a fixed regulator together with its enable
> pin state, and add the CAM1 MCLK and reset pin states, so that camera
> module overlays can reference them.
>
> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
> ---
[...]
> @@ -1249,6 +1264,29 @@ right_tweeter: speaker@0,1 {
> };
>
> &tlmm {
> + cam1_default: cam1-default-state {
> + mclk-pins {
> + pins = "gpio97";
> + function = "cam_mclk";
> + drive-strength = <16>;
> + bias-disable;
> + };
This definition belongs in the SoC DTSI, vide
fd3850cde71f ("arm64: dts: qcom: talos: Add camera MCLK pinctrl")
And please keep the entries sorted by the pin idx
Konrad
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v3 2/3] arm64: dts: qcom: hamoa-iot-evk: Add camera 3.3V regulator and CAM1 pinctrl
2026-12-02 10:01 ` Konrad Dybcio
@ 2026-12-02 10:15 ` Wenmeng Liu
0 siblings, 0 replies; 7+ messages in thread
From: Wenmeng Liu @ 2026-12-02 10:15 UTC (permalink / raw)
To: Konrad Dybcio, Bjorn Andersson, Konrad Dybcio, Abel Vesa,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bryan O'Donoghue
On 12/2/2026 6:01 PM, Konrad Dybcio wrote:
> On 12/1/26 4:26 AM, Wenmeng Liu wrote:
>> The Hamoa IoT EVK provides a 3.3V supply for the CAM1 connector, switched
>> by TLMM GPIO19. Describe it as a fixed regulator together with its enable
>> pin state, and add the CAM1 MCLK and reset pin states, so that camera
>> module overlays can reference them.
>>
>> Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
>> ---
>
> [...]
>
>> @@ -1249,6 +1264,29 @@ right_tweeter: speaker@0,1 {
>> };
>>
>> &tlmm {
>> + cam1_default: cam1-default-state {
>> + mclk-pins {
>> + pins = "gpio97";
>> + function = "cam_mclk";
>> + drive-strength = <16>;
>> + bias-disable;
>> + };
>
> This definition belongs in the SoC DTSI, vide
>
> fd3850cde71f ("arm64: dts: qcom: talos: Add camera MCLK pinctrl")
>
> And please keep the entries sorted by the pin idx
>
> Konrad
Yes, I did it that way in the previous version. In this version, I
changed it to follow the convention used by the dependent series.
Anyway, I'll update it in the next version.
Thanks,
Wenmeng
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v3 3/3] arm64: dts: qcom: hamoa-iot-evk-camera-imx577: Add DT overlay
2026-12-01 3:26 [PATCH v3 0/3] Add Hamoa EVK IMX577 camera sensor support Wenmeng Liu
2026-12-01 3:26 ` [PATCH v3 1/3] arm64: dts: qcom: hamoa-iot-som: Add pm8010 camera PMIC regulators Wenmeng Liu
2026-12-01 3:26 ` [PATCH v3 2/3] arm64: dts: qcom: hamoa-iot-evk: Add camera 3.3V regulator and CAM1 pinctrl Wenmeng Liu
@ 2026-12-01 3:26 ` Wenmeng Liu
2 siblings, 0 replies; 7+ messages in thread
From: Wenmeng Liu @ 2026-12-01 3:26 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Bryan O'Donoghue,
Wenmeng Liu
Enable IMX577 via CCI0 on Hamoa IoT EVK.
The Hamoa IoT EVK board does not include a camera sensor by default.
Add a DT overlay for the optional Arducam 12.3MP IMX577 Mini Camera
Module, connected to CSIPHY1 over a 4-lane MIPI CSI-2 D-PHY link,
clocked from MCLK1 and powered from the CAM1 3.3V supply.
Signed-off-by: Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/Makefile | 3 +
.../boot/dts/qcom/hamoa-iot-evk-camera-imx577.dtso | 76 ++++++++++++++++++++++
2 files changed, 79 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 19310879349d0d9292bd48e5da54d9938ec92deb..42de869a7ae2434398c71fe65a54cac84b5c7bc4 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -33,6 +33,9 @@ hamoa-advantech-som-db5830-el2-dtbs := hamoa-advantech-som-db5830.dtb x1-el2.dtb
dtb-$(CONFIG_ARCH_QCOM) += hamoa-advantech-som-db5830-el2.dtb
dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk.dtb
+hamoa-iot-evk-camera-imx577-dtbs := hamoa-iot-evk.dtb hamoa-iot-evk-camera-imx577.dtbo
+dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk-camera-imx577.dtb
+
hamoa-iot-evk-edp-dtbs := hamoa-iot-evk.dtb hamoa-iot-evk-edp.dtbo
dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk-edp.dtb
diff --git a/arch/arm64/boot/dts/qcom/hamoa-iot-evk-camera-imx577.dtso b/arch/arm64/boot/dts/qcom/hamoa-iot-evk-camera-imx577.dtso
new file mode 100644
index 0000000000000000000000000000000000000000..f490e4cb2e6d422d3d2b42b4a6c532ef5cd418f6
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/hamoa-iot-evk-camera-imx577.dtso
@@ -0,0 +1,76 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/clock/qcom,x1e80100-camcc.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/media/video-interfaces.h>
+
+&camss {
+ status = "okay";
+};
+
+&camss_csiphy1_in_port {
+ camss_csiphy1_ep: endpoint {
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&csiphy1_out_ep>;
+ };
+};
+
+&cci0 {
+ status = "okay";
+};
+
+&cci0_i2c1 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ camera@1a {
+ compatible = "sony,imx577";
+ reg = <0x1a>;
+
+ reset-gpios = <&tlmm 110 GPIO_ACTIVE_LOW>;
+ pinctrl-0 = <&cam1_default>;
+ pinctrl-names = "default";
+
+ clocks = <&camcc CAM_CC_MCLK1_CLK>;
+ assigned-clocks = <&camcc CAM_CC_MCLK1_CLK>;
+ assigned-clock-rates = <24000000>;
+
+ avdd-supply = <&vreg_cam1_3p3>;
+ dovdd-supply = <&vreg_l4m_1p8>;
+
+ port {
+ imx577_ep: endpoint {
+ link-frequencies = /bits/ 64 <600000000>;
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&csiphy1_in_ep>;
+ };
+ };
+ };
+};
+
+&csiphy1 {
+ vdda-0p9-supply = <&vreg_l2c_0p8>;
+ vdda-1p2-supply = <&vreg_l1c_1p2>;
+
+ status = "okay";
+};
+
+&csiphy1_in_port {
+ csiphy1_in_ep: endpoint {
+ bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
+ data-lanes = <1 2 3 4>;
+ remote-endpoint = <&imx577_ep>;
+ };
+};
+
+&csiphy1_out_port {
+ csiphy1_out_ep: endpoint {
+ remote-endpoint = <&camss_csiphy1_ep>;
+ };
+};
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread