Add Xiaomi 12 Lite 5G (taoyao) device tree
v9 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 v9:
- Fix SBU endpoint port reg: 1->2 (patch no. 2)
- Link to v8:
https://lore.kernel.org/all/[email protected]/
Changes in v8:
- Patch no. 1 - no changes
- Drop dr_mode = "otg" as it is the default value (patch no. 2)
- Drop usb-role-switch as it is already defined in kodiak.dtsi (patch no. 2)
- Fix USB Type-C SBU endpoint port number: port@1 -> port@2 to comply with usb-connector.yaml bindings (patch no. 2)
- Use downstream adsp_rpc_remote_heap_mem memory region to avoid overlapping with cdsp_mem (patch no. 2)
- Link to v7:
https://lore.kernel.org/all/[email protected]/
Changes in v7:
- Patch no. 1 - no changes
- Patch no. 3 removed. Dmitry Baryshkov addressed that in a separate patchset
- Added record-size for ramoops node (reduced pmsg-size by 0x100000) (patch no. 2)
- Fixed unit address for rmtfs_mem (patch no. 2)
- Link to v6:
https://lore.kernel.org/all/[email protected]/
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 (2):
dt-bindings: arm: qcom: Add SM7325 Xiaomi 12 Lite 5G (taoyao)
arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
.../devicetree/bindings/arm/qcom.yaml | 1 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sm7325-xiaomi-taoyao.dts | 913 ++++++++++++++++++ 3 files changed, 915 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts
Signature · 1 line
2.53.0
PATCH v9 1/2 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.53.0
PATCH v9 2/2 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 | 913 ++++++++++++++++++ 2 files changed, 914 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 +913 -0
913 lines not on this page · raw message
Signature · 1 line
2.53.0
Re: [PATCH v9 2/2] arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
Quoted 14 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/sm7325-xiaomi-taoyao.dts line 651
Quoted 5 lines
+&ipa {
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +4
-0+ firmware-name = "qcom/sm7325/xiaomi/taoyao/ipa_fws.mbn"; + + status = "okay"; +};
From make dtbs_check:
qcom/sm7325-xiaomi-taoyao.dtb: ipa@1e40000 (qcom,sc7280-ipa): 'memory-region' is a required property
Please fix that (or disable IPA)
Otherwise:
Konrad
Re: [PATCH v9 2/2] arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
Quoted 28 lines · Konrad Dybcio
Quoted 14 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/sm7325-xiaomi-taoyao.dts line 651
Quoted 5 lines
+&ipa {
arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +4
-0+ firmware-name = "qcom/sm7325/xiaomi/taoyao/ipa_fws.mbn"; + + status = "okay"; +};From make
dtbs_check:qcom/sm7325-xiaomi-taoyao.dtb: ipa@1e40000 (qcom,sc7280-ipa): 'memory-region' is a required property
Quoted 7 lines
Please fix that (or disable IPA)
Otherwise:
Reviewed-by Konrad Dybcio <[email protected]>Konrad
Thank you for the review.
This patch depends on [0]. With [0] patch applied, dtbs_check passes w/o warnings.
[0] https://lore.kernel.org/all/[email protected]/
--
Best regards,
Stanislav
Re: [PATCH v9 2/2] arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
Quoted 35 lines · Stanislav Zaikin
Quoted 34 lines · Konrad Dybcio
Quoted 14 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/sm7325-xiaomi-taoyao.dts line 611
Quoted 5 lines
+&ipa {
+ firmware-name = "qcom/sm7325/xiaomi/taoyao/ipa_fws.mbn";arch/arm64/boot/dts/qcom/sm7325-xiaomi-taoyao.dts new file +3
-0+ + status = "okay"; +};From make
dtbs_check:qcom/sm7325-xiaomi-taoyao.dtb: ipa@1e40000 (qcom,sc7280-ipa): 'memory-region' is a required property
Please fix that (or disable IPA)
Otherwise:
Reviewed-by Konrad Dybcio <[email protected]>
Quoted 7 lines
Quoted 1 line
Konrad
Thank you for the review.
This patch depends on [0]. With [0] patch applied,
dtbs_checkpasses w/o warnings.
Ah, I see, thank you
Konrad
Quoted 6 lines · Stanislav Zaikin
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.
Quoted 6 lines
Changes in v9:
- Fix SBU endpoint port reg: 1->2 (patch no. 2)
- Link to v8:
https://lore.kernel.org/all/[email protected]/[...]
Applied, thanks!
[1/2] dt-bindings: arm: qcom: Add SM7325 Xiaomi 12 Lite 5G (taoyao)
commit: dbf48f009161162147c8df3cb3a47e8e7a3a0442
[2/2] arm64: dts: qcom: Add Xiaomi 12 Lite 5G (taoyao) DTS
commit: 28705df5d0df5f8ba34c7ca3fcc5b46e7799b7c2Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>