Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2982910rwl; Mon, 27 Mar 2023 07:49:51 -0700 (PDT) X-Google-Smtp-Source: AKy350YAGWl1tMoGsO2T0wQp2veML1PTdPfn0NXpbZ1GZYlj0J5cSlTTujIg54wtOSFqDOL3L4hh X-Received: by 2002:a17:906:8296:b0:933:868:413a with SMTP id h22-20020a170906829600b009330868413amr12669148ejx.15.1679928590834; Mon, 27 Mar 2023 07:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679928590; cv=none; d=google.com; s=arc-20160816; b=pQLw9HH3ISHbypbGJQyO+U+cGH4gHqOnCJz7QuPuFJ/82WxiWemr7ehlJulz/qWxyf kUcM1DHbprWUEtCGtLcq/ZJTci9IGePF8paKBkkstZIeY2nIl+aftwf7CPM497EInQ7G uX8n6/iEcRadaNhFsOy06fETcbZjfwpGYxeLeT3RkYs+5o1J2ceYYw4uDveTKf3cRF/Q 4tq/mOONUXIKfJyuXEtvj1S74aULKYyA/CEQQgKfaJCWkVByscozVrE+bEvV6+nTZUfj nG6n13MmqNbjdXYqynf66bIAHG2XIjAqx8hZL/cFwGTX6mOpXLaXvijT/3yNFAmyN46M q9MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=L12ayakUPlP/19pA0REczduySKLGqF0UobwpxbA4vYI=; b=Ik0IG9H2gj1vSZO7czILqdHzR6bw3QYHshwqGpTLmSvNXiGmcsxRtddcx4cJd/J/QO JZjBVaUCOTOt4RcYQJX1M7auEblYZ0ZyXOD5HFTeqSFN9/rOlPCh7tCqlfMC//rMExwt Ac98mwLsqGmyZwtSloiN68QQsQvoKDyPNCq5fksGL287ifGG5d3Vl0Bff39NA9R4Wyz+ 9Wr/U7blr2f+5t7oD3u0WFrYtT3HcNXoqmM6Wu47krtYPOc2ocFHHlNBFHeQLyyHF7qj JfGkq5I9hO54gXLkgRD/VscTbGaKShn0s0hHOycM6NzloEVw+fT7uEATEKCHhTYixPAc wIgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HCMDYbOp; 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 me16-20020a170906aed000b0093100c0022bsi26945310ejb.674.2023.03.27.07.49.24; Mon, 27 Mar 2023 07:49:50 -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=HCMDYbOp; 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 S232464AbjC0OpR (ORCPT + 99 others); Mon, 27 Mar 2023 10:45:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbjC0OpQ (ORCPT ); Mon, 27 Mar 2023 10:45:16 -0400 Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com [IPv6:2607:f8b0:4864:20::1136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE25F30DC for ; Mon, 27 Mar 2023 07:45:13 -0700 (PDT) Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-5416698e889so174955597b3.2 for ; Mon, 27 Mar 2023 07:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679928313; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=L12ayakUPlP/19pA0REczduySKLGqF0UobwpxbA4vYI=; b=HCMDYbOpcls0l7uJ+OcpKeY9i+39w/6k34p7qzXuauPoRiiQ/iBrgNX6plxv3DaduO LYUg1kmkuYUu1ASohU87q45xXcF5zZwjhZcjxLHNRqunmGVyvdE0ncfAbM4jYGL2a6Hi ZQrZHvwxbn7Qj9gGrEo+lSWNxtJMehoP7+sMxooTClbw9a72tymMpZDtFWW9QK55dq7j tZzKAyZROkTUGYIO6A8fULGQ90NIoJvIq/X31peKCSn6/V/RtSMVwdv2Xr54SK5CP77n J/+otEjjHgbrbE2HS1bwHf02GJDWrMg5vm71JCafQx1tGYW2IJIyWC5MrHLym5gAKPjm rKkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679928313; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L12ayakUPlP/19pA0REczduySKLGqF0UobwpxbA4vYI=; b=JB75/2wSDvkA+uhifojWHfsYQE9HEvDOckXFIwE6OjaK0eDhvjjfIfcoM/lzZ+WJa0 Mi1daqPdp2od1JFaW5n+0qLiKhIf2EB+uN9iBkovLiRx+SmG/0UK2urE5BJ3n8Z/FVqz K9Fx38HFuP2o+nKLx1Y1/2V0GCIYHXQqMuTev1axubqApbG5ju9IPzhBrBqfERIwVmAA OJKOcJ5XZXATlxjTkt9ZkSuSDO+EG1EP3xRZyQQuPwoleW2EvSpJCua24GY5s0H4/N4b inU08QkgUzJD+utzycZ5dKxpHVsMDg5r0fYGoWNHricZXYC8gjEv1GCI8qC3g0t52O+n UPSg== X-Gm-Message-State: AAQBX9ehIYtvW0ciidlmKuolVEbRnL9H465uuTvXFD2lBcAg4xJgJsw3 svxQSeynuCZEOvBi1GUczeeg5XaChdZofTeBAG6onA== X-Received: by 2002:a81:b617:0:b0:541:7f69:aa8b with SMTP id u23-20020a81b617000000b005417f69aa8bmr5256500ywh.5.1679928312880; Mon, 27 Mar 2023 07:45:12 -0700 (PDT) MIME-Version: 1.0 References: <20230327132718.573-1-quic_devipriy@quicinc.com> <20230327132718.573-4-quic_devipriy@quicinc.com> In-Reply-To: <20230327132718.573-4-quic_devipriy@quicinc.com> From: Dmitry Baryshkov Date: Mon, 27 Mar 2023 17:45:02 +0300 Message-ID: Subject: Re: [PATCH V10 3/4] arm64: dts: qcom: Add support for ipq9574 SoC and RDP433 variant To: Devi Priya Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, catalin.marinas@arm.com, will@kernel.org, p.zabel@pengutronix.de, shawnguo@kernel.org, arnd@arndb.de, marcel.ziswiler@toradex.com, nfraprado@collabora.com, broonie@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, quic_srichara@quicinc.com, quic_gokulsri@quicinc.com, quic_sjaganat@quicinc.com, quic_kathirav@quicinc.com, quic_arajkuma@quicinc.com, quic_anusha@quicinc.com, quic_poovendh@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 Mon, 27 Mar 2023 at 16:28, Devi Priya wrote: > > Add initial device tree support for Qualcomm IPQ9574 SoC and > Reference Design Platform(RDP) 433 which is based on IPQ9574 > family of SoCs > > Co-developed-by: Anusha Rao > Signed-off-by: Anusha Rao > Co-developed-by: Poovendhan Selvaraj > Signed-off-by: Poovendhan Selvaraj > Signed-off-by: Devi Priya > --- > Changes in V10: > - Renamed the Board Device Tree Source to use the RDP numbers > - Updated the Makefile, subject and commit message accordingly > > arch/arm64/boot/dts/qcom/Makefile | 1 + > arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 84 ++++++ > arch/arm64/boot/dts/qcom/ipq9574.dtsi | 270 ++++++++++++++++++++ > 3 files changed, 355 insertions(+) > create mode 100644 arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts > create mode 100644 arch/arm64/boot/dts/qcom/ipq9574.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile > index 1a29403400b7..52f1f92c5195 100644 > --- a/arch/arm64/boot/dts/qcom/Makefile > +++ b/arch/arm64/boot/dts/qcom/Makefile > @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_QCOM) += ipq6018-cp01-c1.dtb > dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk01.dtb > dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk10-c1.dtb > dtb-$(CONFIG_ARCH_QCOM) += ipq8074-hk10-c2.dtb > +dtb-$(CONFIG_ARCH_QCOM) += ipq9574-rdp433.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8916-acer-a1-724.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8916-alcatel-idol347.dtb > dtb-$(CONFIG_ARCH_QCOM) += msm8916-asus-z00l.dtb > diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts > new file mode 100644 > index 000000000000..2ce8e09e7565 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts > @@ -0,0 +1,84 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) > +/* > + * IPQ9574 RDP433 board device tree source > + * > + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. > + * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +/dts-v1/; > + > +#include "ipq9574.dtsi" > + > +/ { > + model = "Qualcomm Technologies, Inc. IPQ9574/AP-AL02-C7"; > + compatible = "qcom,ipq9574-ap-al02-c7", "qcom,ipq9574"; > + > + aliases { > + serial0 = &blsp1_uart2; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > +}; > + > +&blsp1_uart2 { > + pinctrl-0 = <&uart2_pins>; > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&sdhc_1 { > + pinctrl-0 = <&sdc_default_state>; > + pinctrl-names = "default"; > + mmc-ddr-1_8v; > + mmc-hs200-1_8v; > + mmc-hs400-1_8v; > + mmc-hs400-enhanced-strobe; > + max-frequency = <384000000>; > + bus-width = <8>; > + status = "okay"; > +}; > + > +&sleep_clk { > + clock-frequency = <32000>; > +}; > + > +&tlmm { > + sdc_default_state: sdc-default-state { > + clk-pins { > + pins = "gpio5"; > + function = "sdc_clk"; > + drive-strength = <8>; > + bias-disable; > + }; > + > + cmd-pins { > + pins = "gpio4"; > + function = "sdc_cmd"; > + drive-strength = <8>; > + bias-pull-up; > + }; > + > + data-pins { > + pins = "gpio0", "gpio1", "gpio2", > + "gpio3", "gpio6", "gpio7", > + "gpio8", "gpio9"; > + function = "sdc_data"; > + drive-strength = <8>; > + bias-pull-up; > + }; > + > + rclk-pins { > + pins = "gpio10"; > + function = "sdc_rclk"; > + drive-strength = <8>; > + bias-pull-down; > + }; > + }; > +}; > + > +&xo_board_clk { > + clock-frequency = <24000000>; > +}; > diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > new file mode 100644 > index 000000000000..3bb7435f5e7f > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi > @@ -0,0 +1,270 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) > +/* > + * IPQ9574 SoC device tree source > + * > + * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. > + * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. > + */ > + > +#include > +#include > +#include > + > +/ { > + interrupt-parent = <&intc>; > + #address-cells = <2>; > + #size-cells = <2>; > + > + clocks { > + bias_pll_ubi_nc_clk: bias-pll-ubi-nc-clk { > + compatible = "fixed-clock"; > + clock-frequency = <353000000>; > + #clock-cells = <0>; > + }; What is the source for this clock? With it clocking at 353 MHz, I doubt that it is an external clock. > + > + sleep_clk: sleep-clk { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + }; > + > + xo_board_clk: xo-board-clk { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + }; > + }; [skipped the rest] -- With best wishes Dmitry