Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3713308pxv; Mon, 26 Jul 2021 10:02:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqxobxkwAWueDlKMPdCLTAGHw9XpiW9z41Flw4YEfLpJQG/EjXorvMY3NCAjdHXztlVxrJ X-Received: by 2002:a17:906:2ac1:: with SMTP id m1mr11254154eje.518.1627318962580; Mon, 26 Jul 2021 10:02:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627318962; cv=none; d=google.com; s=arc-20160816; b=uz9Ve87aK/s691wW6siDwUYqzSewK9aXnVQNsyi2wG6vWxRVJgYRaioGpDbFbhF8zG eIcycfLNxhtj5NKH04HLrKGlq1Hgw2+h41sJVW7Zj/dHMERU02PfGmuIr5hT+U4gkqY+ SH9b8pRC2LulPI1bhtgnJ78Zg3CXwa5m8RImJvMcn0oZdS0i0eSbdbT4AOLOQ0ZiAvOO KSRaQhHuaJCm9cpTad2rbBHvZKolHeDdgbfLfokqb1RF+Cmc0EPwD/uf8LQzx/aUOmCk Ng7HvV+7ZQKdgv55hu3nJdi2UpmUlVKDgN5v1A5g/IgxJbyqxKvjRPSLj7jTsK5OX+b8 bS7w== 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=6QXVZQXbkdfF3znCoEbHDGEQ9aqAeJksuuR7qjhWdCA=; b=HKzo8hTGYb/ziZGCojz0EbGhFqRvExHgOS7oZ0PgnOCBqiIt7JE5o2cFSKRtKMM3HY yUreIX551OlN/li2OFCSIyIs1A1iW3Jdk4ZnxLjPOmEL0KvkqGYSJ9UTxp3E61ssAlIH Dzq9qJGlzTLqIWZ1MSjRYEarrluYWbzxrXW83ydz/6Q9lbUrJZMP0K3sADZU6b1yaSSm VWDioe5Cu9Fb1MBS/YfLqQZFWRp3gDJE0NZYdJE/PjP0RjwkYZGTu47wBa7m59MpFTid US9Ptu7zvKyye8oJ+q2ouktDZdCong85vRtP66Ibb6ougb2/CZW9gp6HlwKuOrfPNlv1 jl/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gSxwx5Ls; 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 g18si482414edw.9.2021.07.26.10.02.16; Mon, 26 Jul 2021 10:02:42 -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=gSxwx5Ls; 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 S237371AbhGZPit (ORCPT + 99 others); Mon, 26 Jul 2021 11:38:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236570AbhGZPWJ (ORCPT ); Mon, 26 Jul 2021 11:22:09 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1AFDC061760 for ; Mon, 26 Jul 2021 09:02:36 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id c11so12105206plg.11 for ; Mon, 26 Jul 2021 09:02:36 -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=6QXVZQXbkdfF3znCoEbHDGEQ9aqAeJksuuR7qjhWdCA=; b=gSxwx5LsTE3muUYVy9dNqCEpXXRE0vVlovoYoFEE2XxDqzIBXALE0dC1REOgl2RFwW 472XGGDt3N7qKuXUIQg5jYxUnkAFP8XfMVaDIAETENQzwRSAsGoRwHmANOQtN8aNPCPx DtLei+dLdYzjanqmjOuOejfwOJ5iUZY7YUL4I= 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=6QXVZQXbkdfF3znCoEbHDGEQ9aqAeJksuuR7qjhWdCA=; b=k1z6IGtPv23yIT5AXtzq9edOjThGTGEmppYTZFvFRfqd0rWzFaAhWlSXW8LLL4RsUF smgHy5/P2CxNWVYtsAL+VSYO3vGT3t0akmVVar8tzd5XSaGeTDUD4zOks+DTCAW8ccjY sRqkZDKRZb4KNinxeFMXR0IIqHHWiFBi6vGXFbKqr0++zRCXPl7IKRST46NW/Py3mgff 5oXH+YYs1VzlDIrH0rsJncW671yropK5cYHXx1anM6H3YAfkajwKEC9El2Tu30BavgDo x+rPnB8BEWQesO+jZWSUIRSdOeB026cqq+jdWuQxkazGKM3gBTr3qm9TooA8nXMzAdBL dU4Q== X-Gm-Message-State: AOAM530udbd/7KhHasOpvkygCkCFzHH8yhhih+rmPbPmqYzRhoOGbP6b dHd1pDGIAsLSnDHHv5C/CHnSPQ== X-Received: by 2002:a63:fd43:: with SMTP id m3mr18824516pgj.210.1627315356018; Mon, 26 Jul 2021 09:02:36 -0700 (PDT) Received: from localhost ([2620:15c:202:201:f794:2436:8d25:f451]) by smtp.gmail.com with UTF8SMTPSA id f7sm423786pfc.111.2021.07.26.09.02.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jul 2021 09:02:35 -0700 (PDT) Date: Mon, 26 Jul 2021 09:02:34 -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 2/4] arm64: dts: sc7280: Add QUPv3 wrapper_0 nodes Message-ID: References: <1627306847-25308-1-git-send-email-rajpat@codeaurora.org> <1627306847-25308-3-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-3-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:45PM +0530, Rajesh Patil wrote: > From: Roja Rani Yarubandi > > Add QUPv3 wrapper_0 DT nodes for SC7280 SoC. > > Signed-off-by: Roja Rani Yarubandi > Signed-off-by: Rajesh Patil > --- > Changes in V4: > - As per Bjorn's comment, added QUP Wrapper_0 nodes > other than debug-uart node > - Dropped interconnect votes for wrapper_0 node > > Changes in V3: > - Broken the huge V2 patch into 3 smaller patches. > 1. QSPI DT nodes > 2. QUP wrapper_0 DT nodes > 3. QUP wrapper_1 DT nodes > > Changes in V2: > - As per Doug's comments removed pinmux/pinconf subnodes. > - As per Doug's comments split of SPI, UART nodes has been done. > - Moved QSPI node before aps_smmu as per the order. > > arch/arm64/boot/dts/qcom/sc7280-idp.dts | 84 ++++ > arch/arm64/boot/dts/qcom/sc7280.dtsi | 720 ++++++++++++++++++++++++++++++++ > 2 files changed, 804 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dts b/arch/arm64/boot/dts/qcom/sc7280-idp.dts > index b0bfd8e..f63cf51 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dts > +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dts > @@ -358,6 +358,16 @@ > vdda18-supply = <&vreg_l1c_1p8>; > }; > > +&uart7 { > + status = "okay"; > + > + /delete-property/interrupts; > + interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>, > + <&tlmm 31 IRQ_TYPE_EDGE_FALLING>; > + pinctrl-names = "default", "sleep"; > + pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>; > +}; > + > /* PINCTRL - additions to nodes defined in sc7280.dtsi */ > > &qspi_cs0 { > @@ -428,3 +438,77 @@ > bias-pull-up; > }; > }; > +&qup_uart7_cts { > + /* > + * Configure a pull-down on CTS to match the pull of > + * the Bluetooth module. > + */ > + bias-pull-down; > +}; > + > +&qup_uart7_rts { > + /* We'll drive RTS, so no pull */ > + drive-strength = <2>; > + bias-disable; > +}; > + > +&qup_uart7_tx { > + /* We'll drive TX, so no pull */ > + drive-strength = <2>; > + bias-disable; > +}; > + > +&qup_uart7_rx { > + /* > + * Configure a pull-up on RX. This is needed to avoid > + * garbage data when the TX pin of the Bluetooth module is > + * in tri-state (module powered off or not driving the > + * signal yet). > + */ > + bias-pull-up; > +}; > + > +&tlmm { > + qup_uart7_sleep_cts: qup-uart7-sleep-cts { > + pins = "gpio28"; > + function = "gpio"; > + /* > + * Configure a pull-down on CTS to match the pull of > + * the Bluetooth module. > + */ > + bias-pull-down; > + }; > + > + qup_uart7_sleep_rts: qup-uart7-sleep-rts { > + pins = "gpio29"; > + function = "gpio"; > + /* > + * Configure pull-down on RTS. As RTS is active low > + * signal, pull it low to indicate the BT SoC that it > + * can wakeup the system anytime from suspend state by > + * pulling RX low (by sending wakeup bytes). > + */ > + bias-pull-down; > + }; > + > + qup_uart7_sleep_tx: qup-uart7-sleep-tx { > + pins = "gpio30"; > + function = "gpio"; > + /* > + * Configure pull-up on TX when it isn't actively driven > + * to prevent BT SoC from receiving garbage during sleep. > + */ > + bias-pull-up; > + }; > + > + qup_uart7_sleep_rx: qup-uart7-sleep-rx { > + pins = "gpio31"; > + function = "gpio"; > + /* > + * Configure a pull-up on RX. This is needed to avoid > + * garbage data when the TX pin of the Bluetooth module > + * is floating which may cause spurious wakeups. > + */ > + bias-pull-up; > + }; > +}; How the patches of this series are split strikes me as a bit odd. Supposedly this patch adds the QUPv3 wrapper_0 DT nodes for the SC7280, however the above is the pin configuration for the Bluetooth UART of the SC7280 IDP board. I don't see a good reason why that should be part of this patch. It should be a separate change whose subject indicates that it configures the Bluetooth UART of the SC7280 IDP. Without this conflation of SoC and board DT it would seem perfectly reasonable to squash this patch and '[4/4] arm64: dts: sc7280: Add QUPv3 wrapper_1 nodes' into a single one, they are essentially doing the same thing, I see no need to have different patches for the wrapper 0 and 1 nodes.