arm64: dts: qcom: Add the Lenovo IdeaCentre Mini X
cover arm64: dts: qcom: Add the Lenovo IdeaCentre Mini X
---
Bjorn Andersson (3):
dt-bindings: arm: qcom: Document the Lenovo IdeaCentre Mini X
arm64: dts: qcom: Add the Lenovo IdeaCentre Mini X
firmware: qcom: scm: Allow QSEECOM on Lenovo IdeaCentre Mini X
Documentation/devicetree/bindings/arm/qcom.yaml | 1 + arch/arm64/boot/dts/qcom/Makefile | 1 + .../qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts | 1199 ++++++++++++++++++++ drivers/firmware/qcom/qcom_scm.c | 1 + 4 files changed, 1202 insertions(+)
---
base-commit: 66ba480978ce390e631e870b740a3406e3eb6b01
change-id: 20260311-ideacentre-9048b8cb7b9f
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>
PATCH 1/3 dt-bindings: arm: qcom: Document the Lenovo IdeaCentre Mini X
The Lenovo IdeaCentre Mini X (Snapdragon) Desktop is a Hamoa-based ultracompact desktop PC. It provides HDMI, DisplayPort, USB Type-C display outputs, 5 additional USB ports, Ethernet, dual NVME slots, headphone jack, WiFi, and Bluetooth.
Document the compatible for this device.
--- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/qcom.yaml +1 -0
@@ -1142,6 +1142,7 @@ properties: - dell,xps13-9345 - hp,elitebook-ultra-g1q - hp,omnibook-x14 + - lenovo,ideacentre-mini-01q8x10 - lenovo,yoga-slim7x - microsoft,romulus13 - microsoft,romulus15
Signature · 1 line
2.51.0
Re: [PATCH 1/3] dt-bindings: arm: qcom: Document the Lenovo IdeaCentre Mini X
Quoted 9 lines · Bjorn Andersson
The Lenovo IdeaCentre Mini X (Snapdragon) Desktop is a Hamoa-based ultracompact desktop PC. It provides HDMI, DisplayPort, USB Type-C display outputs, 5 additional USB ports, Ethernet, dual NVME slots, headphone jack, WiFi, and Bluetooth.
Document the compatible for this device.
Signed-off-by Bjorn Andersson <[email protected]>---
Best regards,
Krzysztof
PATCH 2/3 arm64: dts: qcom: Add the Lenovo IdeaCentre Mini X
In reply to Bjorn AnderssonThe Lenovo IdeaCentre Mini X (Snapdragon) Desktop is a Hamoa-based ultracompact desktop PC. It provides HDMI, DisplayPort, USB Type-C display outputs, 5 additional USB ports, Ethernet, dual NVME slots, headphone jack, WiFi, and Bluetooth.
Introduce a DeviceTree describing this device.
--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts | 1199 ++++++++++++++++++++ 2 files changed, 1200 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -21,6 +21,7 @@ dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk.dtb hamoa-iot-evk-el2-dtbs := hamoa-iot-evk.dtb x1-el2.dtbo dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk-el2.dtb +dtb-$(CONFIG_ARCH_QCOM) += hamoa-lenovo-ideacentre-mini-01q8x10.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5018-rdp432-c2.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5018-tplink-archer-ax55-v1.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5332-rdp441.dtb
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +1199 -0
1,199 lines not on this page · raw message
Signature · 1 line
2.51.0
Quoted 9 lines · Bjorn Andersson
The Lenovo IdeaCentre Mini X (Snapdragon) Desktop is a Hamoa-based ultracompact desktop PC. It provides HDMI, DisplayPort, USB Type-C display outputs, 5 additional USB ports, Ethernet, dual NVME slots, headphone jack, WiFi, and Bluetooth.
Introduce a DeviceTree describing this device.
Signed-off-by Bjorn Andersson <[email protected]>---
[...]
Review
Quoted 3 lines
+&iris {
(quoted diff) +2
-0+ firmware-name = "qcom/x1e80100/LENOVO/91B6/qcvss8380.mbn"; + status = "okay";
nit: \n before status, please
[...]
Quoted 7 lines
+&usb_1_ss1_qmpphy {
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +6
-0+ vdda-phy-supply = <&vreg_l2j>; + vdda-pll-supply = <&vreg_l2d>; + + /delete-property/ mode-switch; + /delete-property/ orientation-switch; +
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts line 1127
Quoted 10 lines
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +10
-0+ status = "okay"; + + ports { + port@0 { + #address-cells = <1>; + #size-cells = <0>; + + /delete-node/ endpoint; + + /* XXX: why @0? */
Because the binding defined it that way
Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml
->
ports:
port@0:
endpoint@0:
Display Port Output lanes of the PHY when used with static mapping [...]
Quoted 17 lines
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +17
-0+ usb_1_ss1_qmpphy_out_dp: endpoint@0 { + reg = <0>; + + data-lanes = <3 2 1 0>; + remote-endpoint = <&dp_port_in>; + }; + }; + }; +}; + +&usb_1_ss2_qmpphy { + vdda-phy-supply = <&vreg_l2j>; + vdda-pll-supply = <&vreg_l2d>; + + /delete-property/ mode-switch; + /delete-property/ orientation-switch; +
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts line 1154
Quoted 10 lines
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +10
-0+ status = "okay"; + + ports { + port@0 { + #address-cells = <1>; + #size-cells = <0>; + + /delete-node/ endpoint; + + /* XXX: why @0? */
Same here
other than that, please fix up the odd misordered pinctrl-n/pinctrl-names and feel free to add my:
Konrad
Quoted 9 lines · Bjorn Andersson
The Lenovo IdeaCentre Mini X (Snapdragon) Desktop is a Hamoa-based ultracompact desktop PC. It provides HDMI, DisplayPort, USB Type-C display outputs, 5 additional USB ports, Ethernet, dual NVME slots, headphone jack, WiFi, and Bluetooth.
Introduce a DeviceTree describing this device.
Signed-off-by Bjorn Andersson <[email protected]>---
[...]
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts line 715
Quoted 6 lines
+&pcie3 {
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +5
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pcie3_default>; + + perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
In lieu of the recent changes, these 2 properties need to be moved to the root port node under the RCs, for all of them
Konrad
Quoted 21 lines · Konrad Dybcio
Quoted 9 lines · Bjorn Andersson
The Lenovo IdeaCentre Mini X (Snapdragon) Desktop is a Hamoa-based ultracompact desktop PC. It provides HDMI, DisplayPort, USB Type-C display outputs, 5 additional USB ports, Ethernet, dual NVME slots, headphone jack, WiFi, and Bluetooth.
Introduce a DeviceTree describing this device.
Signed-off-by Bjorn Andersson <[email protected]>---
[...]
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts line 715
Quoted 6 lines
+&pcie3 {
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +5
-0+ pinctrl-names = "default"; + pinctrl-0 = <&pcie3_default>; + + perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;In lieu of the recent changes, these 2 properties need to be moved to the root port node under the RCs, for all of them
Quoted 1 line
Konrad
…and without forgetting (as I have for dell-thena until noticing in v4) that under the port nodes, it's now called "reset" instead of "perst"! :)
~val
Hi Bjorn,
Quoted 31 lines · Bjorn Andersson
The Lenovo IdeaCentre Mini X (Snapdragon) Desktop is a Hamoa-based ultracompact desktop PC. It provides HDMI, DisplayPort, USB Type-C display outputs, 5 additional USB ports, Ethernet, dual NVME slots, headphone jack, WiFi, and Bluetooth.
Introduce a DeviceTree describing this device.
Signed-off-by Bjorn Andersson <[email protected]>--- arch/arm64/boot/dts/qcom/Makefile | 1 + .../qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts | 1199 ++++++++++++++++++++ 2 files changed, 1200 insertions(+)arch/arm64/boot/dts/qcom/Makefile +1
-0@@ -21,6 +21,7 @@ dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk.dtb hamoa-iot-evk-el2-dtbs := hamoa-iot-evk.dtb x1-el2.dtbo dtb-$(CONFIG_ARCH_QCOM) += hamoa-iot-evk-el2.dtb +dtb-$(CONFIG_ARCH_QCOM) += hamoa-lenovo-ideacentre-mini-01q8x10.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5018-rdp432-c2.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5018-tplink-archer-ax55-v1.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq5332-rdp441.dtbarch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +0
-0@@ -0,0 +1,1199 @@
<snip>
Quoted 4 lines
+&remoteproc_cdsp {
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +3
-0+ firmware-name = "qcom/x1e80100/LENOVO/91B6/qccdsp8380.mbn", + "qcom/x1e80100/LENOVO/91B6/cdsp_dtbs.elf"; +
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts line 873
Quoted 10 lines
arch/arm64/boot/dts/qcom/hamoa-lenovo-ideacentre-mini-01q8x10.dts new file +10
-0+ status = "okay"; +}; + +&smb2360_0 { + status = "okay"; +}; + +&smb2360_0 { + status = "okay"; +};
You have this smb2360_0 node enabled twice.
I checked this AI review thingy to see what it's saying , and while most suggestions are probably kinda useless, it did spot that bit, which I thought you may want to fix in v2.
https://sashiko.dev/#/patchset/20260325-ideacentre-v1-0-768b66aaef30%40oss.qualcomm.com?patch=10329
Quoted 2 lines
This isn't a bug, but the
smb2360_0node is defined twice. Can the duplicate be removed?
Regards
Luca
PATCH 3/3 firmware: qcom: scm: Allow QSEECOM on Lenovo IdeaCentre Mini X
In reply to Bjorn AnderssonThe Hamoa-based Lenovo IdeaCentre Mini X provides the same UEFI variable access through uefisecapp as other Hamoa devices, add it to the allowlist.
--- drivers/firmware/qcom/qcom_scm.c | 1 + 1 file changed, 1 insertion(+)
drivers/firmware/qcom/qcom_scm.c +1 -0
@@ -2299,6 +2299,7 @@ static const struct of_device_id qcom_scm_qseecom_allowlist[] __maybe_unused = { { .compatible = "hp,omnibook-x14" }, { .compatible = "huawei,gaokun3" }, { .compatible = "lenovo,flex-5g" }, + { .compatible = "lenovo,ideacentre-mini-01q8x10" }, { .compatible = "lenovo,thinkbook-16" }, { .compatible = "lenovo,thinkpad-t14s" }, { .compatible = "lenovo,thinkpad-x13s", },
Signature · 1 line
2.51.0
Re: [PATCH 3/3] firmware: qcom: scm: Allow QSEECOM on Lenovo IdeaCentre Mini X
Quoted 9 lines · Bjorn Andersson
The Hamoa-based Lenovo IdeaCentre Mini X provides the same UEFI variable access through uefisecapp as other Hamoa devices, add it to the allowlist.
Signed-off-by Bjorn Andersson <[email protected]>--- drivers/firmware/qcom/qcom_scm.c | 1 + 1 file changed, 1 insertion(+)
Quoted 1 line
Signature · 2 lines
With best wishes Dmitry