From patchwork Fri May 12 13:58:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 93215 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp5136041vqo; Fri, 12 May 2023 07:09:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+xvVCOAV6PIkU+nAOMwjhXURirRQ6X6sMfeZnE2Dw81oncAJurj+AnzH6KtVNSrhw/SFF X-Received: by 2002:a05:6870:d4c3:b0:192:ae8a:2f30 with SMTP id l3-20020a056870d4c300b00192ae8a2f30mr13757232oai.6.1683900547362; Fri, 12 May 2023 07:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683900547; cv=none; d=google.com; s=arc-20160816; b=mN17rEt7UJqI655MrigOey8RzGmaACMS33zVDtYiA4SYDeBYdp7/5SimeoFJj2kA8L jLBP87GmQea5S23OafW3RzB9/jba2e8j6GcfHAVzWBEV3BnhpU0JWdYpqpT1fqHBcg9i MRAw4JIq4S8ZaALSOcJn2d65jktdY42qxHqz6Qpeu/TzXTLtnPl950e95Ze23m4LUJN1 mC7OWPvWfJuYKQUdOHkY9UvxCGghcUfjtdWfaWStlMDZVOivj6obmRala9r97mQLC+Wp AVuM9w1bPaCwt+JvtOGfdcg0rT0XJX5cHXNuNXm/KBIK2CDLTxs7zEdJAL1gCjQN8bum Nx4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=zyYcNXudTdGwmmyXYtomjXhMBjfx2oalrvadhl4fK/Y=; b=L6UhKbNN2+BHvaX6bs0Sh1EtUyos8dQLapbt22Ykvq+liVsNmZiQLgg6CwMYIJWkNl eNp8ZpnFqs1TSTG/K+lfJNDF8F7sLu0Nd8GejY/b7i+YL07USygd4kvCZgKRXnkOLhAB C8m5QyeLBKocVP2u0KzYdUpBDBeuSNCTS8KHgqlIuimNgKkju+uU9Lgvcwu9X4xu5wFs FZsZnUpdUJLAVNbSL2gLiYGF9/glGsyA+Ke2Lsz9QrK9OQ9+O4L9Ay1ODPyQvkT+wBuS iKDlC16WILRjr1wZBzMrTNybXkJF1ib6QU2fUeHGRtSLWcsSopGhgHaKWPv4smFf23tn bZWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=lfrx+FLu; 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=fairphone.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a9d5788000000b006a5a726c51bsi10076904oth.127.2023.05.12.07.08.53; Fri, 12 May 2023 07:09:07 -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=@fairphone.com header.s=fair header.b=lfrx+FLu; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241408AbjELN7L (ORCPT + 99 others); Fri, 12 May 2023 09:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241372AbjELN7F (ORCPT ); Fri, 12 May 2023 09:59:05 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C9013860 for ; Fri, 12 May 2023 06:58:56 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-969f90d71d4so767097266b.3 for ; Fri, 12 May 2023 06:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1683899935; x=1686491935; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=zyYcNXudTdGwmmyXYtomjXhMBjfx2oalrvadhl4fK/Y=; b=lfrx+FLuS5VaSd6DraCCI8ElBa+Sn4/A5AfMpx12ZuyVDis12qMc7okoq3u2PdBp0j c/X678b7wBJdJrS1RCO0IuhNKPUKMuQT/lHS1UCQ+6AS4gQd6RhOMHVk6PV/gshA+UN4 irik+/wlVYZyqr5p6AalGw4eZBZy5/jtOMEkR7sERrsG0NzJW3J70+h5naeqP/Cw8mVl DL7NcPBE7XQ7675EurdzoCMlxN10kDwZb1bipxE8NDMNuZtCoSwXiSOe970xbVK8Ce5S bJerGENqUvVlDLU0/mv85IeVn1F1J2Ly3cLy5M0QRUcoJnSLI9tqx8c9JJ0ci+nL+lfN cCTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683899935; x=1686491935; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zyYcNXudTdGwmmyXYtomjXhMBjfx2oalrvadhl4fK/Y=; b=euUhSxFr5Ht5YKDcjhPenKvGIWeZPombEzjhlv/heWciacCwszgwXkmNhJm9PhsR8P bqopv1OqyjAmqFcEKxoFoFo/Gu1ZV8dN3EJP5bjp3JcCtwH7yqyeigDSSRmPSHIqS5Ug c4hYi9JQlLYI8ueGu9v3jJDkrvrpSwx1OSI8aPsF60umdhLHP6s9/jPRVz7BdGSXANKg fd0gPkXc3j86NPZTsIh/FBL4rLHA4E9LSOGFj7TLONldPTB2GAmU7JKt49O2OeXVv2OA pUCqy1uYJ9YL2ZolOEcLMVHZJgmM5WVcPFA0C/YZc8NDUN7qlFV5iyjFMGQN4gFP4RIr Lw4g== X-Gm-Message-State: AC+VfDxXf7VztPbb0Lm554fCZiBddPhCxzK9pBYWNnlbjZtFZjb1893O HaP6TPYm0bwS4DuTAXj2Niwg0A== X-Received: by 2002:a17:907:9415:b0:94f:395b:df1b with SMTP id dk21-20020a170907941500b0094f395bdf1bmr20606239ejc.21.1683899935213; Fri, 12 May 2023 06:58:55 -0700 (PDT) Received: from [172.16.240.113] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id mc27-20020a170906eb5b00b00966330021e9sm5399061ejb.47.2023.05.12.06.58.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 06:58:54 -0700 (PDT) From: Luca Weiss Date: Fri, 12 May 2023 15:58:25 +0200 Subject: [PATCH v2 3/4] arm64: dts: qcom: sm6350: add uart1 node MIME-Version: 1.0 Message-Id: <20230421-fp4-bluetooth-v2-3-3de840d5483e@fairphone.com> References: <20230421-fp4-bluetooth-v2-0-3de840d5483e@fairphone.com> In-Reply-To: <20230421-fp4-bluetooth-v2-0-3de840d5483e@fairphone.com> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Andy Gross , Bjorn Andersson , Konrad Dybcio , Conor Dooley Cc: ~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, Luca Weiss X-Mailer: b4 0.12.2 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765697700379415388?= X-GMAIL-MSGID: =?utf-8?q?1765697700379415388?= 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/qcom/sm6350.dtsi index 18c4616848ce..eb46dc2d969b 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 = "operating-points-v2"; + + opp-75000000 { + opp-hz = /bits/ 64 <75000000>; + required-opps = <&rpmhpd_opp_low_svs>; + }; + + opp-100000000 { + opp-hz = /bits/ 64 <100000000>; + required-opps = <&rpmhpd_opp_svs>; + }; + + opp-128000000 { + opp-hz = /bits/ 64 <128000000>; + required-opps = <&rpmhpd_opp_nom>; + }; + }; + pmu { compatible = "arm,armv8-pmuv3"; interrupts = ; @@ -741,6 +760,22 @@ i2c0: i2c@880000 { status = "disabled"; }; + uart1: serial@884000 { + compatible = "qcom,geni-uart"; + reg = <0 0x00884000 0 0x4000>; + clock-names = "se"; + clocks = <&gcc GCC_QUPV3_WRAP0_S1_CLK>; + pinctrl-names = "default"; + pinctrl-0 = <&qup_uart1_cts>, <&qup_uart1_rts>, <&qup_uart1_tx>, <&qup_uart1_rx>; + interrupts = ; + power-domains = <&rpmhpd SM6350_CX>; + operating-points-v2 = <&qup_opp_table>; + interconnects = <&clk_virt MASTER_QUP_CORE_0 0 &clk_virt SLAVE_QUP_CORE_0 0>, + <&aggre1_noc MASTER_QUP_0 0 &clk_virt SLAVE_EBI_CH0 0>; + interconnect-names = "qup-core", "qup-config"; + status = "disabled"; + }; + i2c2: i2c@888000 { compatible = "qcom,geni-i2c"; reg = <0 0x00888000 0 0x4000>; @@ -1726,6 +1761,34 @@ qup_i2c10_default: qup-i2c10-default-state { drive-strength = <2>; bias-pull-up; }; + + qup_uart1_cts: qup-uart1-cts-default-state { + pins = "gpio61"; + function = "qup01"; + drive-strength = <2>; + bias-disable; + }; + + qup_uart1_rts: qup-uart1-rts-default-state { + pins = "gpio62"; + function = "qup01"; + drive-strength = <2>; + bias-pull-down; + }; + + qup_uart1_rx: qup-uart1-rx-default-state { + pins = "gpio64"; + function = "qup01"; + drive-strength = <2>; + bias-disable; + }; + + qup_uart1_tx: qup-uart1-tx-default-state { + pins = "gpio63"; + function = "qup01"; + drive-strength = <2>; + bias-pull-up; + }; }; apps_smmu: iommu@15000000 {