Skip to contentSkip to conversation

arm64: dts: qcom: add Monaco Draco EVK board support

PATCH Superseded Faruque Ansari 3 participants 7 messages Nov 23 – Nov 24

Subsystems (5)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: qcom: add Monaco Draco EVK board support

This series adds device tree support for the Monaco Draco EVK, an evaluation kit based on the QCS8300 SoC targeting automotive and industrial use cases. The platform consists of a System on Module (SoM) paired with the Draco carrier board.

The Monaco Draco AC SoM integrates the QCS8300 SoC, two PMM8654AU PMICs, eMMC and UFS storage, USB0/USB1, the Adreno 623 GPU, USB and UART interfaces.

The Draco carrier board builds on the SoM and adds:
- DWMAC gigabit Ethernet (2500base-x to HSGMII PHY), MAC from EEPROM
- AMC6821 fan controller on i2c13
- I2C GPIO expanders (4x kts1622 on i2c14, 2x tca9538 on i2c15)
- Native DisplayPort output (DP0) to an on-board DP connector
- Dual PCIe (pcie0/pcie1) via an on-board TC9563 PCIe switch
- ST33HTPM TPM over SPI10
- M.2 E-key slot connectivity
- Audio Playback and Capture over max98091, Audio Capture over va_macro codec DMA.

This series is functionally dependent on the driver and binding changes posted here:
https://lore.kernel.org/all/[email protected]/

---
Changes in v2:
- Move PCIe reset and wake gpios to port node (Sashiko-bot)
- Add compatible = "pciclass,0604" for switch dsp to create a platform device and invoke it's power-on sequence.
- Add Audio Playback and Capture over max98091, Audio Capture over va_macro codec DMA
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Faruque Ansari (3):
dt-bindings: arm: qcom: add Monaco Draco EVK board
arm64: dts: qcom: add Monaco Draco AC SoM
arm64: dts: qcom: add Monaco Draco EVK board

 Documentation/devicetree/bindings/arm/qcom.yaml   |   5 +
 arch/arm64/boot/dts/qcom/Makefile                 |   5 +
 arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi | 320 +++++++++
 arch/arm64/boot/dts/qcom/monaco-draco-evk.dts     | 755 ++++++++++++++++++++++
 4 files changed, 1085 insertions(+)

---
base-commit: 6d0933ae9d46674a6ea63a87e9e9ab4e662670c9
change-id: 20261105-monaco-draco-2d725f0d891d

Best regards,

Signature · 1 line
Faruque Ansari <[email protected]>
#1 lore raw

PATCH v2 1/3 dt-bindings: arm: qcom: add Monaco Draco EVK board

Document the compatible strings for the Qualcomm Monaco Draco AC System-on-Module (SoM) and its Monaco Draco EVK board.

The SoM is populated with a QCS8300 SoC, two PMM8654AU PMICs, eMMC and UFS storage. The SoM is then connected to the EVK carrier board, which provides a multitude of connectors for peripherals.

---
 Documentation/devicetree/bindings/arm/qcom.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/qcom.yaml +5 -0
index 121ca557ce1e..d78bd8a9e373 100644
@@ -472,6 +472,11 @@ properties:
               - qcom,qcs8300-ride
           - const: qcom,qcs8300
 
+      - items:
+          - const: qcom,monaco-draco-evk
+          - const: qcom,monaco-draco-ac-som
+          - const: qcom,qcs8300
+
       - description: Qualcomm Technologies, Inc. Distributed Unit 1000 platform
         items:
           - enum:
Signature · 1 line
2.34.1
#2 lore raw

PATCH v2 2/3 arm64: dts: qcom: add Monaco Draco AC SoM

In reply to Faruque Ansari

Introduce the device tree for the QCS8300-based Monaco Draco AC SoM. The Monaco Draco AC SoM is a compact compute module integrating the QCS8300 SoC, two PMM8654AU PMICs, eMMC, UFS storage, an Adreno 623 GPU, USB and UART interfaces, designed to mount on carrier boards.

The initial SoM device tree includes basic support for:

- RPMH regulators for two PMM8654AU PMICs
- QUP firmware paths (qupv3_id_0/1)
- Remoteproc instances (ADSP, CDSP, GPDSP) with firmware paths
- Console UART (uart7, serial0) and secondary UART (uart6, serial2)
- eMMC storage
- UFS storage
- USB1 in peripheral mode with HS PHY and QMP SuperSpeed PHY, and USB2 with HS PHY
- GPU (Adreno 623) with ZAP shader firmware

---
 arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi | 320 ++++++++++++++++++++++
 1 file changed, 320 insertions(+)
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +320 -0
new file mode 100644
index 000000000000..85ca83ecfc9e
@@ -0,0 +1,320 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
+
+#include "monaco.dtsi"
+#include "monaco-pmics.dtsi"
+
+/ {
+	aliases {
+		serial0 = &uart7;
+		serial2 = &uart6;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	/* This comes from a PMIC handled within the SAIL domain */
+	vreg_s2s: vreg-s2s {
+		compatible = "regulator-fixed";
+		regulator-name = "vreg_s2s";
+
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+	};
+};
+
+&apps_rsc {
+	regulators-0 {
+		compatible = "qcom,pmm8654au-rpmh-regulators";
+		qcom,pmic-id = "a";
+
+		vreg_l3a: ldo3 {
+			regulator-name = "vreg_l3a";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l4a: ldo4 {
+			regulator-name = "vreg_l4a";
+			regulator-min-microvolt = <880000>;
+			regulator-max-microvolt = <912000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l5a: ldo5 {
+			regulator-name = "vreg_l5a";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l6a: ldo6 {
+			regulator-name = "vreg_l6a";
+			regulator-min-microvolt = <880000>;
+			regulator-max-microvolt = <912000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l7a: ldo7 {
+			regulator-name = "vreg_l7a";
+			regulator-min-microvolt = <880000>;
+			regulator-max-microvolt = <912000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l8a: ldo8 {
+			regulator-name = "vreg_l8a";
+			regulator-min-microvolt = <2504000>;
+			regulator-max-microvolt = <2960000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l9a: ldo9 {
+			regulator-name = "vreg_l9a";
+			regulator-min-microvolt = <2970000>;
+			regulator-max-microvolt = <3072000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_s4a: smps4 {
+			regulator-name = "vreg_s4a";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_s9a: smps9 {
+			regulator-name = "vreg_s9a";
+			regulator-min-microvolt = <1352000>;
+			regulator-max-microvolt = <1352000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+
+	regulators-1 {
+		compatible = "qcom,pmm8654au-rpmh-regulators";
+		qcom,pmic-id = "c";
+
+		vreg_l1c: ldo1 {
+			regulator-name = "vreg_l1c";
+			regulator-min-microvolt = <300000>;
+			regulator-max-microvolt = <512000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l2c: ldo2 {
+			regulator-name = "vreg_l2c";
+			regulator-min-microvolt = <900000>;
+			regulator-max-microvolt = <904000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l4c: ldo4 {
+			regulator-name = "vreg_l4c";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l7c: ldo7 {
+			regulator-name = "vreg_l7c";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l8c: ldo8 {
+			regulator-name = "vreg_l8c";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_l9c: ldo9 {
+			regulator-name = "vreg_l9c";
+			regulator-min-microvolt = <1800000>;
+			regulator-max-microvolt = <1800000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+			regulator-allow-set-load;
+			regulator-allowed-modes = <RPMH_REGULATOR_MODE_HPM>;
+		};
+
+		vreg_s5c: smps5 {
+			regulator-name = "vreg_s5c";
+			regulator-min-microvolt = <1104000>;
+			regulator-max-microvolt = <1104000>;
+			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
+		};
+	};
+};
+
+&gpu {
+	status = "okay";
+};
+
+&gpu_zap_shader {
+	firmware-name = "qcom/qcs8300/a623_zap.mbn";
+};
+
+&mdss_dp0_phy {
+	vdda-phy-supply = <&vreg_l5a>;
+	vdda-pll-supply = <&vreg_l4a>;
+
+	status = "okay";
+};
+
+&pcie0_phy {
+	vdda-phy-supply = <&vreg_l6a>;
+	vdda-pll-supply = <&vreg_l5a>;
+	vdda-qref-supply = <&vreg_l4a>;
+	vdda-refgen-supply = <&vreg_l7a>;
+
+	status = "okay";
+};
+
+&pcie1_phy {
+	vdda-phy-supply = <&vreg_l6a>;
+	vdda-pll-supply = <&vreg_l5a>;
+	vdda-qref-supply = <&vreg_l4a>;
+	vdda-refgen-supply = <&vreg_l7a>;
+
+	status = "okay";
+};
+
+&qupv3_id_0 {
+	firmware-name = "qcom/qcs8300/qupv3fw.elf";
+
+	status = "okay";
+};
+
+&qupv3_id_1 {
+	firmware-name = "qcom/qcs8300/qupv3fw.elf";
+
+	status = "okay";
+};
+
+&remoteproc_adsp {
+	firmware-name = "qcom/qcs8300/adsp.mbn";
+
+	status = "okay";
+};
+
+&remoteproc_cdsp {
+	firmware-name = "qcom/qcs8300/cdsp0.mbn";
+
+	status = "okay";
+};
+
+&remoteproc_gpdsp {
+	firmware-name = "qcom/qcs8300/gpdsp0.mbn";
+
+	status = "okay";
+};
+
+&sdhc_1 {
+	vmmc-supply = <&vreg_l8a>;
+	vqmmc-supply = <&vreg_s2s>;
+
+	no-sd;
+	no-sdio;
+	non-removable;
+
+	status = "okay";
+};
+
+&serdes0 {
+	vdda-0p9-supply = <&vreg_l4a>;
+	vdda-1p2-supply = <&vreg_l5a>;
+
+	status = "okay";
+};
+
+&uart6 {
+	status = "okay";
+};
+
+&uart7 {
+	status = "okay";
+};
+
+&ufs_mem_hc {
+	reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
+	vcc-supply = <&vreg_l8a>;
+	vcc-max-microamp = <1100000>;
+	vccq-supply = <&vreg_l4c>;
+	vccq-max-microamp = <1200000>;
+
+	status = "okay";
+};
+
+&ufs_mem_phy {
+	vdda-phy-supply = <&vreg_l4a>;
+	vdda-pll-supply = <&vreg_l5a>;
+
+	status = "okay";
+};
+
+&usb_1 {
+	dr_mode = "peripheral";
+
+	status = "okay";
+};
+
+&usb_1_hsphy {
+	vdda-pll-supply = <&vreg_l7a>;
+	vdda18-supply = <&vreg_l7c>;
+	vdda33-supply = <&vreg_l9a>;
+
+	status = "okay";
+};
+
+&usb_qmpphy {
+	vdda-phy-supply = <&vreg_l7a>;
+	vdda-pll-supply = <&vreg_l5a>;
+
+	status = "okay";
+};
+
+&usb_2 {
+	status = "okay";
+};
+
+&usb_2_hsphy {
+	vdda-pll-supply = <&vreg_l7a>;
+	vdda18-supply = <&vreg_l7c>;
+	vdda33-supply = <&vreg_l9a>;
+
+	status = "okay";
+};
Signature · 1 line
2.34.1
#3 lore raw

Re: [PATCH v2 2/3] arm64: dts: qcom: add Monaco Draco AC SoM

Thank you for your contribution! Sashiko AI review found 4 potential issues to consider: - [Medium] arm64: dts: qcom: invalid supply properties on pcie0_phy and pcie1_phy - [Low] arm64: dts: qcom…

Thank you for your contribution! Sashiko AI review found 4 potential issues to consider:
- [Medium] arm64: dts: qcom: invalid supply properties on pcie0_phy and pcie1_phy
- [Low] arm64: dts: qcom: non-generic deprecated node name vreg-s2s
- [Low] arm64: dts: qcom: unused qcom,q6afe.h include in monaco-draco-ac-som.dtsi
- [Low] arm64: dts: qcom: carrier-specific nodes and incomplete usb_2 in Draco SoM
--

commit d1bc5b3f248fc85ab6c6aeca044fd1cc52fd4aa5
Author: Faruque Ansari <[email protected]>

arm64: dts: qcom: add Monaco Draco AC SoM

This commit adds the device tree include for the QCS8300-based Monaco Draco AC SoM, configuring RPMH regulators, remoteprocs, storage, UART, USB, PCIe PHYs, and the Adreno 623 GPU.

Quoted 6 lines
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +0 -0
new file mode 100644
index 0000000000000..85ca83ecfc9e6

arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi line 8

Quoted 8 lines
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +8 -0
@@ -0,0 +1,320 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include <dt-bindings/sound/qcom,q6afe.h>

[Severity: Low]
Is the dt-bindings/sound/qcom,q6afe.h include needed here? This file defines no sound nodes or audio macros, and monaco.dtsi already includes dt-bindings/sound/qcom,q6dsp-lpass-ports.h.

Quoted 8 lines
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +8 -0
+
+#include "monaco.dtsi"
+#include "monaco-pmics.dtsi"
+
+/ {
+	aliases {
+		serial0 = &uart7;
+		serial2 = &uart6;

arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi line 26

Quoted 10 lines
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +10 -0
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";
+	};
+
+	/* This comes from a PMIC handled within the SAIL domain */
+	vreg_s2s: vreg-s2s {
+		compatible = "regulator-fixed";
+		regulator-name = "vreg_s2s";

[Severity: Low]
Should vreg_s2s use a generic regulator-s2s node name instead of vreg-s2s? Documentation/devicetree/bindings/regulator/fixed-regulator.yaml marks node names that do not match the regulator-* pattern as deprecated.

[ ... ]

Quoted 7 lines
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +7 -0
+&pcie0_phy {
+	vdda-phy-supply = <&vreg_l6a>;
+	vdda-pll-supply = <&vreg_l5a>;
+	vdda-qref-supply = <&vreg_l4a>;
+	vdda-refgen-supply = <&vreg_l7a>;
+
+	status = "okay";

arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi line 214

Quoted 10 lines
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +10 -0
+};
+
+&pcie1_phy {
+	vdda-phy-supply = <&vreg_l6a>;
+	vdda-pll-supply = <&vreg_l5a>;
+	vdda-qref-supply = <&vreg_l4a>;
+	vdda-refgen-supply = <&vreg_l7a>;
+
+	status = "okay";
+};

[Severity: Medium]
Should vdda-qref-supply and vdda-refgen-supply be dropped from pcie0_phy and pcie1_phy?

In monaco.dtsi, pcie0_phy uses qcom,qcs8300-qmp-gen4x2-pcie-phy and pcie1_phy uses qcom,sa8775p-qmp-gen4x4-pcie-phy. Both bindings are defined in Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml, which does not permit vdda-refgen-supply and causes dtbs_check to fail on boards including this SoM dtsi. In drivers/phy/qualcomm/phy-qcom-qmp-pcie.c, both qcs8300_qmp_gen4x2_pciephy_cfg and sa8775p_qmp_gen4x4_pciephy_cfg use qmp_phy_vreg_l, which only requests vdda-phy and vdda-pll, so neither vdda-qref-supply nor vdda-refgen-supply is consumed at runtime.

[ ... ]

Quoted 7 lines
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +7 -0
+&uart6 {
+	status = "okay";
+};
+
+&uart7 {
+	status = "okay";
+};

[ ... ]

Quoted 14 lines

+&usb_1 {

arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +13 -0
+	dr_mode = "peripheral";
+
+	status = "okay";
+};
+
+&usb_1_hsphy {
+	vdda-pll-supply = <&vreg_l7a>;
+	vdda18-supply = <&vreg_l7c>;
+	vdda33-supply = <&vreg_l9a>;
+
+	status = "okay";
+};
+

arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi line 312

Quoted 10 lines
arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi new file +10 -0
+&usb_qmpphy {
+	vdda-phy-supply = <&vreg_l7a>;
+	vdda-pll-supply = <&vreg_l5a>;
+
+	status = "okay";
+};
+
+&usb_2 {
+	status = "okay";
+};

[Severity: Low]
Is usb_2 intentionally enabled in the SoM dtsi without a dr_mode or connector endpoint, and should the carrier-specific UART and USB controller settings live in the carrier board dts instead?

In monaco.dtsi, usb_2 defines usb-role-switch and an unlinked usb_2_dwc3_hs port endpoint. Enabling usb_2 here without setting dr_mode or linking usb_2_dwc3_hs to a connector leaves dwc3_setup_role_switch() defaulting to device mode with no role-switch provider attached and without the VBUS override that dwc3_qcom_probe() configures when dr_mode is explicitly peripheral. In addition, aliases, chosen stdout-path, uart6, uart7, usb_1 dr_mode, and usb_2 enablement depend on how the carrier board routes those interfaces, whereas sibling monaco-monza-som.dtsi keeps only the on-SoM USB PHY supply hookups in the SoM dtsi.

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

PATCH v2 3/3 arm64: dts: qcom: add Monaco Draco EVK board

In reply to Faruque Ansari

The Monaco Draco EVK pairs the Monaco Draco AC SoM with the Draco carrier board. Add its device tree, describing the board-specific peripherals layered on top of the SoM:

- I2C GPIO expanders: 4x KTS1622 on i2c14 and 2x TCA9538 on i2c15
- EEPROM with a MAC-address nvmem layout on i2c15
- Native DisplayPort output (DP0)
- Gigabit Ethernet (ethernet0, 2500base-x) over an HSGMII PHY, with the MAC address sourced from the EEPROM
- Dual PCIe (pcie0/pcie1) behind an on-board TC9563 PCIe switch
- ST33HTPM TPM over spi10
- AMC6821 fan controller on i2c13
- M.2 E-key slot connector and carrier debug UART (uart2)
- Audio Playback and Capture over max98091, Audio Capture over va_macro codec DMA.

Also hook the board dtb into the Makefile, together with an EL2 overlay variant that boots the kernel at EL2 for KVM.

---
 arch/arm64/boot/dts/qcom/Makefile             |   5 +
 arch/arm64/boot/dts/qcom/monaco-draco-evk.dts | 755 ++++++++++++++++++++++++++
 2 files changed, 760 insertions(+)
arch/arm64/boot/dts/qcom/Makefile +5 -0
index 88230c4e00ea..7212bd1d2358 100644
@@ -69,6 +69,11 @@ dtb-$(CONFIG_ARCH_QCOM)	+= milos-fairphone-fp6.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= milos-nothing-asteroids.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= monaco-arduino-monza.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= monaco-ac-evk.dtb
+dtb-$(CONFIG_ARCH_QCOM)	+= monaco-draco-evk.dtb
+
+monaco-draco-evk-el2-dtbs := monaco-draco-evk.dtb monaco-el2.dtbo
+dtb-$(CONFIG_ARCH_QCOM)	+= monaco-draco-evk-el2.dtb
+
 dtb-$(CONFIG_ARCH_QCOM)	+= monaco-evk.dtb
 
 monaco-evk-camera-imx577-dtbs	:= monaco-evk.dtb monaco-evk-camera-imx577.dtbo
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +755 -0

755 lines not on this page · raw message

Signature · 1 line
2.34.1
#5 lore raw

Re: [PATCH v2 3/3] arm64: dts: qcom: add Monaco Draco EVK board

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts line 196

Quoted 5 lines

+&ethernet0 {

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +3 -0
+	phy-handle = <&hsgmii_phy0>;
+	phy-mode = "2500base-x";
 
+		hsgmii_phy0: ethernet-phy@1c {

HSGMII is not something the kernel nor netdev recognises. If it is overclocked SGMII, it is just a broken implementation of 2500BaseX.

Andrew

#6 lore raw

Re: [PATCH v2 3/3] arm64: dts: qcom: add Monaco Draco EVK board

In reply to Faruque Ansari
Thank you for your contribution! Sashiko AI review found 7 potential issues to consider: - [High] arm64: dts: qcom: unmatched compatible and missing routing on sound node - [High] arm64: dts: qcom…

Thank you for your contribution! Sashiko AI review found 7 potential issues to consider:
- [High] arm64: dts: qcom: unmatched compatible and missing routing on sound node
- [High] arm64: dts: qcom: missing enable-active-high on vreg_dp0_pwr regulator
- [High] arm64: dts: qcom: non-routable hostname email in Signed-off-by trailer
- [Medium] arm64: dts: qcom: lpass_tlmm redefinition and uppercase codec@33F0000
- [Medium] arm64: dts: qcom: TC9563 Ethernet endpoints modeled as PCI bridges
- [Low] arm64: dts: qcom: non-generic max98091@10 node name and IRQ_TYPE_NONE
- [Low] arm64: dts: qcom: commit message mismatch for uart2 and pcie1 topology
--

commit 3fa9beb477beb817044281e8e657768127392121
Author: Faruque Ansari <[email protected]>

Quoted 6 lines

arm64: dts: qcom: add Monaco Draco EVK board

The Monaco Draco EVK pairs the Monaco Draco AC SoM with the Draco carrier board. Add its device tree, describing the board-specific peripherals layered on top of the SoM:

Quoted 9 lines

- I2C GPIO expanders: 4x KTS1622 on i2c14 and 2x TCA9538 on i2c15
- EEPROM with a MAC-address nvmem layout on i2c15
- Native DisplayPort output (DP0)
- Gigabit Ethernet (ethernet0, 2500base-x) over an HSGMII PHY, with the MAC address sourced from the EEPROM
- Dual PCIe (pcie0/pcie1) behind an on-board TC9563 PCIe switch
- ST33HTPM TPM over spi10
- AMC6821 fan controller on i2c13
- M.2 E-key slot connector and carrier debug UART (uart2)

[Severity: Low]
Are these descriptions of pcie1 and uart2 accurate? In the devicetree below, only pcie0 (pcieport0) sits behind the TC9563 PCIe switch while pcie1 (pcieport1) is an independent root complex, and uart2 is wired via an OF graph endpoint to port@3 (the Bluetooth UART interface) of wifi-bt-connector rather than serving as a debug UART.

Quoted 6 lines

- Audio Playback and Capture over max98091, Audio Capture over va_macro codec DMA.

Also hook the board dtb into the Makefile, together with an EL2 overlay variant that boots the kernel at EL2 for KVM.

Quoted 8 lines

[Severity: High]
The Co-developed-by and Signed-off-by trailers for Sravani Tella use an internal workstation hostname ([email protected]) rather than a valid routable email address.

[ ... ]

Quoted 6 lines
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +0 -0
new file mode 100644
index 0000000000000..ae34538e6fd34
@@ -0,0 +1,755 @@

[ ... ]

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts line 57

Quoted 7 lines
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +7 -0
+	vreg_dp0_pwr: regulator-dp0-pwr {
+		compatible = "regulator-fixed";
+		regulator-name = "VREG_DP0_PWR_3P3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		gpio = <&expander1 7 GPIO_ACTIVE_HIGH>;
+	};

[Severity: High]
Is vreg_dp0_pwr missing enable-active-high? For regulator-fixed nodes, of_gpio_quirk_polarity() ignores GPIO_ACTIVE_HIGH in the gpio specifier and forces active-low polarity unless enable-active-high is present, which inverts the DP0 3.3V connector power supply enable line.

[ ... ]

Quoted 36 lines
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +36 -0
+	sound {
+		compatible = "qcom,qcs8300-draco-sndcard";
+		model = "MONACO_DRACO_EVK";
+		pinctrl-names = "default";
+		pinctrl-0 = <&mi2s_mclk_a>, <&mi2s2_data0>, <&mi2s2_data1>,
+			    <&mi2s2_sck>, <&mi2s2_ws>;
+		mi2s2-capture-dai-link {
+			link-name = "Tertiary MI2S Capture";
+			codec {
+				sound-dai = <&max98091>;
+			};
+			cpu {
+				sound-dai = <&q6apmbedai TERTIARY_MI2S_TX>;
+			};
+			platform {
+				sound-dai = <&q6apm>;
+			};
+		};
+		mi2s2-playback-dai-link {
+			link-name = "Tertiary MI2S Playback";
+			codec {
+				sound-dai = <&max98091>;
+			};
+			cpu {
+				sound-dai = <&q6apmbedai TERTIARY_MI2S_RX>;
+			};
+			platform {
+				sound-dai = <&q6apm>;
+			};
+		};
+		va-dai-link {
+			link-name = "Codec DMA Capture";
+
+			codec {
+				sound-dai = <&lpass_va_macro 0>;
+			};

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts line 173

Quoted 10 lines
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +10 -0
+
+			cpu {
+				sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
+			};
+
+			platform {
+				sound-dai = <&q6apm>;
+			};
+		};
+	};

[Severity: High]
Will the sound node bind to a driver or power the DMIC bias supply? "qcom,qcs8300-draco-sndcard" is neither documented in the bindings nor matched by any ASoC driver (other QCS8300 boards with MAX98091 use "qcom,qcs8275-sndcard" in sound/soc/qcom/sc8280xp.c).

The sound node also omits audio-routing, so the MAX98091 codec widgets and the lpass_va_macro "vdd-micb" DAPM regulator supply widget (backed by the GPIO-controlled vreg_va_micb_1p8 and vreg_va_micb_en regulators) are never routed and enabled during capture.

[ ... ]

Quoted 7 lines

+&i2c12 {

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +6 -0
+	status = "okay";
+
+	max98091: max98091@10 {
+		compatible = "maxim,max98091";
+		reg = <0x10>;
+		#sound-dai-cells = <0>;

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts line 280

Quoted 10 lines
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +10 -0
+		clock-names = "mclk";
+		clocks = <&q6prmcc LPASS_CLK_ID_MCLK_1 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+		assigned-clocks = <&q6prmcc LPASS_CLK_ID_MCLK_1 LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+		assigned-clock-rates = <12288000>;
+		interrupt-parent = <&tlmm>;
+		interrupts = <51 IRQ_TYPE_NONE>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&int_codec>;
+	};
+};

[Severity: Low]
Should max98091@10 use the generic node name audio-codec@10 and specify the actual interrupt trigger type instead of IRQ_TYPE_NONE?

[ ... ]

Quoted 23 lines
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +23 -0
+		pcie@2,0 {
+			reg = <0x21000 0x0 0x0 0x0 0x0>;
+			#address-cells = <3>;
+			#size-cells = <2>;
+			device_type = "pci";
+			ranges;
+			bus-range = <0x4 0xff>;
+		};
+
+		pcie@3,0 {
+			reg = <0x21800 0x0 0x0 0x0 0x0>;
+			#address-cells = <3>;
+			#size-cells = <2>;
+			device_type = "pci";
+			ranges;
+			bus-range = <0x5 0xff>;
+
+			pcie@0,0 {
+				reg = <0x50000 0x0 0x0 0x0 0x0>;
+				#address-cells = <3>;
+				#size-cells = <2>;
+				device_type = "pci";
+				ranges;

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts line 527

Quoted 10 lines
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +10 -0
+			};
+
+			pcie@0,1 {
+				reg = <0x50100 0x0 0x0 0x0 0x0>;
+				#address-cells = <3>;
+				#size-cells = <2>;
+				device_type = "pci";
+				ranges;
+			};
+		};

[Severity: Medium]
Should the two integrated TC9563 Ethernet MAC endpoints under pcie@3,0 be ethernet@0,0 and ethernet@0,1 without PCI bridge properties? Modeling them as pcie@0,0 and pcie@0,1 with device_type = "pci", #address-cells, #size-cells, and ranges violates toshiba,tc9563.yaml and causes PCI bridge walkers such as qcom_pcie_parse_perst() to treat the endpoints as PCI-to-PCI bridges. The downstream bridge nodes pcie@2,0 and pcie@3,0 also omit compatible = "pciclass,0604".

[ ... ]

Quoted 11 lines

+&soc {

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +10 -0
+	lpass_tlmm: pinctrl@3440000 {
+		compatible = "qcom,sm8450-lpass-lpi-pinctrl";
+		reg = <0x0 0x03440000 0x0 0x20000>,
+		      <0x0 0x034d0000 0x0 0x10000>;
+		clocks = <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
+			 <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+		clock-names = "core", "audio";
+		gpio-controller;
+		#gpio-cells = <2>;
+		gpio-ranges = <&lpass_tlmm 0 0 23>;

[ ... ]

arch/arm64/boot/dts/qcom/monaco-draco-evk.dts line 598

Quoted 5 lines
arch/arm64/boot/dts/qcom/monaco-draco-evk.dts new file +5 -0
+	};
+
+	lpass_va_macro: codec@33F0000 {
+		compatible = "qcom,sc7280-lpass-va-macro";
+		reg = <0 0x33F0000 0 0x1000>;

[Severity: Medium]
Why are lpass_tlmm and lpass_va_macro defined under &soc in the board DTS? monaco.dtsi already defines lpass_tlmm with compatible = "qcom,qcs8300-lpass-lpi-pinctrl", "qcom,sm8450-lpass-lpi-pinctrl", so redefining pinctrl@3440000 here overwrites compatible and drops "qcom,qcs8300-lpass-lpi-pinctrl" instead of referencing &lpass_tlmm to add pin configuration nodes.

Also, lpass_va_macro is an SoC-internal LPASS block that belongs in monaco.dtsi, and its uppercase hex unit-address in codec@33F0000 triggers a dtc simple_bus_reg warning (it should be lowercase codec@33f0000).

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