From: sashiko-bot@kernel.org
To: "Hikmah Gumelar" <hikmahgumelar@gmail.com>
Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org
Subject: Re: [PATCH v2 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras
Date: Mon, 23 Nov 2026 12:52:04 +0000 [thread overview]
Message-ID: <sashiko-outbox-229269@kernel.org> (raw)
In-Reply-To: <20261123123546.152162-8-hikmahgumelar@gmail.com>
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Low] arm64: dts: qcom: tissot: redundant pm8953_l2 and pm8953_l23
overrides
- [Low] arm64: dts: qcom: tissot: sensor MCLK and unused MCLK2 pinctrl
on cci node
- [Low] arm64: dts: qcom: tissot: non-generic camera node names and
unsorted nodes
--
commit 32dade37fcf383efdbda253ebb3dd130e1b41698
Author: Hikmah Gumelar <hikmahgumelar@gmail.com>
arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras
This commit enables the CAMSS, CCI, CSIPHY0/CSIPHY2 ports, and the
OmniVision OV12A10 rear and Samsung S5K5E8 front camera sensors in the
Xiaomi Mi A1 device tree.
> diff --git a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
> index fccb9c4360cae..5d4fd7f420420 100644
> --- a/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8953-xiaomi-tissot.dts
> @@ -308,6 +308,20 @@ ts_int_default: ts-int-default-state {
> drive-strength = <2>;
> bias-pull-up;
> };
> +
> + cam_sensor_rear_default: cam-sensor-rear-default-state {
> + pins = "gpio33", "gpio39", "gpio62";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> +
> + cam_sensor_front_default: cam-sensor-front-default-state {
> + pins = "gpio129";
> + function = "gpio";
> + bias-disable;
> + drive-strength = <2>;
> + };
> };
>
> &uart_0 {
> @@ -325,3 +339,103 @@ &usb3_dwc3 {
> /delete-property/ usb-role-switch;
> dr_mode = "peripheral";
> };
> +
> +&camss {
> + status = "okay";
> + vdda-supply = <&pm8953_s3>;
> +
> + ports {
> + port@0 {
> + reg = <0>;
> + csiphy0_ep: endpoint {
> + clock-lanes = <7>;
> + data-lanes = <0 1 2 3>;
> + remote-endpoint = <&rear_cam_ep>;
> + };
> + };
> +
> + port@2 {
> + reg = <2>;
> + csiphy2_ep: endpoint {
> + clock-lanes = <7>;
> + data-lanes = <0 1>;
> + remote-endpoint = <&front_cam_ep>;
> + };
> + };
> + };
> +};
> +
> +&cci {
> + pinctrl-names = "default";
> + pinctrl-0 = <&cci0_default>,
> + <&cci1_default>,
> + <&camss_mclk0_default>,
> + <&camss_mclk1_default>,
> + <&camss_mclk2_default>;
> +
> + status = "okay";
> +};
[Severity: Low]
Should camss_mclk0_default and camss_mclk1_default be attached to their
respective camera sensor nodes instead of &cci, and camss_mclk2_default be
dropped?
The CCI node in msm8953.dtsi already configures cci0_default and
cci1_default, while GCC_CAMSS_MCLK0_CLK and GCC_CAMSS_MCLK1_CLK belong to
the rear and front sensors and MCLK2 (gpio28) is unused on this board.
Putting the MCLK pinctrl states on &cci ties sensor clock pin muxing to the
I2C controller and claims an unused pin, whereas &cci only needs
status = "okay".
> +
> +&cci_i2c0 {
> + camera-sensor@10 {
> + compatible = "ovti,ov12a10";
> + reg = <0x10>;
> + clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
> + pinctrl-0 = <&cam_sensor_rear_default>;
> + pinctrl-names = "default";
> + reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
> + pwdn-gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
> + vana-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
> + avdd-supply = <&pm8953_l22>;
> + dvdd-supply = <&pm8953_l2>;
> + dovdd-supply = <&pm8953_l6>;
> + rotation = <270>;
> + orientation = <1>;
> + status = "okay";
> + port {
> + rear_cam_ep: endpoint {
> + data-lanes = <0 1 2 3>;
> + remote-endpoint = <&csiphy0_ep>;
> + link-frequencies = /bits/ 64 <216000000>;
> + };
> + };
> + };
> +};
> +
> +&cci_i2c1 {
> + camera-sensor@2d {
> + compatible = "samsung,s5k5e8";
> + reg = <0x2d>;
> +
> + clocks = <&gcc GCC_CAMSS_MCLK1_CLK>;
> + pinctrl-0 = <&cam_sensor_front_default>;
> + pinctrl-names = "default";
> +
> + reset-gpios = <&tlmm 129 GPIO_ACTIVE_LOW>;
> +
> + avdd-supply = <&pm8953_l22>;
> + dvdd-supply = <&pm8953_l23>;
> + dovdd-supply = <&pm8953_l6>;
> + rotation = <90>;
> + orientation = <0>;
> +
> + status = "okay";
> +
> + port {
> + front_cam_ep: endpoint {
> + data-lanes = <0 1>;
> + remote-endpoint = <&csiphy2_ep>;
> + link-frequencies = /bits/ 64 <418000000>;
> + };
> + };
> + };
> +};
[Severity: Low]
This isn't a bug, but the Devicetree specification and Qualcomm DTS style
use generic camera@10 and camera@2d node names rather than
camera-sensor@10 and camera-sensor@2d.
Also, status = "okay" is redundant on new board-level child nodes, and the
new &camss, &cci, &cci_i2c0, &cci_i2c1 references and &tlmm pinctrl states
are appended at the end rather than kept in alphabetical order with the
rest of this file.
> +
> +&pm8953_l23 {
> + regulator-min-microvolt = <1200000>;
> +};
> +
> +&pm8953_l2 {
> + regulator-min-microvolt = <1200000>;
> + regulator-max-microvolt = <1225000>;
> +};
[Severity: Low]
Are these &pm8953_l23 and &pm8953_l2 overrides redundant? Both regulators
are already defined earlier in this file under &rpm_requests with
regulator-min-microvolt = <1200000> and regulator-max-microvolt = <1225000>.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123123546.152162-1-hikmahgumelar@gmail.com?part=7
next prev parent reply other threads:[~2026-11-23 12:52 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 11:07 [PATCH 0/6] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 1/6] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 2/6] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 15:11 ` Rob Herring (Arm)
2026-11-23 11:08 ` [PATCH 3/6] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 4/6] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 5/6] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 11:08 ` [PATCH 6/6] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 12:35 ` [PATCH v2 0/7] " Hikmah Gumelar
2026-11-23 12:35 ` [PATCH v2 1/7] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 12:42 ` sashiko-bot
2026-11-23 12:35 ` [PATCH v2 2/7] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 12:43 ` sashiko-bot
2026-11-23 15:11 ` Rob Herring (Arm)
2026-11-23 12:35 ` [PATCH v2 3/7] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 12:52 ` sashiko-bot
2026-11-23 13:56 ` Uwe Kleine-König
2026-11-23 14:14 ` Hikmah Gumelar
2026-11-23 12:35 ` [PATCH v2 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 12:45 ` sashiko-bot
2026-11-23 15:11 ` Rob Herring (Arm)
2026-11-23 12:35 ` [PATCH v2 5/7] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 12:57 ` sashiko-bot
2026-11-23 12:35 ` [PATCH v2 6/7] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar
2026-11-23 12:49 ` sashiko-bot
2026-11-23 12:35 ` [PATCH v2 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 12:52 ` sashiko-bot [this message]
2026-11-23 15:27 ` [PATCH v3 0/7] " Hikmah Gumelar
2026-11-23 15:27 ` [PATCH v3 1/7] clk: qcom: gcc-msm8953: fix csi_phytimer_clk_src 100MHz parent Hikmah Gumelar
2026-11-23 19:18 ` Abel Vesa
2026-11-23 15:27 ` [PATCH v3 2/7] media: dt-bindings: media: i2c: add Samsung S5K5E8 Hikmah Gumelar
2026-11-23 17:25 ` Konrad Dybcio
2026-11-23 15:27 ` [PATCH v3 3/7] media: i2c: add s5k5e8 image sensor driver Hikmah Gumelar
2026-11-23 15:53 ` sashiko-bot
2026-11-23 15:27 ` [PATCH v3 4/7] media: dt-bindings: media: i2c: add OmniVision OV12A10 Hikmah Gumelar
2026-11-23 15:27 ` [PATCH v3 5/7] media: i2c: add ov12a10 image sensor driver Hikmah Gumelar
2026-11-23 15:50 ` sashiko-bot
2026-11-23 15:27 ` [PATCH v3 6/7] arm64: dts: qcom: msm8953: add CAMSS node and MCLK pinctrl states Hikmah Gumelar
2026-11-23 15:27 ` [PATCH v3 7/7] arm64: dts: qcom: msm8953-xiaomi-tissot: enable front and rear cameras Hikmah Gumelar
2026-11-23 15:46 ` sashiko-bot
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-229269@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.