From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795430740; b=29gy5MVn82H81eSHPq9Me/j+5QfOuVsJ1dVnQMTsHAUIVXHWpHTCmd82sTnq07qWUSwg Pd+oRDRek55L6uQSUcyjEVEiJV3xsfV7yC1XP61KEME/4tZDoAyYzWnwznDM3cD0Zx9HK Z5TMOjA35BRR4iaPT+9ZjL2Pxbxcnw28nx+6J610obp5KN2yb6AaTKyV10l0a2/PAhWJR OWd4QYh3X7FGeFGASYvnGrzaUvq8bZW3kv75oxlS1jri4N0IXK1X8kwPTBvr2GUBv6EVS IryaDBrvDiVzYfFIcK/7gN7vB4+TL/FtzkhEmcMgMCKzKEyw24Ax8cvqUrcR80/KZiw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795430740; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received:From: Date:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Proofpoint-Reinject:X-QCInternal:X-QCInternal:X-Proofpoint-GUID: X-Authority-Analysis:X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=DExUfiAsZn48AfDcCMFwH6A6RVyCTdhXkUYw4wRlA+8=; b=EfgMsy3+e4xuz6zhalWyYjkpgY6A4DkBvc8rG4D4TNjYSwFfMmgznO89j6R5GvWtX9j1 1JzPVo51OcPrgkjgKJ2HI2O7KlliP6r6fnc9XwpcBMderx/zP0cKdJgIpqnFRlsOrpSAa 7vof8/EHV20r7txgOHzydJ6ltyFD7BjZfKGdZKnI5YRwDSmQND47BKA2Cr8Ln6n9IBodZ rF9QXHKtMVEqyqfkorleUXaeks2la29hQSzEGDwetE3tne0SCZVObfNR/BHfR5HA7QT/k E6LZqyUFIBtNBp2ZhzcIage8akXQQrM8Y12qvVped7fcAMz196ddqQsLzZP8cazjD1Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Rux7Uyo+; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2D1F606A33B; Mon, 23 Nov 2026 10:45:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A2D1F606A33B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Rux7Uyo+ Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AN9G6wv2073686; Mon, 23 Nov 2026 10:45:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= DExUfiAsZn48AfDcCMFwH6A6RVyCTdhXkUYw4wRlA+8=; b=Rux7Uyo+G626IssS brq9ch+UkKCFTY4Lmxb0gJcGKPzX0MYpDudiHvUoTTGbsc1NWkC9AwTfsEXZCjDp ryFk9fdvPw1M5gtMXOIHeb9Xwds4RbtgPCbJGhmwOpyjK11t/2/MpS7lpbtW093J 3il99QPmwJ2S9QTtlOTVPlzq6JZ1xLI443aEl+naTTnKTvOf/aDeSL2KAGFpZj/O mY6vbeNDiVI9xwjwryU3RLmDHVcYg/rxukCyBXwhbNy1fw8Z1Cwy15Feqx4P1sXD X8j670rgXoO4SUlZWDDTq+CcVDKRxg8y3TO64dR+lai/Ks2EIpi1Lj6Z+tL756pI wGD3tw== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j4g1p903r-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 23 Nov 2026 10:45:26 +0000 (GMT) Received: from pps.filterd (apblrppmta01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 6ANAjMDY321134; Mon, 23 Nov 2026 10:45:23 GMT Received: from hu-ffaruque-hyd.qualcomm.com (hu-ffaruque-hyd.qualcomm.com [10.147.245.31]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 6ANAjLpT321114; Mon, 23 Nov 2026 10:45:23 +0000 (GMT) From: Faruque Ansari Date: Mon, 23 Nov 2026 16:15:14 +0530 Subject: [PATCH v2 3/3] arm64: dts: qcom: add Monaco Draco EVK board X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261123-monaco-draco-v2-3-3ee3b2375f16@oss.qualcomm.com> References: <20261123-monaco-draco-v2-0-3ee3b2375f16@oss.qualcomm.com> In-Reply-To: <20261123-monaco-draco-v2-0-3ee3b2375f16@oss.qualcomm.com> To: Bjorn Andersson , Konrad Dybcio , Abel Vesa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Richard Cochran Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Vishnu Saini , Khalid Faisal Ansari , Dipa Mantre , Sravani Tella , Monish Chunara , Ajinkya Inchure , Faruque Ansari , Karthik S X-Mailer: b4 0.14.3 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-GUID: SsRBTB5k1Aoe-VbS8g46p-gwuvY0t7oC X-Authority-Analysis: v=2.4 cv=K+O3jCWI c=1 sm=1 tr=0 ts=6b041946 cx=c_pps a=Ou0eQOY4+eZoSc0qltEV5Q==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=GvRRWqs2ytkT4Cyut6AA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Info: AW1haW4tMjYxMTIzMDA0MiBTYWx0ZWRfXwdrqJEfqDd8v Ud3cuwLyIFO/qXl2m1z+VBBmmDNuhUZfjMwoygspGI8xI9n9NFx6XrFG2Ti4YP9AzI62BceCoZA jD4xt5KQ+Eireu9gmmu89+rh6zyd6Cs= X-Proofpoint-ORIG-GUID: SsRBTB5k1Aoe-VbS8g46p-gwuvY0t7oC X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTIzMDA0MiBTYWx0ZWRfXxJqeU5bZ0PzM PNnqF9Vw4Y6zi/pmjPC5GPnKnRidLmdBSwBcIehNqtsC18NfojpHxRP7Tqwp9q2IemXqauVOJ80 arOu2sMWNdsQOip1kfCivuh6VGzRu86O1/5y+jCkOEDuhD5mhzRCjZKqYNEtjDh4G3RbVZ6659W 8j+IuO5/47t8eDGONeh8RICTQR+aAF7DwViZpC3vG2zmB+XmHBfbLmQ+cK79qZGid56nmt6ytLm EU6Eovy1m6Q0NR+L2UaNFSOJFbz7S3aBkheoqoRLJu8Z1u5d6VZXR5eWu+Ng5uJm98VKYLY7JRB 4duv3C062xvrrOCyRPyPKIzalVWc9eLAmOcL8+LOWdCw6Bxk5L7z1+oE+oL1olU+TR8kaURHxWq Zgs/kADsakA0zcYWjOuy1iKbHxdLHuSO0kH74LyGFrfdJWNCOkE9n1uCusDY+6gn30252od/4Wj XBL4VoSsgExdipLk5Vw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-23_02,2026-11-22_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 spamscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611230042 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 --- arch/arm64/boot/dts/qcom/Makefile | 5 + arch/arm64/boot/dts/qcom/monaco-draco-evk.dts | 755 ++++++++++++++++++++++++++ 2 files changed, 760 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 88230c4e00ea..7212bd1d2358 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -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 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 000000000000..ae34538e6fd3 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/monaco-draco-evk.dts @@ -0,0 +1,755 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + */ + +/dts-v1/; + +#include +#include +#include + +#include "monaco-draco-ac-som.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. Monaco Draco EVK"; + compatible = "qcom,monaco-draco-evk", "qcom,monaco-draco-ac-som", + "qcom,qcs8300"; + chassis-type = "embedded"; + + aliases { + ethernet0 = ðernet0; + serial1 = &uart2; + }; + + vreg_0p9: regulator-0v9 { + compatible = "regulator-fixed"; + regulator-name = "VREG_0P9"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <900000>; + regulator-always-on; + regulator-boot-on; + }; + + vreg_1p8: regulator-1v8 { + compatible = "regulator-fixed"; + regulator-name = "VREG_1P8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + vreg_keye_3p3: regulator-keye-3p3 { + compatible = "regulator-fixed"; + regulator-name = "vreg_keye_3p3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-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>; + }; + + 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>; + }; + }; + }; + + wifi-bt-connector { + compatible = "pcie-m2-e-connector"; + vpcie3v3-supply = <&vreg_keye_3p3>; + + w-disable2-gpios = <&tlmm 55 GPIO_ACTIVE_LOW>; + + pinctrl-0 = <&bt_en>; + pinctrl-names = "default"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + m2_e_pcie_ep: endpoint@0 { + reg = <0>; + remote-endpoint = <&tc9563_pcie1_ep>; + }; + }; + + port@3 { + reg = <3>; + #address-cells = <1>; + #size-cells = <0>; + + m2_e_uart_ep: endpoint@0 { + reg = <0>; + remote-endpoint = <&uart2_ep>; + }; + }; + }; + }; + + 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; + }; + + vreg_va_micb_1p8: regulator-va-micb-1p8 { + compatible = "regulator-fixed"; + 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>; + }; + + 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>; + }; + }; + }; +}; + +ðernet0 { + phy-handle = <&hsgmii_phy0>; + phy-mode = "2500base-x"; + + pinctrl-0 = <ðernet0_default>; + pinctrl-names = "default"; + + snps,mtl-rx-config = <&mtl_rx_setup>; + snps,mtl-tx-config = <&mtl_tx_setup>; + + nvmem-cells = <&mac_addr0>; + nvmem-cell-names = "mac-address"; + + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + hsgmii_phy0: ethernet-phy@1c { + compatible = "ethernet-phy-id004d.d101"; + reg = <0x1c>; + reset-gpios = <&tlmm 31 GPIO_ACTIVE_LOW>; + reset-assert-us = <11000>; + reset-deassert-us = <70000>; + }; + }; + + mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use = <4>; + snps,rx-sched-sp; + + queue0 { + snps,dcb-algorithm; + snps,map-to-dma-channel = <0x0>; + snps,route-up; + snps,priority = <0x1>; + }; + + queue1 { + snps,dcb-algorithm; + snps,map-to-dma-channel = <0x1>; + snps,route-ptp; + }; + + queue2 { + snps,avb-algorithm; + snps,map-to-dma-channel = <0x2>; + snps,route-avcp; + }; + + queue3 { + snps,avb-algorithm; + snps,map-to-dma-channel = <0x3>; + snps,priority = <0xc>; + }; + }; + + mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use = <4>; + + queue0 { + snps,dcb-algorithm; + }; + + queue1 { + snps,dcb-algorithm; + }; + + queue2 { + snps,avb-algorithm; + snps,send_slope = <0x1000>; + snps,idle_slope = <0x1000>; + snps,high_credit = <0x3e800>; + snps,low_credit = <0xffc18000>; + }; + + queue3 { + snps,avb-algorithm; + snps,send_slope = <0x1000>; + snps,idle_slope = <0x1000>; + snps,high_credit = <0x3e800>; + snps,low_credit = <0xffc18000>; + }; + }; +}; + +&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>; + }; +}; + +&i2c13 { + status = "okay"; + + fan_controller: fan@1a { + compatible = "ti,amc6821"; + reg = <0x1a>; + #pwm-cells = <2>; + + fan { + pwms = <&fan_controller 40000 PWM_POLARITY_INVERTED>; + }; + }; +}; + +&i2c14 { + status = "okay"; + + expander0: gpio@20 { + compatible = "kinetic,kts1622", "ti,tcal6416"; + reg = <0x20>; + #gpio-cells = <2>; + gpio-controller; + }; + + expander1: gpio@21 { + compatible = "kinetic,kts1622", "ti,tcal6416"; + reg = <0x21>; + #gpio-cells = <2>; + gpio-controller; + }; + + expander2: gpio@22 { + compatible = "kinetic,kts1622", "ti,tcal6416"; + reg = <0x22>; + #gpio-cells = <2>; + gpio-controller; + }; + + expander3: gpio@23 { + compatible = "kinetic,kts1622", "ti,tcal6416"; + reg = <0x23>; + #gpio-cells = <2>; + gpio-controller; + + pwr-en0-hog { + gpio-hog; + gpios = <0 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "pwr_en0"; + }; + + pwr-en1-hog { + gpio-hog; + gpios = <1 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "pwr_en1"; + }; + + pwr-en4-hog { + gpio-hog; + gpios = <4 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "pwr_en4"; + }; + + pwr-en6-hog { + gpio-hog; + gpios = <6 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "pwr_en6"; + }; + + pwr-en8-hog { + gpio-hog; + gpios = <8 GPIO_ACTIVE_HIGH>; + 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"; + }; + }; +}; + +&i2c15 { + status = "okay"; + + expander4: gpio@38 { + compatible = "ti,tca9538"; + reg = <0x38>; + #gpio-cells = <2>; + gpio-controller; + }; + + expander5: gpio@3c { + compatible = "ti,tca9538"; + reg = <0x3c>; + #gpio-cells = <2>; + gpio-controller; + }; + + eeprom@50 { + compatible = "giantec,gt24c256c", "atmel,24c256"; + reg = <0x50>; + pagesize = <64>; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + mac_addr0: mac-addr@0 { + reg = <0x0 0x6>; + }; + }; + }; +}; + +&mdss { + status = "okay"; +}; + +&mdss_dp0 { + pinctrl-0 = <&dp_hot_plug_det>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&mdss_dp0_out { + data-lanes = <0 1 2 3>; + link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000 8100000000>; + remote-endpoint = <&dp0_connector_in>; +}; + +&pcie0 { + pinctrl-0 = <&pcie0_default_state>; + pinctrl-names = "default"; + + iommu-map = <0x0 &pcie_smmu 0x0 0x0 0x1>, + <0x100 &pcie_smmu 0x1 0x0 0x1>, + <0x208 &pcie_smmu 0x2 0x0 0x1>, + <0x210 &pcie_smmu 0x3 0x0 0x1>, + <0x218 &pcie_smmu 0x4 0x0 0x1>, + <0x300 &pcie_smmu 0x5 0x0 0x1>, + <0x400 &pcie_smmu 0x6 0x0 0x1>, + <0x500 &pcie_smmu 0x7 0x0 0x1>, + <0x501 &pcie_smmu 0x8 0x0 0x1>; + + status = "okay"; +}; + +&pcie1 { + pinctrl-0 = <&pcie1_default_state>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&pcieport0 { + #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>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges; + bus-range = <0x2 0xff>; + + vddc-supply = <&vreg_0p9>; + vdd18-supply = <&vreg_1p8>; + vdd09-supply = <&vreg_0p9>; + vddio1-supply = <&vreg_1p8>; + vddio2-supply = <&vreg_1p8>; + vddio18-supply = <&vreg_1p8>; + i2c-parent = <&i2c15 0x77>; + resx-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; + pinctrl-0 = <&tc9563_resx_n>; + pinctrl-names = "default"; + + pcie@1,0 { + compatible = "pciclass,0604"; + reg = <0x20800 0x0 0x0 0x0 0x0>; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + ranges; + bus-range = <0x3 0xff>; + + port { + tc9563_pcie1_ep: endpoint { + remote-endpoint = <&m2_e_pcie_ep>; + }; + }; + }; + + 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; + }; + }; + }; +}; + +&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_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; + }; + }; + + 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>; + }; +}; + +&spi10 { + status = "okay"; + + tpm@0 { + compatible = "st,st33htpm-spi", "tcg,tpm_tis-spi"; + reg = <0>; + spi-max-frequency = <20000000>; + }; +}; + +&tlmm { + 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; + }; + + bt_en: bt-en-state { + pins = "gpio55"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + ethernet0_default: ethernet0-default-state { + ethernet0_mdc: ethernet0-mdc-pins { + pins = "gpio5"; + function = "emac0_mdc"; + drive-strength = <16>; + bias-pull-up; + }; + + ethernet0_mdio: ethernet0-mdio-pins { + pins = "gpio6"; + function = "emac0_mdio"; + drive-strength = <16>; + bias-pull-up; + }; + }; + + pcie0_default_state: pcie0-default-state { + clkreq-pins { + pins = "gpio1"; + function = "pcie0_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-pins { + pins = "gpio2"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + wake-pins { + pins = "gpio0"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + pcie1_default_state: pcie1-default-state { + clkreq-pins { + pins = "gpio22"; + function = "pcie1_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-pins { + pins = "gpio23"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + + wake-pins { + pins = "gpio21"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + tc9563_resx_n: tc9563-resx-state { + pins = "gpio96"; + function = "gpio"; + bias-disable; + output-high; + }; +}; + +&uart2 { + status = "okay"; + + port { + uart2_ep: endpoint { + remote-endpoint = <&m2_e_uart_ep>; + }; + }; +}; -- 2.34.1