From 18a3d7de0935c090d81c095149fc27f13a02343c Mon Sep 17 00:00:00 2001 From: Karthik S Date: Thu, 26 Nov 2026 17:08:58 +0530 Subject: [PATCH 1/2] FROMLIST: arm64: dts: qcom: add Monaco Draco AC SoM 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 Co-developed-by: Kishor Buchi Signed-off-by: Kishor Buchi Signed-off-by: Faruque Ansari Link: https://lore.kernel.org/all/20261126-monaco-draco-v3-2-0b603afa1328@oss.qualcomm.com/ --- arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi b/arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi index 294ed0b6f8987..2016cdbb3ef02 100644 --- a/arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi +++ b/arch/arm64/boot/dts/qcom/monaco-draco-ac-som.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include "monaco.dtsi" #include "monaco-pmics.dtsi" @@ -299,13 +300,6 @@ status = "okay"; }; -&usb_qmpphy { - vdda-phy-supply = <&vreg_l7a>; - vdda-pll-supply = <&vreg_l5a>; - - status = "okay"; -}; - &usb_2 { status = "okay"; }; @@ -317,3 +311,10 @@ status = "okay"; }; + +&usb_qmpphy { + vdda-phy-supply = <&vreg_l7a>; + vdda-pll-supply = <&vreg_l5a>; + + status = "okay"; +}; From 878b664a9caca20dd613a77d176794ac918e5092 Mon Sep 17 00:00:00 2001 From: Karthik S Date: Thu, 26 Nov 2026 17:09:08 +0530 Subject: [PATCH 2/2] FROMLIST: 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) - 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 Signed-off-by: Vishnu Saini Co-developed-by: Khalid Faisal Ansari Signed-off-by: Khalid Faisal Ansari Co-developed-by: Dipa Mantre Signed-off-by: Dipa Mantre Co-developed-by: Sravani Tella Signed-off-by: Sravani Tella Co-developed-by: Monish Chunara Signed-off-by: Monish Chunara Co-developed-by: Ajinkya Inchure Signed-off-by: Ajinkya Inchure Co-developed-by: Karthik S Signed-off-by: Karthik S Signed-off-by: Faruque Ansari Link: https://lore.kernel.org/all/20261126-monaco-draco-v3-3-0b603afa1328@oss.qualcomm.com/ --- arch/arm64/boot/dts/qcom/monaco-draco-evk.dts | 280 ++++++++++++++++-- 1 file changed, 249 insertions(+), 31 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/monaco-draco-evk.dts b/arch/arm64/boot/dts/qcom/monaco-draco-evk.dts index 756ee0c60e6b7..cc029329bf3b1 100644 --- a/arch/arm64/boot/dts/qcom/monaco-draco-evk.dts +++ b/arch/arm64/boot/dts/qcom/monaco-draco-evk.dts @@ -5,6 +5,8 @@ /dts-v1/; +#include +#include #include #include "monaco-draco-ac-som.dtsi" @@ -23,6 +25,19 @@ serial1 = &uart2; }; + dp0-connector { + compatible = "dp-connector"; + label = "DP0"; + type = "full-size"; + dp-pwr-supply = <&vreg_dp0_pwr>; + + port { + dp0_connector_in: endpoint { + remote-endpoint = <&mdss_dp0_out>; + }; + }; + }; + vreg_0p9: regulator-0v9 { compatible = "regulator-fixed"; regulator-name = "VREG_0P9"; @@ -41,6 +56,14 @@ regulator-boot-on; }; + 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>; + }; + vreg_keye_3p3: regulator-keye-3p3 { compatible = "regulator-fixed"; regulator-name = "vreg_keye_3p3"; @@ -49,23 +72,77 @@ regulator-always-on; }; - vreg_dp0_pwr: regulator-dp0-pwr { + vreg_va_micb_1p8: regulator-va-micb-1p8 { compatible = "regulator-fixed"; - regulator-name = "VREG_DP0_PWR_3P3"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - gpio = <&expander1 7 GPIO_ACTIVE_HIGH>; + regulator-name = "vreg_va_micb_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&expander1 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + vin-supply = <&vreg_va_micb_en>; }; - dp0-connector { - compatible = "dp-connector"; - label = "DP0"; - type = "full-size"; - dp-pwr-supply = <&vreg_dp0_pwr>; + vreg_va_micb_en: regulator-va-micb-en { + compatible = "regulator-fixed"; + regulator-name = "vreg_va_micb_en"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&expander1 4 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; - port { - dp0_connector_in: endpoint { - remote-endpoint = <&mdss_dp0_out>; + 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>; }; }; }; @@ -224,6 +301,24 @@ }; }; +&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>; + }; +}; + &i2c8 { status = "okay"; @@ -319,6 +414,20 @@ #gpio-cells = <2>; gpio-controller; + keye-pwr-en1-hog { + gpio-hog; + gpios = <9 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "keye_pwr_en1"; + }; + + keye-pwr-en2-hog { + gpio-hog; + gpios = <10 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "keye_pwr_en2"; + }; + pwr-en0-hog { gpio-hog; gpios = <0 GPIO_ACTIVE_HIGH>; @@ -353,20 +462,6 @@ output-high; line-name = "pwr_en8"; }; - - keye-pwr-en1-hog { - gpio-hog; - gpios = <9 GPIO_ACTIVE_HIGH>; - output-high; - line-name = "keye_pwr_en1"; - }; - - keye-pwr-en2-hog { - gpio-hog; - gpios = <10 GPIO_ACTIVE_HIGH>; - output-high; - line-name = "keye_pwr_en2"; - }; }; }; @@ -439,8 +534,6 @@ }; &pcie0 { - perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; pinctrl-0 = <&pcie0_default_state>; pinctrl-names = "default"; @@ -458,8 +551,6 @@ }; &pcie1 { - perst-gpios = <&tlmm 23 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; pinctrl-0 = <&pcie1_default_state>; pinctrl-names = "default"; @@ -470,6 +561,9 @@ #address-cells = <3>; #size-cells = <2>; + reset-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 0 GPIO_ACTIVE_LOW>; + pcie@0,0 { compatible = "pci1179,0623"; reg = <0x10000 0x0 0x0 0x0 0x0>; @@ -491,6 +585,7 @@ pinctrl-names = "default"; pcie@1,0 { + compatible = "pciclass,0604"; reg = <0x20800 0x0 0x0 0x0 0x0>; #address-cells = <3>; #size-cells = <2>; @@ -541,11 +636,91 @@ }; }; +&pcieport1 { + reset-gpios = <&tlmm 23 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 21 GPIO_ACTIVE_LOW>; +}; + &qup_i2c13_data_clk { drive-strength = <6>; bias-pull-up; }; +&soc { + lpass_va_macro: codec@33F0000 { + compatible = "qcom,sc7280-lpass-va-macro"; + reg = <0 0x33F0000 0 0x1000>; + pinctrl-names = "default"; + pinctrl-0 = <&lpass_dmic01_clk>, <&lpass_dmic01_data>, + <&lpass_dmic23_clk>, <&lpass_dmic23_data>, + <&lpass_dmic45_clk>, <&lpass_dmic45_data>; + clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "mclk", "macro", "dcodec"; + + #clock-cells = <0>; + #sound-dai-cells = <1>; + status = "okay"; + qcom,dmic-sample-rate = <4800000>; + vdd-micb-supply = <&vreg_va_micb_1p8>; + }; + + 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_dmic01_clk: dmic01-clk-state { + pins = "gpio6"; + function = "dmic1_clk"; + drive-strength = <8>; + bias-disable; + }; + + lpass_dmic01_data: dmic01-data-state { + pins = "gpio7"; + function = "dmic1_data"; + drive-strength = <8>; + bias-pull-down; + }; + + lpass_dmic23_clk: dmic23-clk-state { + pins = "gpio8"; + function = "dmic2_clk"; + drive-strength = <8>; + bias-disable; + }; + + lpass_dmic23_data: dmic23-data-state { + pins = "gpio9"; + function = "dmic2_data"; + drive-strength = <8>; + bias-pull-down; + }; + + lpass_dmic45_clk: dmic45-clk-state { + pins = "gpio12"; + function = "dmic3_clk"; + drive-strength = <8>; + bias-disable; + }; + + lpass_dmic45_data: dmic45-data-state { + pins = "gpio13"; + function = "dmic3_data"; + drive-strength = <8>; + bias-pull-down; + }; + }; +}; + &spi10 { status = "okay"; @@ -595,6 +770,49 @@ }; }; + int_codec: gpio-irq-state { + pins = "gpio51"; + function = "gpio"; + }; + + mi2s_mclk_a: mi2s-mclk-a-state { + pins = "gpio97"; + function = "mi2s_mclk0"; + drive-strength = <16>; + bias-disable; + output-high; + }; + + mi2s2_data0: mi2s2-data0-state { + pins = "gpio104"; + function = "mi2s2_data0"; + drive-strength = <8>; + bias-disable; + }; + + mi2s2_data1: mi2s2-data1-state { + pins = "gpio105"; + function = "mi2s2_data1"; + drive-strength = <8>; + bias-disable; + }; + + mi2s2_sck: mi2s2-sck-state { + pins = "gpio102"; + function = "mi2s2_sck"; + drive-strength = <8>; + bias-disable; + output-high; + }; + + mi2s2_ws: mi2s2-ws-state { + pins = "gpio103"; + function = "mi2s2_ws"; + drive-strength = <8>; + bias-disable; + output-high; + }; + pcie0_default_state: pcie0-default-state { clkreq-pins { pins = "gpio1";