Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3650666pxv; Mon, 26 Jul 2021 08:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvUmn1A4X9EYTjRQDThS+u0iCXcIuU/F41+COqdKEnlEomW510hkGjCXrcrzh0WSd3s1ec X-Received: by 2002:a05:6e02:5cf:: with SMTP id l15mr13402504ils.90.1627314297561; Mon, 26 Jul 2021 08:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627314297; cv=none; d=google.com; s=arc-20160816; b=lDP8z4hpPpYXllyoInx7u1WVmNLIyIa+L5m6a1G9AS6NW835yl4aWr8AuywBDlkWbo wYuZjccqx/jz8d6HWPAS0zFkX6lrhN6dkjJyBSbnPxM2NUwgrFpBEXdwm8Y5MBScUsN3 vuayy7ofzIFhzXqmcPUPSvPZoPranr5iQcAxFrbRrkl/nBBbe04fZLzaEvak/vl246j8 dW67Fz1nzTY0rwvwvn19AEadr0dsum8DNqukHrdRrXnabqNzkubhgyNHHB4uP+7krAUV DYfRAZlOhumRWVMqB+m9sZBu1kaZTbdomrMcsEVsvDXGXUUz6qr3NbOUbFiKupaqltdV X/HQ== 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=EHunyQVdmyIsCyTs6jyTk2mOp7kQ6TFaQgSnOQTR9xM=; b=L48y90MiPRok2CIvNt9fUywlIQtVW0uUe8A1ZwM6XrHsxbenJU/C8z0rWlCn/HGHs5 3i2TPObbAVRb42+vuyCttxAVTelTStLUXQX/fyRqArNJTxLrAfricw5ePhBGZz82DOYH 7/0+cDxsnnN1M1enRwGIJGUQ/kUtHSUqU/CGy7AgWOen3afUyQVc65br3rKw2oyMd9Fd 6nx3X2E711v3yetNYrevrJo+4qJliguuZyhnU+RttIDiJNNHpk50aT2qfo4AU5AtiwoK 3qlGLJ4NSv7elh1vHUOp9hJ8R0zahaprc6Oo+hi6znAFbzaMjN9gRC9iwG9IUG+ztbdW qeOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Nd9B/Ey3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x4si293851ilj.71.2021.07.26.08.44.45; Mon, 26 Jul 2021 08:44:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="Nd9B/Ey3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235751AbhGZPCd (ORCPT + 99 others); Mon, 26 Jul 2021 11:02:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235742AbhGZPCM (ORCPT ); Mon, 26 Jul 2021 11:02:12 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A14B8C0613C1 for ; Mon, 26 Jul 2021 08:42:41 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id c16so6504504plh.7 for ; Mon, 26 Jul 2021 08:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EHunyQVdmyIsCyTs6jyTk2mOp7kQ6TFaQgSnOQTR9xM=; b=Nd9B/Ey3g6J47c+7GhXc4H80ghOZzQwDZlzwUnDv8cJfrD7xm7g7l04ftT4rut7ukp QsUFVBVDDhTUTIvqde3Er83b9b0Eud7hP4sS/21EeAzKwDVx6hHVMKcvDXa6bVTJWDpT 7WkW2fk1lFPc5TvkRyLHS7oRgkey5Z1LBUobk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EHunyQVdmyIsCyTs6jyTk2mOp7kQ6TFaQgSnOQTR9xM=; b=Ab75J43pbJjnfhzTgP2C+phaReR5MuyH3Uw3+kfPTk8kU+CGa1Dmqf3DoKY9i1aECm n7QDJu06eE3SOkOpOmLSMeCoPQsP83x0/cAOQThoI2SuQuZqQ5vlaXA7Wuc/sDHPMxHM trGQq7IMQhAK8aJImGmxBzUkbEVNwCA0hCDc/8T/f/Rgi26cGpjtul2pPhyI84pJQPzk NA/uy8tntl8oZgV7oTut7AzZ7pg67129Whdq1ZBnVNy10GJ/WBS661thib96Y+NOJh1u OZYX6e7q2GYV/3FdGNaxrkBQL2y1uGmflLqkthqqVumdiXQBz5ibVwwpzwMqd5QMSetI gmww== X-Gm-Message-State: AOAM533RohULcy2YcSnzvvZO8Wd9h4ENH6/HbJJ9gW4d339+gkPxsSBF Qe0Ml+GFiMOKuc+Y9nc5Rem/dWrpf/KOkA== X-Received: by 2002:a05:6a00:1503:b029:395:f05c:e073 with SMTP id q3-20020a056a001503b0290395f05ce073mr7117267pfu.80.1627314161175; Mon, 26 Jul 2021 08:42:41 -0700 (PDT) Received: from localhost ([2620:15c:202:201:f794:2436:8d25:f451]) by smtp.gmail.com with UTF8SMTPSA id h30sm363032pfr.191.2021.07.26.08.42.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 08:42:40 -0700 (PDT) Date: Mon, 26 Jul 2021 08:42:38 -0700 From: Matthias Kaehlcke To: Rajesh Patil Cc: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, rnayak@codeaurora.org, saiprakash.ranjan@codeaurora.org, msavaliy@qti.qualcomm.com, skakit@codeaurora.org, Roja Rani Yarubandi Subject: Re: [PATCH V4 3/4] arm64: dts: sc7280: Update QUPv3 Debug UART DT node Message-ID: References: <1627306847-25308-1-git-send-email-rajpat@codeaurora.org> <1627306847-25308-4-git-send-email-rajpat@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1627306847-25308-4-git-send-email-rajpat@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 26, 2021 at 07:10:46PM +0530, Rajesh Patil wrote: > From: Roja Rani Yarubandi > > Update QUPv3 Debug UART DT node with the interconnect names and > functions for SC7280 SoC. > > Split the Debug UART pin control functions. > > Signed-off-by: Roja Rani Yarubandi > Signed-off-by: Rajesh Patil > --- > Changes in V4: > - As per Bjorn's comment, posting this debug-uart node update > as seperate patch > > arch/arm64/boot/dts/qcom/sc7280-idp.dts | 18 +++++++----------- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 28 ++++++++++++++++++++++++---- > 2 files changed, 31 insertions(+), 15 deletions(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dts b/arch/arm64/boot/dts/qcom/sc7280-idp.dts > index f63cf51..a50c9e5 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dts > +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dts > @@ -383,18 +383,14 @@ > bias-pull-up; > }; > > -&qup_uart5_default { > - tx { > - pins = "gpio46"; > - drive-strength = <2>; > - bias-disable; > - }; > +&qup_uart5_tx { > + drive-strength = <2>; > + bias-disable; > +}; > > - rx { > - pins = "gpio47"; > - drive-strength = <2>; > - bias-pull-up; > - }; > +&qup_uart5_rx { > + drive-strength = <2>; > + bias-pull-up; > }; > > &sdc1_on { > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 455e58f..951818f 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -853,8 +853,13 @@ > clock-names = "se"; > clocks = <&gcc GCC_QUPV3_WRAP0_S5_CLK>; > pinctrl-names = "default"; > - pinctrl-0 = <&qup_uart5_default>; > + pinctrl-0 = <&qup_uart5_cts>, <&qup_uart5_rts>, <&qup_uart5_tx>, <&qup_uart5_rx>; > interrupts = ; > + power-domains = <&rpmhpd SC7280_CX>; > + operating-points-v2 = <&qup_opp_table>; > + interconnects = <&clk_virt MASTER_QUP_CORE_0 0 &clk_virt SLAVE_QUP_CORE_0 0>, > + <&gem_noc MASTER_APPSS_PROC 0 &cnoc2 SLAVE_QUP_0 0>; > + interconnect-names = "qup-core", "qup-config"; Most of the above should be added by patch '[2/4] arm64: dts: sc7280: Add QUPv3 wrapper_0 nodes'. I have to say I dislike that the SoC DT file dictates which UART to use for the serial console. Technically it could be any of them, right? uart5 is used because that's what the IDP does, and the rest of the world is expected to follow. Why not configure uart5 as "qcom,geni-uart" by default and overwrite the compatible string and pinctrl in the board file? You could even add 'qup-uartN-all' (or similar) pinconfigs to sc7280.dtsi, which would make the changes in the board file trivial.