Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1065478rdb; Tue, 19 Sep 2023 20:44:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEE0CjWelj5yjmrTE+K/FKfBTmBm2V/LYKdamyu7cWlZKZjyRDS/Fe/lCR8ewFs11oxugOY X-Received: by 2002:a17:902:c714:b0:1c3:b0c7:38bf with SMTP id p20-20020a170902c71400b001c3b0c738bfmr4158136plp.12.1695181455050; Tue, 19 Sep 2023 20:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695181455; cv=none; d=google.com; s=arc-20160816; b=m16mfWzzR434WsDiy1dIz0f4hUA+WuHSIcrEFWV/XjuEDObA4iGs9P9f1ytUXw92yB LxCha+6rBblDKfW6DtzQ3zGtsAfZ4Gk4LPKIsU2S7d4m2VzE0a2Q160RP0cJl8czI6N0 O6NObp3vwKWP0NfuneZ3BIda7nOqvyrX0mM/2xsjpVD0YWpxounkiH8i6Zxwpl90QKIY w3/izm32zKmQqmj4/dARkBxuqPhGVGhfG5CCIkFeqP1swsPLsd7jH3XxRSjDZ7bOZSAO lZNVp+7MNrAFYZguITjGpLjMEgIm6sGBnB2NJDcxh0skMq8rQH8h7LMKBdQu/1XqIeSm 7krw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mzBTgUwom0Ca6inCIwr+5qbzQk/hd7DNse8IBxsAAZc=; fh=ubnG1/12foiXfZEkij9IWTOQsAhD00fRjxj7fgOO2Qw=; b=olpMDmPcz+BskviucwIXcX7nF4ADfk+hb3f61ZRzL1fwSyg2lLKVRdF3HXQjGYaInl m39tAY3cZKJKFTRoGfA07SoFbjTxL5vG774f2MXtUhZNZbgIQAoY2cQs7j75x6zhWlSi QLxL9BVhDCobwRb+F8/TZI262LsFaTV0+x9p8vZIIhUUwKa8D729+Zs426P1PKBiIsMR cE2wgPu1Zbk/8Beb1L0f4SqezB9nEX5/gCvvsnGocxi9C388W7ToYCHuxR7xWzSamyM2 UUC40/BslmAekeTzokK2FQdI3/3IT56K2ZB2S9/873N6Izogpo2afsKQBporD4deVQA7 gqag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RIB1Au/i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b22-20020a63d316000000b00578daf0f3a5si861434pgg.873.2023.09.19.20.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 20:44:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RIB1Au/i"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 5FB2E826FA94; Tue, 19 Sep 2023 20:43:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232266AbjITDnH (ORCPT + 99 others); Tue, 19 Sep 2023 23:43:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231269AbjITDnE (ORCPT ); Tue, 19 Sep 2023 23:43:04 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8785AB; Tue, 19 Sep 2023 20:42:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B037AC433C7; Wed, 20 Sep 2023 03:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695181378; bh=G4xGO/2XKxt+lP9JCfnQGZ2wDydEFDtzqQ6wAO8WvAM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RIB1Au/i7Vr59eXBcS6Jd1h9abRkhC9Cq5bfeMnBwXcmAB8bg9bMQOTHLuToTwEcn dLLXS+uaUgXbNlG3+sYoYth6pIIliwhqI1jBtWeCCi/T79HxvB4uIy97GkfWoWuoe6 3BZh7tpe1ElQwzfzcu+Bjjx4MzlMeuj/YbaGwqeIAGG5eaLY7l8YxyJKPiUWfNY2TQ 46/AysOnUze0nN2CaN+N97xAo8uhIxjR3OuWgHg6jgQBwBVrYzOvG7a8CiGR9O4TdX qApxfuEY7ufnQDRraYzq0kdHGKRn1GK/t+qhem5yNZwEYJTg3OnJADrQ3HRbcn82XT 5qNx+0hciOI1A== Date: Tue, 19 Sep 2023 20:47:05 -0700 From: Bjorn Andersson To: Tengfei Fan Cc: will@kernel.org, robin.murphy@arm.com, joro@8bytes.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, catalin.marinas@arm.com, geert+renesas@glider.be, arnd@arndb.de, neil.armstrong@linaro.org, nfraprado@collabora.com, rafal@milecki.pl, peng.fan@nxp.com, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, quic_tsoni@quicinc.com, quic_shashim@quicinc.com, quic_kaushalk@quicinc.com, quic_tdas@quicinc.com, quic_tingweiz@quicinc.com, quic_aiquny@quicinc.com, kernel@quicinc.com Subject: Re: [PATCH v2 7/8] arm64: dts: qcom: add uart console support for SM4450 Message-ID: References: <20230915021509.25773-1-quic_tengfan@quicinc.com> <20230915021509.25773-9-quic_tengfan@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230915021509.25773-9-quic_tengfan@quicinc.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, 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 morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 19 Sep 2023 20:43:13 -0700 (PDT) On Fri, Sep 15, 2023 at 10:15:08AM +0800, Tengfei Fan wrote: > Add base description of UART, TLMM, interconnect, TCSRCC and SMMU nodes > which helps SM4450 boot to shell with console on boards with this SoC. > > Signed-off-by: Tengfei Fan > --- > arch/arm64/boot/dts/qcom/sm4450-qrd.dts | 18 +- > arch/arm64/boot/dts/qcom/sm4450.dtsi | 313 +++++++++++++++++++++--- > 2 files changed, 301 insertions(+), 30 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sm4450-qrd.dts b/arch/arm64/boot/dts/qcom/sm4450-qrd.dts > index 00a1c81ca397..0f253a2ba170 100644 > --- a/arch/arm64/boot/dts/qcom/sm4450-qrd.dts > +++ b/arch/arm64/boot/dts/qcom/sm4450-qrd.dts > @@ -10,9 +10,23 @@ > model = "Qualcomm Technologies, Inc. SM4450 QRD"; > compatible = "qcom,sm4450-qrd", "qcom,sm4450"; > > - aliases { }; > + aliases { > + serial0 = &uart7; > + }; > > chosen { > - bootargs = "console=hvc0"; > + stdout-path = "serial0:115200n8"; > }; > }; > + > +&qupv3_id_0 { > + status = "okay"; > +}; > + > +&tlmm { > + gpio-reserved-ranges = <0 4>, <136 1>; > +}; > + > +&uart7 { > + status = "okay"; > +}; > diff --git a/arch/arm64/boot/dts/qcom/sm4450.dtsi b/arch/arm64/boot/dts/qcom/sm4450.dtsi [..] > + qupv3_id_0: geniqup@ac0000 { > + compatible = "qcom,geni-se-qup"; > + reg = <0x0 0x00ac0000 0x0 0x2000>; > + ranges; > + clock-names = "m-ahb", "s-ahb"; > + clocks = <&gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, > + <&gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; > + iommus = <&apps_smmu 0x163 0x0>; > + interconnects = <&clk_virt MASTER_QUP_CORE_0 0 &clk_virt SLAVE_QUP_CORE_0 0>; > + interconnect-names = "qup-core"; The patch ends up adding a smorgasbord of different things, some of which do relate to giving you a console and others mostly not related at all, because of the iommus and interconnects here. If you omit these three properties from this, you can add the console, then add iommu and interconnect nodes in three clear patches. PS. Commit message says this is all needed for boot-to-shell, but I don't think you need scm, nor tcsr nodes to achieve that. Regards, Bjorn