From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=212.18.0.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052115; b=Y8yzJ/JqsJFjVUIJQaREs988Y37NtTL4Drf0iJE/VV7StYmdwi5bPFSs1JVighaeOxgo Rh5BndXYt5izLWWUHZZ4KmJCSEnKZVznKE9Qdk6m+AhPF1zIHshsP4mh48TyXRWSGtlZh xI/VVH7L4AzyoRzjlQcqALgeN346YSrlutjPpoLc/Z+fdUtoTdjBM+uTUxXZi1cXppuUa +G5z8umfBEyaJPiMcJOPT5m4EpUge8Xen/v+afAGRQA+wjATXgskluuYj6aGzRzorDslp EYkdidxuortXIY7KFlbNWbL/RjPk+cKsEEOjdUkhRSBKCEibt0WG6pFN8Jo8UStI8lw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796052115; h=DMARC-Filter:Received:DKIM-Signature:Received:X-Auth-Info:Received: Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Transfer-Encoding; bh=B2H1wjockQAGyOmkXD0vnJMcGO5rHir4cjSrh4SrL+k=; b=mk38ZrreosBPb9Q9e8etfVmgQ2Ekt1JKJoy8Ugu/jgjKkqOmesRUmZAfRX8AbLhz40Ml gB4TGfUFE2Q6QZfDdrkmdjREq/niLJda7yrRlU2VeiGsCf5eEX/LhTO2qtjuoHTZKbXd2 Xxeaz9UmJWea7Tzz89ElmE4YLEb8jYsTDkB8TiaVKT7PpZseJ1cMwAR33HNBn9e/DsrTo 47DuJycLCP78HLeCJiqqN/lNywwn7/nsmQzLDRvLHvggcg+30fJSrRrCjieN86pxC9ekh JAUUBhlcYEVNVDg1ysk5dP4s1c7T3SJA2ZUXCdX4n2hDXSr9TAUYZMP7gFg5/pakWSA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=muenchen-mail.de; spf=pass smtp.mailfrom=muenchen-mail.de; dkim=pass header.d=muenchen-mail.de header.i=@muenchen-mail.de header.a=rsa-sha256 header.s=r1 header.b=tY9dQ653; arc=none smtp.remote-ip=212.18.0.10 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 691EC606A33B; Mon, 30 Nov 2026 15:21:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 691EC606A33B Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=muenchen-mail.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=muenchen-mail.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=muenchen-mail.de header.i=@muenchen-mail.de header.a=rsa-sha256 header.s=r1 header.b=tY9dQ653 Received: from mail-out.m-online.net (localhost [127.0.0.1]) by mail-out.m-online.net (Postfix) with ESMTP id 4jdSRY2N1wz1sQ4F; Mon, 30 Nov 2026 16:21:45 +0100 (CET) DKIM-Signature: a=rsa-sha256; bh=B2H1wjockQAGyOmkXD0vnJMcGO5rHir4cjSrh4SrL+k=; c=relaxed/relaxed; d=muenchen-mail.de; h=Date:From:To:Message-ID:Subject; s=r1; t=1796052105; v=1; b=tY9dQ653tu8NUV354leEJbqa3RQ0SkHq7kr7ZG+YiUSn9ZZ9t24Gh/kLLi+Q15FC xbkkvJEva4HTtTj25j18Jh+utLlCnar6or3tlMNVXt/yMQFQ3BhUeoTTlDgxSjTU XDhFB1wH2CqW5be+r7XBXtldpFutu2bRKseLrdI7AzNdvJPfEoymZQJ/DVQNKQlg b53fu0sKORQzrzXghiYf3mzjqcNzi53KaK+cgxNYG9KNDOetyEPSKoJ6hCzsm7WJ 6a20ENI1WCxbvSssKUB8haBbcYJxpZtyJbH+nUpfsu68wnZkWOtUrkAuvkBlf8oL I5uxarYyzpAnuyvUeq7dBQ== Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4jdSRW4DnFz1sQ4D; Mon, 30 Nov 2026 16:21:43 +0100 (CET) X-Auth-Info: D4MEIjDlkrlFSdwtY27N+kcPC2ppGrpyT0M3hRPLAR2/zRg0C2Hgmj5Akw+yA7Zo Received: from wiesel.intern (ppp-212-114-182-19.dynamic.mnet-online.de [212.114.182.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA id 4jdSRT03q3z1qqlR; Mon, 30 Nov 2026 16:21:40 +0100 (CET) Received: from murmel.intern (unknown [IPv6:fdea:9b79:8984:1:bc7f:36b8:d897:ad34]) by wiesel.intern (Postfix) with ESMTP id 8B64A79A077B; Mon, 30 Nov 2026 16:21:40 +0100 (CET) From: Thomas Gerner To: Marcel Holtmann , Luiz Augusto von Dentz , Drew Fustini , Guo Ren , Fu Wei , Rob Herring , Krzysztof Kozlowski Cc: Thomas Gerner , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v3 2/2] riscv: dts: thead: Bluetooth: Enable bt on BeagleV-Ahead Date: Mon, 30 Nov 2026 16:20:51 +0100 Message-ID: <20261130152100.164892-3-thomas.gerner@muenchen-mail.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261130152100.164892-1-thomas.gerner@muenchen-mail.de> References: <20261130152100.164892-1-thomas.gerner@muenchen-mail.de> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On the BeagleV-Ahead the bluetooth module of the Ampak AP6203BM is identified by the btbcm driver as BCM4362A2. The module is connected by UART4, several gpio pins and an I2S interface. The I2S is not yet used as there is no driver. It may be added in a later patch. Signed-off-by: Thomas Gerner --- Changes in v3: - fix some spaces and tabs found by checkpatch - As suggested by Drew Fustini use regulator names from the board schema - Use regulator properties which fits to the board schema Changes in v2: - use default pinctrl definition for bluetooth in and out pins .../boot/dts/thead/th1520-beaglev-ahead.dts | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts index e16484a47653..0c2581897a0b 100644 --- a/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts +++ b/arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts @@ -76,6 +76,22 @@ led-5 { }; }; + reg_dvdd18_ap: regulator-dvdd18-ap { + compatible = "regulator-fixed"; + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "dvdd18_ap"; + }; + + reg_vdd_3v3: regulator-vdd-3v3 { + compatible = "regulator-fixed"; + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vdd_3v3"; + }; + hdmi-connector { compatible = "hdmi-connector"; type = "d"; @@ -152,6 +168,28 @@ led-pins { }; &padctrl0_apsys { + bluetooth_pins: bluetooth-0 { + in-pins { + bias-disable; + drive-strength = <1>; + function = "gpio"; + input-enable; + input-schmitt-enable; + pins = "GPIO2_30"; + slew-rate = <0>; + }; + + out-pins { + bias-disable; + drive-strength = <3>; + input-disable; + input-schmitt-disable; + pins = "SDIO1_DETN", /* GPIO2_29 */ + "SDIO1_WPRTN"; /* GPIO2_28 */ + slew-rate = <0>; + }; + }; + gmac0_pins: gmac0-0 { tx-pins { pins = "GMAC0_TX_CLK", @@ -268,6 +306,30 @@ reg-on-pins { }; }; +&padctrl1_apsys { + uart4_pins: uart4-0 { + rx-pins { + bias-disable; + drive-strength = <1>; + function = "uart"; + input-enable; + pins = "UART4_RXD", "UART4_CTSN"; + input-schmitt-enable; + slew-rate = <0>; + }; + + tx-pins { + bias-disable; + drive-strength = <3>; + function = "uart"; + input-disable; + pins = "UART4_TXD", "UART4_RTSN"; + input-schmitt-disable; + slew-rate = <0>; + }; + }; +}; + &sdio0 { bus-width = <4>; max-frequency = <198000000>; @@ -314,3 +376,25 @@ &uart0 { pinctrl-0 = <&uart0_pins>; status = "okay"; }; + +&uart4 { + pinctrl-0 = <&uart4_pins>; + pinctrl-names = "default"; + uart-has-rtscts; + + status = "okay"; + + bluetooth { + compatible = "brcm,bcm4329-bt"; + device-wakeup-gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; + interrupt-parent = <&gpio2>; + interrupts = <30 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "host-wakeup"; + max-speed = <921600>; + pinctrl-0 = <&bluetooth_pins>; + pinctrl-names = "default"; + shutdown-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* BT-REG-ON */ + vbat-supply = <®_vdd_3v3>; + vddio-supply = <®_dvdd18_ap>; + }; +}; -- 2.53.0