All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Zhongyuan Zhang" <zhongyuan026@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: qcom: Add Xiaomi 13 Ultra
Date: Fri, 04 Dec 2026 10:47:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-249627@kernel.org> (raw)
In-Reply-To: <20261204-upstream-ishtar-dts-v1-2-b11242304cd1@gmail.com>

Thank you for your contribution! Sashiko AI review found 8 potential
issues to consider:
- [Medium] arm64: dts: qcom: aop-image-region overlaps
  xbl-dt-log-merged-region
- [Medium] arm64: dts: qcom: populated PM8550VS SPMI PMIC nodes left
  disabled
- [Medium] arm64: dts: qcom: 3.2V PM8010 ldo6 supplied by 1.8V-2.0V
  vreg_s6g_1p8
- [Medium] arm64: dts: qcom: sm8550-xiaomi-ishtar: missing
  orientation-gpios
- [Medium] arm64: dts: qcom: sm8550-xiaomi-ishtar: missing vcc-supply on
  fsa4480
- [Low] arm64: dts: qcom: splash-region comment contradicts node name
- [Low] arm64: dts: qcom: sleep_clk set to 32000 Hz instead of 32764 Hz
- [Low] arm64: dts: qcom: deprecated vph-pwr-regulator node name
--

commit 1bf1f489e6894cc3762bbb72662ed0ada1d41839
Author: Zhongyuan Zhang <zhongyuan026@gmail.com>

arm64: dts: qcom: Add Xiaomi 13 Ultra

This commit adds a devicetree for the Xiaomi 13 Ultra (codename ishtar)
based on the SM8550 SoC, describing UFS, USB-C via pmic_glink, keys, GPU,
ADSP, WCN7850 Wi-Fi/Bluetooth, and the bootloader framebuffer.

> diff --git a/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts b/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts
> new file mode 100644
> index 0000000000000..29260a2145d71
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm8550-xiaomi-ishtar.dts
> @@ -0,0 +1,816 @@

[ ... ]

> +#include "pm8550vs.dtsi"

[Severity: Medium]
Should pm8550vs_c, pm8550vs_d, pm8550vs_e, and pm8550vs_g be enabled with
status = "okay"?

apps_rsc configures RPMh regulators for all four PM8550VS PMICs (c, d, e,
and g), so all four are populated on the board, and pm8550vs.dtsi defines
active thermal zones referencing their temp-alarm nodes.  Because all four
SPMI PMIC nodes default to disabled in pm8550vs.dtsi,
of_spmi_register_devices() skips them and their temp-alarm sensors and GPIO
controllers never probe, leaving the four pm8550vs-*-thermal zones unbound.

[ ... ]

> +	pmic-glink {
> +		compatible = "qcom,sm8550-pmic-glink", "qcom,pmic-glink";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		connector@0 {
> +			compatible = "usb-c-connector";
> +			reg = <0>;
> +			power-role = "dual";
> +			data-role = "dual";

[Severity: Medium]
Is orientation-gpios missing from pmic-glink?

connector@0 wires usb_dp_qmpphy_out and fsa4480_sbu_mux as orientation
switches, and on SM8550 (UCSI v1.x) ucsi_glink relies on orientation-gpios
to report non-altmode plug orientation, as established in commit
c6165ed2f425 ("usb: ucsi: glink: use the connector orientation GPIO to
provide switch events").  Without it, pmic_glink_ucsi_connector_status()
returns early, leaving usb_dp_qmpphy stuck in TYPEC_ORIENTATION_NORMAL with
SW_PORTSELECT_MUX set so USB 3.x SuperSpeed fails in reversed plug
orientation.  Other SM8550 boards specify
orientation-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>.

[ ... ]

> +	reserved-memory {
> +		xbl_ramdump_mem: xbl-ramdump-region@81200000 {
> +			reg = <0x0 0x81200000 0x0 0x280000>;
> +			no-map;
> +		};
> +
> +		aop_image_mem: aop-image-region@81c00000 {
> +			reg = <0x0 0x81c00000 0x0 0x60000>;
> +			no-map;
> +		};

[Severity: Medium]
Does aop-image-region@81c00000 overlap xbl-dt-log-merged-region@81a00000
inherited from sm8550.dtsi?

sm8550.dtsi defines xbl_dt_log_merged_mem covering 0x81a00000..0x81c60000
(merging xbl_dt_log, xbl_ramdump, and aop_image), which completely encloses
aop_image_mem (0x81c00000..0x81c60000) and causes __rmem_check_for_overlap()
to log an overlap error on every boot.  Either drop aop_image_mem if the
base region is accurate, or delete/shrink xbl_dt_log_merged_mem to match
the moved xbl_ramdump_mem carveout.

[ ... ]

> +		/*
> +		 * The bootloader will only keep display hardware enabled
> +		 * if this memory region is named exactly 'splash_region'
> +		 */
> +		splash-region@b8000000 {
> +			reg = <0x0 0xb8000000 0x0 0x2b00000>;
> +			no-map;
> +		};

[Severity: Low]
The comment states the bootloader requires the node to be named exactly
splash_region, which contradicts the splash-region@b8000000 node name right
below it.  Should this stale comment be removed or updated?

[ ... ]

> +	vph_pwr: vph-pwr-regulator {
> +		compatible = "regulator-fixed";

[Severity: Low]
Documentation/devicetree/bindings/regulator/fixed-regulator.yaml deprecates
fixed-regulator node names that do not start with regulator.  Should this
be named regulator-vph-pwr instead?

[ ... ]

> +	regulators-6 {
> +		compatible = "qcom,pm8010-rpmh-regulators";
> +		qcom,pmic-id = "m";
> +
> +		vdd-l1-l2-supply = <&vreg_s4g_1p3>;
> +		vdd-l3-l4-supply = <&vreg_bob2>;
> +		vdd-l5-supply = <&vreg_s6g_1p8>;
> +		vdd-l6-supply = <&vreg_s6g_1p8>;
> +		vdd-l7-supply = <&vreg_bob1>;

[ ... ]

> +		vreg_l6m_3p2: ldo6 {
> +			regulator-name = "vreg_l6m_3p2";
> +			regulator-min-microvolt = <3200000>;
> +			regulator-max-microvolt = <3200000>;
> +			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
> +		};

[Severity: Medium]
Can vreg_s6g_1p8 (1.8V-2.0V) supply the 3.2V linear LDO vreg_l6m_3p2?

PM8010 ldo6 is a linear P-LDO (pmic5_pldo502ln) and requires an upstream
supply above 3.2V, such as vreg_bob1 or vreg_bob2.  With vdd-l6-supply
pointing to vreg_s6g_1p8, enabling vreg_l6m_3p2 votes on the wrong parent
rail and lets the actual upstream supply power off while ldo6 is active.

[ ... ]

> +&i2c_hub_2 {
> +	clock-frequency = <400000>;
> +
> +	status = "okay";
> +
> +	typec-mux@42 {
> +		compatible = "fcs,fsa4480";
> +		reg = <0x42>;
> +
> +		mode-switch;
> +		orientation-switch;

[Severity: Medium]
Should typec-mux@42 specify vcc-supply?

Without vcc-supply, fsa4480_probe() places no enable vote on the switch's
power rail.  If VCC is wired to a switchable regulator like vreg_bob1 (as
on other SM8550 boards), disconnecting or suspending USB lets
eusb2_repeater_exit() disable vreg_l5b_3p1, which is the only active
consumer of vreg_bob1 in this DTS, allowing vreg_bob1 to power down and
break the FSA4480 switch.  Please verify the board's VCC rail (for example
vreg_bob1 or vph_pwr) and add vcc-supply.

[ ... ]

> +&sleep_clk {
> +	clock-frequency = <32000>;
> +};

[Severity: Low]
Should sleep_clk be set to 32764 Hz instead of 32000 Hz?

PMK8550 on SM8550 supplies a 32.7645 kHz sleep clock, and sibling SM8550
boards use <32764> per commit e59334a088c3 ("arm64: dts: qcom: sm8550:
correct sleep clock frequency").  Using <32000> introduces a ~2.3% rate
discrepancy for sleep_clk consumers.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-upstream-ishtar-dts-v1-0-b11242304cd1@gmail.com?part=2

      reply	other threads:[~2026-12-04 10:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 10:27 [PATCH 0/2] arm64: dts: qcom: sm8550: Add Xiaomi 13 Ultra Zhongyuan Zhang
2026-12-04 10:27 ` Zhongyuan Zhang via B4 Relay
2026-12-04 10:27 ` [PATCH 1/2] dt-bindings: arm: qcom: " Zhongyuan Zhang
2026-12-04 10:27   ` Zhongyuan Zhang via B4 Relay
2026-12-04 10:28 ` [PATCH 2/2] arm64: dts: " Zhongyuan Zhang
2026-12-04 10:28   ` Zhongyuan Zhang via B4 Relay
2026-12-04 10:47   ` 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-249627@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=zhongyuan026@gmail.com \
    /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.