Skip to contentSkip to conversation

arm64: dts: qcom: Add 3 new devices

PATCH Superseded Adam Skladowski 3 participants 16 messages Aug 20

Subsystems (3)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: qcom: Add 3 new devices

Introduce support for 3 new devices:
- Motorola Moto One based on MSM8953
- LeEco Le2 based on MSM8976
- Xiaomi Redmi 9T based on SM6115

Device trees besides enabling most of supported hardware also wires power to subsystems like MDSS even if those are not enabled to lower maintenance burden on out of tree forks.

---
Changes in v2:
- Adressed Sashiko-bot warnings
- Added Krzysztof's Acks
- Dropped confusing link from first vendor-prefix patch
- Removed ramoops nodes from Motorola and Leeco patches(now handled via lk2nd)
- Motorola One USB-C connector and FUSB302 is now fully wired and enabled
- Motorola One Touchscreen has been disabled due to panel power dependency
- Motorola One debug memory regions were removed
- Motorola One regulator setup values were ajusted
- Motorola One NFC now have more specific compatible
- All devices now have described reserved GPIOs and trimmed unused ones
- Leeco Le2 added missing pinctrls for peripheral IRQs
- Leeco Le2 OTG is no longer enabled as phy dependency is not enabled(need rework)
- Redmi 9T USB-C connector now is fully wired including pmi632 setup
- Redmi 9T nodes are sorted now
- Various changes to styling to keep nodes within single dts consistent

- Link to v1: https://patch.msgid.link/[email protected]

To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Kees Cook <[email protected]>
To: Tony Luck <[email protected]>
To: "Guilherme G. Piccoli" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
Adam Skladowski (7):
dt-bindings: vendor-prefixes: Add LeEco
dt-bindings: arm: qcom: Document Motorola Moto One
arm64: dts: qcom: Add Motorola One
dt-bindings: arm: qcom: Document LeEco Le2
arm64: dts: qcom: Add LeEco Le2
dt-bindings: arm: qcom: Document Xiaomi Redmi 9T
arm64: dts: qcom: Add Xiaomi Redmi 9T

 Documentation/devicetree/bindings/arm/qcom.yaml    |   3 +
 .../devicetree/bindings/vendor-prefixes.yaml       |   2 +
 arch/arm64/boot/dts/qcom/Makefile                  |   3 +
 arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts | 460 +++++++++++++++++++
 arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts      | 435 ++++++++++++++++++
 arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts   | 497 +++++++++++++++++++++
 6 files changed, 1400 insertions(+)

---
base-commit: 6b8c8af514d739d0335f5579b585e02babe8a727
change-id: 20260810-next-patches-6ad6d10077a0

Best regards,

Signature · 1 line
Adam Skladowski <[email protected]>
#1 lore raw

PATCH v2 1/7 dt-bindings: vendor-prefixes: Add LeEco

Add vendor prefix for now dead ecosystem company LeEco

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 136681412501..dd0762d3334b 100644
@@ -947,6 +947,8 @@ patternProperties:
     description: Shenzen LC Technology Co., Ltd.
   "^leadtek,.*":
     description: Shenzhen Leadtek Technology Co., Ltd.
+  "^leeco,.*":
+    description: Leshi Holding Beijing.
   "^leez,.*":
     description: Leez
   "^lego,.*":
Signature · 1 line
2.55.0
#2 lore raw

PATCH v2 2/7 dt-bindings: arm: qcom: Document Motorola Moto One

In reply to Adam Skladowski

Add compatible for Motorola Moto One(deen) based on Snapdragon 625 SoC.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index ff8a35df7862..289a3de1d24b 100644
@@ -292,6 +292,7 @@ properties:
       - items:
           - enum:
               - flipkart,rimob
+              - motorola,deen
               - motorola,potter
               - xiaomi,daisy
               - xiaomi,mido
Signature · 1 line
2.55.0
#3 lore raw

PATCH v2 3/7 arm64: dts: qcom: Add Motorola One

In reply to Adam Skladowski

Add a devicetree for the Motorola One smartphone, which is based on the Jacala/MSM8953 SoC.

Supported functionality as of this initial submission:
* I2C peripherals (Touchscreen,NFC)
* Power Button, Volume Keys
* Regulators (PM8953)
* Remoteprocs (ADSP, MPSS, WCNSS)
* USB

Device tree also contains supply maps to other subsystems like MDSS but due to missing dependencies like panel those are disabled.

---
 arch/arm64/boot/dts/qcom/Makefile                  |   1 +
 arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts | 460 +++++++++++++++++++++
 2 files changed, 461 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 1c86e7e98f55..11e953657691 100644
@@ -120,6 +120,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= msm8939-sony-xperia-kanuti-tulip.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8939-wingtech-wt82918.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8939-wingtech-wt82918hd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8953-flipkart-rimob.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8953-motorola-deen.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8953-motorola-potter.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8953-xiaomi-daisy.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8953-xiaomi-mido.dtb
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +460 -0

460 lines not on this page · raw message

Signature · 1 line
2.55.0
#4 lore raw

Re: [PATCH v2 3/7] arm64: dts: qcom: Add Motorola One

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [High] Touchscreen `reset-gpios` logic is inverted, which will hold the controller in reset during…

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] Touchscreen reset-gpios logic is inverted, which will hold the controller in reset during operation.
- [Medium] The touchscreen node is disabled, contradicting the commit message claim of supported functionality.
- [Low] The usb-role-switch property in the fcs,fusb302 node is a DT schema violation and misdirected. --

--- Patch [3]: [PATCH v2 3/7] arm64: dts: qcom: Add Motorola One --- commit a01f938ee143a61f1aad41106fd89f197d7a249a
Author: Adam Skladowski <[email protected]>

arm64: dts: qcom: Add Motorola One

This commit adds a devicetree for the Motorola One smartphone based on the Jacala/MSM8953 SoC. It introduces support for basic functionality including I2C peripherals, physical buttons, regulators, remoteprocs, and USB.

Quoted 5 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +0 -0
new file mode 100644
index 0000000000000..acb0b61b8f947

[ ... ]

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 77

Quoted 12 lines

+&i2c_1 {

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +11 -0
+	status = "okay";
+
+	typec-portc@22 {
+		compatible = "fcs,fusb302";
+		reg = <0x22>;
+		interrupts-extended = <&tlmm 9 IRQ_TYPE_LEVEL_LOW>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&fusb302_int_default>;
+
+		usb-role-switch = <&usb3>;

[Severity: Low]
Does this property violate the fcs,fusb302 device tree schema? The binding strictly disallows additional properties like usb-role-switch.

Also, should this point to the DWC3 core node (&usb3_dwc3) instead of the wrapper node (&usb3) where the role switch is actually registered?

Quoted 1 line
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +1 -0
+		vbus-supply = <&fusb302_vbus>;

[ ... ]

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 118

Quoted 9 lines

+&i2c_3 {

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +8 -0
+	status = "okay";
+
+	touchscreen@62 {
+		compatible = "novatek,nt36672a-ts";
+		reg = <0x62>;
+		interrupts-extended = <&tlmm 65 IRQ_TYPE_EDGE_RISING>;
+
+		reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;

[Severity: High]
Will this hold the touchscreen controller in reset during operation?

During driver probe, the reset GPIO is requested with GPIOD_OUT_LOW to bring the controller out of reset. If the hardware reset line is active-low, defining it as GPIO_ACTIVE_HIGH here will cause the driver to incorrectly drive the pin physically low and hold the controller in reset.

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 129

Quoted 11 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +11 -0
+		iovcc-supply = <&pm8953_l6>;
+		/* vcc-supply should follow lab from panel */
+
+		pinctrl-0 = <&ts_reset_default &ts_int_default>;
+		pinctrl-1 = <&ts_reset_sleep &ts_int_sleep>;
+		pinctrl-names = "default", "sleep";
+
+		touchscreen-size-x = <720>;
+		touchscreen-size-y = <1520>;
+
+		status = "disabled";

[Severity: Medium]
The commit message explicitly lists the touchscreen as supported functionality in this initial submission, but it is disabled here.

Should the commit message be updated to reflect that it remains disabled due to missing dependencies?

Quoted 2 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +2 -0
+	};
+};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
#5 lore raw

Re: [PATCH v2 3/7] arm64: dts: qcom: Add Motorola One

In reply to Adam Skladowski
Quoted 15 lines · Adam Skladowski

Add a devicetree for the Motorola One smartphone, which is based on the Jacala/MSM8953 SoC.

Supported functionality as of this initial submission:
* I2C peripherals (Touchscreen,NFC)
* Power Button, Volume Keys
* Regulators (PM8953)
* Remoteprocs (ADSP, MPSS, WCNSS)
* USB

Device tree also contains supply maps to other subsystems like MDSS but due to missing dependencies like panel those are disabled.

---

[...]

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 75

Quoted 7 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +7 -0
+	typec-portc@22 {
+		compatible = "fcs,fusb302";
+		reg = <0x22>;
+		interrupts-extended = <&tlmm 9 IRQ_TYPE_LEVEL_LOW>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&fusb302_int_default>;

nit: outlying sort

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +10 -0
+
+		usb-role-switch = <&usb3>;
+		vbus-supply = <&fusb302_vbus>;
+
+		connector {
+			compatible = "usb-c-connector";
+			label = "USB-C";
+			power-role = "dual";
+			data-role = "dual";
+			try-power-role = "sink";

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 95

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +10 -0
+			typec-power-opmode = "default";
+			source-pdos = <PDO_FIXED(5000, 500,
+						 PDO_FIXED_DUAL_ROLE |
+						 PDO_FIXED_DATA_SWAP |
+						 PDO_FIXED_USB_COMM)>;
+			sink-pdos = <PDO_FIXED(5000, 3000,
+					       PDO_FIXED_DUAL_ROLE |
+					       PDO_FIXED_DATA_SWAP |
+					       PDO_FIXED_USB_COMM)>;
+			op-sink-microwatt = <2000000>;

This is inconsistent with the sink-PDOs you defined (5 V 3 A vs 2 W)

Konrad

#6 lore raw

Re: [PATCH v2 3/7] arm64: dts: qcom: Add Motorola One

Quoted 52 lines · Konrad Dybcio
Quoted 15 lines · Adam Skladowski

Add a devicetree for the Motorola One smartphone, which is based on the Jacala/MSM8953 SoC.

Supported functionality as of this initial submission:
* I2C peripherals (Touchscreen,NFC)
* Power Button, Volume Keys
* Regulators (PM8953)
* Remoteprocs (ADSP, MPSS, WCNSS)
* USB

Device tree also contains supply maps to other subsystems like MDSS but due to missing dependencies like panel those are disabled.

---

[...]

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 75

Quoted 7 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +7 -0
+	typec-portc@22 {
+		compatible = "fcs,fusb302";
+		reg = <0x22>;
+		interrupts-extended = <&tlmm 9 IRQ_TYPE_LEVEL_LOW>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&fusb302_int_default>;

nit: outlying sort

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +10 -0
+
+		usb-role-switch = <&usb3>;
+		vbus-supply = <&fusb302_vbus>;
+
+		connector {
+			compatible = "usb-c-connector";
+			label = "USB-C";
+			power-role = "dual";
+			data-role = "dual";
+			try-power-role = "sink";

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 95

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +10 -0
+			typec-power-opmode = "default";
+			source-pdos = <PDO_FIXED(5000, 500,
+						 PDO_FIXED_DUAL_ROLE |
+						 PDO_FIXED_DATA_SWAP |
+						 PDO_FIXED_USB_COMM)>;
+			sink-pdos = <PDO_FIXED(5000, 3000,
+					       PDO_FIXED_DUAL_ROLE |
+					       PDO_FIXED_DATA_SWAP |
+					       PDO_FIXED_USB_COMM)>;
+			op-sink-microwatt = <2000000>;

This is inconsistent with the sink-PDOs you defined (5 V 3 A vs 2 W)

Quoted 1 line

Konrad

To be honest i don't get what's this about.
Based on docs it says its minimal W value taken by port
and based on PMI8950 Charger it should be about 100mA@5V while SMB1351 can also take as low as 70mA@5V
I could see it being higher when port is used to power SBC or something.

#7 lore raw

Re: [PATCH v2 3/7] arm64: dts: qcom: Add Motorola One

Quoted 5 lines · Adam Skladowski
Quoted 3 lines · Konrad Dybcio
Quoted 2 lines · Adam Skladowski

Add a devicetree for the Motorola One smartphone, which is based on the Jacala/MSM8953 SoC.

[...]

Quoted 11 lines
Quoted 11 lines

arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 95

Quoted 9 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +9 -0
+			source-pdos = <PDO_FIXED(5000, 500,
+						 PDO_FIXED_DUAL_ROLE |
+						 PDO_FIXED_DATA_SWAP |
+						 PDO_FIXED_USB_COMM)>;
+			sink-pdos = <PDO_FIXED(5000, 3000,
+					       PDO_FIXED_DUAL_ROLE |
+					       PDO_FIXED_DATA_SWAP |
+					       PDO_FIXED_USB_COMM)>;
+			op-sink-microwatt = <2000000>;

This is inconsistent with the sink-PDOs you defined (5 V 3 A vs 2 W)

Quoted 6 lines
Quoted 1 line

Konrad

To be honest i don't get what's this about.
Based on docs it says its minimal W value taken by port
and based on PMI8950 Charger it should be about 100mA@5V while SMB1351 can also take as low as 70mA@5V
I could see it being higher when port is used to power SBC or something.

Ah sorry, I didn't read the docs and just guessed what this property did..

Konrad

#8 lore raw

PATCH v2 4/7 dt-bindings: arm: qcom: Document LeEco Le2

In reply to Adam Skladowski

Add compatible for LeEco Le2 codename s2 based on Snapdragon 652 SoC.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index 289a3de1d24b..68542f76df30 100644
@@ -348,6 +348,7 @@ properties:
 
       - items:
           - enum:
+              - leeco,s2
               - longcheer,l9360
           - const: qcom,msm8976
 
Signature · 1 line
2.55.0
#9 lore raw

PATCH v2 5/7 arm64: dts: qcom: Add LeEco Le2

In reply to Adam Skladowski

Add a devicetree for the LeEco Le2 smartphone, which is based on the Eldarion/MSM8976 SoC.

Supported functionality as of this initial submission:
* I2C peripherals (Touchscreen,Audio amp, Haptics, Extcon, Led)
* Power Button, Volume Keys
* Regulators (PM8950)
* WLED (PMI8950)
* Remoteprocs (WCNSS)
* GPU

Device tree also contains supply maps to other subsystems like MDSS but due to missing dependencies like panel those are disabled.

---
 arch/arm64/boot/dts/qcom/Makefile             |   1 +
 arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts | 435 ++++++++++++++++++++++++++
 2 files changed, 436 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 11e953657691..1487f2beff3d 100644
@@ -128,6 +128,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= msm8953-xiaomi-tissot.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8953-xiaomi-vince.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8956-sony-xperia-loire-kugo.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8956-sony-xperia-loire-suzu.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= msm8976-leeco-s2.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8976-longcheer-l9360.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8992-lg-bullhead-rev-10.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= msm8992-lg-bullhead-rev-101.dtb
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +435 -0

435 lines not on this page · raw message

Signature · 1 line
2.55.0
#10 lore raw

Re: [PATCH v2 5/7] arm64: dts: qcom: Add LeEco Le2

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider: - [High] WLED backlight node is missing the 'status = "okay";' override, leaving it disabled. - [Medium]…

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [High] WLED backlight node is missing the 'status = "okay";' override, leaving it disabled.
- [Medium] Missing Volume Down key functionality despite commit message claiming support for 'Volume Keys'
- [Medium] TUSB320 interrupt is configured with incorrect rising edge polarity.
- [Low] Devicetree node name gpio_keys uses an underscore instead of a hyphen.
--

--- Patch [5]: [PATCH v2 5/7] arm64: dts: qcom: Add LeEco Le2 --- commit 2faf39eef8c89160868ac706e9e8325f190da424
Author: Adam Skladowski <[email protected]>

arm64: dts: qcom: Add LeEco Le2

Add a devicetree for the LeEco Le2 smartphone, which is based on the Eldarion/MSM8976 SoC. Supported functionality includes I2C peripherals, Power Button, Volume Keys, Regulators, WLED, Remoteprocs, and GPU.

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +4 -0
new file mode 100644
index 0000000000000..acea087168afe
@@ -0,0 +1,435 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
+/*
+ * Copyright (c) 2026 Adam Skladowski <[email protected]>
+ */

[ ... ]

arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts line 26

Quoted 6 lines
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +6 -0
+/ {
+	model = "Leeco Le S2";
+	compatible = "leeco,s2", "qcom,msm8976";
+	chassis-type = "handset";
+
+	gpio_keys {

[Severity: Low]
This isn't a bug, but should this node name use a hyphen instead of an underscore (gpio-keys) to conform to standard devicetree naming conventions?

arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts line 37

Quoted 11 lines
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +11 -0
+		compatible = "gpio-keys";
+
+		pinctrl-0 = <&gpio_key_default>;
+		pinctrl-names = "default";
+
+		key-volume-up {
+			label = "Volume Up";
+			gpios = <&tlmm 113 GPIO_ACTIVE_LOW>;
+			linux,code = <KEY_VOLUMEUP>;
+		};
+	};

[Severity: Medium]
The commit message mentions support for "Volume Keys", but only the Volume Up key is defined here. Is the Volume Down key missing?

On PM8950 platforms, Volume Down is typically routed to the PMIC resin pin, but pm8950_resin isn't overridden to status = "okay"; in this file. Will this leave the Volume Down key non-functional?

[ ... ]

Quoted 4 lines

+&blsp2_i2c2 {

arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +3 -0
+	status = "okay";
+
+	haptics: haptics@5a {

[ ... ]

arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts line 112

Quoted 6 lines
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +6 -0
+	};
+
+	tiusb320: typec@47 {
+		compatible = "ti,tusb320";
+		reg = <0x47>;
+		interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_RISING>;

[Severity: Medium]
The INT_N pin of the TUSB320 is an active-low open-drain output. Should this interrupt be configured as IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_LEVEL_LOW instead of IRQ_TYPE_EDGE_RISING?

As it is, the kernel might ignore the high-to-low transition when a cable is plugged in.

Quoted 5 lines
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +5 -0
+
+		pinctrl-0 = <&tusb320_int_active>;
+		pinctrl-names = "default";
+	};
+};

[ ... ]

Quoted 8 lines

+&pm8950_spmi_regulators {

arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +7 -0
+	vdd_s5-supply = <&vph_pwr>;
+
+	/* Cluster 0 supply */
+	pm8950_spmi_s5: s5 {
+		regulator-min-microvolt = <950000>;
+		regulator-max-microvolt = <1165000>;
+		regulator-name = "VDD_APC0";

arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts line 228

Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +10 -0
+		regulator-always-on;
+		regulator-boot-on;
+	};
+};
+
+&pmi8950_wled {
+	qcom,current-limit-microamp = <20000>;
+	qcom,enabled-strings = <0 1>;
+	qcom,ovp-millivolt = <29600>;
+};

[Severity: High]
Is this node missing a status = "okay"; property?

The pmi8950-wled device defaults to disabled in pmi8950.dtsi. Without explicitly enabling it here, will the display backlight fail to probe during boot?

[ ... ]

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=5
Reviewed-by on v2 5/7
#11 lore raw

Re: [PATCH v2 5/7] arm64: dts: qcom: Add LeEco Le2

In reply to Adam Skladowski
Quoted 11 lines · Adam Skladowski

Add a devicetree for the LeEco Le2 smartphone, which is based on the Eldarion/MSM8976 SoC.

Supported functionality as of this initial submission:
* I2C peripherals (Touchscreen,Audio amp, Haptics, Extcon, Led)
* Power Button, Volume Keys
* Regulators (PM8950)
* WLED (PMI8950)
* Remoteprocs (WCNSS)
* GPU

Quoted 5 lines

Device tree also contains supply maps to other subsystems like MDSS but due to missing dependencies like panel those are disabled.

---

Konrad

#12 lore raw

PATCH v2 6/7 dt-bindings: arm: qcom: Document Xiaomi Redmi 9T

In reply to Adam Skladowski

Add compatible for Xiaomi Redmi 9T NFC codename lemon which is one of variants of Xiaomi Citrus lineup based on Snapdragon 662 SoC.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
index 68542f76df30..5363efadd4ee 100644
@@ -1035,6 +1035,7 @@ properties:
       - items:
           - enum:
               - fxtec,pro1x
+              - xiaomi,lemon
           - const: qcom,sm6115
 
       - items:
Signature · 1 line
2.55.0
#13 lore raw

PATCH v2 7/7 arm64: dts: qcom: Add Xiaomi Redmi 9T

In reply to Adam Skladowski

Add a devicetree for the Xiaomi Redmi 9T smartphone, which is based on the Bengal/SM6115 SoC.

Supported functionality as of this initial submission:

* Display via SimpleFB/SimpleDRM
* GPU
* I2C peripherals (Backlight)
* Power Button, Volume Keys
* Regulators
* Remoteprocs (ADSP, CDSP, MPSS)
* UFS/SDCARD
* USB

Device tree also contains supply maps to other subsystems like MDSS but due to missing dependencies like panel those are disabled.

---
 arch/arm64/boot/dts/qcom/Makefile                |   1 +
 arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts | 497 +++++++++++++++++++++++
 2 files changed, 498 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 1487f2beff3d..6dee0a99fdc6 100644
@@ -345,6 +345,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= sm4250-oneplus-billie2.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm4450-qrd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm6115-fxtec-pro1x.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm6115p-lenovo-j606f.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= sm6115-xiaomi-lemon.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm6125-sony-xperia-seine-pdx201.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm6125-xiaomi-ginkgo.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= sm6125-xiaomi-laurel-sprout.dtb
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +497 -0

497 lines not on this page · raw message

Signature · 1 line
2.55.0
#14 lore raw

Re: [PATCH v2 7/7] arm64: dts: qcom: Add Xiaomi Redmi 9T

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] Invalid `brightness-levels` property in `led-backlight` triggers boot warning and is ignored. --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Invalid brightness-levels property in led-backlight triggers boot warning and is ignored. --

--- Patch [7]: [PATCH v2 7/7] arm64: dts: qcom: Add Xiaomi Redmi 9T --- commit 98a4b41cf18b5589a5dbba3f7c9d120fe90da54f
Author: Adam Skladowski <[email protected]>

arm64: dts: qcom: Add Xiaomi Redmi 9T

This commit adds a devicetree for the Xiaomi Redmi 9T smartphone, which is based on the Bengal/SM6115 SoC. It introduces initial support for features like display, GPU, regulators, UFS, USB, and remoteprocs.

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +0 -0
new file mode 100644

[ ... ]

arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts line 46

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +4 -0
+	backlight_dsi: backlight-dsi {
+		compatible = "led-backlight";
+		leds = <&led_backlight>;
+		brightness-levels = <255>;

[Severity: Low]
Does providing a single value to brightness-levels trigger a boot warning?

The led-backlight driver typically expects brightness-levels to be an array of multiple values mapping an index to a brightness level. Providing a single element causes the driver to emit a "Not enough levels defined" warning during probe and ignores the property completely.

Quoted 4 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +4 -0
+		default-brightness-level = <190>;
+		/* Backlight controllers can differ between panel variants */
+		status = "disabled";
+	};

[ ... ]

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=7
Reviewed-by on v2 7/7
#15 lore raw

Re: [PATCH v2 7/7] arm64: dts: qcom: Add Xiaomi Redmi 9T

In reply to Adam Skladowski
Quoted 14 lines · Adam Skladowski

Add a devicetree for the Xiaomi Redmi 9T smartphone, which is based on the Bengal/SM6115 SoC.

Supported functionality as of this initial submission:

* Display via SimpleFB/SimpleDRM
* GPU
* I2C peripherals (Backlight)
* Power Button, Volume Keys
* Regulators
* Remoteprocs (ADSP, CDSP, MPSS)
* UFS/SDCARD
* USB

Quoted 5 lines

Device tree also contains supply maps to other subsystems like MDSS but due to missing dependencies like panel those are disabled.

---

Konrad