Skip to contentSkip to conversation

arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE

PATCH Superseded Oleksii Onchul 2 participants 4 messages Jul 14 – Jul 17

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE

Add initial support for the Xiaomi 11 Lite 5G NE, codenamed lisa.

The supported hardware includes regulators, UFS, USB, GPU, remote processors, Wi-Fi, Bluetooth, touchscreen, flash LED, thermal sensors and the hardware buttons.

Link to v1: https://lore.kernel.org/all/[email protected]/

Changes in v2:
- Drop SD card support because card detection is not reliable yet.
- Constrain the UFS VCC rail to 2.952 V.
- Drop the unused FSA4480 interrupt.
- Add the touchscreen pinctrl state.
- Reference the reserved framebuffer through memory-region.
- Enable ramoops ECC and use decimal notation for mem-type.
- Allow the unused camera PMIC regulators to be disabled.
- Document all GPIO reserved ranges inline.
- Replace underscores in node names with hyphens.
- Drop the unverified USB limitation comment.
- Drop IPA properties now provided by kodiak.dtsi.
- Drop redundant USB role properties.

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      | 1106 +++++++++++++++++
 3 files changed, 1108 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts

base-commit: 1c553b3d0cfca9cac2186daea6e2f81808ce7d8b

Signature · 1 line
2.55.0
#1 lore raw

PATCH v2 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
index 0b4c17419..494d1425d 100644
@@ -1080,6 +1080,7 @@ properties:
           - enum:
               - motorola,dubai
               - nothing,spacewar
+              - xiaomi,lisa
               - xiaomi,taoyao
           - const: qcom,sm7325
 
Signature · 1 line
2.55.0
#2 lore raw

PATCH v2 2/2 arm64: dts: qcom: Add Xiaomi 11 Lite 5G NE

In reply to Oleksii Onchul

Add initial support for the Xiaomi 11 Lite 5G NE, codenamed lisa.

The supported hardware includes regulators, UFS, 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      | 1106 +++++++++++++++++
 2 files changed, 1107 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
index e05414290..c25ac4954 100644
@@ -355,6 +355,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-motorola-dubai.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-motorola-dubai-csot.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-motorola-dubai-tianma.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-nothing-spacewar.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= sm7325-xiaomi-lisa.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
arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +1106 -0

1,106 lines not on this page · raw message

Signature · 1 line
2.55.0
Reviewed-by on v2 2/2
#3 lore raw
Quoted 8 lines · Oleksii Onchul

Add initial support for the Xiaomi 11 Lite 5G NE, codenamed lisa.

The supported hardware includes regulators, UFS, USB, GPU, remote processors, Wi-Fi, Bluetooth, touchscreen, flash LED, thermal sensors and the hardware buttons.

---

[...]

Review

Quoted 3 lines

+&i2c1 {

(quoted diff) +2 -0
+	clock-frequency = <100000>;
+	status = "okay";

nit: let's keep a \n before 'status', file-wide

[...]

arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts line 918

Quoted 10 lines

+&spi13 {

arch/arm64/boot/dts/qcom/sm7325-xiaomi-lisa.dts new file +9 -0
+	status = "okay";
+
+	touchscreen@0 {
+		compatible = "goodix,gt9897";
+		reg = <0>;
+		spi-max-frequency = <6000000>;
+
+		interrupt-parent = <&tlmm>;
+		interrupts = <81 IRQ_TYPE_LEVEL_LOW>;

interrupts-extended = <&tlmm 81 IRQ..

With that:

Konrad