From patchwork Tue Aug 23 05:58:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9294999 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C15CE607F0 for ; Tue, 23 Aug 2016 06:01:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B29AA287D1 for ; Tue, 23 Aug 2016 06:01:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A749F289E3; Tue, 23 Aug 2016 06:01:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3AEFD287D1 for ; Tue, 23 Aug 2016 06:01:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bc4lJ-00055a-1K; Tue, 23 Aug 2016 06:00:37 +0000 Received: from forward11h.cmail.yandex.net ([87.250.230.153]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bc4kj-0002rw-T5 for linux-arm-kernel@lists.infradead.org; Tue, 23 Aug 2016 06:00:11 +0000 Received: from smtp2m.mail.yandex.net (smtp2m.mail.yandex.net [77.88.61.129]) by forward11h.cmail.yandex.net (Yandex) with ESMTP id 6CAD32100B; Tue, 23 Aug 2016 08:59:38 +0300 (MSK) Received: from smtp2m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2m.mail.yandex.net (Yandex) with ESMTP id CE0DA2300C4A; Tue, 23 Aug 2016 08:59:30 +0300 (MSK) Received: by smtp2m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 0Jk7qLPZ9h-xJ0C4DED; Tue, 23 Aug 2016 08:59:29 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1471931969; bh=eBh719zRQLIZSyQelR/B6lSjuQFgevm5Pvd97cIN4kc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=t9m4voMSFpNnbeOAdJuaTu8sGwnCWIi6IbFFbfDR8nunrTZ7T3KfMMBpiXP0cHJhU XaTbdbYB3qkJf6ugZan+GbEZS1fa48EZNxDnK1jwfg7IKLf9NmDRTu/HzF9f5iDvoc KhPD2CVDhxnVm0vDSuYld42uRYke+gl2XOQycFwA= Authentication-Results: smtp2m.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: FR X-Yandex-Suid-Status: 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 0, 1 1130000036118848 From: Icenowy Zheng To: Russell King , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Hans de Goede Subject: [PATCH 2/2] ARM: dts: sun8i: Add extra UART pinmux settings for A23/33 Date: Tue, 23 Aug 2016 13:58:26 +0800 Message-Id: <20160823055826.20591-2-icenowy@aosc.xyz> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160823055826.20591-1-icenowy@aosc.xyz> References: <20160823055826.20591-1-icenowy@aosc.xyz> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160822_230002_622257_12A41255 X-CRM114-Status: UNSURE ( 7.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Rob Herring , Icenowy Zheng , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP A23/33 have 4 UART controllers outside PRCM. However, the devicetree used to mentioned only UART0's pinmux settings. Some extra UART controllers have RTS/CTS, and is suitable for using as bluetooth UART controller. Add the pinmux settings for the UART controller, to make use of the bluetooth function of some tablets. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-a23-a33.dtsi | 56 ++++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/sun8i-a23.dtsi | 7 +++++ 2 files changed, 63 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/arch/arm/boot/dts/sun8i-a23-a33.dtsi index 7e05e09..89ea479 100644 --- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi +++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi @@ -361,6 +361,62 @@ allwinner,pull = ; }; + uart1_pins_a: uart1@0 { + allwinner,pins = "PD10", "PD11"; + allwinner,function = "uart1"; + allwinner,drive = ; + allwinner,pull = ; + }; + + uart1_pins_cts_rts_a: uart1-cts-rts@1 { + allwinner,pins = "PD12", "PD13"; + allwinner,function = "uart1"; + allwinner,drive = ; + allwinner,pull = ; + }; + + uart1_pins_b: uart1@1 { + allwinner,pins = "PG6", "PG7"; + allwinner,function = "uart1"; + allwinner,drive = ; + allwinner,pull = ; + }; + + uart1_pins_cts_rts_b: uart1-cts-rts@0 { + allwinner,pins = "PG8", "PG9"; + allwinner,function = "uart1"; + allwinner,drive = ; + allwinner,pull = ; + }; + + uart2_pins_a: uart2@0 { + allwinner,pins = "PB0", "PB1"; + allwinner,function = "uart2"; + allwinner,drive = ; + allwinner,pull = ; + }; + + uart2_pins_cts_rts_a: uart2-cts-rts@1 { + allwinner,pins = "PB2", "PB3"; + allwinner,function = "uart2"; + allwinner,drive = ; + allwinner,pull = ; + }; + + uart3_pins_a: uart3@0 { + allwinner,pins = "PH6", "PH7"; + allwinner,function = "uart3"; + allwinner,drive = ; + allwinner,pull = ; + }; + + uart3_pins_cts_rts_a: uart3-cts-rts@1 { + allwinner,pins = "PH8", "PH9"; + allwinner,function = "uart3"; + allwinner,drive = ; + allwinner,pull = ; + }; + mmc0_pins_a: mmc0@0 { allwinner,pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5"; diff --git a/arch/arm/boot/dts/sun8i-a23.dtsi b/arch/arm/boot/dts/sun8i-a23.dtsi index 92e6616..6b76580 100644 --- a/arch/arm/boot/dts/sun8i-a23.dtsi +++ b/arch/arm/boot/dts/sun8i-a23.dtsi @@ -123,4 +123,11 @@ interrupts = , , ; + + uart3_pins_b: uart3@0 { + allwinner,pins = "PD8", "PD9"; + allwinner,function = "uart3"; + allwinner,drive = ; + allwinner,pull = ; + }; };