From patchwork Sun Oct 16 14:33:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 3022 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1041559wrs; Sun, 16 Oct 2022 07:36:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5OycbuJWBEIbJHqbdTFN+YwmEtErMO+R7OSZyucb1SYH/VrOUcMkiMrdH970dm5PO/i0/w X-Received: by 2002:a17:902:f681:b0:182:bd2c:26ee with SMTP id l1-20020a170902f68100b00182bd2c26eemr7333697plg.59.1665930960989; Sun, 16 Oct 2022 07:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665930960; cv=none; d=google.com; s=arc-20160816; b=QGzBhNsXjd92u0lck+7bz8Ez6cdauwWC5aOVuYbll0/elrme0U8VyWc3zw7lt9/k26 q30zLFXcvMJ/ElGeoaYyFX3mIAZR+VhpjnQHrWXBVCoJnIXC18JLcxALhTaMc1UizgLr u+xVsOvpi1puxareVJHbWOv8R8K1eC/zAD6tLPr3E5O72JlO1WM+DUuODMCfnlzfAUDj yJQriLovK9gxnggf6g9258kVW2OjhoNkhG0UTlmzXP16qX9rivAIWi9OeGtM+D0P/2dg nf2gXI7P6nmvypivm9aQ7gHz+DjMb2xfMshuIpo7XbWuCql1SXa1Q0ohkzNie62lUYBQ 8+sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=WnxtVrYBr40QFa/agfVuW7lN496SFcxiF7zdspp9/LY=; b=HwCv2RDZeduAzuYydbpNQa5MdqLxeME4tRR/WjJkb0dJcM6TjBy/EerHtTb+30+byN NfTTUtfzp1tJuAFmo+KWraV0D4m3fUa+1It+CuBAY+qBUWhE52vXWtXaCVy1BFysi2Ky R3AnWCzQTk26SDXFCRv7yMrLO9flPUmIBinJdCLTodgG4x4x/KBVDmavYM7SkB6TGio2 8tR7B9g/HXBkFI3a+TRHLXV4pWLosBMyk+RIEeUzxR7kHFZTH4PuK1xn58RNia08onvG EC8nA0Kse9wTbB8e8LEIT3DsS92g366Dd3TsVO1iWiezpTf36kDcSPh8yOUsaE96c253 8rJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@connolly.tech header.s=protonmail header.b=PflAHFt2; 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=connolly.tech Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q192-20020a632ac9000000b0046af2452ed8si8185165pgq.766.2022.10.16.07.35.48; Sun, 16 Oct 2022 07:36:00 -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=@connolly.tech header.s=protonmail header.b=PflAHFt2; 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=connolly.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229737AbiJPOdr (ORCPT + 99 others); Sun, 16 Oct 2022 10:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbiJPOdq (ORCPT ); Sun, 16 Oct 2022 10:33:46 -0400 Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1725D31FB9; Sun, 16 Oct 2022 07:33:46 -0700 (PDT) Date: Sun, 16 Oct 2022 14:33:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1665930824; x=1666190024; bh=WnxtVrYBr40QFa/agfVuW7lN496SFcxiF7zdspp9/LY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=PflAHFt2bdd3iQms26MO3YsiI0fVkHv3f9Ius6HbxbVvIPtGHiidwGfP7tplXnnYN 7Z7DYt85V5zPhYaxSkTZXHfawQpu/oieWf+GgX+FQgwLJF6uTQpicbyizaenWz5+ET tTaUpquiICQNVOvUy0S7b6MElxobj0OX9Y4wIZis= To: caleb@connolly.tech From: Caleb Connolly Cc: Dmitry Baryshkov , Andy Gross , Bjorn Andersson , devicetree@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring Subject: [PATCH 1/7] arm64: dts: qcom: sdm845: commonize bluetooth UART pinmux Message-ID: <20221016143300.1738550-2-caleb@connolly.tech> In-Reply-To: <20221016143300.1738550-1-caleb@connolly.tech> References: <20221016143300.1738550-1-caleb@connolly.tech> Feedback-ID: 10753939:user:proton MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,TO_EQ_FM_DIRECT_MX autolearn=no 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?1746855223573512026?= X-GMAIL-MSGID: =?utf-8?q?1746855223573512026?= The 4-pin configuration for UART6 is used for all or almost all SDM845 devices with built in Bluetooth. Move the pinmux configuration to sdm845.dtsi in preparation to be removed from individual devices in future patches. Suggested-by: Dmitry Baryshkov Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) -- 2.38.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index f0e286715d1b..8c69942b969b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2971,6 +2971,29 @@ pinmux { }; }; + qup_uart6_4pin: qup-uart6-4pin { + pinmux { + pins = "gpio45", "gpio46", "gpio47", "gpio48"; + function = "qup6"; + }; + + cts { + pins = "gpio45"; + bias-pull-down; + }; + + rts-tx { + pins = "gpio46", "gpio47"; + drive-strength = <2>; + bias-disable; + }; + + rx { + pins = "gpio48"; + bias-pull-up; + }; + }; + qup_uart7_default: qup-uart7-default { pinmux { pins = "gpio95", "gpio96";