Linux clock framework development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Hikmah Gumelar" <hikmahgumelar@gmail.com>
Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v6 3/3] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front camera
Date: Fri, 04 Dec 2026 14:22:54 +0000	[thread overview]
Message-ID: <sashiko-outbox-249964@kernel.org> (raw)
In-Reply-To: <20261204-xiaomi-tissot-lkml-v6-v6-3-385bf76f42d5@gmail.com>

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

      reply	other threads:[~2026-12-04 14:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-249964@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=hikmahgumelar@gmail.com \
    --cc=linux-clk@vger.kernel.org \
    --cc=media-ci@linuxtv.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox