From patchwork Sun Jan 15 22:32:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9517901 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 0CE88601B7 for ; Sun, 15 Jan 2017 22:33:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1E3028410 for ; Sun, 15 Jan 2017 22:33:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C51D728428; Sun, 15 Jan 2017 22:33:32 +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 81A4D2841C for ; Sun, 15 Jan 2017 22:33:32 +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 1cStMh-0001al-C8; Sun, 15 Jan 2017 22:33:31 +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 1cStMc-0001Xe-7g; Sun, 15 Jan 2017 22:33:27 +0000 Received: by mail-wm0-x242.google.com with SMTP id r126so26675588wmr.3; Sun, 15 Jan 2017 14:33:10 -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=0KPyYK9I2YbBPyN6xF2kKNP5p4CNO02VzreDv980sKY=; b=opyLUOE/dAhWq0vlGTgrgmXqvJEyk09/fgYvaKFdyBd1b6D6xbN181p5BenG36vX76 vDSP1FFluxhFW+uan8ScB84NpAJUIIBkJsxXx8jtcKF17VL7vAYyTtoHV893u8BdbtL/ 4J176dPr7mj+qIXN2XrxtFdWNn5/7o3fBsvN1FB/SE0DCxZb0nt/Yv7M6w957AIKrAvG YGdIBnsF3Muyj44r9I1wlL+qe8kYCZTM9HH/INfxcxii32Kav+CXUqXK/aysN07kSaFg HrFUThS2ZDfyz4f2cRfnPejM314wFc+M4jYTjDYtje1UVYMhPCdtTtKNifvxVs/z5hPb MjSQ== 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=0KPyYK9I2YbBPyN6xF2kKNP5p4CNO02VzreDv980sKY=; b=a/XmKFKyCjStByy3gDpK1BpmHSytF9qZSYxJlRA/GKTdYkwIfwhxjW8pvHZpbGVvdW GuQeB/UTXj/1tcMh8ATQX0eafMQNsfkOsDTYQLgxxK68sQOtvDhtQ13N8CdQTTOHdJj2 jptMjsKj8McRpudwx+hVcDhSMN8La9Uv1FHsA6g1sBMUn/x7wqEctSuvPjwOIFOPzUtC y1Ftch1CQWvSQfmhWO5yxsyFk7lMKMXUwHjNrNortpQ5afhjWM8r4caMQT6EqMZAp3L0 UQK5uhOh7IsQ8Fqqa9uJg6Two9AI6sqBarEislICwr1hxpdn1MWGS30wmi+egQJB05Hp oNng== X-Gm-Message-State: AIkVDXIlkgs1gd2t+LpukkeXm7oYbR/VIcVMFXQew4jRTpz8tjoIYLOaTXjqNaZW1PfyTw== X-Received: by 10.223.177.18 with SMTP id l18mr8351150wra.96.1484519588728; Sun, 15 Jan 2017 14:33:08 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jan 2017 14:33:07 -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 3/4] ARM64: dts: meson-gx-p23x-q20x: enable the Bluetooth module Date: Sun, 15 Jan 2017 23:32:54 +0100 Message-Id: <20170115223255.10350-4-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_143326_453251_4A15A14F X-CRM114-Status: GOOD ( 11.10 ) 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_17) and enables uart_A which is used to configure the module. This is identical for all boards which inherit meson-gx-p23x-q20x: - GXL S905D P230 - GXL S905D P231 - GXM S912 Q200 - GXM S912 Q201 To get the HCI interface up one has to install bluez-utils and run: hciattach -s115200 /dev/ttyAML1 bcm43xx 2000000 flow - Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi index 7a078bef04cd..7db779048091 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi @@ -48,6 +48,7 @@ / { aliases { serial0 = &uart_AO; + serial1 = &uart_A; }; chosen { @@ -94,12 +95,21 @@ sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; - reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; + reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>, + <&gpio GPIOX_17 GPIO_ACTIVE_LOW>; clocks = <&wifi32k>; clock-names = "ext_clock"; }; }; +/* 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; +}; + /* This UART is brought out to the DB9 connector */ &uart_AO { status = "okay";