Skip to contentSkip to conversation

arm64: dts: qcom: Add Vicharak Axon Pro

PATCH Superseded Ajit Singh 2 participants 3 messages Nov 26

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Ajit Singh

author
#0 lore raw

v3 cover arm64: dts: qcom: Add Vicharak Axon Pro

Add initial devicetree support for the Vicharak Axon Pro SBC based on the Qualcomm QCS9075 platform.

The board description includes the debug UART, UFS, USB 2.0 host with an onboard hub, PCIe1 (NVMe), GPIO LEDs, GPU and DSPs.

The compatible string was merged separately as a917cf9dc0e9 ("dt-bindings: arm: qcom: Add Vicharak Axon Pro").

Changes in v3:
- Rebase on linux-next and include lemans-embedded.dtsi after the platform resource split in 1f90a2bab7f6.
- Drop the binding patch, which is already merged.

Link to v2: https://lore.kernel.org/r/[email protected]

Ajit Singh (1):
arm64: dts: qcom: lemans: Add Vicharak Axon Pro

 arch/arm64/boot/dts/qcom/Makefile             |   1 +
 .../dts/qcom/lemans-vicharak-axon-pro.dts     | 514 ++++++++++++++++++
 2 files changed, 515 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/lemans-vicharak-axon-pro.dts
Signature · 1 line
2.50.1 (Apple Git-155)
author
#1 lore raw

PATCH v3 1/1 arm64: dts: qcom: lemans: Add Vicharak Axon Pro

Add initial device tree support for the Vicharak Axon Pro SBC based on the Qualcomm QCS9075 SoC.

Enable the debug UART, UFS, USB 2.0 host, PCIe1 (NVMe), GPIO LEDs, GPU and DSPs.

---
 arch/arm64/boot/dts/qcom/Makefile             |   1 +
 .../dts/qcom/lemans-vicharak-axon-pro.dts     | 514 ++++++++++++++++++
 2 files changed, 515 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/lemans-vicharak-axon-pro.dts
arch/arm64/boot/dts/qcom/Makefile +1 -0
index 19310879349d..6c38f753f06a 100644
@@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_QCOM)	+= lemans-evk-el2.dtb
 lemans-evk-ifp-mezzanine-dtbs	:= lemans-evk.dtb lemans-evk-ifp-mezzanine.dtbo
 dtb-$(CONFIG_ARCH_QCOM)	+= lemans-evk-ifp-mezzanine.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= lemans-sa8255p-ride.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= lemans-vicharak-axon-pro.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= mahua-crd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= mahua-lenovo-thinkpad-t14s-gen7-lcd.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= mahua-qcb.dtb
arch/arm64/boot/dts/qcom/lemans-vicharak-axon-pro.dts new file +514 -0

514 lines not on this page · raw message

Signature · 1 line
2.50.1 (Apple Git-155)
#2 lore raw

Re: [PATCH v3 1/1] arm64: dts: qcom: lemans: Add Vicharak Axon Pro

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] arm64: dts: qcom: lemans: misplaced pcie1 GPIOs and wrong WAKE# polarity --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Medium] arm64: dts: qcom: lemans: misplaced pcie1 GPIOs and wrong WAKE# polarity
--

commit b99c8adc648ceea0d68c162149cad6f93cd36e09
Author: Ajit Singh <[email protected]>

arm64: dts: qcom: lemans: Add Vicharak Axon Pro

This commit adds initial device tree support for the Vicharak Axon Pro SBC based on the Qualcomm QCS9075 SoC.

Quoted 5 lines
arch/arm64/boot/dts/qcom/lemans-vicharak-axon-pro.dts new file +0 -0
new file mode 100644
index 0000000000000..f81aa2ebbdcca

[ ... ]

arch/arm64/boot/dts/qcom/lemans-vicharak-axon-pro.dts line 359

Quoted 10 lines

+&pcie1 {

arch/arm64/boot/dts/qcom/lemans-vicharak-axon-pro.dts new file +9 -0
+	perst-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
+	wake-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
+	vddpe-3v3-supply = <&vcc_pcie1_en>;
+
+	pinctrl-0 = <&pcie1_default_state>;
+	pinctrl-names = "default";
+
+	status = "okay";
+};

[Severity: Medium]
Should perst-gpios and wake-gpios be defined as reset-gpios and wake-gpios on the &pcie1_port0 root port node instead, with wake-gpios set to GPIO_ACTIVE_LOW?

Because lemans.dtsi defines the child root port node pcie1_port0 under &pcie1, placing perst-gpios on the host bridge node triggers a runtime warning in qcom_pcie_parse_perst() ("Reusing PERST# from Root Complex node. DT needs to be fixed!"), and pci_configure_of_wake_gpio() only looks up wake-gpios on the root port node, so PCIe wakeup is never configured. In addition, PCIe WAKE# is an open-drain active-low signal (matching the bias-pull-up on gpio5 in pcie1_default_state), whereas GPIO_ACTIVE_HIGH causes pci_configure_wake_irq() to select IRQ_TYPE_LEVEL_HIGH.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1