[PATCH 3/3] arm64: dts: qcom: sm7225-fairphone-fp4: Add Sony IMX576 front camera support
From: Himanshu Bhavani
Date: Wed May 20 2026 - 08:02:08 EST
From: Hardevsinh Palaniya <hardevsinh.palaniya@xxxxxxxxxxxxxxxxx>
Add device tree support for the Sony IMX576 front camera
sensor and connect it to CAMSS via CSIPHY3.
Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@xxxxxxxxxxxxxxxxx>
---
.../boot/dts/qcom/sm7225-fairphone-fp4.dts | 54 +++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
index 3964aae47fd4..5fb0f3eddf66 100644
--- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
+++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts
@@ -17,6 +17,7 @@
#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
+#include <dt-bindings/media/video-interfaces.h>
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
#include <dt-bindings/sound/qcom,q6asm.h>
@@ -547,6 +548,24 @@ vreg_bob: bob {
};
};
+&camss {
+
+ vdd-csiphy3-0p9-supply = <&vreg_l18a>;
+ vdd-csiphy3-1p25-supply = <&vreg_l22a>;
+
+ status = "okay";
+
+ ports {
+ port@3 {
+ csiphy3_ep: endpoint {
+ data-lanes = <0 1 2 3>;
+ bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
+ remote-endpoint = <&camera_imx576_ep>;
+ };
+ };
+ };
+};
+
&cci0 {
status = "okay";
};
@@ -582,6 +601,34 @@ &cci1 {
&cci1_i2c0 {
/* Front cam (Sony IMX576) @ 0x10 */
+ camera@10 {
+ compatible = "sony,imx576";
+ reg = <0x10>;
+
+ avdd-supply = <&vreg_l3p>;
+ dovdd-supply = <&vreg_32m_cam_dvdd_1p05>;
+ dvdd-supply = <&vreg_l6p>;
+
+ clocks = <&camcc CAMCC_MCLK1_CLK>;
+ assigned-clocks = <&camcc CAMCC_MCLK1_CLK>;
+ assigned-clock-rates = <24000000>;
+
+ reset-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
+ pinctrl-0 = <&cam_mclk1_default>;
+ pinctrl-names = "default";
+
+ orientation = <0>;
+ rotation = <90>;
+
+ port {
+ camera_imx576_ep: endpoint {
+ data-lanes = <1 2 3 4>;
+ bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
+ link-frequencies = /bits/ 64 <600000000>;
+ remote-endpoint = <&csiphy3_ep>;
+ };
+ };
+ };
eeprom@50 {
compatible = "giantec,gt24p64a", "atmel,24c64";
@@ -1115,6 +1162,13 @@ platform {
&tlmm {
gpio-reserved-ranges = <13 4>, <56 2>;
+ cam_mclk1_default: cam-mclk1-default-state {
+ pins = "gpio30";
+ function = "cam_mclk1";
+ drive-strength = <2>;
+ bias-disable;
+ };
+
qup_uart1_sleep_cts: qup-uart1-sleep-cts-state {
pins = "gpio61";
function = "gpio";
--
2.34.1