* [PATCH v6 0/3] arm64: dts: qcom: msm8953: enable CAMSS and front camera on Xiaomi Mi A1
@ 2026-12-04 13:49 Hikmah Gumelar
2026-12-04 13:49 ` [PATCH v6 1/3] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Hikmah Gumelar @ 2026-12-04 13:49 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Bryan O'Donoghue, Barnabás Czémán,
Tuan Kiet Huynh, linux-arm-msm, linux-clk, linux-media,
linux-kernel, devicetree, Hikmah Gumelar
This series enables the Camera Subsystem (CAMSS) on the Qualcomm MSM8953
SoC and wires up the Samsung S5K5E8 front-facing camera sensor on the
Xiaomi Mi A1 (tissot).
Patch 1 fixes the 100 MHz clock source configuration for
csi_phytimer_clk_src in gcc-msm8953 so that gcc_camss_csi0phytimer_clk
can be properly enabled.
Patch 2 adds the CAMSS node and MCLK0/1/2 pinctrl states to the base
MSM8953 SoC Devicetree.
Patch 3 enables CAMSS, CCI, CSIPHY2, and the Samsung S5K5E8 front sensor
on the Xiaomi Mi A1 board Devicetree.
Depends-on: https://lore.kernel.org/all/20261201110235.3327189-1-huynhtuankiet33@gmail.com/
Changes in v6:
- Drop the S5K5E8 sensor binding/driver patches in favor of Tuan Kiet
Huynh's Samsung S5K5E8 series, and split out the OV12A10 rear camera
into a separate follow-up series as suggested by Bryan O'Donoghue.
- Refined commit messages for gcc-msm8953 and msm8953-xiaomi-tissot
based on feedback from Bryan O'Donoghue and Konrad Dybcio.
- Wrapped commit message lines to adhere to the 72-character limit.
- Link to v5: https://lore.kernel.org/r/20261127134507.125513-1-hikmahgumelar@gmail.com/
Changes in v5:
- msm8953-xiaomi-tissot.dts: Move vdd_l23-supply inside the regulators
child node under &rpm_requests.
- Link to v4: https://lore.kernel.org/r/20261125123146.379057-1-hikmahgumelar@gmail.com/
Changes in v4:
- Wrap commit descriptions at 72 characters (Konrad Dybcio).
- Keep CAMSS CSIPHY0/CSIPHY2 data-lanes 0-based (<0 1 2 3> and <0 1>) to
match legacy_phy lane_base = 0 in camss_parse_endpoint_node().
- Add vdd_l23-supply = <&pm8953_s3> under &rpm_requests and specify
assigned-clocks / assigned-clock-rates (<24000000>).
- Link to v3: https://lore.kernel.org/r/20261123152722.168879-1-hikmahgumelar@gmail.com/
Changes in v3:
- Add Fixes trailer to clk: qcom: gcc-msm8953 commit.
- Drop undocumented interconnects from camss@1b00020 and sort nodes/pins.
- Link to v2: https://lore.kernel.org/r/20261123123546.152162-1-hikmahgumelar@gmail.com/
Changes in v2:
- Rebased onto linux-media/media-committers.git next branch.
- Added MSM8953 SoC CAMSS node and MCLK pinctrl states to msm8953.dtsi.
- Link to v1: https://lore.kernel.org/r/20261123110805.119610-1-hikmahgumelar@gmail.com/
Signed-off-by: Hikmah Gumelar <hikmahgumelar@gmail.com>
---
Hikmah Gumelar (3):
clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent
arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states
arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera
arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts | 59 +++++++++
arch/arm64/boot/dts/qcom/msm8953.dtsi | 145 +++++++++++++++++++++
drivers/clk/qcom/gcc-msm8953.c | 2 +-
3 files changed, 205 insertions(+), 1 deletion(-)
---
base-commit: b7ac871daee981f1963f632586ff9b9d898ce5dd
change-id: 20261204-xiaomi-tissot-lkml-v6-92b95e977c4c
Best regards,
--
Hikmah Gumelar <hikmahgumelar@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH v6 1/3] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent 2026-12-04 13:49 [PATCH v6 0/3] arm64: dts: qcom: msm8953: enable CAMSS and front camera on Xiaomi Mi A1 Hikmah Gumelar @ 2026-12-04 13:49 ` Hikmah Gumelar 2026-12-04 13:49 ` [PATCH v6 2/3] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar 2026-12-04 13:49 ` [PATCH v6 3/3] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera Hikmah Gumelar 2 siblings, 0 replies; 6+ messages in thread From: Hikmah Gumelar @ 2026-12-04 13:49 UTC (permalink / raw) To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney, Jerome Brunet, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: Bryan O'Donoghue, Barnabás Czémán, Tuan Kiet Huynh, linux-arm-msm, linux-clk, linux-media, linux-kernel, devicetree, Hikmah Gumelar The 100 MHz entry in ftbl_csi_phytimer_clk_src selects P_GPLL0_DIV2 with a divider of 4, leaving gcc_camss_csi0phytimer_clk stuck off on MSM8953 platforms. Switch the 100 MHz parent to P_GPLL0 with a divider of 8 (800 MHz / 8 = 100 MHz), matching the downstream MSM8953 GCC clock table and verified on MSM8953 hardware with CAMSS CSIPHY enabled. Fixes: 9bb6cfc3c77e ("clk: qcom: Add Global Clock Controller driver for MSM8953") Signed-off-by: Hikmah Gumelar <hikmahgumelar@gmail.com> --- drivers/clk/qcom/gcc-msm8953.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-msm8953.c b/drivers/clk/qcom/gcc-msm8953.c index 8fe1d3e421440c42e50fdee1ccfc8cc91794707e..8aec5600e8375752a7882f15fb978bad5309da28 100644 --- a/drivers/clk/qcom/gcc-msm8953.c +++ b/drivers/clk/qcom/gcc-msm8953.c @@ -964,7 +964,7 @@ static struct clk_rcg2 csi2p_clk_src = { }; static const struct freq_tbl ftbl_csi_phytimer_clk_src[] = { - F(100000000, P_GPLL0_DIV2, 4, 0, 0), + F(100000000, P_GPLL0, 8, 0, 0), F(200000000, P_GPLL0, 4, 0, 0), F(266670000, P_GPLL0, 3, 0, 0), { } -- 2.47.3 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v6 2/3] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states 2026-12-04 13:49 [PATCH v6 0/3] arm64: dts: qcom: msm8953: enable CAMSS and front camera on Xiaomi Mi A1 Hikmah Gumelar 2026-12-04 13:49 ` [PATCH v6 1/3] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar @ 2026-12-04 13:49 ` Hikmah Gumelar 2026-12-04 14:11 ` sashiko-bot 2026-12-04 13:49 ` [PATCH v6 3/3] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera Hikmah Gumelar 2 siblings, 1 reply; 6+ messages in thread From: Hikmah Gumelar @ 2026-12-04 13:49 UTC (permalink / raw) To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney, Jerome Brunet, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: Bryan O'Donoghue, Barnabás Czémán, Tuan Kiet Huynh, linux-arm-msm, linux-clk, linux-media, linux-kernel, devicetree, Hikmah Gumelar Add the camera subsystem (CAMSS) node and MCLK0/1/2 pin control states to the Qualcomm MSM8953 SoC Devicetree. Signed-off-by: Hikmah Gumelar <hikmahgumelar@gmail.com> --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 145 ++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 753167c3f861903dfe6168ea672b8e487f7e6813..396472ba8f2805696f44d280873e699e7ca10c8e 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -753,6 +753,27 @@ i2c_6_sleep: i2c-6-sleep-state { bias-disable; }; + camss_mclk0_default: camss-mclk0-default-state { + pins = "gpio26"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + camss_mclk1_default: camss-mclk1-default-state { + pins = "gpio27"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + + camss_mclk2_default: camss-mclk2-default-state { + pins = "gpio28"; + function = "cam_mclk"; + drive-strength = <2>; + bias-disable; + }; + cci0_default: cci0-default-state { pins = "gpio29", "gpio30"; function = "cci_i2c"; @@ -1214,6 +1235,130 @@ mdss_dsi1_phy: phy@1a96400 { }; }; + camss: camss@1b00020 { + compatible = "qcom,msm8953-camss"; + + reg = <0x1b00020 0x10>, + <0x1b30000 0x100>, + <0x1b30400 0x100>, + <0x1b30800 0x100>, + <0x1b34000 0x1000>, + <0x1b00030 0x4>, + <0x1b35000 0x1000>, + <0x1b00038 0x4>, + <0x1b36000 0x1000>, + <0x1b00040 0x4>, + <0x1b31000 0x500>, + <0x1b10000 0x1000>, + <0x1b14000 0x1000>; + reg-names = "csi_clk_mux", + "csid0", + "csid1", + "csid2", + "csiphy0", + "csiphy0_clk_mux", + "csiphy1", + "csiphy1_clk_mux", + "csiphy2", + "csiphy2_clk_mux", + "ispif", + "vfe0", + "vfe1"; + + clocks = <&gcc GCC_CAMSS_AHB_CLK>, + <&gcc GCC_CAMSS_CSI0_CLK>, + <&gcc GCC_CAMSS_CSI0_AHB_CLK>, + <&gcc GCC_CAMSS_CSI0PHY_CLK>, + <&gcc GCC_CAMSS_CSI0PIX_CLK>, + <&gcc GCC_CAMSS_CSI0RDI_CLK>, + <&gcc GCC_CAMSS_CSI1_CLK>, + <&gcc GCC_CAMSS_CSI1_AHB_CLK>, + <&gcc GCC_CAMSS_CSI1PHY_CLK>, + <&gcc GCC_CAMSS_CSI1PIX_CLK>, + <&gcc GCC_CAMSS_CSI1RDI_CLK>, + <&gcc GCC_CAMSS_CSI2_CLK>, + <&gcc GCC_CAMSS_CSI2_AHB_CLK>, + <&gcc GCC_CAMSS_CSI2PHY_CLK>, + <&gcc GCC_CAMSS_CSI2PIX_CLK>, + <&gcc GCC_CAMSS_CSI2RDI_CLK>, + <&gcc GCC_CAMSS_CSI_VFE0_CLK>, + <&gcc GCC_CAMSS_CSI_VFE1_CLK>, + <&gcc GCC_CAMSS_CSI0PHYTIMER_CLK>, + <&gcc GCC_CAMSS_CSI1PHYTIMER_CLK>, + <&gcc GCC_CAMSS_CSI2PHYTIMER_CLK>, + <&gcc GCC_CAMSS_ISPIF_AHB_CLK>, + <&gcc GCC_CAMSS_MICRO_AHB_CLK>, + <&gcc GCC_CAMSS_TOP_AHB_CLK>, + <&gcc GCC_CAMSS_VFE0_CLK>, + <&gcc GCC_CAMSS_VFE0_AHB_CLK>, + <&gcc GCC_CAMSS_VFE0_AXI_CLK>, + <&gcc GCC_CAMSS_VFE1_CLK>, + <&gcc GCC_CAMSS_VFE1_AHB_CLK>, + <&gcc GCC_CAMSS_VFE1_AXI_CLK>; + clock-names = "ahb", + "csi0", + "csi0_ahb", + "csi0_phy", + "csi0_pix", + "csi0_rdi", + "csi1", + "csi1_ahb", + "csi1_phy", + "csi1_pix", + "csi1_rdi", + "csi2", + "csi2_ahb", + "csi2_phy", + "csi2_pix", + "csi2_rdi", + "csi_vfe0", + "csi_vfe1", + "csiphy0_timer", + "csiphy1_timer", + "csiphy2_timer", + "ispif_ahb", + "micro_ahb", + "top_ahb", + "vfe0", + "vfe0_ahb", + "vfe0_axi", + "vfe1", + "vfe1_ahb", + "vfe1_axi"; + + interrupts = <GIC_SPI 51 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 52 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 153 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 79 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 315 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 55 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "csid0", + "csid1", + "csid2", + "csiphy0", + "csiphy1", + "csiphy2", + "ispif", + "vfe0", + "vfe1"; + + iommus = <&apps_iommu 0x14>; + + power-domains = <&gcc VFE0_GDSC>, + <&gcc VFE1_GDSC>; + power-domain-names = "vfe0", "vfe1"; + + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + cci: cci@1b0c000 { compatible = "qcom,msm8953-cci"; reg = <0x1b0c000 0x4000>; -- 2.47.3 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v6 2/3] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states 2026-12-04 13:49 ` [PATCH v6 2/3] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar @ 2026-12-04 14:11 ` sashiko-bot 0 siblings, 0 replies; 6+ messages in thread From: sashiko-bot @ 2026-12-04 14:11 UTC (permalink / raw) To: Hikmah Gumelar; +Cc: linux-clk, devicetree, robh, conor+dt, media-ci Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Medium] arm64: dts: qcom: msm8953: missing interconnects on camss node - [Low] arm64: dts: qcom: msm8953: use generic isp node name for camss -- commit 5e164de3dc317513c4b821abff63a8502dcbfa20 Author: Hikmah Gumelar <hikmahgumelar@gmail.com> arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states This commit adds the camera subsystem (CAMSS) node and MCLK0/1/2 pinctrl states to the Qualcomm MSM8953 SoC Devicetree. > diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi > index 753167c3f8619..396472ba8f280 100644 > --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi > +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi [ ... ] > @@ -1214,6 +1235,130 @@ mdss_dsi1_phy: phy@1a96400 { > }; > }; > > + camss: camss@1b00020 { > + compatible = "qcom,msm8953-camss"; [Severity: Low] Should this node use the generic name isp@1b00020 while keeping the camss label? Devicetree conventions prefer generic device class names over vendor-specific IP names, and sibling Qualcomm SoC DTSIs such as msm8939.dtsi use camss: isp@<addr>. [ ... ] > + iommus = <&apps_iommu 0x14>; > + > + power-domains = <&gcc VFE0_GDSC>, > + <&gcc VFE1_GDSC>; > + power-domain-names = "vfe0", "vfe1"; [Severity: Medium] Should this node also specify interconnects and interconnect-names for cam_ahb, cam_vfe0_mem, and cam_vfe1_mem? In drivers/media/platform/qcom/camss/camss.c, icc_res_8x53 requests and votes on those three paths during runtime resume, and msm8953.dtsi already defines the bimc, pcnoc, snoc, and snoc_mm providers. Without them, of_icc_get() returns NULL and icc_set_bw() becomes a silent no-op. Because msm8953_snoc_mm scales bus_2_clk via RPM without keep_alive, bus_2_clk can drop to 0 kHz when other snoc_mm consumers such as mdss are idle, risking VFE DMA stalls, FIFO overflows, or frame drops during camera streaming. Documentation/devicetree/bindings/media/qcom,msm8953-camss.yaml currently sets additionalProperties: false without listing interconnects or interconnect-names, so the binding schema will also need an update alongside the DTS. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261204-xiaomi-tissot-lkml-v6-v6-0-385bf76f42d5@gmail.com?part=2 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v6 3/3] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera 2026-12-04 13:49 [PATCH v6 0/3] arm64: dts: qcom: msm8953: enable CAMSS and front camera on Xiaomi Mi A1 Hikmah Gumelar 2026-12-04 13:49 ` [PATCH v6 1/3] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar 2026-12-04 13:49 ` [PATCH v6 2/3] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar @ 2026-12-04 13:49 ` Hikmah Gumelar 2026-12-04 14:22 ` sashiko-bot 2 siblings, 1 reply; 6+ messages in thread From: Hikmah Gumelar @ 2026-12-04 13:49 UTC (permalink / raw) To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney, Jerome Brunet, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: Bryan O'Donoghue, Barnabás Czémán, Tuan Kiet Huynh, linux-arm-msm, linux-clk, linux-media, linux-kernel, devicetree, Hikmah Gumelar Enable CAMSS, CCI, CSIPHY2 port, and the Samsung S5K5E8 front image sensor on the Xiaomi Mi A1. Signed-off-by: Hikmah Gumelar <hikmahgumelar@gmail.com> --- arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts index fccb9c4360cae545b52fbff06bc5ba024a62da75..3fe1a2486bd132bccbaf18d71dbde93a51cfa2be 100644 --- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts @@ -76,6 +76,57 @@ vph_pwr: vph-pwr-regulator { }; }; +&camss { + vdda-supply = <&pm8953_s3>; + status = "okay"; + + ports { + port@2 { + reg = <2>; + + csiphy2_ep: endpoint { + clock-lanes = <7>; + data-lanes = <0 1>; + remote-endpoint = <&front_cam_ep>; + }; + }; + }; +}; + +&cci { + status = "okay"; +}; + +&cci_i2c1 { + camera@2d { + compatible = "samsung,s5k5e8"; + reg = <0x2d>; + + clocks = <&gcc GCC_CAMSS_MCLK1_CLK>; + assigned-clocks = <&gcc GCC_CAMSS_MCLK1_CLK>; + assigned-clock-rates = <24000000>; + pinctrl-0 = <&cam_sensor_front_default &camss_mclk1_default>; + pinctrl-names = "default"; + + reset-gpios = <&tlmm 129 GPIO_ACTIVE_LOW>; + + vdda-supply = <&pm8953_l22>; + vddd-supply = <&pm8953_l23>; + vddio-supply = <&pm8953_l6>; + + rotation = <90>; + orientation = <0>; + + port { + front_cam_ep: endpoint { + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <420000000>; + remote-endpoint = <&csiphy2_ep>; + }; + }; + }; +}; + &hsusb_phy { vdd-supply = <&pm8953_l3>; vdda-pll-supply = <&pm8953_l7>; @@ -169,6 +220,7 @@ regulators { vdd_l4_l5_l6_l7_l16_l19-supply = <&pm8953_s4>; vdd_l8_l11_l12_l13_l14_l15-supply = <&vph_pwr>; vdd_l9_l10_l17_l18_l22-supply = <&vph_pwr>; + vdd_l23-supply = <&pm8953_s3>; pm8953_s1: s1 { regulator-min-microvolt = <870000>; @@ -302,6 +354,13 @@ gpio_hall_sensor_default: gpio-hall-sensor-state { bias-pull-up; }; + cam_sensor_front_default: cam-sensor-front-default-state { + pins = "gpio129"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + ts_int_default: ts-int-default-state { pins = "gpio65"; function = "gpio"; -- 2.47.3 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v6 3/3] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera 2026-12-04 13:49 ` [PATCH v6 3/3] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera Hikmah Gumelar @ 2026-12-04 14:22 ` sashiko-bot 0 siblings, 0 replies; 6+ messages in thread From: sashiko-bot @ 2026-12-04 14:22 UTC (permalink / raw) To: Hikmah Gumelar; +Cc: linux-clk, devicetree, robh, conor+dt, media-ci Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] arm64: dts: qcom: undocumented samsung,s5k5e8 compatible has no binding/driver - [Low] arm64: dts: qcom: cam-sensor-front-default-state out of order in tlmm -- commit f18c12d8f075b3487fb7999f8805d0890a566a3e Author: Hikmah Gumelar <hikmahgumelar@gmail.com> arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera This commit enables CAMSS, CCI, the CSIPHY2 port, and the Samsung S5K5E8 front camera sensor node on the Xiaomi Mi A1, along with its power supply and reset GPIO pinctrl state. > diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts > index fccb9c4360cae..3fe1a2486bd13 100644 > --- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts > +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts > @@ -76,6 +76,57 @@ vph_pwr: vph-pwr-regulator { > }; > }; > > +&camss { > + vdda-supply = <&pm8953_s3>; > + status = "okay"; > + > + ports { > + port@2 { > + reg = <2>; > + > + csiphy2_ep: endpoint { > + clock-lanes = <7>; > + data-lanes = <0 1>; > + remote-endpoint = <&front_cam_ep>; > + }; > + }; > + }; > +}; > + > +&cci { > + status = "okay"; > +}; > + > +&cci_i2c1 { > + camera@2d { > + compatible = "samsung,s5k5e8"; > + reg = <0x2d>; > + > + clocks = <&gcc GCC_CAMSS_MCLK1_CLK>; > + assigned-clocks = <&gcc GCC_CAMSS_MCLK1_CLK>; > + assigned-clock-rates = <24000000>; > + pinctrl-0 = <&cam_sensor_front_default &camss_mclk1_default>; > + pinctrl-names = "default"; > + > + reset-gpios = <&tlmm 129 GPIO_ACTIVE_LOW>; > + > + vdda-supply = <&pm8953_l22>; > + vddd-supply = <&pm8953_l23>; > + vddio-supply = <&pm8953_l6>; > + > + rotation = <90>; > + orientation = <0>; > + > + port { > + front_cam_ep: endpoint { > + data-lanes = <1 2>; > + link-frequencies = /bits/ 64 <420000000>; > + remote-endpoint = <&csiphy2_ep>; > + }; > + }; > + }; > +}; [Severity: High] Is there a Devicetree binding or in-tree driver for "samsung,s5k5e8"? Searching the tree shows no binding schema under Documentation/devicetree/bindings/ and no V4L2 sensor driver matching "samsung,s5k5e8". Without a binding, make dtbs_check fails on this node and its properties risk diverging from a future upstream binding. At runtime, because &camss port@2 points to front_cam_ep, camss_parse_ports() registers it as an async subdevice on camss->notifier. With no driver binding to camera@2d, camss_subdev_notifier_complete() never runs, leaving CAMSS without media links or /dev/v4l-subdev* nodes. [ ... ] > @@ -302,6 +354,13 @@ gpio_hall_sensor_default: gpio-hall-sensor-state { > bias-pull-up; > }; > > + cam_sensor_front_default: cam-sensor-front-default-state { > + pins = "gpio129"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + }; > + > ts_int_default: ts-int-default-state { > pins = "gpio65"; > function = "gpio"; [Severity: Low] This isn't a bug, but cam-sensor-front-default-state (gpio129) sits between gpio-hall-sensor-state (gpio44) and ts-int-default-state (gpio65), breaking both alphabetical and pins-property ordering from Documentation/devicetree/bindings/dts-coding-style.rst. Moving it before gpio-hall-sensor-state or after ts-int-default-state would keep &tlmm ordered. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261204-xiaomi-tissot-lkml-v6-v6-0-385bf76f42d5@gmail.com?part=3 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-12-04 14:22 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-12-04 13:49 [PATCH v6 0/3] arm64: dts: qcom: msm8953: enable CAMSS and front camera on Xiaomi Mi A1 Hikmah Gumelar 2026-12-04 13:49 ` [PATCH v6 1/3] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar 2026-12-04 13:49 ` [PATCH v6 2/3] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar 2026-12-04 14:11 ` sashiko-bot 2026-12-04 13:49 ` [PATCH v6 3/3] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera Hikmah Gumelar 2026-12-04 14:22 ` sashiko-bot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox