Add Xiaomi 12 Lite 5G (taoyao) device tree
v6 cover Add Xiaomi 12 Lite 5G (taoyao) device tree
This series adds device tree support for the Xiaomi 12 Lite 5G (taoyao), based on the Qualcomm SM7325 SoC.
The display panel model is unknown, so bootloader-initialized simple-framebuffer is therefore used to expose the display.
Changes in v6:
- Patch no. 1 - no changes
- Added a comment about reserved gpio ranges (patch no. 2)
- Removed "output-low" property from "hst_bt_en" node (patch no. 2)
- Moved common IPA properties for sm7325 devices to soc's dtsi (patch no. 3)
- Link to v5:
https://lore.kernel.org/all/[email protected]/
Changes in v5:
- Patch no. 1 - no changes
- Change vccq-supply to vccq2-supply in ufs node as it's ufs2.2 (patch no. 2)
- Val's patch for goodix-berlin didn't have effect on my touchscreen, therefore keep the touchscreen szie (no changes in this regard in patch no. 2)
- Link to v4:
https://lore.kernel.org/all/[email protected]/
Changes in v4:
- Patch no. 1 - no changes
- Removed Konrad's R-b tag, please take a look again (patch no. 2)
- Fixed vreg_s2b_0p7 regulator name to spmb2 (patch no. 2)
- Switched bluetooth to wcn6750-pmu (patch no. 2)
- Dropped qcom,local-bd-address-broken as it has no effect (patch no. 2)
- Added wifi calibration variant "Xiaomi_taoyao" (also sent board-2.bin files to ath11k) (patch no. 2)
- Link to v3:
https://lore.kernel.org/all/[email protected]/
Changes in v3:
- Patch no. 1 - no changes
- Drop unit address for framebuffer node (patch no. 2)
- Add Konrad's R-b tag (patch no. 2)
- Link to v2:
https://lore.kernel.org/all/[email protected]/
Changes in v2:
- Add Rob's A-b tag (patch no. 1)
- Add explicit framebuffer_reserved label (patch no. 2)
- Use memory-region for simple-framebuffer (patch no. 2)
- Fix reserved-memory naming: make node names consistent with labels and intended subsystem (CVP/camera/video) (patch no. 2)
- Convert mem-type value from <0x02> to <2> (patch no. 2)
- Fix s2b regulator comment style (patch no. 2)
- Remove unused gpio-reserved-ranges entry (<32 2>) (patch no. 2)
- Link to v1:
https://lore.kernel.org/all/[email protected]/
Stanislav Zaikin (3):
dt-bindings: arm: qcom: Add SM7325 Xiaomi 12 Lite 5G (taoyao)
arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
arm64: dts: qcom: sm7325: Move common IPA properties
.../devicetree/bindings/arm/qcom.yaml | 1 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7325-nothing-spacewar.dts | 2 - .../boot/dts/qcom/sm7325-xiaomi-taoyao.dts | 908 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sm7325.dtsi | 5 + 5 files changed, 915 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts
Signature · 1 line
2.51.0
PATCH v6 1/3 dt-bindings: arm: qcom: Add SM7325 Xiaomi 12 Lite 5G (taoyao)
Xiaomi 12 Lite 5G (xiaomi,taoyao) is a smartphone based on the SM7325 SoC.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1041,6 +1041,7 @@ properties: - items: - enum: - nothing,spacewar + - xiaomi,taoyao - const: qcom,sm7325 - items:
Signature · 1 line
2.51.0
PATCH v6 2/3 arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
In reply to Stanislav ZaikinXiaomi 12 Lite 5G is a handset released in 2022
This commit has the following features working:
- Display (with simple fb)
- Touchscreen
- UFS
- Power and volume buttons
- Pinctrl
- RPM Regulators
- Remoteprocs - wifi, bluetooth
- USB (Device Mode)
--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7325-xiaomi-taoyao.dts | 908 ++++++++++++++++++ 2 files changed, 909 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -341,6 +341,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sm7125-xiaomi-curtana.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7125-xiaomi-joyeuse.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7225-fairphone-fp4.dtb dtb-$(CONFIG_ARCH_QCOM) += sm7325-nothing-spacewar.dtb +dtb-$(CONFIG_ARCH_QCOM) += sm7325-xiaomi-taoyao.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-taoyao.dts new file +908 -0
908 lines not on this page · raw message
Signature · 1 line
2.51.0
[email protected]
AI reviewRe: [PATCH v6 2/3] arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] The ramoops memory region is entirely consumed by `pmsg-size`, silently breaking kernel crash…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] The ramoops memory region is entirely consumed by pmsg-size, silently breaking kernel crash dumps.
- [Low] Device Tree unit address mismatch in the rmtfs_mem reserved memory node.
--
commit cc4a7cf1d691d4d94cb9b845a5a49075f69a93ff
Author: Stanislav Zaikin <[email protected]>
arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
This commit adds device tree support for the Xiaomi 12 Lite 5G handset, enabling features such as display, touchscreen, UFS, power/volume buttons, and remoteprocs.
Quoted 5 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +0
-0
[ ... ]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts line 175
Quoted 4 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +4
-0+ ramoops@a9000000 { + compatible = "ramoops"; + reg = <0x0 0xa9000000 0x0 0x200000>; + pmsg-size = <0x200000>;
Does this configuration leave any room for kernel crash dumps?
The node defines a memory region of exactly 2MB, but pmsg-size consumes the entire 0x200000 bytes. Because pmsg-size consumes all available space, zero space remains for record-size (which defaults to 0). Will the pstore/ramoops driver be able to store kernel dmesg during panics or oops with this setup?
Quoted 2 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +2
-0+ mem-type = <2>; + };
[ ... ]
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts line 211
Quoted 3 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +3
-0+ rmtfs_mem: rmtfs@ef500000 { + compatible = "qcom,rmtfs-mem"; + reg = <0x0 0xe7d00000 0x0 0x280000>;
Is this unit address intentionally mismatched with the reg property?
The node is named rmtfs@ef500000, but its reg property specifies a base address of 0xe7d00000. Can this structural syntax violation trigger a simple_bus_reg dtc compiler warning?
Quoted 6 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +6
-0+ no-map; + + qcom,client-id = <1>; + qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>, + <QCOM_SCM_VMID_NAV>; + };
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
Re: [PATCH v6 2/3] arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
In reply to Stanislav ZaikinQuoted 19 lines · Stanislav Zaikin
Xiaomi 12 Lite 5G is a handset released in 2022
This commit has the following features working:
- Display (with simple fb)
- Touchscreen
- UFS
- Power and volume buttons
- Pinctrl
- RPM Regulators
- Remoteprocs - wifi, bluetooth
- USB (Device Mode)Signed-off-by Stanislav Zaikin <[email protected]>--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7325-xiaomi-taoyao.dts | 908 ++++++++++++++++++ 2 files changed, 909 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts line 876
Quoted 6 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +6
-0+ +&usb_1 { + /* USB 2.0 only */ + qcom,select-utmi-as-pipe-clk; + + dr_mode = "otg";
This is default and can be dropped,
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts line 877
Quoted 1 line
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +1
-0+ usb-role-switch;
This is a part of kodiak.dtsi and can be dropped.
Quoted 8 lines
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +8
-0+ maximum-speed = "high-speed"; + /* Remove USB3 phy */ + phys = <&usb_1_hsphy>; + phy-names = "usb2-phy"; + + status = "okay"; +}; +
Signature · 2 lines
With best wishes Dmitry
PATCH v6 3/3 arm64: dts: qcom: sm7325: Move common IPA properties
In reply to Stanislav ZaikinThe qcom,gsi-loader and memory-region properties are common across sm7325 devices. Move them from spacewar dts to the soc dtsi to avoid duplication.
--- arch/arm64/boot/dts/qcom/sm7325-nothing-spacewar.dts | 2 -- arch/arm64/boot/dts/qcom/sm7325.dtsi | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sm7325-nothing-spacewar.dts +0 -2
@@ -971,8 +971,6 @@ nfc@28 { }; &ipa { - qcom,gsi-loader = "self"; - memory-region = <&ipa_fw_mem>; firmware-name = "qcom/sm7325/nothing/spacewar/ipa_fws.mbn"; status = "okay";
arch/arm64/boot/dts/qcom/sm7325.dtsi +5 -0
@@ -15,3 +15,8 @@ &cpu5 { compatible = "qcom,kryo670"; }; &cpu6 { compatible = "qcom,kryo670"; }; &cpu7 { compatible = "qcom,kryo670"; }; + +&ipa { + qcom,gsi-loader = "self"; + memory-region = <&ipa_fw_mem>; +};
Signature · 1 line
2.51.0
Re: [PATCH v6 3/3] arm64: dts: qcom: sm7325: Move common IPA properties
Quoted 10 lines · Stanislav Zaikin
The qcom,gsi-loader and memory-region properties are common across sm7325 devices. Move them from spacewar dts to the soc dtsi to avoid duplication.
Signed-off-by Stanislav Zaikin <[email protected]>--- arch/arm64/boot/dts/qcom/sm7325-nothing-spacewar.dts | 2 -- arch/arm64/boot/dts/qcom/sm7325.dtsi | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v6 3/3] arm64: dts: qcom: sm7325: Move common IPA properties
Quoted 5 lines · Dmitry Baryshkov
Quoted 4 lines · Stanislav Zaikin
The qcom,gsi-loader and memory-region properties are common across sm7325 devices. Move them from spacewar dts to the soc dtsi to avoid duplication.
Quoted 8 lines
Quoted 6 lines
Signed-off-by Stanislav Zaikin <[email protected]>--- arch/arm64/boot/dts/qcom/sm7325-nothing-spacewar.dts | 2 -- arch/arm64/boot/dts/qcom/sm7325.dtsi | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-)Reviewed-by Dmitry Baryshkov <[email protected]>
Looking at it, the property should go to kodiak.dtsi, but then it's more complicated because of the platform differences. I will take a look and maybe send a patch.
Quoted 5 lines
Signature · 3 lines
-- With best wishes Dmitry
Signature · 2 lines
With best wishes Dmitry