From patchwork Sun Jan 15 22:32:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9517947 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 0BB6F601D8 for ; Sun, 15 Jan 2017 22:46:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8A0D2841C for ; Sun, 15 Jan 2017 22:46:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD84A28438; Sun, 15 Jan 2017 22:46:53 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7FB3D2841C for ; Sun, 15 Jan 2017 22:46:53 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cStZa-0000Od-8m; Sun, 15 Jan 2017 22:46:50 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cStMg-0001Xf-Ke; Sun, 15 Jan 2017 22:33:32 +0000 Received: by mail-wm0-x242.google.com with SMTP id r126so26675668wmr.3; Sun, 15 Jan 2017 14:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KOhidVCtVMdE3T/SN83n9dd2AazaQKWJt9KYJouT1Xc=; b=m6q7LMUpF44w4rxurYmV4cq4WditTYhR+4e0vxPVdPAVykQHsN8S46SKY4sK87q8xd bH9on3Mvwcqj2RLxyLiYIcJYFuUvnveH/xkio6pweq54QoVg6kYX4/7y4Yazg8DqxNZT K3JBAAHCG5GlJYPFQSh2Eqdl5oEmMZntUgFOLiBKpp4OiYexJSXoWCoNQ9FlBgW+hFVb 75UOyIfMQa0qd4Z1s0Cv9cis73Dg2vP60wwqg4LPxHyOg7f6IUaq+tKzJP3YHBhU6zWH Avf6V+xIiSRugEVki00g7BlWmRrLOx2w6XKDwWTimMMTqH3p9271PNwXpuyTUPJKHGtT q8nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KOhidVCtVMdE3T/SN83n9dd2AazaQKWJt9KYJouT1Xc=; b=omwvb6zcf3E2ZQozB2/04N96hsbuz5NxldLq4n4ky5re8dZM4/uC1+0sjfHWD+PrYI YLCa4MvhPUiMgYX6YxNDlasedaJNMImIeGoAkKIwkDNRb8jfWDz9sbmRNLgUSV+IUWD7 g7o7ZR1IyfJ7rhAWjQpe1XnJ2VfrRSvxDv3pfxcRj0pxsP6fOfysLsUCLcVXoV6GdPPy HbEjfYB5Kt2j21OcYVLY6hQ649yl6HaOX9JRyHKXYW6DEhcB9/NZdUu702fsakZvwmHs 9J7o0+rEYklVVOPp1N/Nee8nzTpg7GsKDJA9QZ30VSF6iBkfsWbdyrK3/Tij/ViGp7+3 VNRg== X-Gm-Message-State: AIkVDXI6a6FwO/ZzTZFGB4j3hyhPGEjAC6rZvjzTvToNF/A/RAmztbohIOV2cU+ZwhNbxQ== X-Received: by 10.223.130.232 with SMTP id 95mr23145144wrc.34.1484519590145; Sun, 15 Jan 2017 14:33:10 -0800 (PST) Received: from blackbox.darklights.net (p5DE38740.dip0.t-ipconnect.de. [93.227.135.64]) by smtp.googlemail.com with ESMTPSA id a186sm24182515wmh.1.2017.01.15.14.33.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jan 2017 14:33:09 -0800 (PST) From: Martin Blumenstingl To: linux-serial@vger.kernel.org, linux-amlogic@lists.infradead.org, jslaby@suse.com, gregkh@linuxfoundation.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH 4/4] ARM64: dts: meson-gxbb-vega-s95: enable the Bluetooth module Date: Sun, 15 Jan 2017 23:32:55 +0100 Message-Id: <20170115223255.10350-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170115223255.10350-1-martin.blumenstingl@googlemail.com> References: <20170115223255.10350-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170115_143330_842773_446ED849 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Martin Blumenstingl , catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, 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 This takes the Bluetooth module out of reset (the reset line is connected to GPIOX_20) and enables uart_A which is used to configure the module. This is common for all Vega S95 boards. The device can then be initialized by running the hciattach tool: hciattach -s115200 /dev/ttyAML1 bcm43xx 2000000 flow - Signed-off-by: Martin Blumenstingl Tested-by: Andreas Färber --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi index ab497126c9a3..9e0a13b1ac93 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi @@ -47,6 +47,7 @@ aliases { serial0 = &uart_AO; + serial1 = &uart_A; }; chosen { @@ -100,6 +101,14 @@ }; }; +/* This is connected to the Bluetooth module of the wifi/BT combo chip: */ +&uart_A { + status = "okay"; + pinctrl-0 = <&uart_a_pins &uart_a_cts_rts_pins>; + pinctrl-names = "default"; + uart-has-rtscts; +}; + &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>;