Message ID | 20231103184655.23555-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:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1246822vqu; Fri, 3 Nov 2023 11:49:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG0eySQmb+7XYaEmbx3XhdaBqmcxKiPdD9uatVqtZ4aKYZ8p4X70eOqhS0DeCcNpTb1e0ho X-Received: by 2002:a05:6871:547:b0:1e9:8d3f:a158 with SMTP id t7-20020a056871054700b001e98d3fa158mr23447932oal.56.1699037373990; Fri, 03 Nov 2023 11:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699037373; cv=none; d=google.com; s=arc-20160816; b=PRaNYLCer+ZsNiYbTY5R7dL1vyLIrt8E5H5ooTPDzHjHoxMZqJhKKyrCFj0/5lJgT2 35dSQrmFEt4B7JgU///yPL1zzCQQ3NX5+bVnPvQazQdZFOE0Z3iFT3c+YEoTUevJW27o dTK3Gve0O7YIrDvuDTB1kcHKE3x+2yHsNkmYfJOuzWgygXAW9leIyxNa0ob4IYu/TB9i 7lepcOay79/hmp0d5X+BPD+SFAzjSfzV0At1sm3jM9K2Sb8i9RqPEoHaW40pgnGGdqW+ hP9ETaGj8lXmzmtHnFiv6Hl1pZcnuue6U3LdKtPg7NnlUJfw5E1tjvWgrIqmxOXW7j3Y Ey2A== 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=i6l7+IsSzn3jMctlOlHR0KnCh+fjOcbfwHaYLwQ6e5A=; fh=+2kTB09bK+b77kbiXL+eBzSALAy9qAfYQ4XIshEDMpc=; b=WYXi+j4Ew9owOKVIG7l5tVDMj8nJf4UInK1beX+giAnoInzgqEISinYzku1N4MI+Cs 16GiwRYEN4G/WBb3a7mLRNInELNVam8gBu0ytp1Xd6Ok0KsKjwfXzG/vGgAzWyVX11b7 KbgM8s86rsXCDFUcm1ibLimCntHAobAC/J1Aw3AyzXodFHEFap6ifu9FqmZMHcMfWUgy aDQuUwRy+JVhgnfpTeDLwJEEpI6ZK9Ejpl2XjleNq2pKQwrqavnI83Bkp3bek+u159xT Y4gDik9bIvJKZC9N7VciaMcllySDfUWoVv2NzNH5L4G6Kip2AxfDIkxu8ZQZA02k+3Tg HhqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=bsSSpbdZ; 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 y70-20020a638a49000000b005a1d8816535si2004483pgd.5.2023.11.03.11.49.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 11:49:33 -0700 (PDT) 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=bsSSpbdZ; 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 75173807500D; Fri, 3 Nov 2023 11:49:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345343AbjKCSrn (ORCPT <rfc822;heyuhang3455@gmail.com> + 35 others); Fri, 3 Nov 2023 14:47:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234265AbjKCSrm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 3 Nov 2023 14:47:42 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A8B0D47; Fri, 3 Nov 2023 11:47:36 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A3DfdU7020059; Fri, 3 Nov 2023 18:47:30 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=i6l7+IsSzn3jMctlOlHR0KnCh+fjOcbfwHaYLwQ6e5A=; b=bsSSpbdZhx9b3jo7yKeGpsYGddu07jDP0iIs53jA29XtG7US2l45CthgilSYSezifcjw rH9cTjuOupnBjMvAMQbfsv6x5jLj5SJQM+D+iGEcH7eZZs/Q/Vwv3gCJjy/8Grso6+am 6UIlq34b7x9DE18b4kNoS4vZ70/KrM9/OlgsCP+TgzF9yMdFdazZ6vmtX67mnUbPR7ip zBoE4aJUCD8iVlnpZqiG1mpTnXLxUH9NixRxq88yIgKS6G/ACWTk0Zu8mOfTJgJeuyfx zMxLGjTjE9QZVoWksMm7M5S6GzgqSio0mldnxeYT+dXwdH5mZqXWpRTUjxWF/QpvdoaW cg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u4cw9uah3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 03 Nov 2023 18:47:30 +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 3A3IlTNj011959 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Nov 2023 18:47:29 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.39; Fri, 3 Nov 2023 11:47:25 -0700 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>, <quic_nainmeht@quicinc.com>, Komal Bajaj <quic_kbajaj@quicinc.com> Subject: [RFC PATCH 2/2] arm64: dts: qcom: qcm6490: Add qcm6490 idp and rb3 board Date: Sat, 4 Nov 2023 00:16:55 +0530 Message-ID: <20231103184655.23555-3-quic_kbajaj@quicinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231103184655.23555-1-quic_kbajaj@quicinc.com> References: <20231103184655.23555-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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-GUID: 91y1hMEX2FgPV6zPImeoOEIVeAZJscBu X-Proofpoint-ORIG-GUID: 91y1hMEX2FgPV6zPImeoOEIVeAZJscBu 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-03_18,2023-11-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=976 spamscore=0 mlxscore=0 malwarescore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311030157 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, 03 Nov 2023 11:49:25 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781569812900232732 X-GMAIL-MSGID: 1781569812900232732 |
Series |
Add support for qcm6490 idp and rb3 board
|
|
Commit Message
Komal Bajaj
Nov. 3, 2023, 6:46 p.m. UTC
Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 platform. QCM6490 is derived from SC7280 meant for various form factor including IoT. Supported features are, as of now: * Debug UART * eMMC (only in IDP) * USB Co-developed-by: Naina Mehta <quic_nainmeht@quicinc.com> Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com> Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> --- arch/arm64/boot/dts/qcom/Makefile | 2 + arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 33 ++ .../boot/dts/qcom/qcm6490-iot-common.dtsi | 291 ++++++++++++++++++ arch/arm64/boot/dts/qcom/qcm6490-rb3.dts | 26 ++ 4 files changed, 352 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-rb3.dts -- 2.42.0
Comments
On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > > Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 > platform. QCM6490 is derived from SC7280 meant for various > form factor including IoT. > > Supported features are, as of now: > * Debug UART > * eMMC (only in IDP) > * USB > > Co-developed-by: Naina Mehta <quic_nainmeht@quicinc.com> > Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com> > Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> > --- > arch/arm64/boot/dts/qcom/Makefile | 2 + > arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 33 ++ > .../boot/dts/qcom/qcm6490-iot-common.dtsi | 291 ++++++++++++++++++ > arch/arm64/boot/dts/qcom/qcm6490-rb3.dts | 26 ++ > 4 files changed, 352 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts > create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-rb3.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 73c3be0f8872..29cd77000970 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -82,6 +82,8 @@ 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) += qcm6490-rb3.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..b1d1b8f40bdb > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts > @@ -0,0 +1,33 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include "qcm6490-iot-common.dtsi" > + > +/ { > + model = "Qualcomm Technologies, Inc. QCM6490 IDP"; > + compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; > + > + aliases { > + serial0 = &uart5; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > +}; > + > +&sdhc_1 { > + non-removable; > + no-sd; > + no-sdio; > + > + vmmc-supply = <&vreg_l7b_2p952>; > + vqmmc-supply = <&vreg_l19b_1p8>; > + > + status = "okay"; > +}; > + > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > new file mode 100644 > index 000000000000..01adc97789d0 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi I have mixed feelings towards this file. Usually we add such 'common' files only for the phone platforms where most of the devices are common. Do you expect that IDP and RB3 will have a lot of common code other than these regulator settings? > @@ -0,0 +1,291 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> > +#include "sc7280.dtsi" > +#include "pm7325.dtsi" > +#include "pm8350c.dtsi" > +#include "pmk8350.dtsi" > + > +&apps_rsc { > + regulators-0 { > + compatible = "qcom,pm7325-rpmh-regulators"; > + qcom,pmic-id = "b"; > + > + 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>; > + }; > + }; > + > + regulators-1 { > + compatible = "qcom,pm8350c-rpmh-regulators"; > + qcom,pmic-id = "c"; > + > + 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"; > +}; > + > +&uart5 { > + compatible = "qcom,geni-debug-uart"; Maybe we should add qcm6490.dtsi, which has this compat string (and other possible differences between sc7280 and qcm6490). > + 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"; > +}; > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts b/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts > new file mode 100644 > index 000000000000..5b4c2826ac5c > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts > @@ -0,0 +1,26 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +/* PM7250B is configured to use SID8/9 */ > +#define PM7250B_SID 8 > +#define PM7250B_SID1 9 > + > +#include "qcm6490-iot-common.dtsi" > +#include "pm7250b.dtsi" > + > +/ { > + model = "Qualcomm Technologies, Inc. QCM6490 RB3"; Is this a marketing name of the platform? > + compatible = "qcom,qcm6490-rb3", "qcom,qcm6490"; chassis-type = ? > + > + aliases { > + serial0 = &uart5; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > +}; > -- > 2.42.0 >
On 11/3/23 19:46, Komal Bajaj wrote: > Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 > platform. QCM6490 is derived from SC7280 meant for various > form factor including IoT. > > Supported features are, as of now: > * Debug UART > * eMMC (only in IDP) > * USB > > Co-developed-by: Naina Mehta <quic_nainmeht@quicinc.com> > Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com> > Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> > --- [...] > + > +&sdhc_1 { > + non-removable; > + no-sd; > + no-sdio; > + > + vmmc-supply = <&vreg_l7b_2p952>; > + vqmmc-supply = <&vreg_l19b_1p8>; I think you also need to add regulator-allow-set-mode and something something regulator allowed modes to VQMMC [...] > + model = "Qualcomm Technologies, Inc. QCM6490 RB3"; Is the name just "QCM6490 RB3"? One already exists, based on SDM845. Otherwise, this looks very good to me now, thanks. With these nits addressed: Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
On 03/11/2023 23:22, Dmitry Baryshkov wrote: > On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: >> >> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 >> platform. QCM6490 is derived from SC7280 meant for various >> form factor including IoT. >> >> Supported features are, as of now: >> * Debug UART >> * eMMC (only in IDP) >> * USB >> ... >> + >> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >> new file mode 100644 >> index 000000000000..01adc97789d0 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > > I have mixed feelings towards this file. Usually we add such 'common' > files only for the phone platforms where most of the devices are > common. > Do you expect that IDP and RB3 will have a lot of common code other > than these regulator settings? I agree here. What exactly is common in the real hardware between IDP and RB3? Commit msg does not explain it, so I do not see enough justification for common file. Just because some DTS looks similar for different hardware does not mean you should creat common file. Best regards, Krzysztof
On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: > On 03/11/2023 23:22, Dmitry Baryshkov wrote: >> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: >>> >>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 >>> platform. QCM6490 is derived from SC7280 meant for various >>> form factor including IoT. >>> >>> Supported features are, as of now: >>> * Debug UART >>> * eMMC (only in IDP) >>> * USB >>> > > ... > >>> + >>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>> new file mode 100644 >>> index 000000000000..01adc97789d0 >>> --- /dev/null >>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >> >> I have mixed feelings towards this file. Usually we add such 'common' >> files only for the phone platforms where most of the devices are >> common. >> Do you expect that IDP and RB3 will have a lot of common code other >> than these regulator settings? > > I agree here. What exactly is common in the real hardware between IDP > and RB3? Commit msg does not explain it, so I do not see enough > justification for common file. Just because some DTS looks similar for > different hardware does not mean you should creat common file. @Dmitry/@Krzysztof, Thank you for reviewing the RFC, we wanted to continue the suggestion/discussion given on [1] , where we discussed that this qcm6490 is going to be targeted for IOT segment and will have different memory map and it is going to use some of co-processors like adsp/cdsp which chrome does not use. So to your question what is common between RB3 and IDP, mostly they will share common memory map(similar to [2]) and regulator settings and both will use adsp/cdsp etc., we will be posting the memory map changes as well in coming weeks once this RFC is acked. Thanks, Mukesh [1] https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ [2] commit 90c856602e0346ce9ff234062e86a198d71fa723 Author: Douglas Anderson <dianders@chromium.org> Date: Tue Jan 25 14:44:20 2022 -0800 arm64: dts: qcom: sc7280: Factor out Chrome common fragment This factors out a device tree fragment from some sc7280 device trees. It represents the device tree bits that should be included for "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot + Depthcharge) configures things slightly different than the bootloader that Qualcomm provides. The modem firmware on these boards also works differently than on other Qulacomm products and thus the reserved memory map needs to be adjusted. NOTES: - This is _not_ quite a no-op change. The "herobrine" and "idp" fragments here were different and it looks like someone simply forgot to update the herobrine version. This updates a few numbers to match IDP. This will also cause the `pmk8350_pon` to be disabled on idp/crd, which I belive is a correct change. - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs will work (how much of the memory map they can reclaim) we may add an extra fragment that will rejigger one way or the other. Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid > > Best regards, > Krzysztof >
On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha <quic_mojha@quicinc.com> wrote: > > > On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: > > On 03/11/2023 23:22, Dmitry Baryshkov wrote: > >> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > >>> > >>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 > >>> platform. QCM6490 is derived from SC7280 meant for various > >>> form factor including IoT. > >>> > >>> Supported features are, as of now: > >>> * Debug UART > >>> * eMMC (only in IDP) > >>> * USB > >>> > > > > ... > > > >>> + > >>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > >>> new file mode 100644 > >>> index 000000000000..01adc97789d0 > >>> --- /dev/null > >>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > >> > >> I have mixed feelings towards this file. Usually we add such 'common' > >> files only for the phone platforms where most of the devices are > >> common. > >> Do you expect that IDP and RB3 will have a lot of common code other > >> than these regulator settings? > > > > I agree here. What exactly is common in the real hardware between IDP > > and RB3? Commit msg does not explain it, so I do not see enough > > justification for common file. Just because some DTS looks similar for > > different hardware does not mean you should creat common file. > > @Dmitry/@Krzysztof, > > Thank you for reviewing the RFC, we wanted to continue the > suggestion/discussion given on [1] , where we discussed that this > qcm6490 is going to be targeted for IOT segment and will have different > memory map and it is going to use some of co-processors like adsp/cdsp > which chrome does not use. > > So to your question what is common between RB3 and IDP, mostly they will > share common memory map(similar to [2]) and regulator settings and both > will use adsp/cdsp etc., we will be posting the memory map changes as > well in coming weeks once this RFC is acked. Is the memory map going to be the same as the one used on Fairphone5? Are ADSP and CDSP physically present on sc7280? I think that your goal should be to: - populate missing device in sc7280.dtsi - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map) - push the rest to board files. I don't think that putting regulators to the common file is a good idea. Platforms will further change and limit voltage limits and modes, so they usually go to the board file. > > > Thanks, > Mukesh > > [1] > https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ > > [2] > commit 90c856602e0346ce9ff234062e86a198d71fa723 > Author: Douglas Anderson <dianders@chromium.org> > Date: Tue Jan 25 14:44:20 2022 -0800 > > arm64: dts: qcom: sc7280: Factor out Chrome common fragment > > This factors out a device tree fragment from some sc7280 device > trees. It represents the device tree bits that should be included for > "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot > + Depthcharge) configures things slightly different than the > bootloader that Qualcomm provides. The modem firmware on these boards > also works differently than on other Qulacomm products and thus the > reserved memory map needs to be adjusted. > > NOTES: > - This is _not_ quite a no-op change. The "herobrine" and "idp" > fragments here were different and it looks like someone simply > forgot to update the herobrine version. This updates a few numbers > to match IDP. This will also cause the `pmk8350_pon` to be disabled > on idp/crd, which I belive is a correct change. > - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs > will work (how much of the memory map they can reclaim) we may add > an extra fragment that will rejigger one way or the other. > > Signed-off-by: Douglas Anderson <dianders@chromium.org> > Reviewed-by: Stephen Boyd <swboyd@chromium.org> > Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > Link: > https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid > > > > > > Best regards, > > Krzysztof > >
On 06/11/2023 12:41, Mukesh Ojha wrote: >> I agree here. What exactly is common in the real hardware between IDP >> and RB3? Commit msg does not explain it, so I do not see enough >> justification for common file. Just because some DTS looks similar for >> different hardware does not mean you should creat common file. > > @Dmitry/@Krzysztof, > > Thank you for reviewing the RFC, we wanted to continue the > suggestion/discussion given on [1] , where we discussed that this > qcm6490 is going to be targeted for IOT segment and will have different > memory map and it is going to use some of co-processors like adsp/cdsp > which chrome does not use. > > So to your question what is common between RB3 and IDP, mostly they will > share common memory map(similar to [2]) and regulator settings and both The question was what is common hardware, not common in your DTS. > will use adsp/cdsp etc., we will be posting the memory map changes as > well in coming weeks once this RFC is acked. Sorry, that's not common part of hardware. Best regards, Krzysztof
On 11/6/2023 5:24 PM, Dmitry Baryshkov wrote: > On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha <quic_mojha@quicinc.com> wrote: >> >> >> On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: >>> On 03/11/2023 23:22, Dmitry Baryshkov wrote: >>>> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: >>>>> >>>>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 >>>>> platform. QCM6490 is derived from SC7280 meant for various >>>>> form factor including IoT. >>>>> >>>>> Supported features are, as of now: >>>>> * Debug UART >>>>> * eMMC (only in IDP) >>>>> * USB >>>>> >>> >>> ... >>> >>>>> + >>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>>>> new file mode 100644 >>>>> index 000000000000..01adc97789d0 >>>>> --- /dev/null >>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>>> >>>> I have mixed feelings towards this file. Usually we add such 'common' >>>> files only for the phone platforms where most of the devices are >>>> common. >>>> Do you expect that IDP and RB3 will have a lot of common code other >>>> than these regulator settings? >>> >>> I agree here. What exactly is common in the real hardware between IDP >>> and RB3? Commit msg does not explain it, so I do not see enough >>> justification for common file. Just because some DTS looks similar for >>> different hardware does not mean you should creat common file. >> >> @Dmitry/@Krzysztof, >> >> Thank you for reviewing the RFC, we wanted to continue the >> suggestion/discussion given on [1] , where we discussed that this >> qcm6490 is going to be targeted for IOT segment and will have different >> memory map and it is going to use some of co-processors like adsp/cdsp >> which chrome does not use. >> >> So to your question what is common between RB3 and IDP, mostly they will >> share common memory map(similar to [2]) and regulator settings and both >> will use adsp/cdsp etc., we will be posting the memory map changes as >> well in coming weeks once this RFC is acked. > > Is the memory map going to be the same as the one used on Fairphone5? No, Fairphone5 looks to be using chrome memory map and i suggested here to move them into sc7280.dtsi https://lore.kernel.org/lkml/d5d53346-ca3b-986a-e104-d87c37115b62@quicinc.com/ > > Are ADSP and CDSP physically present on sc7280? Yes, they are present but not used. > > I think that your goal should be to: > - populate missing device in sc7280.dtsi > - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map) > - push the rest to board files. Agree to all of the point. We started with the same thought at[3] but it got lost in discussion due to its differentiation with mobile counter part(fairphone) which follow chrome memory map and hence we came up with qcm6490-iot-common. Do you think, qcm6490-iot.dtsi should be good ? [3] https://lore.kernel.org/linux-arm-msm/20231003175456.14774-3-quic_kbajaj@quicinc.com/ -Mukesh > > I don't think that putting regulators to the common file is a good > idea. Platforms will further change and limit voltage limits and > modes, so they usually go to the board file. > >> >> >> Thanks, >> Mukesh >> >> [1] >> https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ >> >> [2] >> commit 90c856602e0346ce9ff234062e86a198d71fa723 >> Author: Douglas Anderson <dianders@chromium.org> >> Date: Tue Jan 25 14:44:20 2022 -0800 >> >> arm64: dts: qcom: sc7280: Factor out Chrome common fragment >> >> This factors out a device tree fragment from some sc7280 device >> trees. It represents the device tree bits that should be included for >> "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot >> + Depthcharge) configures things slightly different than the >> bootloader that Qualcomm provides. The modem firmware on these boards >> also works differently than on other Qulacomm products and thus the >> reserved memory map needs to be adjusted. >> >> NOTES: >> - This is _not_ quite a no-op change. The "herobrine" and "idp" >> fragments here were different and it looks like someone simply >> forgot to update the herobrine version. This updates a few numbers >> to match IDP. This will also cause the `pmk8350_pon` to be disabled >> on idp/crd, which I belive is a correct change. >> - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs >> will work (how much of the memory map they can reclaim) we may add >> an extra fragment that will rejigger one way or the other. >> >> Signed-off-by: Douglas Anderson <dianders@chromium.org> >> Reviewed-by: Stephen Boyd <swboyd@chromium.org> >> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> >> Link: >> https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid >> >> >>> >>> Best regards, >>> Krzysztof >>> > > >
On 11/6/2023 6:35 PM, Krzysztof Kozlowski wrote: > On 06/11/2023 12:41, Mukesh Ojha wrote: > >>> I agree here. What exactly is common in the real hardware between IDP >>> and RB3? Commit msg does not explain it, so I do not see enough >>> justification for common file. Just because some DTS looks similar for >>> different hardware does not mean you should creat common file. >> >> @Dmitry/@Krzysztof, >> >> Thank you for reviewing the RFC, we wanted to continue the >> suggestion/discussion given on [1] , where we discussed that this >> qcm6490 is going to be targeted for IOT segment and will have different >> memory map and it is going to use some of co-processors like adsp/cdsp >> which chrome does not use. >> >> So to your question what is common between RB3 and IDP, mostly they will >> share common memory map(similar to [2]) and regulator settings and both > > The question was what is common hardware, not common in your DTS. Got your point. Let me know if you agree with the suggestion shared here https://lore.kernel.org/lkml/CAA8EJpq89g9EeyKcogU+Mt9ie6Bk-rmgi=GqyycYBm_291i1Bw@mail.gmail.com/ -Mukesh > > >> will use adsp/cdsp etc., we will be posting the memory map changes as >> well in coming weeks once this RFC is acked. > > Sorry, that's not common part of hardware. > > Best regards, > Krzysztof >
On Mon, 6 Nov 2023 at 16:46, Mukesh Ojha <quic_mojha@quicinc.com> wrote: > > > > On 11/6/2023 5:24 PM, Dmitry Baryshkov wrote: > > On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha <quic_mojha@quicinc.com> wrote: > >> > >> > >> On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: > >>> On 03/11/2023 23:22, Dmitry Baryshkov wrote: > >>>> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > >>>>> > >>>>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 > >>>>> platform. QCM6490 is derived from SC7280 meant for various > >>>>> form factor including IoT. > >>>>> > >>>>> Supported features are, as of now: > >>>>> * Debug UART > >>>>> * eMMC (only in IDP) > >>>>> * USB > >>>>> > >>> > >>> ... > >>> > >>>>> + > >>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > >>>>> new file mode 100644 > >>>>> index 000000000000..01adc97789d0 > >>>>> --- /dev/null > >>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > >>>> > >>>> I have mixed feelings towards this file. Usually we add such 'common' > >>>> files only for the phone platforms where most of the devices are > >>>> common. > >>>> Do you expect that IDP and RB3 will have a lot of common code other > >>>> than these regulator settings? > >>> > >>> I agree here. What exactly is common in the real hardware between IDP > >>> and RB3? Commit msg does not explain it, so I do not see enough > >>> justification for common file. Just because some DTS looks similar for > >>> different hardware does not mean you should creat common file. > >> > >> @Dmitry/@Krzysztof, > >> > >> Thank you for reviewing the RFC, we wanted to continue the > >> suggestion/discussion given on [1] , where we discussed that this > >> qcm6490 is going to be targeted for IOT segment and will have different > >> memory map and it is going to use some of co-processors like adsp/cdsp > >> which chrome does not use. > >> > >> So to your question what is common between RB3 and IDP, mostly they will > >> share common memory map(similar to [2]) and regulator settings and both > >> will use adsp/cdsp etc., we will be posting the memory map changes as > >> well in coming weeks once this RFC is acked. > > > > Is the memory map going to be the same as the one used on Fairphone5? > > No, Fairphone5 looks to be using chrome memory map and i suggested > here to move them into sc7280.dtsi > > https://lore.kernel.org/lkml/d5d53346-ca3b-986a-e104-d87c37115b62@quicinc.com/ > > > > > Are ADSP and CDSP physically present on sc7280? > > Yes, they are present but not used. So ADSP and CDSP should go into sc7280.dtsi. They will anyway have status = "disabled"; > > > > > I think that your goal should be to: > > - populate missing device in sc7280.dtsi > > - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map) > > - push the rest to board files. > > Agree to all of the point. > We started with the same thought at[3] but it got lost in discussion > due to its differentiation with mobile counter part(fairphone) which > follow chrome memory map and hence we came up with qcm6490-iot-common. > Do you think, qcm6490-iot.dtsi should be good ? No. DT describes hardware, and -iot is not a hardware abstraction / unification. If you consider your memory map to be generic for the qcm6490 (and FP5 being the only exception), add it to the qcm6490.dtsi (and let FP5 override it, like some of the phones do). If it can not be considered generic for the SoC, then you have no other choice than to replicate it to all board files. > > [3] > https://lore.kernel.org/linux-arm-msm/20231003175456.14774-3-quic_kbajaj@quicinc.com/ > > -Mukesh > > > > I don't think that putting regulators to the common file is a good > > idea. Platforms will further change and limit voltage limits and > > modes, so they usually go to the board file. > > > >> > >> > >> Thanks, > >> Mukesh > >> > >> [1] > >> https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ > >> > >> [2] > >> commit 90c856602e0346ce9ff234062e86a198d71fa723 > >> Author: Douglas Anderson <dianders@chromium.org> > >> Date: Tue Jan 25 14:44:20 2022 -0800 > >> > >> arm64: dts: qcom: sc7280: Factor out Chrome common fragment > >> > >> This factors out a device tree fragment from some sc7280 device > >> trees. It represents the device tree bits that should be included for > >> "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot > >> + Depthcharge) configures things slightly different than the > >> bootloader that Qualcomm provides. The modem firmware on these boards > >> also works differently than on other Qulacomm products and thus the > >> reserved memory map needs to be adjusted. > >> > >> NOTES: > >> - This is _not_ quite a no-op change. The "herobrine" and "idp" > >> fragments here were different and it looks like someone simply > >> forgot to update the herobrine version. This updates a few numbers > >> to match IDP. This will also cause the `pmk8350_pon` to be disabled > >> on idp/crd, which I belive is a correct change. > >> - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs > >> will work (how much of the memory map they can reclaim) we may add > >> an extra fragment that will rejigger one way or the other. > >> > >> Signed-off-by: Douglas Anderson <dianders@chromium.org> > >> Reviewed-by: Stephen Boyd <swboyd@chromium.org> > >> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > >> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > >> Link: > >> https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid > >> > >> > >>> > >>> Best regards, > >>> Krzysztof > >>> > > > > > >
On 11/7/2023 4:02 AM, Dmitry Baryshkov wrote: > On Mon, 6 Nov 2023 at 16:46, Mukesh Ojha <quic_mojha@quicinc.com> wrote: >> >> >> >> On 11/6/2023 5:24 PM, Dmitry Baryshkov wrote: >>> On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha <quic_mojha@quicinc.com> wrote: >>>> >>>> >>>> On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: >>>>> On 03/11/2023 23:22, Dmitry Baryshkov wrote: >>>>>> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: >>>>>>> >>>>>>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 >>>>>>> platform. QCM6490 is derived from SC7280 meant for various >>>>>>> form factor including IoT. >>>>>>> >>>>>>> Supported features are, as of now: >>>>>>> * Debug UART >>>>>>> * eMMC (only in IDP) >>>>>>> * USB >>>>>>> >>>>> >>>>> ... >>>>> >>>>>>> + >>>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>>>>>> new file mode 100644 >>>>>>> index 000000000000..01adc97789d0 >>>>>>> --- /dev/null >>>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>>>>> >>>>>> I have mixed feelings towards this file. Usually we add such 'common' >>>>>> files only for the phone platforms where most of the devices are >>>>>> common. >>>>>> Do you expect that IDP and RB3 will have a lot of common code other >>>>>> than these regulator settings? >>>>> >>>>> I agree here. What exactly is common in the real hardware between IDP >>>>> and RB3? Commit msg does not explain it, so I do not see enough >>>>> justification for common file. Just because some DTS looks similar for >>>>> different hardware does not mean you should creat common file. >>>> >>>> @Dmitry/@Krzysztof, >>>> >>>> Thank you for reviewing the RFC, we wanted to continue the >>>> suggestion/discussion given on [1] , where we discussed that this >>>> qcm6490 is going to be targeted for IOT segment and will have different >>>> memory map and it is going to use some of co-processors like adsp/cdsp >>>> which chrome does not use. >>>> >>>> So to your question what is common between RB3 and IDP, mostly they will >>>> share common memory map(similar to [2]) and regulator settings and both >>>> will use adsp/cdsp etc., we will be posting the memory map changes as >>>> well in coming weeks once this RFC is acked. >>> >>> Is the memory map going to be the same as the one used on Fairphone5? >> >> No, Fairphone5 looks to be using chrome memory map and i suggested >> here to move them into sc7280.dtsi >> >> https://lore.kernel.org/lkml/d5d53346-ca3b-986a-e104-d87c37115b62@quicinc.com/ >> >>> >>> Are ADSP and CDSP physically present on sc7280? >> >> Yes, they are present but not used. > > So ADSP and CDSP should go into sc7280.dtsi. They will anyway have > status = "disabled"; > >> >>> >>> I think that your goal should be to: >>> - populate missing device in sc7280.dtsi >>> - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map) >>> - push the rest to board files. >> >> Agree to all of the point. >> We started with the same thought at[3] but it got lost in discussion >> due to its differentiation with mobile counter part(fairphone) which >> follow chrome memory map and hence we came up with qcm6490-iot-common. >> Do you think, qcm6490-iot.dtsi should be good ? > > No. DT describes hardware, and -iot is not a hardware abstraction / unification. > If you consider your memory map to be generic for the qcm6490 (and FP5 > being the only exception), add it to the qcm6490.dtsi (and let FP5 > override it, like some of the phones do). If it can not be considered > generic for the SoC, then you have no other choice than to replicate > it to all board files. Thanks for the suggestion. Let me add @Luca here for information, if he want to share anything about qcm6490 fp5 memory map. -Mukesh > >> >> [3] >> https://lore.kernel.org/linux-arm-msm/20231003175456.14774-3-quic_kbajaj@quicinc.com/ >> >> -Mukesh >>> >>> I don't think that putting regulators to the common file is a good >>> idea. Platforms will further change and limit voltage limits and >>> modes, so they usually go to the board file. >>> >>>> >>>> >>>> Thanks, >>>> Mukesh >>>> >>>> [1] >>>> https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ >>>> >>>> [2] >>>> commit 90c856602e0346ce9ff234062e86a198d71fa723 >>>> Author: Douglas Anderson <dianders@chromium.org> >>>> Date: Tue Jan 25 14:44:20 2022 -0800 >>>> >>>> arm64: dts: qcom: sc7280: Factor out Chrome common fragment >>>> >>>> This factors out a device tree fragment from some sc7280 device >>>> trees. It represents the device tree bits that should be included for >>>> "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot >>>> + Depthcharge) configures things slightly different than the >>>> bootloader that Qualcomm provides. The modem firmware on these boards >>>> also works differently than on other Qulacomm products and thus the >>>> reserved memory map needs to be adjusted. >>>> >>>> NOTES: >>>> - This is _not_ quite a no-op change. The "herobrine" and "idp" >>>> fragments here were different and it looks like someone simply >>>> forgot to update the herobrine version. This updates a few numbers >>>> to match IDP. This will also cause the `pmk8350_pon` to be disabled >>>> on idp/crd, which I belive is a correct change. >>>> - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs >>>> will work (how much of the memory map they can reclaim) we may add >>>> an extra fragment that will rejigger one way or the other. >>>> >>>> Signed-off-by: Douglas Anderson <dianders@chromium.org> >>>> Reviewed-by: Stephen Boyd <swboyd@chromium.org> >>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >>>> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> >>>> Link: >>>> https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid >>>> >>>> >>>>> >>>>> Best regards, >>>>> Krzysztof >>>>> >>> >>> >>> > > >
On Tue Nov 7, 2023 at 9:10 AM CET, Mukesh Ojha wrote: > > > On 11/7/2023 4:02 AM, Dmitry Baryshkov wrote: > > On Mon, 6 Nov 2023 at 16:46, Mukesh Ojha <quic_mojha@quicinc.com> wrote: > >> > >> > >> > >> On 11/6/2023 5:24 PM, Dmitry Baryshkov wrote: > >>> On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha <quic_mojha@quicinc.com> wrote: > >>>> > >>>> > >>>> On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: > >>>>> On 03/11/2023 23:22, Dmitry Baryshkov wrote: > >>>>>> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > >>>>>>> > >>>>>>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 > >>>>>>> platform. QCM6490 is derived from SC7280 meant for various > >>>>>>> form factor including IoT. > >>>>>>> > >>>>>>> Supported features are, as of now: > >>>>>>> * Debug UART > >>>>>>> * eMMC (only in IDP) > >>>>>>> * USB > >>>>>>> > >>>>> > >>>>> ... > >>>>> > >>>>>>> + > >>>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > >>>>>>> new file mode 100644 > >>>>>>> index 000000000000..01adc97789d0 > >>>>>>> --- /dev/null > >>>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > >>>>>> > >>>>>> I have mixed feelings towards this file. Usually we add such 'common' > >>>>>> files only for the phone platforms where most of the devices are > >>>>>> common. > >>>>>> Do you expect that IDP and RB3 will have a lot of common code other > >>>>>> than these regulator settings? > >>>>> > >>>>> I agree here. What exactly is common in the real hardware between IDP > >>>>> and RB3? Commit msg does not explain it, so I do not see enough > >>>>> justification for common file. Just because some DTS looks similar for > >>>>> different hardware does not mean you should creat common file. > >>>> > >>>> @Dmitry/@Krzysztof, > >>>> > >>>> Thank you for reviewing the RFC, we wanted to continue the > >>>> suggestion/discussion given on [1] , where we discussed that this > >>>> qcm6490 is going to be targeted for IOT segment and will have different > >>>> memory map and it is going to use some of co-processors like adsp/cdsp > >>>> which chrome does not use. > >>>> > >>>> So to your question what is common between RB3 and IDP, mostly they will > >>>> share common memory map(similar to [2]) and regulator settings and both > >>>> will use adsp/cdsp etc., we will be posting the memory map changes as > >>>> well in coming weeks once this RFC is acked. > >>> > >>> Is the memory map going to be the same as the one used on Fairphone5? > >> > >> No, Fairphone5 looks to be using chrome memory map and i suggested > >> here to move them into sc7280.dtsi > >> > >> https://lore.kernel.org/lkml/d5d53346-ca3b-986a-e104-d87c37115b62@quicinc.com/ > >> > >>> > >>> Are ADSP and CDSP physically present on sc7280? > >> > >> Yes, they are present but not used. > > > > So ADSP and CDSP should go into sc7280.dtsi. They will anyway have > > status = "disabled"; > > > >> > >>> > >>> I think that your goal should be to: > >>> - populate missing device in sc7280.dtsi > >>> - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map) > >>> - push the rest to board files. > >> > >> Agree to all of the point. > >> We started with the same thought at[3] but it got lost in discussion > >> due to its differentiation with mobile counter part(fairphone) which > >> follow chrome memory map and hence we came up with qcm6490-iot-common. > >> Do you think, qcm6490-iot.dtsi should be good ? > > > > No. DT describes hardware, and -iot is not a hardware abstraction / unification. > > If you consider your memory map to be generic for the qcm6490 (and FP5 > > being the only exception), add it to the qcm6490.dtsi (and let FP5 > > override it, like some of the phones do). If it can not be considered > > generic for the SoC, then you have no other choice than to replicate > > it to all board files. > Hi Mukesh, > Thanks for the suggestion. > Let me add @Luca here for information, if he want to share > anything about qcm6490 fp5 memory map. Not sure I have much to share, just probably that on FP5 the memory setup and all the basics just come from a standard QCM6490.LA.3.0 release. I don't see any hint that our ODM changed something in the memory map for the device either. I'm also aware that other phones also use QCM6490 SoC, so I'm still wondering where the distinction between "FP5/ChromeOS memory map" vs this new QCM6490 memory map is. There's also e.g. this phone using QCM6490, I've not looked into this at all, but I'm guessing that phone uses the same memory map as FP5. https://www.crosscall.com/en_NL/core-z5-COZ5.MASTER.html Regards Luca > > -Mukesh > > > >> > >> [3] > >> https://lore.kernel.org/linux-arm-msm/20231003175456.14774-3-quic_kbajaj@quicinc.com/ > >> > >> -Mukesh > >>> > >>> I don't think that putting regulators to the common file is a good > >>> idea. Platforms will further change and limit voltage limits and > >>> modes, so they usually go to the board file. > >>> > >>>> > >>>> > >>>> Thanks, > >>>> Mukesh > >>>> > >>>> [1] > >>>> https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ > >>>> > >>>> [2] > >>>> commit 90c856602e0346ce9ff234062e86a198d71fa723 > >>>> Author: Douglas Anderson <dianders@chromium.org> > >>>> Date: Tue Jan 25 14:44:20 2022 -0800 > >>>> > >>>> arm64: dts: qcom: sc7280: Factor out Chrome common fragment > >>>> > >>>> This factors out a device tree fragment from some sc7280 device > >>>> trees. It represents the device tree bits that should be included for > >>>> "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot > >>>> + Depthcharge) configures things slightly different than the > >>>> bootloader that Qualcomm provides. The modem firmware on these boards > >>>> also works differently than on other Qulacomm products and thus the > >>>> reserved memory map needs to be adjusted. > >>>> > >>>> NOTES: > >>>> - This is _not_ quite a no-op change. The "herobrine" and "idp" > >>>> fragments here were different and it looks like someone simply > >>>> forgot to update the herobrine version. This updates a few numbers > >>>> to match IDP. This will also cause the `pmk8350_pon` to be disabled > >>>> on idp/crd, which I belive is a correct change. > >>>> - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs > >>>> will work (how much of the memory map they can reclaim) we may add > >>>> an extra fragment that will rejigger one way or the other. > >>>> > >>>> Signed-off-by: Douglas Anderson <dianders@chromium.org> > >>>> Reviewed-by: Stephen Boyd <swboyd@chromium.org> > >>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > >>>> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > >>>> Link: > >>>> https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid > >>>> > >>>> > >>>>> > >>>>> Best regards, > >>>>> Krzysztof > >>>>> > >>> > >>> > >>> > > > > > >
On 11/13/2023 9:21 PM, Luca Weiss wrote: > On Tue Nov 7, 2023 at 9:10 AM CET, Mukesh Ojha wrote: >> >> >> On 11/7/2023 4:02 AM, Dmitry Baryshkov wrote: >>> On Mon, 6 Nov 2023 at 16:46, Mukesh Ojha <quic_mojha@quicinc.com> wrote: >>>> >>>> >>>> >>>> On 11/6/2023 5:24 PM, Dmitry Baryshkov wrote: >>>>> On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha <quic_mojha@quicinc.com> wrote: >>>>>> >>>>>> >>>>>> On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: >>>>>>> On 03/11/2023 23:22, Dmitry Baryshkov wrote: >>>>>>>> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: >>>>>>>>> >>>>>>>>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 >>>>>>>>> platform. QCM6490 is derived from SC7280 meant for various >>>>>>>>> form factor including IoT. >>>>>>>>> >>>>>>>>> Supported features are, as of now: >>>>>>>>> * Debug UART >>>>>>>>> * eMMC (only in IDP) >>>>>>>>> * USB >>>>>>>>> >>>>>>> >>>>>>> ... >>>>>>> >>>>>>>>> + >>>>>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>>>>>>>> new file mode 100644 >>>>>>>>> index 000000000000..01adc97789d0 >>>>>>>>> --- /dev/null >>>>>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >>>>>>>> >>>>>>>> I have mixed feelings towards this file. Usually we add such 'common' >>>>>>>> files only for the phone platforms where most of the devices are >>>>>>>> common. >>>>>>>> Do you expect that IDP and RB3 will have a lot of common code other >>>>>>>> than these regulator settings? >>>>>>> >>>>>>> I agree here. What exactly is common in the real hardware between IDP >>>>>>> and RB3? Commit msg does not explain it, so I do not see enough >>>>>>> justification for common file. Just because some DTS looks similar for >>>>>>> different hardware does not mean you should creat common file. >>>>>> >>>>>> @Dmitry/@Krzysztof, >>>>>> >>>>>> Thank you for reviewing the RFC, we wanted to continue the >>>>>> suggestion/discussion given on [1] , where we discussed that this >>>>>> qcm6490 is going to be targeted for IOT segment and will have different >>>>>> memory map and it is going to use some of co-processors like adsp/cdsp >>>>>> which chrome does not use. >>>>>> >>>>>> So to your question what is common between RB3 and IDP, mostly they will >>>>>> share common memory map(similar to [2]) and regulator settings and both >>>>>> will use adsp/cdsp etc., we will be posting the memory map changes as >>>>>> well in coming weeks once this RFC is acked. >>>>> >>>>> Is the memory map going to be the same as the one used on Fairphone5? >>>> >>>> No, Fairphone5 looks to be using chrome memory map and i suggested >>>> here to move them into sc7280.dtsi >>>> >>>> https://lore.kernel.org/lkml/d5d53346-ca3b-986a-e104-d87c37115b62@quicinc.com/ >>>> >>>>> >>>>> Are ADSP and CDSP physically present on sc7280? >>>> >>>> Yes, they are present but not used. >>> >>> So ADSP and CDSP should go into sc7280.dtsi. They will anyway have >>> status = "disabled"; >>> >>>> >>>>> >>>>> I think that your goal should be to: >>>>> - populate missing device in sc7280.dtsi >>>>> - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map) >>>>> - push the rest to board files. >>>> >>>> Agree to all of the point. >>>> We started with the same thought at[3] but it got lost in discussion >>>> due to its differentiation with mobile counter part(fairphone) which >>>> follow chrome memory map and hence we came up with qcm6490-iot-common. >>>> Do you think, qcm6490-iot.dtsi should be good ? >>> >>> No. DT describes hardware, and -iot is not a hardware abstraction / unification. >>> If you consider your memory map to be generic for the qcm6490 (and FP5 >>> being the only exception), add it to the qcm6490.dtsi (and let FP5 >>> override it, like some of the phones do). If it can not be considered >>> generic for the SoC, then you have no other choice than to replicate >>> it to all board files. >> > > Hi Mukesh, > >> Thanks for the suggestion. >> Let me add @Luca here for information, if he want to share >> anything about qcm6490 fp5 memory map. > > Not sure I have much to share, just probably that on FP5 the memory > setup and all the basics just come from a standard QCM6490.LA.3.0 > release. > I don't see any hint that our ODM changed something in the memory map > for the device either. > > I'm also aware that other phones also use QCM6490 SoC, so I'm still > wondering where the distinction between "FP5/ChromeOS memory map" vs > this new QCM6490 memory map is. > There's also e.g. this phone using QCM6490, I've not looked into this at > all, but I'm guessing that phone uses the same memory map as FP5. > https://www.crosscall.com/en_NL/core-z5-COZ5.MASTER.html Was looking for your view on the things about qcm6490.dtsi one common dtsi file for all qcm6490.dtsi suggested in the mail, but looks like FP5 is following the memory map based out of sc7280, in that case we have to replicate the new memory map for all our IOT boards(idp/rb3) based on this SoC. -Mukesh > > Regards > Luca > >> >> -Mukesh >>> >>>> >>>> [3] >>>> https://lore.kernel.org/linux-arm-msm/20231003175456.14774-3-quic_kbajaj@quicinc.com/ >>>> >>>> -Mukesh >>>>> >>>>> I don't think that putting regulators to the common file is a good >>>>> idea. Platforms will further change and limit voltage limits and >>>>> modes, so they usually go to the board file. >>>>> >>>>>> >>>>>> >>>>>> Thanks, >>>>>> Mukesh >>>>>> >>>>>> [1] >>>>>> https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ >>>>>> >>>>>> [2] >>>>>> commit 90c856602e0346ce9ff234062e86a198d71fa723 >>>>>> Author: Douglas Anderson <dianders@chromium.org> >>>>>> Date: Tue Jan 25 14:44:20 2022 -0800 >>>>>> >>>>>> arm64: dts: qcom: sc7280: Factor out Chrome common fragment >>>>>> >>>>>> This factors out a device tree fragment from some sc7280 device >>>>>> trees. It represents the device tree bits that should be included for >>>>>> "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot >>>>>> + Depthcharge) configures things slightly different than the >>>>>> bootloader that Qualcomm provides. The modem firmware on these boards >>>>>> also works differently than on other Qulacomm products and thus the >>>>>> reserved memory map needs to be adjusted. >>>>>> >>>>>> NOTES: >>>>>> - This is _not_ quite a no-op change. The "herobrine" and "idp" >>>>>> fragments here were different and it looks like someone simply >>>>>> forgot to update the herobrine version. This updates a few numbers >>>>>> to match IDP. This will also cause the `pmk8350_pon` to be disabled >>>>>> on idp/crd, which I belive is a correct change. >>>>>> - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs >>>>>> will work (how much of the memory map they can reclaim) we may add >>>>>> an extra fragment that will rejigger one way or the other. >>>>>> >>>>>> Signed-off-by: Douglas Anderson <dianders@chromium.org> >>>>>> Reviewed-by: Stephen Boyd <swboyd@chromium.org> >>>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> >>>>>> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> >>>>>> Link: >>>>>> https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid >>>>>> >>>>>> >>>>>>> >>>>>>> Best regards, >>>>>>> Krzysztof >>>>>>> >>>>> >>>>> >>>>> >>> >>> >>> >
On Tue, 14 Nov 2023 at 14:49, Mukesh Ojha <quic_mojha@quicinc.com> wrote: > > > > On 11/13/2023 9:21 PM, Luca Weiss wrote: > > On Tue Nov 7, 2023 at 9:10 AM CET, Mukesh Ojha wrote: > >> > >> > >> On 11/7/2023 4:02 AM, Dmitry Baryshkov wrote: > >>> On Mon, 6 Nov 2023 at 16:46, Mukesh Ojha <quic_mojha@quicinc.com> wrote: > >>>> > >>>> > >>>> > >>>> On 11/6/2023 5:24 PM, Dmitry Baryshkov wrote: > >>>>> On Mon, 6 Nov 2023 at 13:41, Mukesh Ojha <quic_mojha@quicinc.com> wrote: > >>>>>> > >>>>>> > >>>>>> On 11/5/2023 6:38 PM, Krzysztof Kozlowski wrote: > >>>>>>> On 03/11/2023 23:22, Dmitry Baryshkov wrote: > >>>>>>>> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > >>>>>>>>> > >>>>>>>>> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 > >>>>>>>>> platform. QCM6490 is derived from SC7280 meant for various > >>>>>>>>> form factor including IoT. > >>>>>>>>> > >>>>>>>>> Supported features are, as of now: > >>>>>>>>> * Debug UART > >>>>>>>>> * eMMC (only in IDP) > >>>>>>>>> * USB > >>>>>>>>> > >>>>>>> > >>>>>>> ... > >>>>>>> > >>>>>>>>> + > >>>>>>>>> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > >>>>>>>>> new file mode 100644 > >>>>>>>>> index 000000000000..01adc97789d0 > >>>>>>>>> --- /dev/null > >>>>>>>>> +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > >>>>>>>> > >>>>>>>> I have mixed feelings towards this file. Usually we add such 'common' > >>>>>>>> files only for the phone platforms where most of the devices are > >>>>>>>> common. > >>>>>>>> Do you expect that IDP and RB3 will have a lot of common code other > >>>>>>>> than these regulator settings? > >>>>>>> > >>>>>>> I agree here. What exactly is common in the real hardware between IDP > >>>>>>> and RB3? Commit msg does not explain it, so I do not see enough > >>>>>>> justification for common file. Just because some DTS looks similar for > >>>>>>> different hardware does not mean you should creat common file. > >>>>>> > >>>>>> @Dmitry/@Krzysztof, > >>>>>> > >>>>>> Thank you for reviewing the RFC, we wanted to continue the > >>>>>> suggestion/discussion given on [1] , where we discussed that this > >>>>>> qcm6490 is going to be targeted for IOT segment and will have different > >>>>>> memory map and it is going to use some of co-processors like adsp/cdsp > >>>>>> which chrome does not use. > >>>>>> > >>>>>> So to your question what is common between RB3 and IDP, mostly they will > >>>>>> share common memory map(similar to [2]) and regulator settings and both > >>>>>> will use adsp/cdsp etc., we will be posting the memory map changes as > >>>>>> well in coming weeks once this RFC is acked. > >>>>> > >>>>> Is the memory map going to be the same as the one used on Fairphone5? > >>>> > >>>> No, Fairphone5 looks to be using chrome memory map and i suggested > >>>> here to move them into sc7280.dtsi > >>>> > >>>> https://lore.kernel.org/lkml/d5d53346-ca3b-986a-e104-d87c37115b62@quicinc.com/ > >>>> > >>>>> > >>>>> Are ADSP and CDSP physically present on sc7280? > >>>> > >>>> Yes, they are present but not used. > >>> > >>> So ADSP and CDSP should go into sc7280.dtsi. They will anyway have > >>> status = "disabled"; > >>> > >>>> > >>>>> > >>>>> I think that your goal should be to: > >>>>> - populate missing device in sc7280.dtsi > >>>>> - maybe add qcm6490.dtsi which defines SoC-level common data (e.g. memory map) > >>>>> - push the rest to board files. > >>>> > >>>> Agree to all of the point. > >>>> We started with the same thought at[3] but it got lost in discussion > >>>> due to its differentiation with mobile counter part(fairphone) which > >>>> follow chrome memory map and hence we came up with qcm6490-iot-common. > >>>> Do you think, qcm6490-iot.dtsi should be good ? > >>> > >>> No. DT describes hardware, and -iot is not a hardware abstraction / unification. > >>> If you consider your memory map to be generic for the qcm6490 (and FP5 > >>> being the only exception), add it to the qcm6490.dtsi (and let FP5 > >>> override it, like some of the phones do). If it can not be considered > >>> generic for the SoC, then you have no other choice than to replicate > >>> it to all board files. > >> > > > > Hi Mukesh, > > > >> Thanks for the suggestion. > >> Let me add @Luca here for information, if he want to share > >> anything about qcm6490 fp5 memory map. > > > > Not sure I have much to share, just probably that on FP5 the memory > > setup and all the basics just come from a standard QCM6490.LA.3.0 > > release. > > I don't see any hint that our ODM changed something in the memory map > > for the device either. > > > > I'm also aware that other phones also use QCM6490 SoC, so I'm still > > wondering where the distinction between "FP5/ChromeOS memory map" vs > > this new QCM6490 memory map is. > > There's also e.g. this phone using QCM6490, I've not looked into this at > > all, but I'm guessing that phone uses the same memory map as FP5. > > https://www.crosscall.com/en_NL/core-z5-COZ5.MASTER.html > > Was looking for your view on the things about qcm6490.dtsi one common > dtsi file for all qcm6490.dtsi suggested in the mail, but looks like FP5 > is following the memory map based out of sc7280, in that case we have to > replicate the new memory map for all our IOT boards(idp/rb3) based on > this SoC. You can have IoT memory map in the qcm6490.dtsi and have the board-specific memory map in the qcm6490-fp5.dtsi, if that makes life easier. I think the phone DT already provides the memory map, so you just have to add statements to remove conflicting data entries. > > -Mukesh > > > > Regards > > Luca > > > >> > >> -Mukesh > >>> > >>>> > >>>> [3] > >>>> https://lore.kernel.org/linux-arm-msm/20231003175456.14774-3-quic_kbajaj@quicinc.com/ > >>>> > >>>> -Mukesh > >>>>> > >>>>> I don't think that putting regulators to the common file is a good > >>>>> idea. Platforms will further change and limit voltage limits and > >>>>> modes, so they usually go to the board file. > >>>>> > >>>>>> > >>>>>> > >>>>>> Thanks, > >>>>>> Mukesh > >>>>>> > >>>>>> [1] > >>>>>> https://lore.kernel.org/linux-arm-msm/d97ebf74-ad03-86d6-b826-b57be209b9e2@quicinc.com/ > >>>>>> > >>>>>> [2] > >>>>>> commit 90c856602e0346ce9ff234062e86a198d71fa723 > >>>>>> Author: Douglas Anderson <dianders@chromium.org> > >>>>>> Date: Tue Jan 25 14:44:20 2022 -0800 > >>>>>> > >>>>>> arm64: dts: qcom: sc7280: Factor out Chrome common fragment > >>>>>> > >>>>>> This factors out a device tree fragment from some sc7280 device > >>>>>> trees. It represents the device tree bits that should be included for > >>>>>> "Chrome" based sc7280 boards. On these boards the bootloader (Coreboot > >>>>>> + Depthcharge) configures things slightly different than the > >>>>>> bootloader that Qualcomm provides. The modem firmware on these boards > >>>>>> also works differently than on other Qulacomm products and thus the > >>>>>> reserved memory map needs to be adjusted. > >>>>>> > >>>>>> NOTES: > >>>>>> - This is _not_ quite a no-op change. The "herobrine" and "idp" > >>>>>> fragments here were different and it looks like someone simply > >>>>>> forgot to update the herobrine version. This updates a few numbers > >>>>>> to match IDP. This will also cause the `pmk8350_pon` to be disabled > >>>>>> on idp/crd, which I belive is a correct change. > >>>>>> - At the moment this assumes LTE skus. Once it's clearer how WiFi SKUs > >>>>>> will work (how much of the memory map they can reclaim) we may add > >>>>>> an extra fragment that will rejigger one way or the other. > >>>>>> > >>>>>> Signed-off-by: Douglas Anderson <dianders@chromium.org> > >>>>>> Reviewed-by: Stephen Boyd <swboyd@chromium.org> > >>>>>> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> > >>>>>> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > >>>>>> Link: > >>>>>> https://lore.kernel.org/r/20220125144316.v2.3.Iac012fa8d727be46448d47027a1813ea716423ce@changeid > >>>>>> > >>>>>> > >>>>>>> > >>>>>>> Best regards, > >>>>>>> Krzysztof > >>>>>>> > >>>>> > >>>>> > >>>>> > >>> > >>> > >>> > >
On Fri, 17 Nov 2023 at 08:53, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: No HTML mail on kernel mailing lists, please. Some developers can have 'MIME => junk' mail filters. And replying to the HTML mail messes up quotation level. > On 11/4/2023 3:52 AM, Dmitry Baryshkov wrote: > > On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > > Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 > platform. QCM6490 is derived from SC7280 meant for various > form factor including IoT. > > Supported features are, as of now: > * Debug UART > * eMMC (only in IDP) > * USB > > Co-developed-by: Naina Mehta <quic_nainmeht@quicinc.com> > Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com> > Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> > --- > arch/arm64/boot/dts/qcom/Makefile | 2 + > arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 33 ++ > .../boot/dts/qcom/qcm6490-iot-common.dtsi | 291 ++++++++++++++++++ > arch/arm64/boot/dts/qcom/qcm6490-rb3.dts | 26 ++ > 4 files changed, 352 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts > create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi > create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-rb3.dts > > > [...] > > > diff --git a/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts b/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts > new file mode 100644 > index 000000000000..5b4c2826ac5c > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts > @@ -0,0 +1,26 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +/* PM7250B is configured to use SID8/9 */ > +#define PM7250B_SID 8 > +#define PM7250B_SID1 9 > + > +#include "qcm6490-iot-common.dtsi" > +#include "pm7250b.dtsi" > + > +/ { > + model = "Qualcomm Technologies, Inc. QCM6490 RB3"; > > Is this a marketing name of the platform? > > > Sorry for the confusion, QCS6490 RB3gen2 is the correct marketing name for this board. > Will correct this in the next patchset. Then it is probably "Qualcomm Technologies, Inc. Robotics RB3gen2"? > + compatible = "qcom,qcm6490-rb3", "qcom,qcm6490"; > > chassis-type = ? > > > No, this won't be needed as it is an evaluation board and will be used for multiple use cases. > So, we don't want to mark it to any specific type. Then it is "embedded". We should probably update existing dragonboards/RB boards to have this type too.
On 11/17/2023 3:03 PM, Dmitry Baryshkov wrote: > On Fri, 17 Nov 2023 at 08:53, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: > > No HTML mail on kernel mailing lists, please. Some developers can have > 'MIME => junk' mail filters. > And replying to the HTML mail messes up quotation level. > >> On 11/4/2023 3:52 AM, Dmitry Baryshkov wrote: >> >> On Fri, 3 Nov 2023 at 20:49, Komal Bajaj <quic_kbajaj@quicinc.com> wrote: >> >> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 >> platform. QCM6490 is derived from SC7280 meant for various >> form factor including IoT. >> >> Supported features are, as of now: >> * Debug UART >> * eMMC (only in IDP) >> * USB >> >> Co-developed-by: Naina Mehta <quic_nainmeht@quicinc.com> >> Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com> >> Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> >> --- >> arch/arm64/boot/dts/qcom/Makefile | 2 + >> arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 33 ++ >> .../boot/dts/qcom/qcm6490-iot-common.dtsi | 291 ++++++++++++++++++ >> arch/arm64/boot/dts/qcom/qcm6490-rb3.dts | 26 ++ >> 4 files changed, 352 insertions(+) >> create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-idp.dts >> create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi >> create mode 100644 arch/arm64/boot/dts/qcom/qcm6490-rb3.dts >> >> >> [...] >> >> >> diff --git a/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts b/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts >> new file mode 100644 >> index 000000000000..5b4c2826ac5c >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts >> @@ -0,0 +1,26 @@ >> +// SPDX-License-Identifier: BSD-3-Clause >> +/* >> + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. >> + */ >> + >> +/dts-v1/; >> + >> +/* PM7250B is configured to use SID8/9 */ >> +#define PM7250B_SID 8 >> +#define PM7250B_SID1 9 >> + >> +#include "qcm6490-iot-common.dtsi" >> +#include "pm7250b.dtsi" >> + >> +/ { >> + model = "Qualcomm Technologies, Inc. QCM6490 RB3"; >> >> Is this a marketing name of the platform? >> >> >> Sorry for the confusion, QCS6490 RB3gen2 is the correct marketing name for this board. >> Will correct this in the next patchset. > Then it is probably "Qualcomm Technologies, Inc. Robotics RB3gen2"? Okay. > >> + compatible = "qcom,qcm6490-rb3", "qcom,qcm6490"; >> >> chassis-type = ? >> >> >> No, this won't be needed as it is an evaluation board and will be used for multiple use cases. >> So, we don't want to mark it to any specific type. > Then it is "embedded". We should probably update existing > dragonboards/RB boards to have this type too. Okay, will chassis-type. Thanks Komal >
On 11/4/2023 6:02 PM, Konrad Dybcio wrote: > > > On 11/3/23 19:46, Komal Bajaj wrote: >> Add qcm6490 devicetree file for QCM6490 IDP and QCM6490 RB3 >> platform. QCM6490 is derived from SC7280 meant for various >> form factor including IoT. >> >> Supported features are, as of now: >> * Debug UART >> * eMMC (only in IDP) >> * USB >> >> Co-developed-by: Naina Mehta <quic_nainmeht@quicinc.com> >> Signed-off-by: Naina Mehta <quic_nainmeht@quicinc.com> >> Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> >> --- > [...] > >> + >> +&sdhc_1 { >> + non-removable; >> + no-sd; >> + no-sdio; >> + >> + vmmc-supply = <&vreg_l7b_2p952>; >> + vqmmc-supply = <&vreg_l19b_1p8>; > I think you also need to add regulator-allow-set-mode and something > something regulator allowed modes to VQMMC Okay, will add properties "regulator-allow-set-load" and "regulator-allowed-modes" to regulator vreg_l19b_1p8. > > [...] > >> + model = "Qualcomm Technologies, Inc. QCM6490 RB3"; > Is the name just "QCM6490 RB3"? One already exists, based on SDM845. Yeah, I missed that, this board is RB3Gen2, will update that in next patchset. Thanks Komal > > Otherwise, this looks very good to me now, thanks. > > With these nits addressed: > > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > Konrad
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 73c3be0f8872..29cd77000970 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -82,6 +82,8 @@ 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) += qcm6490-rb3.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..b1d1b8f40bdb --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; + +#include "qcm6490-iot-common.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. QCM6490 IDP"; + compatible = "qcom,qcm6490-idp", "qcom,qcm6490"; + + aliases { + serial0 = &uart5; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&sdhc_1 { + non-removable; + no-sd; + no-sdio; + + vmmc-supply = <&vreg_l7b_2p952>; + vqmmc-supply = <&vreg_l19b_1p8>; + + status = "okay"; +}; + diff --git a/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi new file mode 100644 index 000000000000..01adc97789d0 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcm6490-iot-common.dtsi @@ -0,0 +1,291 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include <dt-bindings/regulator/qcom,rpmh-regulator.h> +#include "sc7280.dtsi" +#include "pm7325.dtsi" +#include "pm8350c.dtsi" +#include "pmk8350.dtsi" + +&apps_rsc { + regulators-0 { + compatible = "qcom,pm7325-rpmh-regulators"; + qcom,pmic-id = "b"; + + 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>; + }; + }; + + regulators-1 { + compatible = "qcom,pm8350c-rpmh-regulators"; + qcom,pmic-id = "c"; + + 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"; +}; + +&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"; +}; diff --git a/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts b/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts new file mode 100644 index 000000000000..5b4c2826ac5c --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcm6490-rb3.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +/dts-v1/; + +/* PM7250B is configured to use SID8/9 */ +#define PM7250B_SID 8 +#define PM7250B_SID1 9 + +#include "qcm6490-iot-common.dtsi" +#include "pm7250b.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. QCM6490 RB3"; + compatible = "qcom,qcm6490-rb3", "qcom,qcm6490"; + + aliases { + serial0 = &uart5; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +};