Message ID | 20231124121305.1954-3-quic_kbajaj@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1132497vqx; Fri, 24 Nov 2023 04:13:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQP3KK+sdTSxB6imVgCvejkYg0snBdvJooZ9QCaSVBEUeUBu+QWNslS+WTXz2VoAsSnoeT X-Received: by 2002:a17:902:ee82:b0:1cf:96a0:e4eb with SMTP id a2-20020a170902ee8200b001cf96a0e4ebmr2501597pld.37.1700828039058; Fri, 24 Nov 2023 04:13:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700828039; cv=none; d=google.com; s=arc-20160816; b=PjBkgMZJkcHDoc6046iLhcbN6JtPOHW1gooWiSxTcjXiRnB/gPNfRjVNzvLSyOJn75 rRqm/qk1dWDOp94h93+PgUZGbL4gY5vozbGPkzlqq1uUcvgctZcuDFO3jVg/wArFsnz2 KypPgCC6OxRUlRQ+JqEd3uMUQN1c5kxv9efA2ZMD5AM/Bc5Rj/P4RdoMIRSf2hVhNlNX 9vMfKBXvdA+wDWC5+qgdd8NMD43TZpqzjvZ+TbQ61I1K9tMaROQnuuJRBlvbkODr7WCa vMlzuofz/Z+V3hbOELg6ngHUvAesRHMQ3KVpFFkiROeze82L6d4I2219Ui6GbxiGS1Ie v0QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pyrUwN5Yn6sOsbRLu3Anm2L6GaqrRmGPHjqE0Bv1QfQ=; fh=sMrcs0w0utEZWQBsKOvzbDAMFyTj3KAX3WCChWAiSL4=; b=d7CD2XzFtNrBMBaxhrji5ZpTh/ETSn2CIkLAHugSaffHW6yQep96BKL5AUfSCr6noQ oP4MsckjmjtPhuHVkr6CZZcgIeQxeIsXjXkFD7ke4a8gHjtqjFr1f50/+ZUagT4KGkXM 1btMRXGzV2uMNZU0lehrzMrpVy3lZbsxME2THAOj1IOLPhjMMFqwTgQ3nokwfNQw+PgM LkZddwgDnXSNmN4ZlCE0pDV+0vd8TM6Gina8LCTcQjXkkeWCxO9NV7pewfMGcaTXigpR ZEDgGaeBq4YdRXTJQZw+bjt5+MwdBt6XDqwFchp6i+vL+2CX50188/QfVyqFokodWYqd zBMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hyOWHRQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id t9-20020a170902e84900b001cc2ebd2c3dsi3421232plg.161.2023.11.24.04.13.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 04:13:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=hyOWHRQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5D7EA83CE28B; Fri, 24 Nov 2023 04:13:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345071AbjKXMNh (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 24 Nov 2023 07:13:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230432AbjKXMNg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Nov 2023 07:13:36 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6865C10E4; Fri, 24 Nov 2023 04:13:42 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AOBt4bp016521; Fri, 24 Nov 2023 12:13:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=pyrUwN5Yn6sOsbRLu3Anm2L6GaqrRmGPHjqE0Bv1QfQ=; b=hyOWHRQUJyePHPzFFaRA83hJC/0gxra9XeqD/5JDYVUgjqAInrcPcslNgzJ6z7aDbxOL P6IyvrAUwrVOWHBu0NdqtLkcaejF5jp7d04xH391s5zyKLO+J/TlCznsfhFuDZpN2lO/ 66ZLsy4pTJRJjxz955JdaPtAoEo42ldLw8Xs5wGFA+NQfhcej1EP0/dU1YKFmGmJwG1z jr9uvHiVBbf2V22Pqwb+fjsjXuFiLuZk25MlNB+s1ZCM4RPtJm8cwVwx6Y/xJRpxbnsV kECsVPKtYbFVh44VpqfgKAmaDB6RVlY5YB8rVg9xxVJ2LSKN1c91Smy7EG9/B5hJsW+t 7g== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ujtd8g4q6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Nov 2023 12:13:39 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3AOCDciu006795 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 24 Nov 2023 12:13:38 GMT Received: from hu-kbajaj-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 24 Nov 2023 04:13:34 -0800 From: Komal Bajaj <quic_kbajaj@quicinc.com> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> CC: <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Komal Bajaj <quic_kbajaj@quicinc.com> Subject: [PATCH v6 2/3] arm64: dts: qcom: Add base qcm6490 idp board dts Date: Fri, 24 Nov 2023 17:43:04 +0530 Message-ID: <20231124121305.1954-3-quic_kbajaj@quicinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231124121305.1954-1-quic_kbajaj@quicinc.com> References: <20231124121305.1954-1-quic_kbajaj@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: PA8GtZAmKGrnFdsbcn8ratigk3-GrNAl X-Proofpoint-GUID: PA8GtZAmKGrnFdsbcn8ratigk3-GrNAl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-23_15,2023-11-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 mlxlogscore=892 impostorscore=0 adultscore=0 malwarescore=0 priorityscore=1501 clxscore=1015 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311240094 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 04:13:55 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783447461575577850 X-GMAIL-MSGID: 1783447461575577850 |
Series |
Add support for qcm6490 idp and qcs6490 rb3gen2 board
|
|
Commit Message
Komal Bajaj
Nov. 24, 2023, 12:13 p.m. UTC
Add DTS for Qualcomm IDP platform using QCM6490 SoC. This adds debug uart, eMMC and usb support along with regulators found on this board. Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 464 +++++++++++++++++++++++ 2 files changed, 465 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts -- 2.42.0
Comments
On Fri, 24 Nov 2023 at 14:13, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > > Add DTS for Qualcomm IDP platform using QCM6490 SoC. > This adds debug uart, eMMC and usb support along with > regulators found on this board. > > Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 464 +++++++++++++++++++++++ > 2 files changed, 465 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index d6cb840b7050..77babebe4904 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-maple.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-poplar.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8998-xiaomi-sagit.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcm6490-fairphone-fp5.dtb > +dtb-$(CONFIG_ARCH_QCOM) += qcm6490-idp.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb > dtb-$(CONFIG_ARCH_QCOM) += qdu1000-idp.dtb > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > new file mode 100644 > index 000000000000..78ace02e42c0 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > @@ -0,0 +1,464 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> > +#include "sc7280.dtsi" > +#include "pm7325.dtsi" > +#include "pm8350c.dtsi" > +#include "pmk8350.dtsi" > + > +/delete-node/ &ipa_fw_mem; > +/delete-node/ &rmtfs_mem; > +/delete-node/ &video_mem; > +/delete-node/ &wlan_ce_mem; > +/delete-node/ &xbl_mem; > + > +/ { > + model = "Qualcomm Technologies, Inc. QCM6490 IDP"; > + compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; > + > + aliases { > + serial0 = &uart5; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + reserved-memory { > + xbl_mem: xbl@80700000 { > + reg = <0x0 0x80700000 0x0 0x100000>; > + no-map; > + }; > + > + cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { > + reg = <0x0 0x81800000 0x0 0x1e00000>; > + no-map; > + }; > + > + camera_mem: camera@84300000 { > + reg = <0x0 0x84300000 0x0 0x500000>; > + no-map; > + }; > + > + wpss_mem: wpss@84800000 { > + reg = <0x0 0x84800000 0x0 0x1900000>; > + no-map; > + }; > + > + adsp_mem: adsp@86100000 { > + reg = <0x0 0x86100000 0x0 0x2800000>; > + no-map; > + }; > + > + cdsp_mem: cdsp@88900000 { > + reg = <0x0 0x88900000 0x0 0x1e00000>; > + no-map; > + }; > + > + video_mem: video@8a700000 { > + reg = <0x0 0x8a700000 0x0 0x700000>; > + no-map; > + }; > + > + cvp_mem: cvp@8ae00000 { > + reg = <0x0 0x8ae00000 0x0 0x500000>; > + no-map; > + }; > + > + ipa_fw_mem: ipa-fw@8b300000 { > + reg = <0x0 0x8b300000 0x0 0x10000>; > + no-map; > + }; > + > + ipa_gsi_mem: ipa-gsi@8b310000 { > + reg = <0x0 0x8b310000 0x0 0xa000>; > + no-map; > + }; > + > + gpu_microcode_mem: gpu-microcode@8b31a000 { > + reg = <0x0 0x8b31a000 0x0 0x2000>; > + no-map; > + }; > + > + mpss_mem: mpss@8b800000 { > + reg = <0x0 0x8b800000 0x0 0xf600000>; > + no-map; > + }; > + > + tz_stat_mem: tz-stat@c0000000 { > + reg = <0x0 0xc0000000 0x0 0x100000>; > + no-map; > + }; > + > + tags_mem: tags@c0100000 { > + reg = <0x0 0xc0100000 0x0 0x1200000>; > + no-map; > + }; > + > + qtee_mem: qtee@c1300000 { > + reg = <0x0 0xc1300000 0x0 0x500000>; > + no-map; > + }; > + > + trusted_apps_mem: trusted_apps@c1800000 { > + reg = <0x0 0xc1800000 0x0 0x1c00000>; > + no-map; > + }; > + > + debug_vm_mem: debug-vm@d0600000 { > + reg = <0x0 0xd0600000 0x0 0x100000>; > + no-map; > + }; > + }; > + > + vph_pwr: vph-pwr-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vph_pwr"; > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <4350000>; > + }; > +}; > + > +&apps_rsc { > + regulators-0 { > + compatible = "qcom,pm7325-rpmh-regulators"; > + qcom,pmic-id = "b"; > + > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + vdd-s4-supply = <&vph_pwr>; > + vdd-s5-supply = <&vph_pwr>; > + vdd-s6-supply = <&vph_pwr>; > + vdd-s7-supply = <&vph_pwr>; > + vdd-s8-supply = <&vph_pwr>; > + vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>; > + vdd-l2-l7-supply = <&vreg_bob_3p296>; > + vdd-l3-supply = <&vreg_s2b_0p876>; > + vdd-l5-supply = <&vreg_s2b_0p876>; > + vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>; > + vdd-l8-supply = <&vreg_s7b_0p972>; > + vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>; > + vdd-l13-supply = <&vreg_s7b_0p972>; > + vdd-l14-l16-supply = <&vreg_s8b_1p272>; > + > + vreg_s1b_1p872: smps1 { > + regulator-min-microvolt = <1840000>; > + regulator-max-microvolt = <2040000>; > + }; > + > + vreg_s2b_0p876: smps2 { > + regulator-min-microvolt = <570070>; > + regulator-max-microvolt = <1050000>; > + }; > + > + vreg_s7b_0p972: smps7 { > + regulator-min-microvolt = <535000>; > + regulator-max-microvolt = <1120000>; > + }; > + > + vreg_s8b_1p272: smps8 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1500000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>; > + }; > + > + vreg_l1b_0p912: ldo1 { > + regulator-min-microvolt = <825000>; > + regulator-max-microvolt = <925000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l2b_3p072: ldo2 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l3b_0p504: ldo3 { > + regulator-min-microvolt = <312000>; > + regulator-max-microvolt = <910000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l4b_0p752: ldo4 { > + regulator-min-microvolt = <752000>; > + regulator-max-microvolt = <820000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + reg_l5b_0p752: ldo5 { > + regulator-min-microvolt = <552000>; > + regulator-max-microvolt = <832000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l6b_1p2: ldo6 { > + regulator-min-microvolt = <1140000>; > + regulator-max-microvolt = <1260000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l7b_2p952: ldo7 { > + regulator-min-microvolt = <2400000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l8b_0p904: ldo8 { > + regulator-min-microvolt = <870000>; > + regulator-max-microvolt = <970000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l9b_1p2: ldo9 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1304000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l11b_1p504: ldo11 { > + regulator-min-microvolt = <1504000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l12b_0p751: ldo12 { > + regulator-min-microvolt = <751000>; > + regulator-max-microvolt = <824000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l13b_0p53: ldo13 { > + regulator-min-microvolt = <530000>; > + regulator-max-microvolt = <824000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l14b_1p08: ldo14 { > + regulator-min-microvolt = <1080000>; > + regulator-max-microvolt = <1304000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l15b_0p765: ldo15 { > + regulator-min-microvolt = <765000>; > + regulator-max-microvolt = <1020000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l16b_1p1: ldo16 { > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1300000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l17b_1p7: ldo17 { > + regulator-min-microvolt = <1700000>; > + regulator-max-microvolt = <1900000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l18b_1p8: ldo18 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l19b_1p8: ldo19 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + regulator-allow-set-load; > + regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM > + RPMH_REGULATOR_MODE_HPM>; > + }; > + }; > + > + regulators-1 { > + compatible = "qcom,pm8350c-rpmh-regulators"; > + qcom,pmic-id = "c"; > + > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + vdd-s4-supply = <&vph_pwr>; > + vdd-s5-supply = <&vph_pwr>; > + vdd-s6-supply = <&vph_pwr>; > + vdd-s7-supply = <&vph_pwr>; > + vdd-s8-supply = <&vph_pwr>; > + vdd-s9-supply = <&vph_pwr>; > + vdd-s10-supply = <&vph_pwr>; > + vdd-l1-l12-supply = <&vreg_s1b_1p872>; > + vdd-l2-l8-supply = <&vreg_s1b_1p872>; > + vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>; > + vdd-l6-l9-l11-supply = <&vreg_bob_3p296>; > + vdd-l10-supply = <&vreg_s7b_0p972>; > + vdd-bob-supply = <&vph_pwr>; > + > + vreg_s1c_2p19: smps1 { > + regulator-min-microvolt = <2190000>; > + regulator-max-microvolt = <2210000>; > + }; > + > + vreg_s2c_0p752: smps2 { > + regulator-min-microvolt = <750000>; > + regulator-max-microvolt = <800000>; > + }; > + > + vreg_s5c_0p752: smps5 { > + regulator-min-microvolt = <465000>; > + regulator-max-microvolt = <1050000>; > + }; > + > + vreg_s7c_0p752: smps7 { > + regulator-min-microvolt = <465000>; > + regulator-max-microvolt = <800000>; > + }; > + > + vreg_s9c_1p084: smps9 { > + regulator-min-microvolt = <1010000>; > + regulator-max-microvolt = <1170000>; > + }; > + > + vreg_l1c_1p8: ldo1 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l2c_1p62: ldo2 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l3c_2p8: ldo3 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <3540000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l4c_1p62: ldo4 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <3300000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l5c_1p62: ldo5 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <3300000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l6c_2p96: ldo6 { > + regulator-min-microvolt = <1650000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l7c_3p0: ldo7 { > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l8c_1p62: ldo8 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l9c_2p96: ldo9 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <35440000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l10c_0p88: ldo10 { > + regulator-min-microvolt = <720000>; > + regulator-max-microvolt = <1050000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l11c_2p8: ldo11 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l12c_1p65: ldo12 { > + regulator-min-microvolt = <1650000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l13c_2p7: ldo13 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_bob_3p296: bob { > + regulator-min-microvolt = <3008000>; > + regulator-max-microvolt = <3960000>; > + }; > + }; > +}; > + > +&qupv3_id_0 { > + status = "okay"; > +}; > + > +&sdhc_1 { > + non-removable; > + no-sd; > + no-sdio; > + > + vmmc-supply = <&vreg_l7b_2p952>; > + vqmmc-supply = <&vreg_l19b_1p8>; > + > + status = "okay"; > +}; > + > +&tlmm { > + gpio-reserved-ranges = <32 2>, /* ADSP */ > + <48 4>; /* NFC */ > +}; > + > +&uart5 { > + compatible = "qcom,geni-debug-uart"; > + status = "okay"; > +}; > + > +&usb_1 { > + status = "okay"; > +}; > + > +&usb_1_dwc3 { > + dr_mode = "peripheral"; > +}; > + > +&usb_1_hsphy { > + vdda-pll-supply = <&vreg_l10c_0p88>; > + vdda33-supply = <&vreg_l2b_3p072>; > + vdda18-supply = <&vreg_l1c_1p8>; > + > + status = "okay"; > +}; > + > +&usb_1_qmpphy { > + vdda-phy-supply = <&vreg_l6b_1p2>; > + vdda-pll-supply = <&vreg_l1b_0p912>; > + > + status = "okay"; > +}; > + > +&wifi { > + memory-region = <&wlan_fw_mem>; qcom,ath11k-calibration-variant = "qualcomm-qca6490-idp"; Also please cc ath11k maliling list on the next submission > +}; > -- > 2.42.0 > > -- With best wishes Dmitry
On 24/11/2023 12:13, Komal Bajaj wrote: > Add DTS for Qualcomm IDP platform using QCM6490 SoC. > This adds debug uart, eMMC and usb support along with > regulators found on this board. > > Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Missing chassis-type type? With that (or without if it's intentionally missing), please add Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 464 +++++++++++++++++++++++ > 2 files changed, 465 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index d6cb840b7050..77babebe4904 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-maple.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-poplar.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8998-xiaomi-sagit.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcm6490-fairphone-fp5.dtb > +dtb-$(CONFIG_ARCH_QCOM) += qcm6490-idp.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb > dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb > dtb-$(CONFIG_ARCH_QCOM) += qdu1000-idp.dtb > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > new file mode 100644 > index 000000000000..78ace02e42c0 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > @@ -0,0 +1,464 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> > +#include "sc7280.dtsi" > +#include "pm7325.dtsi" > +#include "pm8350c.dtsi" > +#include "pmk8350.dtsi" > + > +/delete-node/ &ipa_fw_mem; > +/delete-node/ &rmtfs_mem; > +/delete-node/ &video_mem; > +/delete-node/ &wlan_ce_mem; > +/delete-node/ &xbl_mem; > + > +/ { > + model = "Qualcomm Technologies, Inc. QCM6490 IDP"; > + compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; > + > + aliases { > + serial0 = &uart5; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + reserved-memory { > + xbl_mem: xbl@80700000 { > + reg = <0x0 0x80700000 0x0 0x100000>; > + no-map; > + }; > + > + cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { > + reg = <0x0 0x81800000 0x0 0x1e00000>; > + no-map; > + }; > + > + camera_mem: camera@84300000 { > + reg = <0x0 0x84300000 0x0 0x500000>; > + no-map; > + }; > + > + wpss_mem: wpss@84800000 { > + reg = <0x0 0x84800000 0x0 0x1900000>; > + no-map; > + }; > + > + adsp_mem: adsp@86100000 { > + reg = <0x0 0x86100000 0x0 0x2800000>; > + no-map; > + }; > + > + cdsp_mem: cdsp@88900000 { > + reg = <0x0 0x88900000 0x0 0x1e00000>; > + no-map; > + }; > + > + video_mem: video@8a700000 { > + reg = <0x0 0x8a700000 0x0 0x700000>; > + no-map; > + }; > + > + cvp_mem: cvp@8ae00000 { > + reg = <0x0 0x8ae00000 0x0 0x500000>; > + no-map; > + }; > + > + ipa_fw_mem: ipa-fw@8b300000 { > + reg = <0x0 0x8b300000 0x0 0x10000>; > + no-map; > + }; > + > + ipa_gsi_mem: ipa-gsi@8b310000 { > + reg = <0x0 0x8b310000 0x0 0xa000>; > + no-map; > + }; > + > + gpu_microcode_mem: gpu-microcode@8b31a000 { > + reg = <0x0 0x8b31a000 0x0 0x2000>; > + no-map; > + }; > + > + mpss_mem: mpss@8b800000 { > + reg = <0x0 0x8b800000 0x0 0xf600000>; > + no-map; > + }; > + > + tz_stat_mem: tz-stat@c0000000 { > + reg = <0x0 0xc0000000 0x0 0x100000>; > + no-map; > + }; > + > + tags_mem: tags@c0100000 { > + reg = <0x0 0xc0100000 0x0 0x1200000>; > + no-map; > + }; > + > + qtee_mem: qtee@c1300000 { > + reg = <0x0 0xc1300000 0x0 0x500000>; > + no-map; > + }; > + > + trusted_apps_mem: trusted_apps@c1800000 { > + reg = <0x0 0xc1800000 0x0 0x1c00000>; > + no-map; > + }; > + > + debug_vm_mem: debug-vm@d0600000 { > + reg = <0x0 0xd0600000 0x0 0x100000>; > + no-map; > + }; > + }; > + > + vph_pwr: vph-pwr-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vph_pwr"; > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <4350000>; > + }; > +}; > + > +&apps_rsc { > + regulators-0 { > + compatible = "qcom,pm7325-rpmh-regulators"; > + qcom,pmic-id = "b"; > + > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + vdd-s4-supply = <&vph_pwr>; > + vdd-s5-supply = <&vph_pwr>; > + vdd-s6-supply = <&vph_pwr>; > + vdd-s7-supply = <&vph_pwr>; > + vdd-s8-supply = <&vph_pwr>; > + vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>; > + vdd-l2-l7-supply = <&vreg_bob_3p296>; > + vdd-l3-supply = <&vreg_s2b_0p876>; > + vdd-l5-supply = <&vreg_s2b_0p876>; > + vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>; > + vdd-l8-supply = <&vreg_s7b_0p972>; > + vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>; > + vdd-l13-supply = <&vreg_s7b_0p972>; > + vdd-l14-l16-supply = <&vreg_s8b_1p272>; > + > + vreg_s1b_1p872: smps1 { > + regulator-min-microvolt = <1840000>; > + regulator-max-microvolt = <2040000>; > + }; > + > + vreg_s2b_0p876: smps2 { > + regulator-min-microvolt = <570070>; > + regulator-max-microvolt = <1050000>; > + }; > + > + vreg_s7b_0p972: smps7 { > + regulator-min-microvolt = <535000>; > + regulator-max-microvolt = <1120000>; > + }; > + > + vreg_s8b_1p272: smps8 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1500000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>; > + }; > + > + vreg_l1b_0p912: ldo1 { > + regulator-min-microvolt = <825000>; > + regulator-max-microvolt = <925000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l2b_3p072: ldo2 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l3b_0p504: ldo3 { > + regulator-min-microvolt = <312000>; > + regulator-max-microvolt = <910000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l4b_0p752: ldo4 { > + regulator-min-microvolt = <752000>; > + regulator-max-microvolt = <820000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + reg_l5b_0p752: ldo5 { > + regulator-min-microvolt = <552000>; > + regulator-max-microvolt = <832000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l6b_1p2: ldo6 { > + regulator-min-microvolt = <1140000>; > + regulator-max-microvolt = <1260000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l7b_2p952: ldo7 { > + regulator-min-microvolt = <2400000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l8b_0p904: ldo8 { > + regulator-min-microvolt = <870000>; > + regulator-max-microvolt = <970000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l9b_1p2: ldo9 { > + regulator-min-microvolt = <1200000>; > + regulator-max-microvolt = <1304000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l11b_1p504: ldo11 { > + regulator-min-microvolt = <1504000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l12b_0p751: ldo12 { > + regulator-min-microvolt = <751000>; > + regulator-max-microvolt = <824000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l13b_0p53: ldo13 { > + regulator-min-microvolt = <530000>; > + regulator-max-microvolt = <824000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l14b_1p08: ldo14 { > + regulator-min-microvolt = <1080000>; > + regulator-max-microvolt = <1304000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l15b_0p765: ldo15 { > + regulator-min-microvolt = <765000>; > + regulator-max-microvolt = <1020000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l16b_1p1: ldo16 { > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1300000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l17b_1p7: ldo17 { > + regulator-min-microvolt = <1700000>; > + regulator-max-microvolt = <1900000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l18b_1p8: ldo18 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l19b_1p8: ldo19 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + regulator-allow-set-load; > + regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM > + RPMH_REGULATOR_MODE_HPM>; > + }; > + }; > + > + regulators-1 { > + compatible = "qcom,pm8350c-rpmh-regulators"; > + qcom,pmic-id = "c"; > + > + vdd-s1-supply = <&vph_pwr>; > + vdd-s2-supply = <&vph_pwr>; > + vdd-s3-supply = <&vph_pwr>; > + vdd-s4-supply = <&vph_pwr>; > + vdd-s5-supply = <&vph_pwr>; > + vdd-s6-supply = <&vph_pwr>; > + vdd-s7-supply = <&vph_pwr>; > + vdd-s8-supply = <&vph_pwr>; > + vdd-s9-supply = <&vph_pwr>; > + vdd-s10-supply = <&vph_pwr>; > + vdd-l1-l12-supply = <&vreg_s1b_1p872>; > + vdd-l2-l8-supply = <&vreg_s1b_1p872>; > + vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>; > + vdd-l6-l9-l11-supply = <&vreg_bob_3p296>; > + vdd-l10-supply = <&vreg_s7b_0p972>; > + vdd-bob-supply = <&vph_pwr>; > + > + vreg_s1c_2p19: smps1 { > + regulator-min-microvolt = <2190000>; > + regulator-max-microvolt = <2210000>; > + }; > + > + vreg_s2c_0p752: smps2 { > + regulator-min-microvolt = <750000>; > + regulator-max-microvolt = <800000>; > + }; > + > + vreg_s5c_0p752: smps5 { > + regulator-min-microvolt = <465000>; > + regulator-max-microvolt = <1050000>; > + }; > + > + vreg_s7c_0p752: smps7 { > + regulator-min-microvolt = <465000>; > + regulator-max-microvolt = <800000>; > + }; > + > + vreg_s9c_1p084: smps9 { > + regulator-min-microvolt = <1010000>; > + regulator-max-microvolt = <1170000>; > + }; > + > + vreg_l1c_1p8: ldo1 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l2c_1p62: ldo2 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l3c_2p8: ldo3 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <3540000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l4c_1p62: ldo4 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <3300000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l5c_1p62: ldo5 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <3300000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l6c_2p96: ldo6 { > + regulator-min-microvolt = <1650000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l7c_3p0: ldo7 { > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l8c_1p62: ldo8 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l9c_2p96: ldo9 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <35440000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l10c_0p88: ldo10 { > + regulator-min-microvolt = <720000>; > + regulator-max-microvolt = <1050000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l11c_2p8: ldo11 { > + regulator-min-microvolt = <2800000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l12c_1p65: ldo12 { > + regulator-min-microvolt = <1650000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_l13c_2p7: ldo13 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > + }; > + > + vreg_bob_3p296: bob { > + regulator-min-microvolt = <3008000>; > + regulator-max-microvolt = <3960000>; > + }; > + }; > +}; > + > +&qupv3_id_0 { > + status = "okay"; > +}; > + > +&sdhc_1 { > + non-removable; > + no-sd; > + no-sdio; > + > + vmmc-supply = <&vreg_l7b_2p952>; > + vqmmc-supply = <&vreg_l19b_1p8>; > + > + status = "okay"; > +}; > + > +&tlmm { > + gpio-reserved-ranges = <32 2>, /* ADSP */ > + <48 4>; /* NFC */ > +}; > + > +&uart5 { > + compatible = "qcom,geni-debug-uart"; > + status = "okay"; > +}; > + > +&usb_1 { > + status = "okay"; > +}; > + > +&usb_1_dwc3 { > + dr_mode = "peripheral"; > +}; > + > +&usb_1_hsphy { > + vdda-pll-supply = <&vreg_l10c_0p88>; > + vdda33-supply = <&vreg_l2b_3p072>; > + vdda18-supply = <&vreg_l1c_1p8>; > + > + status = "okay"; > +}; > + > +&usb_1_qmpphy { > + vdda-phy-supply = <&vreg_l6b_1p2>; > + vdda-pll-supply = <&vreg_l1b_0p912>; > + > + status = "okay"; > +}; > + > +&wifi { > + memory-region = <&wlan_fw_mem>; > +}; > -- > 2.42.0 > >
On 11/24/2023 6:48 PM, Dmitry Baryshkov wrote: > On Fri, 24 Nov 2023 at 14:13, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: >> >> Add DTS for Qualcomm IDP platform using QCM6490 SoC. >> This adds debug uart, eMMC and usb support along with >> regulators found on this board. >> >> Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> >> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> >> --- >> arch/arm64/boot/dts/qcom/Makefile | 1 + >> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 464 +++++++++++++++++++++++ >> 2 files changed, 465 insertions(+) >> create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> >> diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile >> index d6cb840b7050..77babebe4904 100644 >> --- a/arch/arm64/boot/dts/qcom/Makefile >> +++ b/arch/arm64/boot/dts/qcom/Makefile >> @@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-maple.dtb >> dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-poplar.dtb >> dtb-$(CONFIG_ARCH_QCOM) += msm8998-xiaomi-sagit.dtb >> dtb-$(CONFIG_ARCH_QCOM) += qcm6490-fairphone-fp5.dtb >> +dtb-$(CONFIG_ARCH_QCOM) += qcm6490-idp.dtb >> dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb >> dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb >> dtb-$(CONFIG_ARCH_QCOM) += qdu1000-idp.dtb >> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> new file mode 100644 >> index 000000000000..78ace02e42c0 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> @@ -0,0 +1,464 @@ >> +// SPDX-License-Identifier: BSD-3-Clause >> +/* >> + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. >> + */ >> + >> +/dts-v1/; >> + >> +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> >> +#include "sc7280.dtsi" >> +#include "pm7325.dtsi" >> +#include "pm8350c.dtsi" >> +#include "pmk8350.dtsi" >> + >> +/delete-node/ &ipa_fw_mem; >> +/delete-node/ &rmtfs_mem; >> +/delete-node/ &video_mem; >> +/delete-node/ &wlan_ce_mem; >> +/delete-node/ &xbl_mem; >> + >> +/ { >> + model = "Qualcomm Technologies, Inc. QCM6490 IDP"; >> + compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; >> + >> + aliases { >> + serial0 = &uart5; >> + }; >> + >> + chosen { >> + stdout-path = "serial0:115200n8"; >> + }; >> + >> + reserved-memory { >> + xbl_mem: xbl@80700000 { >> + reg = <0x0 0x80700000 0x0 0x100000>; >> + no-map; >> + }; >> + >> + cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { >> + reg = <0x0 0x81800000 0x0 0x1e00000>; >> + no-map; >> + }; >> + >> + camera_mem: camera@84300000 { >> + reg = <0x0 0x84300000 0x0 0x500000>; >> + no-map; >> + }; >> + >> + wpss_mem: wpss@84800000 { >> + reg = <0x0 0x84800000 0x0 0x1900000>; >> + no-map; >> + }; >> + >> + adsp_mem: adsp@86100000 { >> + reg = <0x0 0x86100000 0x0 0x2800000>; >> + no-map; >> + }; >> + >> + cdsp_mem: cdsp@88900000 { >> + reg = <0x0 0x88900000 0x0 0x1e00000>; >> + no-map; >> + }; >> + >> + video_mem: video@8a700000 { >> + reg = <0x0 0x8a700000 0x0 0x700000>; >> + no-map; >> + }; >> + >> + cvp_mem: cvp@8ae00000 { >> + reg = <0x0 0x8ae00000 0x0 0x500000>; >> + no-map; >> + }; >> + >> + ipa_fw_mem: ipa-fw@8b300000 { >> + reg = <0x0 0x8b300000 0x0 0x10000>; >> + no-map; >> + }; >> + >> + ipa_gsi_mem: ipa-gsi@8b310000 { >> + reg = <0x0 0x8b310000 0x0 0xa000>; >> + no-map; >> + }; >> + >> + gpu_microcode_mem: gpu-microcode@8b31a000 { >> + reg = <0x0 0x8b31a000 0x0 0x2000>; >> + no-map; >> + }; >> + >> + mpss_mem: mpss@8b800000 { >> + reg = <0x0 0x8b800000 0x0 0xf600000>; >> + no-map; >> + }; >> + >> + tz_stat_mem: tz-stat@c0000000 { >> + reg = <0x0 0xc0000000 0x0 0x100000>; >> + no-map; >> + }; >> + >> + tags_mem: tags@c0100000 { >> + reg = <0x0 0xc0100000 0x0 0x1200000>; >> + no-map; >> + }; >> + >> + qtee_mem: qtee@c1300000 { >> + reg = <0x0 0xc1300000 0x0 0x500000>; >> + no-map; >> + }; >> + >> + trusted_apps_mem: trusted_apps@c1800000 { >> + reg = <0x0 0xc1800000 0x0 0x1c00000>; >> + no-map; >> + }; >> + >> + debug_vm_mem: debug-vm@d0600000 { >> + reg = <0x0 0xd0600000 0x0 0x100000>; >> + no-map; >> + }; >> + }; >> + >> + vph_pwr: vph-pwr-regulator { >> + compatible = "regulator-fixed"; >> + regulator-name = "vph_pwr"; >> + regulator-min-microvolt = <2500000>; >> + regulator-max-microvolt = <4350000>; >> + }; >> +}; >> + >> +&apps_rsc { >> + regulators-0 { >> + compatible = "qcom,pm7325-rpmh-regulators"; >> + qcom,pmic-id = "b"; >> + >> + vdd-s1-supply = <&vph_pwr>; >> + vdd-s2-supply = <&vph_pwr>; >> + vdd-s3-supply = <&vph_pwr>; >> + vdd-s4-supply = <&vph_pwr>; >> + vdd-s5-supply = <&vph_pwr>; >> + vdd-s6-supply = <&vph_pwr>; >> + vdd-s7-supply = <&vph_pwr>; >> + vdd-s8-supply = <&vph_pwr>; >> + vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>; >> + vdd-l2-l7-supply = <&vreg_bob_3p296>; >> + vdd-l3-supply = <&vreg_s2b_0p876>; >> + vdd-l5-supply = <&vreg_s2b_0p876>; >> + vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>; >> + vdd-l8-supply = <&vreg_s7b_0p972>; >> + vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>; >> + vdd-l13-supply = <&vreg_s7b_0p972>; >> + vdd-l14-l16-supply = <&vreg_s8b_1p272>; >> + >> + vreg_s1b_1p872: smps1 { >> + regulator-min-microvolt = <1840000>; >> + regulator-max-microvolt = <2040000>; >> + }; >> + >> + vreg_s2b_0p876: smps2 { >> + regulator-min-microvolt = <570070>; >> + regulator-max-microvolt = <1050000>; >> + }; >> + >> + vreg_s7b_0p972: smps7 { >> + regulator-min-microvolt = <535000>; >> + regulator-max-microvolt = <1120000>; >> + }; >> + >> + vreg_s8b_1p272: smps8 { >> + regulator-min-microvolt = <1200000>; >> + regulator-max-microvolt = <1500000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>; >> + }; >> + >> + vreg_l1b_0p912: ldo1 { >> + regulator-min-microvolt = <825000>; >> + regulator-max-microvolt = <925000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l2b_3p072: ldo2 { >> + regulator-min-microvolt = <2700000>; >> + regulator-max-microvolt = <3544000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l3b_0p504: ldo3 { >> + regulator-min-microvolt = <312000>; >> + regulator-max-microvolt = <910000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l4b_0p752: ldo4 { >> + regulator-min-microvolt = <752000>; >> + regulator-max-microvolt = <820000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + reg_l5b_0p752: ldo5 { >> + regulator-min-microvolt = <552000>; >> + regulator-max-microvolt = <832000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l6b_1p2: ldo6 { >> + regulator-min-microvolt = <1140000>; >> + regulator-max-microvolt = <1260000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l7b_2p952: ldo7 { >> + regulator-min-microvolt = <2400000>; >> + regulator-max-microvolt = <3544000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l8b_0p904: ldo8 { >> + regulator-min-microvolt = <870000>; >> + regulator-max-microvolt = <970000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l9b_1p2: ldo9 { >> + regulator-min-microvolt = <1200000>; >> + regulator-max-microvolt = <1304000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l11b_1p504: ldo11 { >> + regulator-min-microvolt = <1504000>; >> + regulator-max-microvolt = <2000000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l12b_0p751: ldo12 { >> + regulator-min-microvolt = <751000>; >> + regulator-max-microvolt = <824000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l13b_0p53: ldo13 { >> + regulator-min-microvolt = <530000>; >> + regulator-max-microvolt = <824000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l14b_1p08: ldo14 { >> + regulator-min-microvolt = <1080000>; >> + regulator-max-microvolt = <1304000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l15b_0p765: ldo15 { >> + regulator-min-microvolt = <765000>; >> + regulator-max-microvolt = <1020000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l16b_1p1: ldo16 { >> + regulator-min-microvolt = <1100000>; >> + regulator-max-microvolt = <1300000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l17b_1p7: ldo17 { >> + regulator-min-microvolt = <1700000>; >> + regulator-max-microvolt = <1900000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l18b_1p8: ldo18 { >> + regulator-min-microvolt = <1800000>; >> + regulator-max-microvolt = <2000000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l19b_1p8: ldo19 { >> + regulator-min-microvolt = <1800000>; >> + regulator-max-microvolt = <2000000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + regulator-allow-set-load; >> + regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM >> + RPMH_REGULATOR_MODE_HPM>; >> + }; >> + }; >> + >> + regulators-1 { >> + compatible = "qcom,pm8350c-rpmh-regulators"; >> + qcom,pmic-id = "c"; >> + >> + vdd-s1-supply = <&vph_pwr>; >> + vdd-s2-supply = <&vph_pwr>; >> + vdd-s3-supply = <&vph_pwr>; >> + vdd-s4-supply = <&vph_pwr>; >> + vdd-s5-supply = <&vph_pwr>; >> + vdd-s6-supply = <&vph_pwr>; >> + vdd-s7-supply = <&vph_pwr>; >> + vdd-s8-supply = <&vph_pwr>; >> + vdd-s9-supply = <&vph_pwr>; >> + vdd-s10-supply = <&vph_pwr>; >> + vdd-l1-l12-supply = <&vreg_s1b_1p872>; >> + vdd-l2-l8-supply = <&vreg_s1b_1p872>; >> + vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>; >> + vdd-l6-l9-l11-supply = <&vreg_bob_3p296>; >> + vdd-l10-supply = <&vreg_s7b_0p972>; >> + vdd-bob-supply = <&vph_pwr>; >> + >> + vreg_s1c_2p19: smps1 { >> + regulator-min-microvolt = <2190000>; >> + regulator-max-microvolt = <2210000>; >> + }; >> + >> + vreg_s2c_0p752: smps2 { >> + regulator-min-microvolt = <750000>; >> + regulator-max-microvolt = <800000>; >> + }; >> + >> + vreg_s5c_0p752: smps5 { >> + regulator-min-microvolt = <465000>; >> + regulator-max-microvolt = <1050000>; >> + }; >> + >> + vreg_s7c_0p752: smps7 { >> + regulator-min-microvolt = <465000>; >> + regulator-max-microvolt = <800000>; >> + }; >> + >> + vreg_s9c_1p084: smps9 { >> + regulator-min-microvolt = <1010000>; >> + regulator-max-microvolt = <1170000>; >> + }; >> + >> + vreg_l1c_1p8: ldo1 { >> + regulator-min-microvolt = <1800000>; >> + regulator-max-microvolt = <1980000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l2c_1p62: ldo2 { >> + regulator-min-microvolt = <1620000>; >> + regulator-max-microvolt = <1980000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l3c_2p8: ldo3 { >> + regulator-min-microvolt = <2800000>; >> + regulator-max-microvolt = <3540000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l4c_1p62: ldo4 { >> + regulator-min-microvolt = <1620000>; >> + regulator-max-microvolt = <3300000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l5c_1p62: ldo5 { >> + regulator-min-microvolt = <1620000>; >> + regulator-max-microvolt = <3300000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l6c_2p96: ldo6 { >> + regulator-min-microvolt = <1650000>; >> + regulator-max-microvolt = <3544000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l7c_3p0: ldo7 { >> + regulator-min-microvolt = <3000000>; >> + regulator-max-microvolt = <3544000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l8c_1p62: ldo8 { >> + regulator-min-microvolt = <1620000>; >> + regulator-max-microvolt = <2000000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l9c_2p96: ldo9 { >> + regulator-min-microvolt = <2700000>; >> + regulator-max-microvolt = <35440000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l10c_0p88: ldo10 { >> + regulator-min-microvolt = <720000>; >> + regulator-max-microvolt = <1050000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l11c_2p8: ldo11 { >> + regulator-min-microvolt = <2800000>; >> + regulator-max-microvolt = <3544000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l12c_1p65: ldo12 { >> + regulator-min-microvolt = <1650000>; >> + regulator-max-microvolt = <2000000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_l13c_2p7: ldo13 { >> + regulator-min-microvolt = <2700000>; >> + regulator-max-microvolt = <3544000>; >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> + }; >> + >> + vreg_bob_3p296: bob { >> + regulator-min-microvolt = <3008000>; >> + regulator-max-microvolt = <3960000>; >> + }; >> + }; >> +}; >> + >> +&qupv3_id_0 { >> + status = "okay"; >> +}; >> + >> +&sdhc_1 { >> + non-removable; >> + no-sd; >> + no-sdio; >> + >> + vmmc-supply = <&vreg_l7b_2p952>; >> + vqmmc-supply = <&vreg_l19b_1p8>; >> + >> + status = "okay"; >> +}; >> + >> +&tlmm { >> + gpio-reserved-ranges = <32 2>, /* ADSP */ >> + <48 4>; /* NFC */ >> +}; >> + >> +&uart5 { >> + compatible = "qcom,geni-debug-uart"; >> + status = "okay"; >> +}; >> + >> +&usb_1 { >> + status = "okay"; >> +}; >> + >> +&usb_1_dwc3 { >> + dr_mode = "peripheral"; >> +}; >> + >> +&usb_1_hsphy { >> + vdda-pll-supply = <&vreg_l10c_0p88>; >> + vdda33-supply = <&vreg_l2b_3p072>; >> + vdda18-supply = <&vreg_l1c_1p8>; >> + >> + status = "okay"; >> +}; >> + >> +&usb_1_qmpphy { >> + vdda-phy-supply = <&vreg_l6b_1p2>; >> + vdda-pll-supply = <&vreg_l1b_0p912>; >> + >> + status = "okay"; >> +}; >> + >> +&wifi { >> + memory-region = <&wlan_fw_mem>; > > qcom,ath11k-calibration-variant = "qualcomm-qca6490-idp"; This patch adds only base devicetree change for qcm6490, we will add subsequent changes for wifi later. Here, I am just updating memory- region for wifi so as not to break compilation. Thanks Komal > > Also please cc ath11k maliling list on the next submission > >> +}; > >> -- >> 2.42.0 >> >> > > > -- > With best wishes > > Dmitry >
On 11/25/2023 3:21 AM, Caleb Connolly wrote: > > > On 24/11/2023 12:13, Komal Bajaj wrote: >> Add DTS for Qualcomm IDP platform using QCM6490 SoC. >> This adds debug uart, eMMC and usb support along with >> regulators found on this board. >> >> Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> >> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > Missing chassis-type type? With that (or without if it's intentionally > missing), please add Okay, we will add chassis-type in next patch set. Thanks Komal > > Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> >> --- >>  arch/arm64/boot/dts/qcom/Makefile       |  1 + >>  arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 464 +++++++++++++++++++++++ >>  2 files changed, 465 insertions(+) >>  create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> >> diff --git a/arch/arm64/boot/dts/qcom/Makefile >> b/arch/arm64/boot/dts/qcom/Makefile >> index d6cb840b7050..77babebe4904 100644 >> --- a/arch/arm64/boot/dts/qcom/Makefile >> +++ b/arch/arm64/boot/dts/qcom/Makefile >> @@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_QCOM)   += >> msm8998-sony-xperia-yoshino-maple.dtb >>  dtb-$(CONFIG_ARCH_QCOM)   += msm8998-sony-xperia-yoshino-poplar.dtb >>  dtb-$(CONFIG_ARCH_QCOM)   += msm8998-xiaomi-sagit.dtb >>  dtb-$(CONFIG_ARCH_QCOM)   += qcm6490-fairphone-fp5.dtb >> +dtb-$(CONFIG_ARCH_QCOM)   += qcm6490-idp.dtb >>  dtb-$(CONFIG_ARCH_QCOM)   += qcs404-evb-1000.dtb >>  dtb-$(CONFIG_ARCH_QCOM)   += qcs404-evb-4000.dtb >>  dtb-$(CONFIG_ARCH_QCOM)   += qdu1000-idp.dtb >> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> new file mode 100644 >> index 000000000000..78ace02e42c0 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> @@ -0,0 +1,464 @@ >> +// SPDX-License-Identifier: BSD-3-Clause >> +/* >> + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights >> reserved. >> + */ >> + >> +/dts-v1/; >> + >> +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> >> +#include "sc7280.dtsi" >> +#include "pm7325.dtsi" >> +#include "pm8350c.dtsi" >> +#include "pmk8350.dtsi" >> + >> +/delete-node/ &ipa_fw_mem; >> +/delete-node/ &rmtfs_mem; >> +/delete-node/ &video_mem; >> +/delete-node/ &wlan_ce_mem; >> +/delete-node/ &xbl_mem; >> + >> +/ { >> +   model = "Qualcomm Technologies, Inc. QCM6490 IDP"; >> +   compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; >> + >> +   aliases { >> +       serial0 = &uart5; >> +   }; >> + >> +   chosen { >> +       stdout-path = "serial0:115200n8"; >> +   }; >> + >> +   reserved-memory { >> +       xbl_mem: xbl@80700000 { >> +           reg = <0x0 0x80700000 0x0 0x100000>; >> +           no-map; >> +       }; >> + >> +       cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { >> +           reg = <0x0 0x81800000 0x0 0x1e00000>; >> +           no-map; >> +       }; >> + >> +       camera_mem: camera@84300000 { >> +           reg = <0x0 0x84300000 0x0 0x500000>; >> +           no-map; >> +       }; >> + >> +       wpss_mem: wpss@84800000 { >> +           reg = <0x0 0x84800000 0x0 0x1900000>; >> +           no-map; >> +       }; >> + >> +       adsp_mem: adsp@86100000 { >> +           reg = <0x0 0x86100000 0x0 0x2800000>; >> +           no-map; >> +       }; >> + >> +       cdsp_mem: cdsp@88900000 { >> +           reg = <0x0 0x88900000 0x0 0x1e00000>; >> +           no-map; >> +       }; >> + >> +       video_mem: video@8a700000 { >> +           reg = <0x0 0x8a700000 0x0 0x700000>; >> +           no-map; >> +       }; >> + >> +       cvp_mem: cvp@8ae00000 { >> +           reg = <0x0 0x8ae00000 0x0 0x500000>; >> +           no-map; >> +       }; >> + >> +       ipa_fw_mem: ipa-fw@8b300000 { >> +           reg = <0x0 0x8b300000 0x0 0x10000>; >> +           no-map; >> +       }; >> + >> +       ipa_gsi_mem: ipa-gsi@8b310000 { >> +           reg = <0x0 0x8b310000 0x0 0xa000>; >> +           no-map; >> +       }; >> + >> +       gpu_microcode_mem: gpu-microcode@8b31a000 { >> +           reg = <0x0 0x8b31a000 0x0 0x2000>; >> +           no-map; >> +       }; >> + >> +       mpss_mem: mpss@8b800000 { >> +           reg = <0x0 0x8b800000 0x0 0xf600000>; >> +           no-map; >> +       }; >> + >> +       tz_stat_mem: tz-stat@c0000000 { >> +           reg = <0x0 0xc0000000 0x0 0x100000>; >> +           no-map; >> +       }; >> + >> +       tags_mem: tags@c0100000 { >> +           reg = <0x0 0xc0100000 0x0 0x1200000>; >> +           no-map; >> +       }; >> + >> +       qtee_mem: qtee@c1300000 { >> +           reg = <0x0 0xc1300000 0x0 0x500000>; >> +           no-map; >> +       }; >> + >> +       trusted_apps_mem: trusted_apps@c1800000 { >> +           reg = <0x0 0xc1800000 0x0 0x1c00000>; >> +           no-map; >> +       }; >> + >> +       debug_vm_mem: debug-vm@d0600000 { >> +           reg = <0x0 0xd0600000 0x0 0x100000>; >> +           no-map; >> +       }; >> +   }; >> + >> +   vph_pwr: vph-pwr-regulator { >> +       compatible = "regulator-fixed"; >> +       regulator-name = "vph_pwr"; >> +       regulator-min-microvolt = <2500000>; >> +       regulator-max-microvolt = <4350000>; >> +   }; >> +}; >> + >> +&apps_rsc { >> +   regulators-0 { >> +       compatible = "qcom,pm7325-rpmh-regulators"; >> +       qcom,pmic-id = "b"; >> + >> +       vdd-s1-supply = <&vph_pwr>; >> +       vdd-s2-supply = <&vph_pwr>; >> +       vdd-s3-supply = <&vph_pwr>; >> +       vdd-s4-supply = <&vph_pwr>; >> +       vdd-s5-supply = <&vph_pwr>; >> +       vdd-s6-supply = <&vph_pwr>; >> +       vdd-s7-supply = <&vph_pwr>; >> +       vdd-s8-supply = <&vph_pwr>; >> +       vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>; >> +       vdd-l2-l7-supply = <&vreg_bob_3p296>; >> +       vdd-l3-supply = <&vreg_s2b_0p876>; >> +       vdd-l5-supply = <&vreg_s2b_0p876>; >> +       vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>; >> +       vdd-l8-supply = <&vreg_s7b_0p972>; >> +       vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>; >> +       vdd-l13-supply = <&vreg_s7b_0p972>; >> +       vdd-l14-l16-supply = <&vreg_s8b_1p272>; >> + >> +       vreg_s1b_1p872: smps1 { >> +           regulator-min-microvolt = <1840000>; >> +           regulator-max-microvolt = <2040000>; >> +       }; >> + >> +       vreg_s2b_0p876: smps2 { >> +           regulator-min-microvolt = <570070>; >> +           regulator-max-microvolt = <1050000>; >> +       }; >> + >> +       vreg_s7b_0p972: smps7 { >> +           regulator-min-microvolt = <535000>; >> +           regulator-max-microvolt = <1120000>; >> +       }; >> + >> +       vreg_s8b_1p272: smps8 { >> +           regulator-min-microvolt = <1200000>; >> +           regulator-max-microvolt = <1500000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>; >> +       }; >> + >> +       vreg_l1b_0p912: ldo1 { >> +           regulator-min-microvolt = <825000>; >> +           regulator-max-microvolt = <925000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l2b_3p072: ldo2 { >> +           regulator-min-microvolt = <2700000>; >> +           regulator-max-microvolt = <3544000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l3b_0p504: ldo3 { >> +           regulator-min-microvolt = <312000>; >> +           regulator-max-microvolt = <910000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l4b_0p752: ldo4 { >> +           regulator-min-microvolt = <752000>; >> +           regulator-max-microvolt = <820000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       reg_l5b_0p752: ldo5 { >> +           regulator-min-microvolt = <552000>; >> +           regulator-max-microvolt = <832000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l6b_1p2: ldo6 { >> +           regulator-min-microvolt = <1140000>; >> +           regulator-max-microvolt = <1260000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l7b_2p952: ldo7 { >> +           regulator-min-microvolt = <2400000>; >> +           regulator-max-microvolt = <3544000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l8b_0p904: ldo8 { >> +           regulator-min-microvolt = <870000>; >> +           regulator-max-microvolt = <970000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l9b_1p2: ldo9 { >> +           regulator-min-microvolt = <1200000>; >> +           regulator-max-microvolt = <1304000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l11b_1p504: ldo11 { >> +           regulator-min-microvolt = <1504000>; >> +           regulator-max-microvolt = <2000000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l12b_0p751: ldo12 { >> +           regulator-min-microvolt = <751000>; >> +           regulator-max-microvolt = <824000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l13b_0p53: ldo13 { >> +           regulator-min-microvolt = <530000>; >> +           regulator-max-microvolt = <824000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l14b_1p08: ldo14 { >> +           regulator-min-microvolt = <1080000>; >> +           regulator-max-microvolt = <1304000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l15b_0p765: ldo15 { >> +           regulator-min-microvolt = <765000>; >> +           regulator-max-microvolt = <1020000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l16b_1p1: ldo16 { >> +           regulator-min-microvolt = <1100000>; >> +           regulator-max-microvolt = <1300000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l17b_1p7: ldo17 { >> +           regulator-min-microvolt = <1700000>; >> +           regulator-max-microvolt = <1900000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l18b_1p8: ldo18 { >> +           regulator-min-microvolt = <1800000>; >> +           regulator-max-microvolt = <2000000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l19b_1p8: ldo19 { >> +           regulator-min-microvolt = <1800000>; >> +           regulator-max-microvolt = <2000000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +           regulator-allow-set-load; >> +           regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM >> +                          RPMH_REGULATOR_MODE_HPM>; >> +       }; >> +   }; >> + >> +   regulators-1 { >> +       compatible = "qcom,pm8350c-rpmh-regulators"; >> +       qcom,pmic-id = "c"; >> + >> +       vdd-s1-supply = <&vph_pwr>; >> +       vdd-s2-supply = <&vph_pwr>; >> +       vdd-s3-supply = <&vph_pwr>; >> +       vdd-s4-supply = <&vph_pwr>; >> +       vdd-s5-supply = <&vph_pwr>; >> +       vdd-s6-supply = <&vph_pwr>; >> +       vdd-s7-supply = <&vph_pwr>; >> +       vdd-s8-supply = <&vph_pwr>; >> +       vdd-s9-supply = <&vph_pwr>; >> +       vdd-s10-supply = <&vph_pwr>; >> +       vdd-l1-l12-supply = <&vreg_s1b_1p872>; >> +       vdd-l2-l8-supply = <&vreg_s1b_1p872>; >> +       vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>; >> +       vdd-l6-l9-l11-supply = <&vreg_bob_3p296>; >> +       vdd-l10-supply = <&vreg_s7b_0p972>; >> +       vdd-bob-supply = <&vph_pwr>; >> + >> +       vreg_s1c_2p19: smps1 { >> +           regulator-min-microvolt = <2190000>; >> +           regulator-max-microvolt = <2210000>; >> +       }; >> + >> +       vreg_s2c_0p752: smps2 { >> +           regulator-min-microvolt = <750000>; >> +           regulator-max-microvolt = <800000>; >> +       }; >> + >> +       vreg_s5c_0p752: smps5 { >> +           regulator-min-microvolt = <465000>; >> +           regulator-max-microvolt = <1050000>; >> +       }; >> + >> +       vreg_s7c_0p752: smps7 { >> +           regulator-min-microvolt = <465000>; >> +           regulator-max-microvolt = <800000>; >> +       }; >> + >> +       vreg_s9c_1p084: smps9 { >> +           regulator-min-microvolt = <1010000>; >> +           regulator-max-microvolt = <1170000>; >> +       }; >> + >> +       vreg_l1c_1p8: ldo1 { >> +           regulator-min-microvolt = <1800000>; >> +           regulator-max-microvolt = <1980000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l2c_1p62: ldo2 { >> +           regulator-min-microvolt = <1620000>; >> +           regulator-max-microvolt = <1980000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l3c_2p8: ldo3 { >> +           regulator-min-microvolt = <2800000>; >> +           regulator-max-microvolt = <3540000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l4c_1p62: ldo4 { >> +           regulator-min-microvolt = <1620000>; >> +           regulator-max-microvolt = <3300000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l5c_1p62: ldo5 { >> +           regulator-min-microvolt = <1620000>; >> +           regulator-max-microvolt = <3300000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l6c_2p96: ldo6 { >> +           regulator-min-microvolt = <1650000>; >> +           regulator-max-microvolt = <3544000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l7c_3p0: ldo7 { >> +           regulator-min-microvolt = <3000000>; >> +           regulator-max-microvolt = <3544000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l8c_1p62: ldo8 { >> +           regulator-min-microvolt = <1620000>; >> +           regulator-max-microvolt = <2000000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l9c_2p96: ldo9 { >> +           regulator-min-microvolt = <2700000>; >> +           regulator-max-microvolt = <35440000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l10c_0p88: ldo10 { >> +           regulator-min-microvolt = <720000>; >> +           regulator-max-microvolt = <1050000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l11c_2p8: ldo11 { >> +           regulator-min-microvolt = <2800000>; >> +           regulator-max-microvolt = <3544000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l12c_1p65: ldo12 { >> +           regulator-min-microvolt = <1650000>; >> +           regulator-max-microvolt = <2000000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_l13c_2p7: ldo13 { >> +           regulator-min-microvolt = <2700000>; >> +           regulator-max-microvolt = <3544000>; >> +           regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; >> +       }; >> + >> +       vreg_bob_3p296: bob { >> +           regulator-min-microvolt = <3008000>; >> +           regulator-max-microvolt = <3960000>; >> +       }; >> +   }; >> +}; >> + >> +&qupv3_id_0 { >> +   status = "okay"; >> +}; >> + >> +&sdhc_1 { >> +   non-removable; >> +   no-sd; >> +   no-sdio; >> + >> +   vmmc-supply = <&vreg_l7b_2p952>; >> +   vqmmc-supply = <&vreg_l19b_1p8>; >> + >> +   status = "okay"; >> +}; >> + >> +&tlmm { >> +   gpio-reserved-ranges = <32 2>, /* ADSP */ >> +                  <48 4>; /* NFC */ >> +}; >> + >> +&uart5 { >> +   compatible = "qcom,geni-debug-uart"; >> +   status = "okay"; >> +}; >> + >> +&usb_1 { >> +   status = "okay"; >> +}; >> + >> +&usb_1_dwc3 { >> +   dr_mode = "peripheral"; >> +}; >> + >> +&usb_1_hsphy { >> +   vdda-pll-supply = <&vreg_l10c_0p88>; >> +   vdda33-supply = <&vreg_l2b_3p072>; >> +   vdda18-supply = <&vreg_l1c_1p8>; >> + >> +   status = "okay"; >> +}; >> + >> +&usb_1_qmpphy { >> +   vdda-phy-supply = <&vreg_l6b_1p2>; >> +   vdda-pll-supply = <&vreg_l1b_0p912>; >> + >> +   status = "okay"; >> +}; >> + >> +&wifi { >> +   memory-region = <&wlan_fw_mem>; >> +}; >> -- >> 2.42.0 >> >> >
On Tue, 28 Nov 2023 at 15:53, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > > > > On 11/24/2023 6:48 PM, Dmitry Baryshkov wrote: > > On Fri, 24 Nov 2023 at 14:13, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > >> > >> Add DTS for Qualcomm IDP platform using QCM6490 SoC. > >> This adds debug uart, eMMC and usb support along with > >> regulators found on this board. > >> > >> Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> > >> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > >> --- > >> arch/arm64/boot/dts/qcom/Makefile | 1 + > >> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 464 +++++++++++++++++++++++ > >> 2 files changed, 465 insertions(+) > >> create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts > >> > >> diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > >> index d6cb840b7050..77babebe4904 100644 > >> --- a/arch/arm64/boot/dts/qcom/Makefile > >> +++ b/arch/arm64/boot/dts/qcom/Makefile > >> @@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-maple.dtb > >> dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-poplar.dtb > >> dtb-$(CONFIG_ARCH_QCOM) += msm8998-xiaomi-sagit.dtb > >> dtb-$(CONFIG_ARCH_QCOM) += qcm6490-fairphone-fp5.dtb > >> +dtb-$(CONFIG_ARCH_QCOM) += qcm6490-idp.dtb > >> dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb > >> dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb > >> dtb-$(CONFIG_ARCH_QCOM) += qdu1000-idp.dtb > >> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > >> new file mode 100644 > >> index 000000000000..78ace02e42c0 > >> --- /dev/null > >> +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > >> @@ -0,0 +1,464 @@ > >> +// SPDX-License-Identifier: BSD-3-Clause > >> +/* > >> + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > >> + */ > >> + > >> +/dts-v1/; > >> + > >> +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> > >> +#include "sc7280.dtsi" > >> +#include "pm7325.dtsi" > >> +#include "pm8350c.dtsi" > >> +#include "pmk8350.dtsi" > >> + > >> +/delete-node/ &ipa_fw_mem; > >> +/delete-node/ &rmtfs_mem; > >> +/delete-node/ &video_mem; > >> +/delete-node/ &wlan_ce_mem; > >> +/delete-node/ &xbl_mem; > >> + > >> +/ { > >> + model = "Qualcomm Technologies, Inc. QCM6490 IDP"; > >> + compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; > >> + > >> + aliases { > >> + serial0 = &uart5; > >> + }; > >> + > >> + chosen { > >> + stdout-path = "serial0:115200n8"; > >> + }; > >> + > >> + reserved-memory { > >> + xbl_mem: xbl@80700000 { > >> + reg = <0x0 0x80700000 0x0 0x100000>; > >> + no-map; > >> + }; > >> + > >> + cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { > >> + reg = <0x0 0x81800000 0x0 0x1e00000>; > >> + no-map; > >> + }; > >> + > >> + camera_mem: camera@84300000 { > >> + reg = <0x0 0x84300000 0x0 0x500000>; > >> + no-map; > >> + }; > >> + > >> + wpss_mem: wpss@84800000 { > >> + reg = <0x0 0x84800000 0x0 0x1900000>; > >> + no-map; > >> + }; > >> + > >> + adsp_mem: adsp@86100000 { > >> + reg = <0x0 0x86100000 0x0 0x2800000>; > >> + no-map; > >> + }; > >> + > >> + cdsp_mem: cdsp@88900000 { > >> + reg = <0x0 0x88900000 0x0 0x1e00000>; > >> + no-map; > >> + }; > >> + > >> + video_mem: video@8a700000 { > >> + reg = <0x0 0x8a700000 0x0 0x700000>; > >> + no-map; > >> + }; > >> + > >> + cvp_mem: cvp@8ae00000 { > >> + reg = <0x0 0x8ae00000 0x0 0x500000>; > >> + no-map; > >> + }; > >> + > >> + ipa_fw_mem: ipa-fw@8b300000 { > >> + reg = <0x0 0x8b300000 0x0 0x10000>; > >> + no-map; > >> + }; > >> + > >> + ipa_gsi_mem: ipa-gsi@8b310000 { > >> + reg = <0x0 0x8b310000 0x0 0xa000>; > >> + no-map; > >> + }; > >> + > >> + gpu_microcode_mem: gpu-microcode@8b31a000 { > >> + reg = <0x0 0x8b31a000 0x0 0x2000>; > >> + no-map; > >> + }; > >> + > >> + mpss_mem: mpss@8b800000 { > >> + reg = <0x0 0x8b800000 0x0 0xf600000>; > >> + no-map; > >> + }; > >> + > >> + tz_stat_mem: tz-stat@c0000000 { > >> + reg = <0x0 0xc0000000 0x0 0x100000>; > >> + no-map; > >> + }; > >> + > >> + tags_mem: tags@c0100000 { > >> + reg = <0x0 0xc0100000 0x0 0x1200000>; > >> + no-map; > >> + }; > >> + > >> + qtee_mem: qtee@c1300000 { > >> + reg = <0x0 0xc1300000 0x0 0x500000>; > >> + no-map; > >> + }; > >> + > >> + trusted_apps_mem: trusted_apps@c1800000 { > >> + reg = <0x0 0xc1800000 0x0 0x1c00000>; > >> + no-map; > >> + }; > >> + > >> + debug_vm_mem: debug-vm@d0600000 { > >> + reg = <0x0 0xd0600000 0x0 0x100000>; > >> + no-map; > >> + }; > >> + }; > >> + > >> + vph_pwr: vph-pwr-regulator { > >> + compatible = "regulator-fixed"; > >> + regulator-name = "vph_pwr"; > >> + regulator-min-microvolt = <2500000>; > >> + regulator-max-microvolt = <4350000>; > >> + }; > >> +}; > >> + > >> +&apps_rsc { > >> + regulators-0 { > >> + compatible = "qcom,pm7325-rpmh-regulators"; > >> + qcom,pmic-id = "b"; > >> + > >> + vdd-s1-supply = <&vph_pwr>; > >> + vdd-s2-supply = <&vph_pwr>; > >> + vdd-s3-supply = <&vph_pwr>; > >> + vdd-s4-supply = <&vph_pwr>; > >> + vdd-s5-supply = <&vph_pwr>; > >> + vdd-s6-supply = <&vph_pwr>; > >> + vdd-s7-supply = <&vph_pwr>; > >> + vdd-s8-supply = <&vph_pwr>; > >> + vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>; > >> + vdd-l2-l7-supply = <&vreg_bob_3p296>; > >> + vdd-l3-supply = <&vreg_s2b_0p876>; > >> + vdd-l5-supply = <&vreg_s2b_0p876>; > >> + vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>; > >> + vdd-l8-supply = <&vreg_s7b_0p972>; > >> + vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>; > >> + vdd-l13-supply = <&vreg_s7b_0p972>; > >> + vdd-l14-l16-supply = <&vreg_s8b_1p272>; > >> + > >> + vreg_s1b_1p872: smps1 { > >> + regulator-min-microvolt = <1840000>; > >> + regulator-max-microvolt = <2040000>; > >> + }; > >> + > >> + vreg_s2b_0p876: smps2 { > >> + regulator-min-microvolt = <570070>; > >> + regulator-max-microvolt = <1050000>; > >> + }; > >> + > >> + vreg_s7b_0p972: smps7 { > >> + regulator-min-microvolt = <535000>; > >> + regulator-max-microvolt = <1120000>; > >> + }; > >> + > >> + vreg_s8b_1p272: smps8 { > >> + regulator-min-microvolt = <1200000>; > >> + regulator-max-microvolt = <1500000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>; > >> + }; > >> + > >> + vreg_l1b_0p912: ldo1 { > >> + regulator-min-microvolt = <825000>; > >> + regulator-max-microvolt = <925000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l2b_3p072: ldo2 { > >> + regulator-min-microvolt = <2700000>; > >> + regulator-max-microvolt = <3544000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l3b_0p504: ldo3 { > >> + regulator-min-microvolt = <312000>; > >> + regulator-max-microvolt = <910000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l4b_0p752: ldo4 { > >> + regulator-min-microvolt = <752000>; > >> + regulator-max-microvolt = <820000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + reg_l5b_0p752: ldo5 { > >> + regulator-min-microvolt = <552000>; > >> + regulator-max-microvolt = <832000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l6b_1p2: ldo6 { > >> + regulator-min-microvolt = <1140000>; > >> + regulator-max-microvolt = <1260000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l7b_2p952: ldo7 { > >> + regulator-min-microvolt = <2400000>; > >> + regulator-max-microvolt = <3544000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l8b_0p904: ldo8 { > >> + regulator-min-microvolt = <870000>; > >> + regulator-max-microvolt = <970000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l9b_1p2: ldo9 { > >> + regulator-min-microvolt = <1200000>; > >> + regulator-max-microvolt = <1304000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l11b_1p504: ldo11 { > >> + regulator-min-microvolt = <1504000>; > >> + regulator-max-microvolt = <2000000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l12b_0p751: ldo12 { > >> + regulator-min-microvolt = <751000>; > >> + regulator-max-microvolt = <824000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l13b_0p53: ldo13 { > >> + regulator-min-microvolt = <530000>; > >> + regulator-max-microvolt = <824000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l14b_1p08: ldo14 { > >> + regulator-min-microvolt = <1080000>; > >> + regulator-max-microvolt = <1304000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l15b_0p765: ldo15 { > >> + regulator-min-microvolt = <765000>; > >> + regulator-max-microvolt = <1020000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l16b_1p1: ldo16 { > >> + regulator-min-microvolt = <1100000>; > >> + regulator-max-microvolt = <1300000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l17b_1p7: ldo17 { > >> + regulator-min-microvolt = <1700000>; > >> + regulator-max-microvolt = <1900000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l18b_1p8: ldo18 { > >> + regulator-min-microvolt = <1800000>; > >> + regulator-max-microvolt = <2000000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l19b_1p8: ldo19 { > >> + regulator-min-microvolt = <1800000>; > >> + regulator-max-microvolt = <2000000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + regulator-allow-set-load; > >> + regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM > >> + RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + }; > >> + > >> + regulators-1 { > >> + compatible = "qcom,pm8350c-rpmh-regulators"; > >> + qcom,pmic-id = "c"; > >> + > >> + vdd-s1-supply = <&vph_pwr>; > >> + vdd-s2-supply = <&vph_pwr>; > >> + vdd-s3-supply = <&vph_pwr>; > >> + vdd-s4-supply = <&vph_pwr>; > >> + vdd-s5-supply = <&vph_pwr>; > >> + vdd-s6-supply = <&vph_pwr>; > >> + vdd-s7-supply = <&vph_pwr>; > >> + vdd-s8-supply = <&vph_pwr>; > >> + vdd-s9-supply = <&vph_pwr>; > >> + vdd-s10-supply = <&vph_pwr>; > >> + vdd-l1-l12-supply = <&vreg_s1b_1p872>; > >> + vdd-l2-l8-supply = <&vreg_s1b_1p872>; > >> + vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>; > >> + vdd-l6-l9-l11-supply = <&vreg_bob_3p296>; > >> + vdd-l10-supply = <&vreg_s7b_0p972>; > >> + vdd-bob-supply = <&vph_pwr>; > >> + > >> + vreg_s1c_2p19: smps1 { > >> + regulator-min-microvolt = <2190000>; > >> + regulator-max-microvolt = <2210000>; > >> + }; > >> + > >> + vreg_s2c_0p752: smps2 { > >> + regulator-min-microvolt = <750000>; > >> + regulator-max-microvolt = <800000>; > >> + }; > >> + > >> + vreg_s5c_0p752: smps5 { > >> + regulator-min-microvolt = <465000>; > >> + regulator-max-microvolt = <1050000>; > >> + }; > >> + > >> + vreg_s7c_0p752: smps7 { > >> + regulator-min-microvolt = <465000>; > >> + regulator-max-microvolt = <800000>; > >> + }; > >> + > >> + vreg_s9c_1p084: smps9 { > >> + regulator-min-microvolt = <1010000>; > >> + regulator-max-microvolt = <1170000>; > >> + }; > >> + > >> + vreg_l1c_1p8: ldo1 { > >> + regulator-min-microvolt = <1800000>; > >> + regulator-max-microvolt = <1980000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l2c_1p62: ldo2 { > >> + regulator-min-microvolt = <1620000>; > >> + regulator-max-microvolt = <1980000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l3c_2p8: ldo3 { > >> + regulator-min-microvolt = <2800000>; > >> + regulator-max-microvolt = <3540000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l4c_1p62: ldo4 { > >> + regulator-min-microvolt = <1620000>; > >> + regulator-max-microvolt = <3300000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l5c_1p62: ldo5 { > >> + regulator-min-microvolt = <1620000>; > >> + regulator-max-microvolt = <3300000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l6c_2p96: ldo6 { > >> + regulator-min-microvolt = <1650000>; > >> + regulator-max-microvolt = <3544000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l7c_3p0: ldo7 { > >> + regulator-min-microvolt = <3000000>; > >> + regulator-max-microvolt = <3544000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l8c_1p62: ldo8 { > >> + regulator-min-microvolt = <1620000>; > >> + regulator-max-microvolt = <2000000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l9c_2p96: ldo9 { > >> + regulator-min-microvolt = <2700000>; > >> + regulator-max-microvolt = <35440000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l10c_0p88: ldo10 { > >> + regulator-min-microvolt = <720000>; > >> + regulator-max-microvolt = <1050000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l11c_2p8: ldo11 { > >> + regulator-min-microvolt = <2800000>; > >> + regulator-max-microvolt = <3544000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l12c_1p65: ldo12 { > >> + regulator-min-microvolt = <1650000>; > >> + regulator-max-microvolt = <2000000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_l13c_2p7: ldo13 { > >> + regulator-min-microvolt = <2700000>; > >> + regulator-max-microvolt = <3544000>; > >> + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; > >> + }; > >> + > >> + vreg_bob_3p296: bob { > >> + regulator-min-microvolt = <3008000>; > >> + regulator-max-microvolt = <3960000>; > >> + }; > >> + }; > >> +}; > >> + > >> +&qupv3_id_0 { > >> + status = "okay"; > >> +}; > >> + > >> +&sdhc_1 { > >> + non-removable; > >> + no-sd; > >> + no-sdio; > >> + > >> + vmmc-supply = <&vreg_l7b_2p952>; > >> + vqmmc-supply = <&vreg_l19b_1p8>; > >> + > >> + status = "okay"; > >> +}; > >> + > >> +&tlmm { > >> + gpio-reserved-ranges = <32 2>, /* ADSP */ > >> + <48 4>; /* NFC */ > >> +}; > >> + > >> +&uart5 { > >> + compatible = "qcom,geni-debug-uart"; > >> + status = "okay"; > >> +}; > >> + > >> +&usb_1 { > >> + status = "okay"; > >> +}; > >> + > >> +&usb_1_dwc3 { > >> + dr_mode = "peripheral"; > >> +}; > >> + > >> +&usb_1_hsphy { > >> + vdda-pll-supply = <&vreg_l10c_0p88>; > >> + vdda33-supply = <&vreg_l2b_3p072>; > >> + vdda18-supply = <&vreg_l1c_1p8>; > >> + > >> + status = "okay"; > >> +}; > >> + > >> +&usb_1_qmpphy { > >> + vdda-phy-supply = <&vreg_l6b_1p2>; > >> + vdda-pll-supply = <&vreg_l1b_0p912>; > >> + > >> + status = "okay"; > >> +}; > >> + > >> +&wifi { > >> + memory-region = <&wlan_fw_mem>; > > > > qcom,ath11k-calibration-variant = "qualcomm-qca6490-idp"; > > This patch adds only base devicetree change for qcm6490, we will add > subsequent changes for wifi later. Here, I am just updating memory- > region for wifi so as not to break compilation. Sounds fine to me. > > Thanks > Komal > > > > > Also please cc ath11k maliling list on the next submission > > > >> +}; > > > >> -- > >> 2.42.0 > >> > >> > > > > > > -- > > With best wishes > > > > Dmitry > >
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index d6cb840b7050..77babebe4904 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -87,6 +87,7 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-maple.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-poplar.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8998-xiaomi-sagit.dtb dtb-$(CONFIG_ARCH_QCOM) += qcm6490-fairphone-fp5.dtb +dtb-$(CONFIG_ARCH_QCOM) += qcm6490-idp.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-1000.dtb dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb dtb-$(CONFIG_ARCH_QCOM) += qdu1000-idp.dtb diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts new file mode 100644 index 000000000000..78ace02e42c0 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts @@ -0,0 +1,464 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; + +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> +#include "sc7280.dtsi" +#include "pm7325.dtsi" +#include "pm8350c.dtsi" +#include "pmk8350.dtsi" + +/delete-node/ &ipa_fw_mem; +/delete-node/ &rmtfs_mem; +/delete-node/ &video_mem; +/delete-node/ &wlan_ce_mem; +/delete-node/ &xbl_mem; + +/ { + model = "Qualcomm Technologies, Inc. QCM6490 IDP"; + compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; + + aliases { + serial0 = &uart5; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reserved-memory { + xbl_mem: xbl@80700000 { + reg = <0x0 0x80700000 0x0 0x100000>; + no-map; + }; + + cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { + reg = <0x0 0x81800000 0x0 0x1e00000>; + no-map; + }; + + camera_mem: camera@84300000 { + reg = <0x0 0x84300000 0x0 0x500000>; + no-map; + }; + + wpss_mem: wpss@84800000 { + reg = <0x0 0x84800000 0x0 0x1900000>; + no-map; + }; + + adsp_mem: adsp@86100000 { + reg = <0x0 0x86100000 0x0 0x2800000>; + no-map; + }; + + cdsp_mem: cdsp@88900000 { + reg = <0x0 0x88900000 0x0 0x1e00000>; + no-map; + }; + + video_mem: video@8a700000 { + reg = <0x0 0x8a700000 0x0 0x700000>; + no-map; + }; + + cvp_mem: cvp@8ae00000 { + reg = <0x0 0x8ae00000 0x0 0x500000>; + no-map; + }; + + ipa_fw_mem: ipa-fw@8b300000 { + reg = <0x0 0x8b300000 0x0 0x10000>; + no-map; + }; + + ipa_gsi_mem: ipa-gsi@8b310000 { + reg = <0x0 0x8b310000 0x0 0xa000>; + no-map; + }; + + gpu_microcode_mem: gpu-microcode@8b31a000 { + reg = <0x0 0x8b31a000 0x0 0x2000>; + no-map; + }; + + mpss_mem: mpss@8b800000 { + reg = <0x0 0x8b800000 0x0 0xf600000>; + no-map; + }; + + tz_stat_mem: tz-stat@c0000000 { + reg = <0x0 0xc0000000 0x0 0x100000>; + no-map; + }; + + tags_mem: tags@c0100000 { + reg = <0x0 0xc0100000 0x0 0x1200000>; + no-map; + }; + + qtee_mem: qtee@c1300000 { + reg = <0x0 0xc1300000 0x0 0x500000>; + no-map; + }; + + trusted_apps_mem: trusted_apps@c1800000 { + reg = <0x0 0xc1800000 0x0 0x1c00000>; + no-map; + }; + + debug_vm_mem: debug-vm@d0600000 { + reg = <0x0 0xd0600000 0x0 0x100000>; + no-map; + }; + }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <4350000>; + }; +}; + +&apps_rsc { + regulators-0 { + compatible = "qcom,pm7325-rpmh-regulators"; + qcom,pmic-id = "b"; + + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + vdd-s4-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + vdd-s6-supply = <&vph_pwr>; + vdd-s7-supply = <&vph_pwr>; + vdd-s8-supply = <&vph_pwr>; + vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>; + vdd-l2-l7-supply = <&vreg_bob_3p296>; + vdd-l3-supply = <&vreg_s2b_0p876>; + vdd-l5-supply = <&vreg_s2b_0p876>; + vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>; + vdd-l8-supply = <&vreg_s7b_0p972>; + vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>; + vdd-l13-supply = <&vreg_s7b_0p972>; + vdd-l14-l16-supply = <&vreg_s8b_1p272>; + + vreg_s1b_1p872: smps1 { + regulator-min-microvolt = <1840000>; + regulator-max-microvolt = <2040000>; + }; + + vreg_s2b_0p876: smps2 { + regulator-min-microvolt = <570070>; + regulator-max-microvolt = <1050000>; + }; + + vreg_s7b_0p972: smps7 { + regulator-min-microvolt = <535000>; + regulator-max-microvolt = <1120000>; + }; + + vreg_s8b_1p272: smps8 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1500000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>; + }; + + vreg_l1b_0p912: ldo1 { + regulator-min-microvolt = <825000>; + regulator-max-microvolt = <925000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l2b_3p072: ldo2 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3544000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l3b_0p504: ldo3 { + regulator-min-microvolt = <312000>; + regulator-max-microvolt = <910000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l4b_0p752: ldo4 { + regulator-min-microvolt = <752000>; + regulator-max-microvolt = <820000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + reg_l5b_0p752: ldo5 { + regulator-min-microvolt = <552000>; + regulator-max-microvolt = <832000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l6b_1p2: ldo6 { + regulator-min-microvolt = <1140000>; + regulator-max-microvolt = <1260000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l7b_2p952: ldo7 { + regulator-min-microvolt = <2400000>; + regulator-max-microvolt = <3544000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l8b_0p904: ldo8 { + regulator-min-microvolt = <870000>; + regulator-max-microvolt = <970000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l9b_1p2: ldo9 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l11b_1p504: ldo11 { + regulator-min-microvolt = <1504000>; + regulator-max-microvolt = <2000000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l12b_0p751: ldo12 { + regulator-min-microvolt = <751000>; + regulator-max-microvolt = <824000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l13b_0p53: ldo13 { + regulator-min-microvolt = <530000>; + regulator-max-microvolt = <824000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l14b_1p08: ldo14 { + regulator-min-microvolt = <1080000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l15b_0p765: ldo15 { + regulator-min-microvolt = <765000>; + regulator-max-microvolt = <1020000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l16b_1p1: ldo16 { + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1300000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l17b_1p7: ldo17 { + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <1900000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l18b_1p8: ldo18 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2000000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l19b_1p8: ldo19 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2000000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + regulator-allow-set-load; + regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM + RPMH_REGULATOR_MODE_HPM>; + }; + }; + + regulators-1 { + compatible = "qcom,pm8350c-rpmh-regulators"; + qcom,pmic-id = "c"; + + vdd-s1-supply = <&vph_pwr>; + vdd-s2-supply = <&vph_pwr>; + vdd-s3-supply = <&vph_pwr>; + vdd-s4-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + vdd-s6-supply = <&vph_pwr>; + vdd-s7-supply = <&vph_pwr>; + vdd-s8-supply = <&vph_pwr>; + vdd-s9-supply = <&vph_pwr>; + vdd-s10-supply = <&vph_pwr>; + vdd-l1-l12-supply = <&vreg_s1b_1p872>; + vdd-l2-l8-supply = <&vreg_s1b_1p872>; + vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>; + vdd-l6-l9-l11-supply = <&vreg_bob_3p296>; + vdd-l10-supply = <&vreg_s7b_0p972>; + vdd-bob-supply = <&vph_pwr>; + + vreg_s1c_2p19: smps1 { + regulator-min-microvolt = <2190000>; + regulator-max-microvolt = <2210000>; + }; + + vreg_s2c_0p752: smps2 { + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <800000>; + }; + + vreg_s5c_0p752: smps5 { + regulator-min-microvolt = <465000>; + regulator-max-microvolt = <1050000>; + }; + + vreg_s7c_0p752: smps7 { + regulator-min-microvolt = <465000>; + regulator-max-microvolt = <800000>; + }; + + vreg_s9c_1p084: smps9 { + regulator-min-microvolt = <1010000>; + regulator-max-microvolt = <1170000>; + }; + + vreg_l1c_1p8: ldo1 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1980000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l2c_1p62: ldo2 { + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <1980000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l3c_2p8: ldo3 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3540000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l4c_1p62: ldo4 { + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <3300000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l5c_1p62: ldo5 { + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <3300000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l6c_2p96: ldo6 { + regulator-min-microvolt = <1650000>; + regulator-max-microvolt = <3544000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l7c_3p0: ldo7 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3544000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l8c_1p62: ldo8 { + regulator-min-microvolt = <1620000>; + regulator-max-microvolt = <2000000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l9c_2p96: ldo9 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <35440000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l10c_0p88: ldo10 { + regulator-min-microvolt = <720000>; + regulator-max-microvolt = <1050000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l11c_2p8: ldo11 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3544000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l12c_1p65: ldo12 { + regulator-min-microvolt = <1650000>; + regulator-max-microvolt = <2000000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_l13c_2p7: ldo13 { + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3544000>; + regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; + }; + + vreg_bob_3p296: bob { + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3960000>; + }; + }; +}; + +&qupv3_id_0 { + status = "okay"; +}; + +&sdhc_1 { + non-removable; + no-sd; + no-sdio; + + vmmc-supply = <&vreg_l7b_2p952>; + vqmmc-supply = <&vreg_l19b_1p8>; + + status = "okay"; +}; + +&tlmm { + gpio-reserved-ranges = <32 2>, /* ADSP */ + <48 4>; /* NFC */ +}; + +&uart5 { + compatible = "qcom,geni-debug-uart"; + status = "okay"; +}; + +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "peripheral"; +}; + +&usb_1_hsphy { + vdda-pll-supply = <&vreg_l10c_0p88>; + vdda33-supply = <&vreg_l2b_3p072>; + vdda18-supply = <&vreg_l1c_1p8>; + + status = "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply = <&vreg_l6b_1p2>; + vdda-pll-supply = <&vreg_l1b_0p912>; + + status = "okay"; +}; + +&wifi { + memory-region = <&wlan_fw_mem>; +};