Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2532569rwr; Fri, 21 Apr 2023 10:05:48 -0700 (PDT) X-Google-Smtp-Source: AKy350b55iFT6+5f+DeTlLUbYtO0ojK5E8BOG3+i29aaa2Uefhwb/ZcAp7z3YHoUQAO8c+A1audx X-Received: by 2002:a05:6a00:2193:b0:62a:63e6:3282 with SMTP id h19-20020a056a00219300b0062a63e63282mr6807884pfi.11.1682096748467; Fri, 21 Apr 2023 10:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682096748; cv=none; d=google.com; s=arc-20160816; b=uzuYIbzporWCHKB8ecVtSE2u5lAXJhvINqQ7LnptrucLX3sKbTcGZm7h8hTaB6Qkkm OqEPAL8Zc4e87E27Yis+lYrWlGq1D0oKw0sg36Ws8lzTVml5wDPyLrmmrBq//Fe4r+FD GN2z9o4FPxwc67Gm7BnrhK2+8emUgzGse1BOHXSFcKkRBxDRyeJ98Jbf8Ml/jRwisJRJ kT6eyNWb0vFzdhZ3BeH2dJrV/HfpcMr1sG2MDVp5+L3OJVy+uDm26AYUc5nJ2pkZio4U KDL6E+NyS/3pNl0Ywu21lRv8o054eTWFLEypDTwO2ivT8kkZTL7fMnWJ7RiUx51vBmmv ElPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QT/YYNidqu3A4BNDZJk8UgJVKfbhp8UpzHeC81fLwQU=; b=fehlFqBQt6jSkJ6XwpInT9Rm0PiR4qRdU7n4YqtuJs76phLo1Hnn5P/94psoBC+0yj qgkwATxmf5BUzTlJ79xhX9NJZmkVeypjlcWDvSAZU2k3Y6HJ3RcnZFvcJpuALrBKQWDr DN2KF+QJOx1jS8MP6cRfDdVT3hZW91WjajlYBIXayg4RC68HIL83sxg4zWRMDv9gqWwf yiu2JX9ZcJ5vhkjZpcAigE7+Jr57bRwY0jSwhUPs6pYKrcRKb1EfHnswHWtVtMdzEVRz gEP0J5+vg/1GXEruoerx/2Bj2wKA5w9ffUwj1r8yKG4Dfya/UO67kDHbzUrOW403uKEZ aPcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kali.org header.s=google header.b=D2hM9+BK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y62-20020a638a41000000b0051b6e9d4daesi5069275pgd.585.2023.04.21.10.05.05; Fri, 21 Apr 2023 10:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@kali.org header.s=google header.b=D2hM9+BK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kali.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232546AbjDURAw (ORCPT + 99 others); Fri, 21 Apr 2023 13:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233506AbjDURAn (ORCPT ); Fri, 21 Apr 2023 13:00:43 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B4C215605 for ; Fri, 21 Apr 2023 10:00:17 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-507bdc5ca2aso3272135a12.3 for ; Fri, 21 Apr 2023 10:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kali.org; s=google; t=1682096387; x=1684688387; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QT/YYNidqu3A4BNDZJk8UgJVKfbhp8UpzHeC81fLwQU=; b=D2hM9+BKb4GsOroNx+/2Qf3HuWU7SAKw0AO34XJw8mAFUTQqZpfI7shT/sgx4W5jCj cFTbaR6CN2Q1yTr6s2dj9n8eQEPgiLLssKSGowQJdgtci2hIg/ixyJkJuRov67Zyorw7 Jq5+5BFl02Mtae9ZS+g34wWmjDpkXrUETy1LOhKFQPaZGJeQUO03YuATHQkswyLlpRoO YGNowK3cmq7/Vw8J2Np0+vsY0wAc5NGd10BUB+1sz7iH0mI/AxiPDJwONrxf3rB4eTyz dcjWzxXQeABQpGE+Rd5ZPuTRZpaiAcaDDpNGBXk9bF/l6fSKjogZg+YsCmyuqlTjS8Pj rtqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682096387; x=1684688387; h=content-transfer-encoding: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=QT/YYNidqu3A4BNDZJk8UgJVKfbhp8UpzHeC81fLwQU=; b=XcQcs7nTccGAFW6JMf3XFSsxtcoNue0nLBRnHR5fymc208p02EgLOo6LiQyUmf2UAv NLqf4Cl1HJ/FJQiiakgN9Jm2Ka7g806p26D0xqq2fm+r8jE8ldV//Z1QXX579us41l7Z kpaFacwikZAG/aKDM1urUquNqzENFuUYaVh5bQHf6Ys+TCjTW2v9Zaz2Kc4gwTyTArx5 PQVd1WSQI8il6u2UqTcGnjT9Toy3v5q4CfgdUfkP9pOLCSvet51MrN1HFQnzFVIs71qU G4vouT12yvkDzBwQwvi7PqFzVgC2S2586N3JvjfigHH2D2jetV6hN4JGdh9c0Rc81Ooa 6B/w== X-Gm-Message-State: AAQBX9e6UZdMHwHH41EgwvdFAQ+1Z7KtRadE5BXvnFflEepYsZjPTZ18 a5jC8iRq+7i/85SmR+5cvuqKDdhNzhT0aRWc261WRg== X-Received: by 2002:a05:6402:ca:b0:506:8884:7f5 with SMTP id i10-20020a05640200ca00b00506888407f5mr5245621edu.41.1682096386944; Fri, 21 Apr 2023 09:59:46 -0700 (PDT) MIME-Version: 1.0 References: <20230421-fp4-bluetooth-v1-0-0430e3a7e0a2@fairphone.com> <20230421-fp4-bluetooth-v1-3-0430e3a7e0a2@fairphone.com> In-Reply-To: <20230421-fp4-bluetooth-v1-3-0430e3a7e0a2@fairphone.com> From: Steev Klimaszewski Date: Fri, 21 Apr 2023 11:59:35 -0500 Message-ID: Subject: Re: [PATCH RFC 3/4] arm64: dts: qcom: sm6350: add uart1 node To: Luca Weiss Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Balakrishna Godavarthi , Rocky Liao , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Andy Gross , Bjorn Andersson , Konrad Dybcio , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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-bluetooth@vger.kernel.org On Fri, Apr 21, 2023 at 9:12=E2=80=AFAM Luca Weiss wrote: > > Add the node describing uart1 incl. opp table and pinctrl. > > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/sm6350.dtsi | 63 ++++++++++++++++++++++++++++++= ++++++ > 1 file changed, 63 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/q= com/sm6350.dtsi > index 18c4616848ce..16c5e9a6c98a 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi > @@ -378,6 +378,25 @@ opp-2073600000 { > }; > }; > > + qup_opp_table: opp-table-qup { > + compatible =3D "operating-points-v2"; > + > + opp-75000000 { > + opp-hz =3D /bits/ 64 <75000000>; > + required-opps =3D <&rpmhpd_opp_low_svs>; > + }; > + > + opp-100000000 { > + opp-hz =3D /bits/ 64 <100000000>; > + required-opps =3D <&rpmhpd_opp_svs>; > + }; > + > + opp-128000000 { > + opp-hz =3D /bits/ 64 <128000000>; > + required-opps =3D <&rpmhpd_opp_nom>; > + }; > + }; > + > pmu { > compatible =3D "arm,armv8-pmuv3"; > interrupts =3D ; > @@ -741,6 +760,22 @@ i2c0: i2c@880000 { > status =3D "disabled"; > }; > > + uart1: serial@884000 { > + compatible =3D "qcom,geni-uart"; > + reg =3D <0 0x00884000 0 0x4000>; > + clock-names =3D "se"; > + clocks =3D <&gcc GCC_QUPV3_WRAP0_S1_CLK>; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&qup_uart1_cts>, <&qup_uar= t1_rts>, <&qup_uart1_tx>, <&qup_uart1_rx>; > + interrupts =3D ; > + power-domains =3D <&rpmhpd SM6350_CX>; > + operating-points-v2 =3D <&qup_opp_table>; > + interconnects =3D <&clk_virt MASTER_QUP_C= ORE_0 0 &clk_virt SLAVE_QUP_CORE_0 0>, > + <&aggre1_noc MASTER_QUP_0= 0 &clk_virt SLAVE_EBI_CH0 0>; > + interconnect-names =3D "qup-core", "qup-c= onfig"; > + status =3D "disabled"; > + }; > + > i2c2: i2c@888000 { > compatible =3D "qcom,geni-i2c"; > reg =3D <0 0x00888000 0 0x4000>; > @@ -1726,6 +1761,34 @@ qup_i2c10_default: qup-i2c10-default-state { > drive-strength =3D <2>; > bias-pull-up; > }; > + > + qup_uart1_cts: qup-uart1-cts-default-state { > + pins =3D "gpio61"; > + function =3D "qup01"; > + drive-strength =3D <2>; > + bias-disable; > + }; > + > + qup_uart1_rts: qup-uart1-rts-default-state { > + pins =3D "gpio62"; > + function =3D "qup01"; > + drive-strength =3D <2>; > + bias-pull-down; > + }; > + > + qup_uart1_tx: qup-uart1-tx-default-state { > + pins =3D "gpio63"; > + function =3D "qup01"; > + drive-strength =3D <2>; > + bias-pull-up; > + }; > + tx should come after the rx, this caught me too when I was doing my bluetooth driver, it goes by name, not gpio#. > + qup_uart1_rx: qup-uart1-rx-default-state { > + pins =3D "gpio64"; > + function =3D "qup01"; > + drive-strength =3D <2>; > + bias-disable; > + }; > }; > > apps_smmu: iommu@15000000 { > > -- > 2.40.0 >