From: sashiko-bot@kernel.org
To: "Adam Skladowski" <a39.skl@gmail.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 7/7] arm64: dts: qcom: Add Xiaomi Redmi 9T
Date: Fri, 21 Aug 2026 12:32:57 +0000 [thread overview]
Message-ID: <20260821123257.721791F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260821-next-patches-v4-7-7ab02c0d4eb9@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The `brightness-levels` property in the `backlight_dsi` node defines a single element (`<255>`), which violates the led-backlight DT schema and causes a runtime kernel warning.
- [Low] The USB SuperSpeed PHY (`usb_qmpphy`) is needlessly enabled and routed to the Type-C connector on a USB 2.0-only device, misrepresenting the board topology and wasting power.
--
--- Patch [7]: [PATCH v4 7/7] arm64: dts: qcom: Add Xiaomi Redmi 9T ---
commit b6a263c7aa2dea142dda12d7e116e55fb2d00b44
Author: Adam Skladowski <a39.skl@gmail.com>
arm64: dts: qcom: Add Xiaomi Redmi 9T
This commit adds a devicetree for the Xiaomi Redmi 9T smartphone based
on the Bengal/SM6115 SoC. It supports basic functionality like display,
GPU, I2C peripherals, keys, regulators, remoteprocs, UFS/SD, and USB.
> diff --git a/arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts b/arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts
> new file mode 100644
> index 0000000000000..881e05b70116b
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts
> @@ -0,0 +1,497 @@
[ ... ]
> + backlight_dsi: backlight-dsi {
> + compatible = "led-backlight";
> + leds = <&led_backlight>;
> + brightness-levels = <255>;
> + default-brightness-level = <190>;
[Severity: Low]
Could this single-element brightness-levels array trigger a dt-schema
validation failure and a kernel warning during boot?
In the led_bl.c driver, parsing this node calls of_property_count_u32_elems()
which warns when num_levels == 1 with "Not enough levels defined\n", causing
the property to be ignored.
Additionally, the default-brightness-level index of 190 would be out of
bounds for an array with only one element.
> + /* Backlight controllers can differ between panel variants */
> + status = "disabled";
> + };
[ ... ]
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + pmi632_hs_in: endpoint {
> + remote-endpoint = <&usb_dwc3_hs>;
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> + pmi632_ss_in: endpoint {
> + remote-endpoint = <&usb_qmpphy_out>;
> + };
> + };
> + };
[Severity: Low]
Is it intentional to route the SuperSpeed PHY endpoint to the Type-C connector
here, given that the device is USB 2.0 only?
The usb_dwc3 node restricts the maximum speed to high-speed. Leaving the
SuperSpeed PHY routed and enabled could misrepresent the hardware topology if
there are no physical SS traces.
> + };
> +};
[ ... ]
> +&usb_qmpphy {
> + vdda-phy-supply = <&pm6125_l4>;
> + vdda-pll-supply = <&pm6125_l12>;
> +
> + status = "okay";
> +};
[Severity: Low]
Should the usb_qmpphy node remain disabled for this high-speed only device?
Enabling the QMP SuperSpeed PHY wastes power initializing and bringing up an
unused PHY when the USB controller probes.
Usually, devices in this situation also remove the usb3-phy reference from
the phys property in the usb_dwc3 node so the driver does not attempt to
initialize it at all.
> +
> +&usb_qmpphy_out {
> + remote-endpoint = <&pmi632_ss_in>;
> +};
> +
> +&xo_board {
> + clock-frequency = <19200000>;
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260821-next-patches-v4-0-7ab02c0d4eb9@gmail.com?part=7
prev parent reply other threads:[~2026-08-21 12:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 12:18 [PATCH v4 0/7] arm64: dts: qcom: Add 3 new devices Adam Skladowski
2026-08-21 12:19 ` [PATCH v4 1/7] dt-bindings: vendor-prefixes: Add LeEco Adam Skladowski
2026-08-21 12:19 ` [PATCH v4 2/7] dt-bindings: arm: qcom: Document Motorola Moto One Adam Skladowski
2026-08-21 12:19 ` [PATCH v4 3/7] arm64: dts: qcom: Add Motorola One Adam Skladowski
2026-08-21 12:37 ` sashiko-bot
2026-08-21 12:19 ` [PATCH v4 4/7] dt-bindings: arm: qcom: Document LeEco Le2 Adam Skladowski
2026-08-21 12:19 ` [PATCH v4 5/7] arm64: dts: qcom: Add " Adam Skladowski
2026-08-21 12:36 ` sashiko-bot
2026-08-21 12:19 ` [PATCH v4 6/7] dt-bindings: arm: qcom: Document Xiaomi Redmi 9T Adam Skladowski
2026-08-21 12:19 ` [PATCH v4 7/7] arm64: dts: qcom: Add " Adam Skladowski
2026-08-21 12:32 ` 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=20260821123257.721791F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=a39.skl@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.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