Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp358062rwi; Wed, 2 Nov 2022 12:47:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5TIt/NdvUpdGdltv+DbS+uwjWavQEz2/IzJ+oJgac2ix0gG2GwqMg1swDGPoVCwD3X74fW X-Received: by 2002:a17:907:b15:b0:7a7:19a3:e9e7 with SMTP id h21-20020a1709070b1500b007a719a3e9e7mr24972081ejl.361.1667418431453; Wed, 02 Nov 2022 12:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667418431; cv=none; d=google.com; s=arc-20160816; b=Qr1VzocMc6CEtiA+qIMzdxV67zK4j4VUrz8sYP/4bPh0Xa7s0uqgJh0yaVknPwF7Np lZlTm4xIBm0opZMNUFeRcZt++W8+H861E8kyP4GHFlaVKAJqUTtIsvAn9o1a0hvgtOwH hWteDws/jKfceMg8znI8Yk5K9G+98oV3RRfGkZRIMKjrDL3jj/wQxeQeo9utz3sG+2wb 4RdB/UXd5joADHZdNOC4pikgmCpHzPZvzyBitkItpvJB+pUoiwdq51GGdJ5HxwEmqg1d 1zCiEdcyA7xbTV0VawV1SeBgED9G3DHirMjBszo/WKxPjtY4bzj7BGa1Wcsa5rMO+/+e okkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CK1nwLnaZfHLJC35TKOIbk7yfY5XumzUCBbd0vJ1QN4=; b=H1iQp0yXqIliFRrt4dYogz/AnHQP7OMyTj4TjJtC+e3DqEopaiXT01Z/wOHcXI5WhV 3SPQGjXeaVfOil8i63ikwFq0ZKQlxmplfjuLINpO26s258GhRj98LrweEX3TiO55LIp3 Il1LrjJd6lYSCHduZlAeb5IBz33T3FWhp8ADPJpG2aBovTA1j0eb9wrrPGr7qTz4hkCE P1ZIWWgqfUUj/vxM6zv492/U5t4MYbl2xHIqGTtvbLfn+ADPM67GVUxrXopgdJYbODV9 oCteE5DljqxLfLN+GTvZIVkKJ+qRbuR4MYw9H/HVzjU1T2XR4ygyV1K4lnmCoIBc3fic wF9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="EH1L/IUr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a056402144500b004517955b673si14739933edx.124.2022.11.02.12.46.46; Wed, 02 Nov 2022 12:47:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="EH1L/IUr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231752AbiKBS6a (ORCPT + 98 others); Wed, 2 Nov 2022 14:58:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231731AbiKBS62 (ORCPT ); Wed, 2 Nov 2022 14:58:28 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3EEDB88 for ; Wed, 2 Nov 2022 11:58:26 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id s4so1589900qtx.6 for ; Wed, 02 Nov 2022 11:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CK1nwLnaZfHLJC35TKOIbk7yfY5XumzUCBbd0vJ1QN4=; b=EH1L/IUrvbshBo8J3IbF7F0vTI8Jn/KB/STRlZRzlruxqIl0b2iGjxV2iXqU33YSnE ed8chL8bCHNPK6Xu4jF3QOh8+yqWs2kc+ecLsT4ajSsIoCko4xnRa69kJZ5ZrMWTLMpU 8AdnQz/+3o4w4wKxFJqGcxqFsHcSf2p85iK2w7m78bxauR59xr2Y88ZaLtvPDdgpa/Os a1HhPPUUfEllgwc/VvcCV6faBaoki1+PvtQggJMwH8m4sZuNZh84PkO2z9Hm5Liavuuh V0E4XZdgRecOdILKJGORaw6cjW/SZG16rXV0aHI5uuFw1ljsfQGW2TcV1MOh6X1o205X ywBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CK1nwLnaZfHLJC35TKOIbk7yfY5XumzUCBbd0vJ1QN4=; b=v0OmUGIWcLna9IoYL5e2V3m209rgl/jlm5wg5KOQyWA4xmnEJdUdzNznuWZT533b3n TXPfxoDGd0mUT2JDO6YPY1GccqMX4XWg9bCYXTTG5yuJ26SSkqIYwH6iX3giNLjqxXSF h9tRGwqXid3bWQp2RXp4bZlEzHKFBzPvLiDn1ek6fUfd4CSNo33p/WEeeR7sD3j0Q7Vb 1AIy37QUUWVq74S1pOsuV7MUZzi5nOZDKGpOre5kjySCuskdAm4AIbBv5JB5KTQDINfo 11JYIenl3wxDB4kHIu740ZTkWimPmM5qjuKsUliIkcGITYI0OOvgRs1+/vTPRdC7yUeh Ra9Q== X-Gm-Message-State: ACrzQf14jgRFQFb668cBCm+19DC3G9Y8k0jSzhUgO5uz3QMXkhU6sKmP fht4iU61U+Hq/N/wJnD+fAFjoA== X-Received: by 2002:a05:622a:1052:b0:39c:da70:3204 with SMTP id f18-20020a05622a105200b0039cda703204mr20911411qte.689.1667415505871; Wed, 02 Nov 2022 11:58:25 -0700 (PDT) Received: from ?IPV6:2601:586:5000:570:28d9:4790:bc16:cc93? ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id e1-20020ac84b41000000b00398ed306034sm6956027qts.81.2022.11.02.11.58.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Nov 2022 11:58:25 -0700 (PDT) Message-ID: <40be8adc-663b-1e44-a095-7da5cbd9d51a@linaro.org> Date: Wed, 2 Nov 2022 14:58:24 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v7 2/2] arm64: dts: qcom: add SA8540P ride(Qdrive-3) Content-Language: en-US To: Parikshit Pareek , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney , Shazad Hussain , Brian Masney , Johan Hovold References: <20221102103552.29388-1-quic_ppareek@quicinc.com> <20221102103552.29388-3-quic_ppareek@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <20221102103552.29388-3-quic_ppareek@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/11/2022 06:35, Parikshit Pareek wrote: > Introduce the Qualcomm SA8540P ride automotive platform, also known as > Qdrive-3 development board. > > This initial contribution supports SMP, CPUFreq, cluster idle, UFS, RPMh > regulators, debug UART, PMICs, remoteprocs and USB. > > The SA8540P ride contains four PM8450 PMICs. A separate DTSI file has > been created for PMIC, so that it can be used for future SA8540P based > boards. > > Signed-off-by: Parikshit Pareek > Tested-by: Brian Masney > Reviewed-by: Brian Masney > --- > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/pm8450a.dtsi | 77 ++++++++ > arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 227 ++++++++++++++++++++++ > 3 files changed, 305 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/pm8450a.dtsi > create mode 100644 arch/arm64/boot/dts/qcom/sa8540p-ride.dts > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index b0558d3389e5..c89d44756791 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -54,6 +54,7 @@ dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb-4000.dtb > dtb-$(CONFIG_ARCH_QCOM) += qrb5165-rb5.dtb > dtb-$(CONFIG_ARCH_QCOM) += sa8155p-adp.dtb > dtb-$(CONFIG_ARCH_QCOM) += sa8295p-adp.dtb > +dtb-$(CONFIG_ARCH_QCOM) += sa8540p-ride.dtb > dtb-$(CONFIG_ARCH_QCOM) += sc7180-idp.dtb > dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r1.dtb > dtb-$(CONFIG_ARCH_QCOM) += sc7180-trogdor-coachz-r1-lte.dtb > diff --git a/arch/arm64/boot/dts/qcom/pm8450a.dtsi b/arch/arm64/boot/dts/qcom/pm8450a.dtsi > new file mode 100644 > index 000000000000..34fc72896761 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/pm8450a.dtsi > @@ -0,0 +1,77 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2021, The Linux Foundation. All rights reserved. > + * Copyright (c) 2022, Linaro Limited > + */ > + > +#include > + > +&spmi_bus { > + pm8450a: pmic@0 { > + compatible = "qcom,pm8150", "qcom,spmi-pmic"; > + reg = <0x0 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + pm8450a_gpios: gpio@c000 { > + compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; > + reg = <0xc000>; > + gpio-controller; > + gpio-ranges = <&pm8450a_gpios 0 0 10>; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + pm8450c: pmic@4 { > + compatible = "qcom,pm8150", "qcom,spmi-pmic"; > + reg = <0x4 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + pm8450c_gpios: gpio@c000 { > + compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; > + reg = <0xc000>; > + gpio-controller; > + gpio-ranges = <&pm8450c_gpios 0 0 10>; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + pm8450e: pmic@8 { > + compatible = "qcom,pm8150", "qcom,spmi-pmic"; > + reg = <0x8 SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + pm8450e_gpios: gpio@c000 { > + compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; > + reg = <0xc000>; > + gpio-controller; > + gpio-ranges = <&pm8450e_gpios 0 0 10>; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > + > + pm8450g: pmic@c { > + compatible = "qcom,pm8150", "qcom,spmi-pmic"; > + reg = <0xc SPMI_USID>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + pm8450g_gpios: gpio@c000 { > + compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio"; > + reg = <0xc000>; > + gpio-controller; > + gpio-ranges = <&pm8450g_gpios 0 0 10>; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + }; > +}; > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > new file mode 100644 > index 000000000000..b480b4927549 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > @@ -0,0 +1,227 @@ > +// SPDX-License-Identifier: BSD-3-Clause > +/* > + * Copyright (c) 2021, The Linux Foundation. All rights reserved. > + * Copyright (c) 2022, Linaro Limited > + */ > + > +/dts-v1/; > + > +#include > +#include > + > +#include "sa8540p.dtsi" > +#include "pm8450a.dtsi" > + > +/ { > + model = "Qualcomm SA8540P Ride"; > + compatible = "qcom,sa8540p-ride", "qcom,sa8540p"; > + > + aliases { > + serial0 = &qup2_uart17; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > +}; > + > +&apps_rsc { > + pmm8540-a-regulators { I expect schema to be changed like that: https://lore.kernel.org/linux-devicetree/ad1d4135-031e-9393-07af-7b81c9ecffb5@linaro.org/ thus I am not sure if it is worth adding something which is going to be changed soon... Best regards, Krzysztof