mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Add Hamoa EVK IMX577 camera sensor support
@ 2026-12-01  3:26 Wenmeng Liu
  2026-12-01  3:26 ` [PATCH v3 1/3] arm64: dts: qcom: hamoa-iot-som: Add pm8010 camera PMIC regulators Wenmeng Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ 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

Hamoa EVK is based on the Qualcomm X1E80100 SoC.
This series enables the IMX577 sensor via CSIPHY1 through device tree overlay.

We have tested IMX577 Sensor with following commands:
- media-ctl -d /dev/media0 --reset
- media-ctl -d /dev/media0 -V '"imx577 1-001a":0[fmt:SRGGB10/4056x3040 field:none]'
- media-ctl -d /dev/media0 -V '"msm_csiphy1":0[fmt:SRGGB10/4056x3040]'
- media-ctl -d /dev/media0 -V '"msm_csid0":0[fmt:SRGGB10/4056x3040]'
- media-ctl -d /dev/media0 -V '"msm_vfe0_rdi0":0[fmt:SRGGB10/4056x3040]'
- media-ctl -d /dev/media0 -l '"msm_csiphy1":1->"msm_csid0":0[1]'
- media-ctl -d /dev/media0 -l '"msm_csid0":1->"msm_vfe0_rdi0":0[1]'
- yavta -B capture-mplane -n 5 -f SRGGB10P -s 4056x3040 -F /dev/video0 --capture=5

This series depends on the Hamoa CAMSS base node patch series submitted by Bryan:
https://lore.kernel.org/all/20261127-x1e-camss-csi2-phy-dtsi-v8-0-2793b8e5138c@kernel.org/

---
Changes in v3:
- Rebased on Bryan's DTS changes.
- Added the missing PMIC information. -- Konrad
- Split the board regulator/pinctrl out of the overlay patch.
- Rename regulator node to regulator-cam1-3p3, regulator-name to VREG_CAM1_3P3.
- Link to v2: https://lore.kernel.org/all/20260508-hamoa_evk-v2-0-3ebdca3e4ae2@oss.qualcomm.com/

Changes in v2:
- Drop src clk.
- Fix typo. -- Konrad
- Port the code from Bryan's IOMMU, CCI, and CAMSS.
- Add mclk define.
- Use the unrefactored csiphy.
- Link to v1: https://lore.kernel.org/r/20260227-hamoa_evk-v1-0-36f895a24d8f@oss.qualcomm.com

---
Tingguo Cheng (1):
      arm64: dts: qcom: hamoa-iot-som: Add pm8010 camera PMIC regulators

Wenmeng Liu (2):
      arm64: dts: qcom: hamoa-iot-evk: Add camera 3.3V regulator and CAM1 pinctrl
      arm64: dts: qcom: hamoa-iot-evk-camera-imx577: Add DT overlay

 arch/arm64/boot/dts/qcom/Makefile                  |  3 +
 .../boot/dts/qcom/hamoa-iot-evk-camera-imx577.dtso | 76 ++++++++++++++++++++++
 arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts         | 38 +++++++++++
 arch/arm64/boot/dts/qcom/hamoa-iot-som.dtsi        | 61 +++++++++++++++++
 4 files changed, 178 insertions(+)
---
base-commit: 7922eb284658942bd2414df2536cadb2a1d7831d
change-id: 20260227-hamoa_evk-2455daf43d86
prerequisite-change-id: 20260226-x1e-camss-csi2-phy-dtsi-52c85c0d4da8:v8
prerequisite-patch-id: a12186bafac9b287c19fd719aeceb8ff1372dfbf
prerequisite-patch-id: 4bc923fa59ee4c1ff68e64497f11e937c0ab3918
prerequisite-patch-id: 4d000086386a3b344b1d6d345ab93d9b2b569615
prerequisite-patch-id: 9105134cc6794ab83dfd1c22126445e38a812e21
prerequisite-patch-id: 1f22ff7fc93d0135e8759d45955bf998b037e11e
prerequisite-patch-id: edb32e32f2b6be0b93f66d8da460c9f9de0c52e2
prerequisite-patch-id: 09444936808e801a58c83356c9ae95415bacc83a
prerequisite-patch-id: 348caa9cd0d1d70f181a47b40e2d75e8b25b5938
prerequisite-patch-id: aa5e4fda701dd8af0c5f9e9ae9f39771ceee87c9
prerequisite-patch-id: deedbed2643ca8a0f26bd87175d787d2f0c87417

Best regards,
-- 
Wenmeng Liu <wenmeng.liu@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [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-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, 0 replies; 4+ 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	[flat|nested] 4+ 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-01  3:26 ` [PATCH v3 3/3] arm64: dts: qcom: hamoa-iot-evk-camera-imx577: Add DT overlay Wenmeng Liu
  2 siblings, 0 replies; 4+ 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	[flat|nested] 4+ 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; 4+ 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	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-01  3:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH v3 3/3] arm64: dts: qcom: hamoa-iot-evk-camera-imx577: Add DT overlay Wenmeng Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®