arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE
cover arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE
Add initial device tree support for the Xiaomi 11 Lite 5G NE, codenamed lisa, which is based on the Qualcomm SM7325 SoC.
The first patch documents the board compatible and the second adds the board DTS with support for regulators, storage, USB, GPU, remote processors, wireless connectivity, touchscreen, flash LED, thermal sensors and hardware buttons.
Oleksii Onchul (2):
dt-bindings: arm: qcom: Add Xiaomi 11 Lite 5G NE
arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE
.../devicetree/bindings/arm/qcom.yaml | 1 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7325-xiaomi-lisa.dts | 1138 +++++++++++++++++ 3 files changed, 1140 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts
Signature · 1 line
2.55.0
PATCH 1/2 dt-bindings: arm: qcom: Add Xiaomi 11 Lite 5G NE
Add the compatible for the Xiaomi 11 Lite 5G NE, codenamed lisa, which is based on the Qualcomm SM7325 SoC.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1054,6 +1054,7 @@ properties: - enum: - motorola,dubai - nothing,spacewar + - xiaomi,lisa - const: qcom,sm7325 - items:
Signature · 1 line
2.55.0
Re: [PATCH 1/2] dt-bindings: arm: qcom: Add Xiaomi 11 Lite 5G NE
Quoted 7 lines · Oleksii Onchul
Add the compatible for the Xiaomi 11 Lite 5G NE, codenamed lisa, which is based on the Qualcomm SM7325 SoC.
Signed-off-by Oleksii Onchul <[email protected]>--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)
<form letter>
This is an automated instruction, just in case, because many review tags are being ignored. If you know the process, just skip it entirely (please do not feel offended by me posting it here - no bad intentions intended, no patronizing, I just want to avoid wasted efforts). If you do not know the process, here is a short explanation:
Please add Acked-by/Reviewed-by/Tested-by tags when posting new versions of patchset, under or above your Signed-off-by tag, unless patch changed significantly (e.g. new properties added to the DT bindings). Tag is "received", when provided in a message replied to you on the mailing list. Tools like b4 can help here ('b4 trailers -u ...'). However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for tags received on the version they apply.
https://elixir.bootlin.com/linux/v6.15/source/Documentation/process/submitting-patches.rst#L591
</form letter>
Best regards,
Krzysztof
PATCH 2/2 arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE
In reply to Oleksii OnchulAdd initial support for the Xiaomi 11 Lite 5G NE, codenamed lisa.
The supported hardware includes regulators, UFS, SD card, USB, GPU, remote processors, Wi-Fi, Bluetooth, touchscreen, flash LED, thermal sensors and the hardware buttons.
--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7325-xiaomi-lisa.dts | 1138 +++++++++++++++++ 2 files changed, 1139 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -349,6 +349,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm7125-xiaomi-joyeuse.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7225-fairphone-fp4.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7325-motorola-dubai.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7325-nothing-spacewar.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm7325-xiaomi-lisa.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-hdk.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-microsoft-surface-duo.dtb dtb-$(CONFIG_ARCH_QCOM) += sm8150-mtp.dtb
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +1138 -0
1,138 lines not on this page · raw message
Signature · 1 line
2.55.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] Missing 'cd-gpios' property for the SD card interface (&sdhc_2), preventing reliable card…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] Missing 'cd-gpios' property for the SD card interface (&sdhc_2), preventing reliable card insertion/removal detection.
- [Medium] Missing pinctrl configurations for the touchscreen and FSA4480 interrupt/reset GPIOs.
--
--- Patch [2]: [PATCH 2/2] arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE --- commit 22346a2ae0ab638635553e09fe60d37d9c64aa00
Author: Oleksii Onchul <[email protected]>
arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE
Add initial support for the Xiaomi 11 Lite 5G NE, codenamed lisa.
Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +0
-0
[ ... ]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 660
Quoted 9 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +9
-0+ /* awinic,aw210xx_led @ 20 */ + + fsa4480: typec-mux@42 { + compatible = "fcs,fsa4480"; + reg = <0x42>; + + interrupts-extended = <&tlmm 2 IRQ_TYPE_LEVEL_LOW>; + + vcc-supply = <&vreg_bob>;
[Severity: Medium]
Does the fsa4480 node need a pinctrl state to configure the pull-up for the interrupt GPIO?
The FSA4480 interrupt pin is open-drain and typically requires a pull-up to VDD. If the bootloader leaves this pin floating, could it cause an interrupt storm or missed interrupts since no pinctrl-0 property is provided?
[ ... ]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 939
Quoted 10 lines
+&sdc2_data {
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +9
-0+ drive-strength = <10>; + bias-pull-up; +}; + +&sdhc_2 { + vmmc-supply = <&vreg_l7b_2p96>; + vqmmc-supply = <&vreg_l19b_1p8>; + + pinctrl-0 = <&sdc2_clk>, <&sdc2_cmd>, <&sdc2_data>;
[Severity: Medium]
Is a cd-gpios property missing from the &sdhc_2 node?
The commit message states that the SD card is supported, but without a card detect GPIO, the MMC core might fall back to software polling (typically 1 Hz). Could this polling prevent the SoC from entering deep sleep, causing a battery drain on the device?
Quoted 7 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +7
-0+ pinctrl-1 = <&sdc2_clk_sleep>, <&sdc2_cmd_sleep>, <&sdc2_data_sleep>; + + status = "okay"; +}; + +&spi13 { + status = "okay";
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 956
Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +10
-0+ + touchscreen@0 { + compatible = "goodix,gt9897"; + reg = <0>; + spi-max-frequency = <6000000>; + + interrupt-parent = <&tlmm>; + interrupts = <81 IRQ_TYPE_LEVEL_LOW>; + + reset-gpios = <&tlmm 105 GPIO_ACTIVE_LOW>;
[Severity: Medium]
Are pinctrl configurations needed here for the touchscreen interrupt and reset GPIOs?
This node declares an interrupt on tlmm 81 and a reset on tlmm 105, but it does not specify a pinctrl-0 to configure the pinmux state and biases of these pins. Relying on the bootloader's default pin state for active interrupts and resets might lead to unexpected behavior or power leakage.
Quoted 3 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +3
-0+ + avdd-supply = <&vreg_l7c_3p0>; + vddio-supply = <&vreg_l2c_1p8>;
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Quoted 7 lines · Oleksii Onchul
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +7
-0+ port@2 { + reg = <2>; + + pmic_glink_sbu: endpoint { + remote-endpoint = <&fsa4480_sbu_mux>; + }; + };
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 121
Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +10
-0+ }; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + cdsp_secure_heap_mem: cdsp_secure_heap@81800000 {
Underscores in node names are not allowed. Please switch to DTS coding style (see docs).
Everywhere.
Best regards,
Krzysztof
Quoted 8 lines · Oleksii Onchul
Add initial support for the Xiaomi 11 Lite 5G NE, codenamed lisa.
The supported hardware includes regulators, UFS, SD card, USB, GPU, remote processors, Wi-Fi, Bluetooth, touchscreen, flash LED, thermal sensors and the hardware buttons.
Signed-off-by Oleksii Onchul <[email protected]>---
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 48
Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +10
-0+ chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0:115200n8"; + + framebuffer0: framebuffer@e1000000 { + compatible = "simple-framebuffer"; + reg = <0x0 0xe1000000 0x0 (1080 * 2400 * 4)>;
Please use memory-region instead
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 156
Quoted 5 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +5
-0+ ramoops@a9000000 { + compatible = "ramoops"; + reg = <0x0 0xa9000000 0x0 0x200000>; + pmsg-size = <0x200000>; + mem-type = <0x02>;
Let's make mem-type decimal. Don't you need ecc-size for reliability?
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 605
Quoted 6 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +6
-0+ regulators { + vreg_l1p: ldo1 { + regulator-name = "vreg_l1p"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1200000>; + regulator-always-on;
Many/all of these shouldn't be always on. This PMIC normally only powers cameras, so dropping this should be fine
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 681
Quoted 3 lines
+&ipa {
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +2
-0+ qcom,gsi-loader = "self"; + memory-region = <&ipa_fw_mem>;
These two fill be folded into the SoC DTSI soon
https://lore.kernel.org/all/[email protected]/
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 971
Quoted 6 lines
+&tlmm {
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +5
-0+ /* + * 32-33: SMB1394 (SPMI) + * 56-59: fingerprint reader (SPI) + */ + gpio-reserved-ranges = <32 2>, <48 4>, <56 4>;
What about the <48 4> range?
as a nit, other files place the comments inline with the ranges:
gpio-reserved-ranges = <4 4>, /* EC TZ Secure I3C */
<10 2>, /* OOB UART */
<44 4>; /* Security SPI (TPM) */[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 1105
Quoted 2 lines
+&usb_1 {
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +1
-0+ /* USB 2.0 only */
Did you test that (with an actual USB3 cable)?
Konrad
Quoted 4 lines · Konrad Dybcio
Quoted 2 lines
+&usb_1 {
+ /* USB 2.0 only */Did you test that (with an actual USB3 cable)?
No, I have only tested USB 2.0 operation and do not currently have a USB 3-capable Type-C cable available. The downstream DTS configures the generic Yupik primary controller for SuperSpeed, but I could not verify SuperSpeed operation on Lisa. Therefore, the initial submission only describes the USB 2.0 configuration that has been tested.
Oleksii
Quoted 85 lines · Konrad Dybcio
Quoted 8 lines · Oleksii Onchul
Add initial support for the Xiaomi 11 Lite 5G NE, codenamed lisa.
The supported hardware includes regulators, UFS, SD card, USB, GPU, remote processors, Wi-Fi, Bluetooth, touchscreen, flash LED, thermal sensors and the hardware buttons.
Signed-off-by Oleksii Onchul <[email protected]>---
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 48
Quoted 10 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +10
-0+ chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0:115200n8"; + + framebuffer0: framebuffer@e1000000 { + compatible = "simple-framebuffer"; + reg = <0x0 0xe1000000 0x0 (1080 * 2400 * 4)>;Please use memory-region instead
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 156
Quoted 5 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +5
-0+ ramoops@a9000000 { + compatible = "ramoops"; + reg = <0x0 0xa9000000 0x0 0x200000>; + pmsg-size = <0x200000>; + mem-type = <0x02>;Let's make mem-type decimal. Don't you need ecc-size for reliability?
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 605
Quoted 6 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +6
-0+ regulators { + vreg_l1p: ldo1 { + regulator-name = "vreg_l1p"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1200000>; + regulator-always-on;Many/all of these shouldn't be always on. This PMIC normally only powers cameras, so dropping this should be fine
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 681
Quoted 3 lines
+&ipa {
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +2
-0+ qcom,gsi-loader = "self"; + memory-region = <&ipa_fw_mem>;These two fill be folded into the SoC DTSI soon
https://lore.kernel.org/all/[email protected]/
[...]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 971
Quoted 6 lines
+&tlmm {
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +5
-0+ /* + * 32-33: SMB1394 (SPMI) + * 56-59: fingerprint reader (SPI) + */ + gpio-reserved-ranges = <32 2>, <48 4>, <56 4>;What about the <48 4> range?
as a nit, other files place the comments inline with the ranges:
gpio-reserved-ranges = <4 4>, /* EC TZ Secure I3C */
<10 2>, /* OOB UART */ <44 4>; /* Security SPI (TPM) */[...]
Quoted 2 lines
+&usb_1 {
+ /* USB 2.0 only */Did you test that (with an actual USB3 cable)?
Konrad
Quoted 11 lines · Alex
Quoted 4 lines · Konrad Dybcio
Quoted 2 lines
+&usb_1 {
+ /* USB 2.0 only */Did you test that (with an actual USB3 cable)?
No, I have only tested USB 2.0 operation and do not currently have a USB 3-capable Type-C cable available. The downstream DTS configures the generic Yupik primary controller for SuperSpeed, but I could not verify SuperSpeed operation on Lisa. Therefore, the initial submission only describes the USB 2.0 configuration that has been tested.
That's ok
Konrad