arm64: dts: qcom: Add 3 new devices
v4 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 v4:
- Leeco Le 2 and Motorola One fixed-regulators aligned to schema
- Motorola One commit msg reworded to drop touchscreen
- Leeco Le 2 added lacking parent supply for rpm regulators
- Redmi 9T makefile placement fixed to be after other sm6115 device
- Link to v3: https://patch.msgid.link/[email protected]
Changes in v3:
- Motorola One Touchscreen was removed as it doesn't work
- Leeco Le 2 gpio-keys node name was fixed
- Leeco Le 2 volume down key via pm8950 resin was added
- Redmi 9T Reviewed-by tag was added
- Adressed more Sashiko-bot warnings
- Link to v2: https://patch.msgid.link/[email protected]
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 | 440 ++++++++++++++++++ arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts | 442 ++++++++++++++++++ arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts | 497 +++++++++++++++++++++ 6 files changed, 1387 insertions(+)
---
base-commit: 6b8c8af514d739d0335f5579b585e02babe8a727
change-id: 20260810-next-patches-6ad6d10077a0
Best regards,
Signature · 1 line
Adam Skladowski <[email protected]>
PATCH v4 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
@@ -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
PATCH v4 2/7 dt-bindings: arm: qcom: Document Motorola Moto One
In reply to Adam SkladowskiAdd 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
@@ -292,6 +292,7 @@ properties: - items: - enum: - flipkart,rimob + - motorola,deen - motorola,potter - xiaomi,daisy - xiaomi,mido
Signature · 1 line
2.55.0
PATCH v4 3/7 arm64: dts: qcom: Add Motorola One
In reply to Adam SkladowskiAdd a devicetree for the Motorola One smartphone, which is based on the Jacala/MSM8953 SoC.
Supported functionality as of this initial submission:
* I2C peripherals (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 | 440 +++++++++++++++++++++ 2 files changed, 441 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -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 +440 -0
440 lines not on this page · raw message
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v4 3/7] arm64: dts: qcom: Add Motorola One
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] The `dai@22` and `dai@127` node names use decimal unit-addresses instead of hexadecimal, causing a…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The dai@22 and dai@127 node names use decimal unit-addresses instead of hexadecimal, causing a mismatch with their reg properties. --
--- Patch [3]: [PATCH v4 3/7] arm64: dts: qcom: Add Motorola One --- commit bc96bd20e17e79acc946f76b450ae2f6d79d33a8
Author: Adam Skladowski <[email protected]>
arm64: dts: qcom: Add Motorola One
Add a devicetree for the Motorola One smartphone, which is based on the Jacala/MSM8953 SoC. Supported functionality includes I2C peripherals, keys, regulators, remoteprocs, and USB.
Quoted 5 lines
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +0
-0
[ ... ]
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts line 180
Quoted 11 lines
+&q6afedai {
arch/arm64/boot/dts/qcom/msm8953-motorola-deen.dts new file +10
-0+ dai@22 { + reg = <QUATERNARY_MI2S_RX>; + qcom,sd-lines = <0>; + }; + + dai@127 { + reg = <QUINARY_MI2S_RX>; + qcom,sd-lines = <1>; + }; +};
[Severity: Low]
Should these node names use hexadecimal unit-addresses (dai@16 and dai@7f) to match the evaluated values of their reg properties?
The macros QUATERNARY_MI2S_RX and QUINARY_MI2S_RX evaluate to 22 (0x16) and 127 (0x7F) respectively. The Device Tree specification requires the unit-address in a node name to match the first address specified in its reg property formatted in hexadecimal. Using decimal values here will likely cause the dtc compiler to emit simple_bus_reg warnings during the build.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
PATCH v4 4/7 dt-bindings: arm: qcom: Document LeEco Le2
In reply to Adam SkladowskiAdd 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
@@ -348,6 +348,7 @@ properties: - items: - enum: + - leeco,s2 - longcheer,l9360 - const: qcom,msm8976
Signature · 1 line
2.55.0
PATCH v4 5/7 arm64: dts: qcom: Add LeEco Le2
In reply to Adam SkladowskiAdd 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 | 442 ++++++++++++++++++++++++++ 2 files changed, 443 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -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 +442 -0
442 lines not on this page · raw message
Signature · 1 line
2.55.0
[email protected]
AI reviewRe: [PATCH v4 5/7] arm64: dts: qcom: Add LeEco Le2
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider: - [High] The `vdd_l9_l10_l13_l14_l15_l18` property in `qcom,rpm-pm8950-regulators` is missing the mandatory…
Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] The vdd_l9_l10_l13_l14_l15_l18 property in qcom,rpm-pm8950-regulators is missing the mandatory -supply suffix.
- [High] The &otg node configures an extcon but lacks status = "okay";, meaning USB will remain disabled.
- [Low] The Synaptics RMI4 touchscreen reset-gpios is incorrectly specified as active-high (GPIO_ACTIVE_HIGH), contradicting the hardware's active-low requirement. --
--- Patch [5]: [PATCH v4 5/7] arm64: dts: qcom: Add LeEco Le2 --- commit c3c3413469ad8891e9f97013b16ab8831b5677fe
Author: Adam Skladowski <[email protected]>
arm64: dts: qcom: Add LeEco Le2
This patch adds a devicetree for the LeEco Le2 smartphone based on the Eldarion/MSM8976 SoC. It includes initial support for I2C peripherals, regulators, WLED, remoteprocs, and GPU.
Quoted 5 lines
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +0
-0
[ ... ]
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts line 71
Quoted 12 lines
+&blsp1_i2c4 {
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +11
-0+ status = "okay"; + + touchscreen@4b { + compatible = "syna,rmi4-i2c"; + reg = <0x4b>; + interrupts-extended = <&tlmm 65 IRQ_TYPE_EDGE_FALLING>; + + pinctrl-0 = <&touch_default_state>; + pinctrl-names = "default"; + + reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
[Severity: Low]
Is the reset-gpios polarity correct here?
Looking further down in the patch at touch_default_state, a bias-pull-up is defined for this pin. This suggests the inactive state is physically high, which would mean the reset should be active-low. While the syna,rmi4-i2c driver may ignore this property currently, if driver support is added later, the GPIO framework might drive the pin low when de-asserting it, keeping the device permanently in reset.
[ ... ]
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts line 181
Quoted 7 lines
+&mdss_dsi0_phy {
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +6
-0+ vddio-supply = <&pm8950_l6>; +}; + +&otg { + extcon = <&tiusb320>; +};
[Severity: High]
Should this node include a status = "okay" property?
Without it, the OTG port will remain in the disabled state defined by the base SoC inclusion, which prevents the USB controller driver from probing and leaves USB/OTG functionality broken.
[ ... ]
Quoted 5 lines
+&rpm_requests {
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +4
-0+ regulators { + compatible = "qcom,rpm-pm8950-regulators"; + + vdd_s1-supply = <&vph_pwr>;
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts line 250
Quoted 10 lines
arch/arm64/boot/dts/qcom/msm8976-leeco-s2.dts new file +10
-0+ vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s6-supply = <&vph_pwr>; + vdd_l1_l19-supply = <&pm8950_s3>; + vdd_l2_l23-supply = <&pm8950_s3>; + vdd_l3-supply = <&pm8950_s3>; + vdd_l5_l6_l7_l16-supply = <&pm8950_s4>; + vdd_l8_l11_l12_l17_l22-supply = <&vph_pwr>; + vdd_l9_l10_l13_l14_l15_l18 = <&vph_pwr>;
[Severity: High]
Is this property missing the mandatory -supply suffix?
The regulator framework relies on the -supply suffix to establish parent-child relationships. Without it, the framework will fail to resolve the parent supply, leaving regulators L9, L10, L13, L14, L15, and L18 unmapped.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=5
PATCH v4 6/7 dt-bindings: arm: qcom: Document Xiaomi Redmi 9T
In reply to Adam SkladowskiAdd 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
@@ -1035,6 +1035,7 @@ properties: - items: - enum: - fxtec,pro1x + - xiaomi,lemon - const: qcom,sm6115 - items:
Signature · 1 line
2.55.0
PATCH v4 7/7 arm64: dts: qcom: Add Xiaomi Redmi 9T
In reply to Adam SkladowskiAdd 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
@@ -344,6 +344,7 @@ dtb-$(CONFIG_ARCH_QCOM) += shikra-iqs-evk.dtb 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) += sm6115-xiaomi-lemon.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6115p-lenovo-j606f.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6125-sony-xperia-seine-pdx201.dtb dtb-$(CONFIG_ARCH_QCOM) += sm6125-xiaomi-ginkgo.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
[email protected]
AI reviewRe: [PATCH v4 7/7] arm64: dts: qcom: Add Xiaomi Redmi 9T
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Low] The `brightness-levels` property in the `backlight_dsi` node defines a single element (`<255>`)…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The brightness-levels property in the backlight_dsi node defines a single element (<255>), which violates the led-backlight DT schema and causes a runtime kernel warning.
- [Low] The USB SuperSpeed PHY (usb_qmpphy) is needlessly enabled and routed to the Type-C connector on a USB 2.0-only device, misrepresenting the board topology and wasting power. --
--- Patch [7]: [PATCH v4 7/7] arm64: dts: qcom: Add Xiaomi Redmi 9T --- commit b6a263c7aa2dea142dda12d7e116e55fb2d00b44
Author: Adam Skladowski <[email protected]>
arm64: dts: qcom: Add Xiaomi Redmi 9T
This commit adds a devicetree for the Xiaomi Redmi 9T smartphone based on the Bengal/SM6115 SoC. It supports basic functionality like display, GPU, I2C peripherals, keys, regulators, remoteprocs, UFS/SD, and USB.
Quoted 6 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +0
-0@@ -0,0 +1,497 @@
[ ... ]
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts line 47
Quoted 5 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +5
-0+ backlight_dsi: backlight-dsi { + compatible = "led-backlight"; + leds = <&led_backlight>; + brightness-levels = <255>; + default-brightness-level = <190>;
[Severity: Low]
Could this single-element brightness-levels array trigger a dt-schema validation failure and a kernel warning during boot?
In the led_bl.c driver, parsing this node calls of_property_count_u32_elems() which warns when num_levels == 1 with "Not enough levels defined\n", causing the property to be ignored.
Additionally, the default-brightness-level index of 190 would be out of bounds for an array with only one element.
Quoted 3 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +3
-0+ /* Backlight controllers can differ between panel variants */ + status = "disabled"; + };
[ ... ]
Quoted 8 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +8
-0+ ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + pmi632_hs_in: endpoint { + remote-endpoint = <&usb_dwc3_hs>;
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts line 207
Quoted 10 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +10
-0+ }; + }; + + port@1 { + reg = <1>; + pmi632_ss_in: endpoint { + remote-endpoint = <&usb_qmpphy_out>; + }; + }; + };
[Severity: Low]
Is it intentional to route the SuperSpeed PHY endpoint to the Type-C connector here, given that the device is USB 2.0 only?
The usb_dwc3 node restricts the maximum speed to high-speed. Leaving the SuperSpeed PHY routed and enabled could misrepresent the hardware topology if there are no physical SS traces.
Quoted 2 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +2
-0+ }; +};
[ ... ]
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts line 462
Quoted 6 lines
+&usb_qmpphy {
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +5
-0+ vdda-phy-supply = <&pm6125_l4>; + vdda-pll-supply = <&pm6125_l12>; + + status = "okay"; +};
[Severity: Low]
Should the usb_qmpphy node remain disabled for this high-speed only device?
Enabling the QMP SuperSpeed PHY wastes power initializing and bringing up an unused PHY when the USB controller probes.
Usually, devices in this situation also remove the usb3-phy reference from the phys property in the usb_dwc3 node so the driver does not attempt to initialize it at all.
Quoted 8 lines
arch/arm64/boot/dts/qcom/sm6115-xiaomi-lemon.dts new file +8
-0+ +&usb_qmpphy_out { + remote-endpoint = <&pmi632_ss_in>; +}; + +&xo_board { + clock-frequency = <19200000>; +};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=7