Skip to contentSkip to conversation

arm64: dts: qcom: Add the Lenovo IdeaCentre Mini X

PATCH Superseded Bjorn Andersson 6 participants 10 messages Mar 25 – Mar 27

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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]>
#1 lore raw

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
index 9f9930fb9a5e9cb76f508c1f2e86da6ad9bb44e0..0ab18e9b97ac0c6df0f069dc5b985c3df48f09d5 100644
@@ -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
Acked-by on v1 1/3
#2 lore raw

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.

---

Best regards,
Krzysztof

#3 lore raw

PATCH 2/3 arm64: dts: qcom: Add the Lenovo IdeaCentre Mini X

In reply to 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.

---
 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
index d69e5f3132c4fd3fbf1ac90e83adf6af6b104a93..fbbec696ac161af42c18acc344a228ba461f65a7 100644
@@ -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
Reviewed-by on v1 2/3
#4 lore raw
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.

---

[...]

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

#5 lore raw
In reply to Bjorn Andersson
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.

---

[...]

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

#6 lore raw
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.

---

[...]

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

#7 lore raw
In reply to Bjorn Andersson

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.

---
 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
index d69e5f3132c4fd3fbf1ac90e83adf6af6b104a93..fbbec696ac161af42c18acc344a228ba461f65a7 100644
@@ -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 +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..cc90cb58a9c17ad166dd641d9bbc03b7df5686a6
@@ -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_0 node is defined twice. Can the duplicate be removed?

Regards
Luca

#8 lore raw

PATCH 3/3 firmware: qcom: scm: Allow QSEECOM on Lenovo IdeaCentre Mini X

In reply to 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.

---
 drivers/firmware/qcom/qcom_scm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/firmware/qcom/qcom_scm.c +1 -0
index d1082695ec38e180cbb37fa6231018be6810da0a..a6cf36ed28c402dc09e6f54963687fa3d0e5d45f 100644
@@ -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
Reviewed-by on v1 3/3
#9 lore raw

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.

---
 drivers/firmware/qcom/qcom_scm.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 1 line
Signature · 2 lines
With best wishes
Dmitry