Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Faruque Ansari" <faruque.ansari@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: add Monaco Draco EVK board
Date: Tue, 24 Nov 2026 10:45:51 +0000	[thread overview]
Message-ID: <sashiko-outbox-230980@kernel.org> (raw)
In-Reply-To: <20261123-monaco-draco-v2-3-3ee3b2375f16@oss.qualcomm.com>

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 <faruque.ansari@oss.qualcomm.com>

> 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:
> 
>  - 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.

>  - 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.
> 
> Co-developed-by: Vishnu Saini <vishnu.saini@oss.qualcomm.com>
> Signed-off-by: Vishnu Saini <vishnu.saini@oss.qualcomm.com>
> Co-developed-by: Khalid Faisal Ansari <khalid.ansari@oss.qualcomm.com>
> Signed-off-by: Khalid Faisal Ansari <khalid.ansari@oss.qualcomm.com>
> Co-developed-by: Dipa Mantre <dipa.mantre@oss.qualcomm.com>
> Signed-off-by: Dipa Mantre <dipa.mantre@oss.qualcomm.com>
> Co-developed-by: Sravani Tella <tella@hu-tella-hyd.qualcomm.com>
> Signed-off-by: Sravani Tella <tella@hu-tella-hyd.qualcomm.com>

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

[ ... ]

> diff --git a/arch/arm64/boot/dts/qcom/monaco-draco-evk.dts b/arch/arm64/boot/dts/qcom/monaco-draco-evk.dts
> new file mode 100644
> index 0000000000000..ae34538e6fd34
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/monaco-draco-evk.dts
> @@ -0,0 +1,755 @@

[ ... ]

> +	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.

[ ... ]

> +	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>;
> +			};
> +
> +			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.

[ ... ]

> +&i2c12 {
> +	status = "okay";
> +
> +	max98091: max98091@10 {
> +		compatible = "maxim,max98091";
> +		reg = <0x10>;
> +		#sound-dai-cells = <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?

[ ... ]

> +		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;
> +			};
> +
> +			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".

[ ... ]

> +&soc {
> +	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>;

[ ... ]

> +	};
> +
> +	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).

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123-monaco-draco-v2-0-3ee3b2375f16@oss.qualcomm.com?part=3

      parent reply	other threads:[~2026-11-24 10:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 10:45 [PATCH v2 0/3] arm64: dts: qcom: add Monaco Draco EVK board support Faruque Ansari
2026-11-23 10:45 ` [PATCH v2 1/3] dt-bindings: arm: qcom: add Monaco Draco EVK board Faruque Ansari
2026-11-23 10:45 ` [PATCH v2 2/3] arm64: dts: qcom: add Monaco Draco AC SoM Faruque Ansari
2026-11-24 10:45   ` sashiko-bot
2026-11-23 10:45 ` [PATCH v2 3/3] arm64: dts: qcom: add Monaco Draco EVK board Faruque Ansari
2026-11-23 20:27   ` Andrew Lunn
2026-11-24 10:45   ` sashiko-bot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-230980@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=faruque.ansari@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox