From nobody Tue Jun 16 05:02:01 2026 Received: from courrier.aliel.fr (courrier.aliel.fr [65.21.61.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A829A38E11E; Thu, 16 Apr 2026 08:55:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.21.61.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776329713; cv=none; b=Qyy44pXaM5eWzIN8gs0EqcJmR2w0vbNyKzrCViLmtPWnHDdpEE3C11EiJw2+ggmPhHGEY8OLoPB1hqnkAeSwBGSNd1wBcwUf+cP9m4M53NRCafdGR6v9T+vLQUluLtHmlAD2bViXDMWESrIDgXFpx+xfG3NTasQFuxFcya5A2O8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776329713; c=relaxed/simple; bh=lyciA6D1svothfyq1FxMYi4aiIW3PQdO74tZM2hpXA4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dZf8JD7wH5pQc2CKRxL0i1+iWpfLaZfoTHMClSu6jjdWF1C82RSUFroYa8Pif30KVCvCTxYQuUOj72laSkVhduma/LTg1tRse2zdCls6iRY5qTZVIsJ5lrObNto5FQKOvf9yOW66kKYsMJa4UJ81Jao9WQ/FcJGiwyZ7B44ZZLE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=aliel.fr; spf=pass smtp.mailfrom=aliel.fr; dkim=pass (1024-bit key) header.d=aliel.fr header.i=@aliel.fr header.b=kwsEX8G/; arc=none smtp.client-ip=65.21.61.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=aliel.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aliel.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=aliel.fr header.i=@aliel.fr header.b="kwsEX8G/" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776329704; bh=lyciA6D1svothfyq1FxMYi4aiIW3PQdO74tZM2hpXA4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=kwsEX8G/0e7NI3BHZeK+D3umxmq1QR8UBHlip/pFiUW+Q2cZtUooIg/iV26BHQk5V RHiTIily0lJgcY7a2cmWyYGlbRoYYaM3rmz3V0/CxZPSvyKgg3lI3rPPDj61skPzPv lpaFtZNudERhezoXTNi84fiQJNL8XWUyzVkdeOtM= Date: Thu, 16 Apr 2026 10:54:40 +0200 Subject: [PATCH v2 1/3] arm64: dts: amlogic: t7: Add uart_c pinctrl pins group Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260416-add-bluetooth-t7-vim4-v2-1-9a57098fd055@aliel.fr> References: <20260416-add-bluetooth-t7-vim4-v2-0-9a57098fd055@aliel.fr> In-Reply-To: <20260416-add-bluetooth-t7-vim4-v2-0-9a57098fd055@aliel.fr> To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ronald Claveau X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openssh-sha256; t=1776329702; l=985; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=lyciA6D1svothfyq1FxMYi4aiIW3PQdO74tZM2hpXA4=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QFCzFomjZs+CMkB5MNCBKH0DvAIST7/IEQ4XXSET+/GzGlbYz9T79cA7A0210rhPfdJtvmz9RyX 7aGJ3fo/OMQo= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openssh; fpr=SHA256:kch4osYZ6A1BrPps5AUs6KnfdE2wm4ocMtyTc8TmZMs Add the pin multiplexing configuration for UART C (TX, RX, CTS, RTS) in the T7 SoC pinctrl node, required to route the UART C signals through the correct pads before enabling the controller. Signed-off-by: Ronald Claveau Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/= dts/amlogic/amlogic-t7.dtsi index 7fe72c94ed623..4a55d9641bc9b 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -553,6 +553,18 @@ mux { bias-pull-up; }; }; + + uart_c_pins: uart-c { + mux { + groups =3D "uart_c_tx", + "uart_c_rx", + "uart_c_cts", + "uart_c_rts"; + bias-pull-up; + output-high; + function =3D "uart_c"; + }; + }; }; =20 gpio_intc: interrupt-controller@4080 { --=20 2.49.0 From nobody Tue Jun 16 05:02:01 2026 Received: from courrier.aliel.fr (courrier.aliel.fr [65.21.61.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A64238AC9D; Thu, 16 Apr 2026 08:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.21.61.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776329713; cv=none; b=OgzoFtwJWl9zNkT+Or2FGgngU+ktxpNhpNJCmfKihmHiZHlJFtTURPQJGLfTL0bDCaK6vnTHPBneFmM4HxVK6fObg+83v4kgco++IdsAHCFSUOA4v7dTBaMh1JACq+tpTPDnct1rvTu00jdtqb1DSLV0jMxSEDU0VxmNZVENpSA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776329713; c=relaxed/simple; bh=1WmAgn/FyzsKhMv+YbDwDX6oHzK8g6LX2ZrR/tJNlRw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NGcX2TU6FuuBiuqPZb19FqJ/Qa4w9usWLeJ3TRfKW81UVk73xr/DpNDTsA2tDyTFx9D34WY81soIXbr8AIOmTSN0eaMAskKzwLZEqFJJmtFFgW6FndI8YJQMjRJigvSwjTd8GIEa8Z2B8aG1NwjCdZ8FZr2Dh2utKgho1l7Nsjk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=aliel.fr; spf=pass smtp.mailfrom=aliel.fr; dkim=pass (1024-bit key) header.d=aliel.fr header.i=@aliel.fr header.b=Ap0mdqLX; arc=none smtp.client-ip=65.21.61.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=aliel.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aliel.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=aliel.fr header.i=@aliel.fr header.b="Ap0mdqLX" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776329705; bh=1WmAgn/FyzsKhMv+YbDwDX6oHzK8g6LX2ZrR/tJNlRw=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Ap0mdqLXPoVHLRYCl76YKsNpDbZn5YfKfldzTvMxIrM7QCFa/F6DBeyGvtdwPUBpK SCjkdPkmnXR9qeUFo8qglUFi1W9sAdOYRnI27FQbvm1LCwkXAvz/25QQc/nFVkYliO mhHEKyBfViG3PH41bV0exMQrAephqxwwG2dck5ek= Date: Thu, 16 Apr 2026 10:54:41 +0200 Subject: [PATCH v2 2/3] arm64: dts: amlogic: t7: Add UART controllers nodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260416-add-bluetooth-t7-vim4-v2-2-9a57098fd055@aliel.fr> References: <20260416-add-bluetooth-t7-vim4-v2-0-9a57098fd055@aliel.fr> In-Reply-To: <20260416-add-bluetooth-t7-vim4-v2-0-9a57098fd055@aliel.fr> To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ronald Claveau X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openssh-sha256; t=1776329702; l=3650; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=1WmAgn/FyzsKhMv+YbDwDX6oHzK8g6LX2ZrR/tJNlRw=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QLjJHrGlL9+ss4EoBdJB4v7Nr8YPXCzxy4YdWepYFV6zwoJmZ90W7XRHvjUGMLmLsmcyj2D2FJg dP9stuSNnnQQ= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openssh; fpr=SHA256:kch4osYZ6A1BrPps5AUs6KnfdE2wm4ocMtyTc8TmZMs Add device tree nodes for UART B through F (serial@7a000 to serial@82000), completing the UART controller description for the T7 SoC. Each node includes the peripheral clock. While at it, move the uart_a node to its correct position in the bus address order (0x78000) to comply with the DT requirement that nodes be sorted by their reg address. Complete the uart_a node with its peripheral clock (CLKID_SYS_UART_A) and the associated clock-names, matching the vendor default clock assignment, consistent with the other UART nodes. Signed-off-by: Ronald Claveau Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 61 +++++++++++++++++++++++++= ---- 1 file changed, 54 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/= dts/amlogic/amlogic-t7.dtsi index 4a55d9641bc9b..81c26b1e3e7a4 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -577,13 +577,6 @@ gpio_intc: interrupt-controller@4080 { <10 11 12 13 14 15 16 17 18 19 20 21>; }; =20 - uart_a: serial@78000 { - compatible =3D "amlogic,t7-uart", "amlogic,meson-s4-uart"; - reg =3D <0x0 0x78000 0x0 0x18>; - interrupts =3D ; - status =3D "disabled"; - }; - gp0: clock-controller@8080 { compatible =3D "amlogic,t7-gp0-pll"; reg =3D <0x0 0x8080 0x0 0x20>; @@ -713,6 +706,60 @@ pwm_ao_cd: pwm@60000 { status =3D "disabled"; }; =20 + uart_a: serial@78000 { + compatible =3D "amlogic,t7-uart", "amlogic,meson-s4-uart"; + reg =3D <0x0 0x78000 0x0 0x18>; + interrupts =3D ; + clocks =3D <&xtal>, <&clkc_periphs CLKID_SYS_UART_A>, <&xtal>; + clock-names =3D "xtal", "pclk", "baud"; + status =3D "disabled"; + }; + + uart_b: serial@7a000 { + compatible =3D "amlogic,t7-uart", "amlogic,meson-s4-uart"; + reg =3D <0x0 0x7a000 0x0 0x18>; + interrupts =3D ; + clocks =3D <&xtal>, <&clkc_periphs CLKID_SYS_UART_B>, <&xtal>; + clock-names =3D "xtal", "pclk", "baud"; + status =3D "disabled"; + }; + + uart_c: serial@7c000 { + compatible =3D "amlogic,t7-uart", "amlogic,meson-s4-uart"; + reg =3D <0x0 0x7c000 0x0 0x18>; + interrupts =3D ; + clocks =3D <&xtal>, <&clkc_periphs CLKID_SYS_UART_C>, <&xtal>; + clock-names =3D "xtal", "pclk", "baud"; + status =3D "disabled"; + }; + + uart_d: serial@7e000 { + compatible =3D "amlogic,t7-uart", "amlogic,meson-s4-uart"; + reg =3D <0x0 0x7e000 0x0 0x18>; + interrupts =3D ; + clocks =3D <&xtal>, <&clkc_periphs CLKID_SYS_UART_D>, <&xtal>; + clock-names =3D "xtal", "pclk", "baud"; + status =3D "disabled"; + }; + + uart_e: serial@80000 { + compatible =3D "amlogic,t7-uart", "amlogic,meson-s4-uart"; + reg =3D <0x0 0x80000 0x0 0x18>; + interrupts =3D ; + clocks =3D <&xtal>, <&clkc_periphs CLKID_SYS_UART_E>, <&xtal>; + clock-names =3D "xtal", "pclk", "baud"; + status =3D "disabled"; + }; + + uart_f: serial@82000 { + compatible =3D "amlogic,t7-uart", "amlogic,meson-s4-uart"; + reg =3D <0x0 0x82000 0x0 0x18>; + interrupts =3D ; + clocks =3D <&xtal>, <&clkc_periphs CLKID_SYS_UART_F>, <&xtal>; + clock-names =3D "xtal", "pclk", "baud"; + status =3D "disabled"; + }; + sd_emmc_a: mmc@88000 { compatible =3D "amlogic,t7-mmc", "amlogic,meson-axg-mmc"; reg =3D <0x0 0x88000 0x0 0x800>; --=20 2.49.0 From nobody Tue Jun 16 05:02:01 2026 Received: from courrier.aliel.fr (courrier.aliel.fr [65.21.61.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C06E538F938; Thu, 16 Apr 2026 08:55:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.21.61.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776329715; cv=none; b=pvjX5TMXp4ohwilmmYTClpihM4wjLtoswuDswLufCMbbBTUPSNoVBYaRQeV1hMu1DQGhwyYKMAXn5PlBzpZfyrxATY3a/ypiuLCwn/kFFvJWSQt/DyIpMMjLxIQwcC67oXe0isJtLzBPLj5mzAh2YZ4Q7LJqwAcLLgCf1LSAUCw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776329715; c=relaxed/simple; bh=5dwFJADDv48q8TA8PHHEBjFP0VQQwZ8DdLYNIrtO1DM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ti5psuCcsz/bkLDB8mJh6tm4+vzTcPaQVipkhkeNd5dfMsXDZRtjnieXfkZc9ooA6c7XhdkbYnovFTbJ2frGthXgWsgz9ZfqGNYKQbWcUSwX9dRDrcS5yKjNs+92udo3wIIaLjOg20FwxdGE0LPvJ3Owy91Rf6S+pMtoY8ioRJc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=aliel.fr; spf=pass smtp.mailfrom=aliel.fr; dkim=pass (1024-bit key) header.d=aliel.fr header.i=@aliel.fr header.b=Iq5somVu; arc=none smtp.client-ip=65.21.61.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=aliel.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aliel.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=aliel.fr header.i=@aliel.fr header.b="Iq5somVu" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776329705; bh=5dwFJADDv48q8TA8PHHEBjFP0VQQwZ8DdLYNIrtO1DM=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Iq5somVuCyWlQilOgH/ZxtHnN1jxREwHZzBPSmAyaSelKk9tIpqVt/uegn+SV8cwh Md5ztRSjNk2xngY1fIRyh1KvQR+Xgki4+f3IdYnZ+DyYAAYINiz1s3mIyQ0O7mJnbd KlLvvRrbcqICEqPNHRdfFvSNLJb1IHJvoh4DSlHk= Date: Thu, 16 Apr 2026 10:54:42 +0200 Subject: [PATCH v2 3/3] arm64: dts: amlogic: t7: khadas-vim4: Enable Bluetooth Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260416-add-bluetooth-t7-vim4-v2-3-9a57098fd055@aliel.fr> References: <20260416-add-bluetooth-t7-vim4-v2-0-9a57098fd055@aliel.fr> In-Reply-To: <20260416-add-bluetooth-t7-vim4-v2-0-9a57098fd055@aliel.fr> To: Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ronald Claveau X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openssh-sha256; t=1776329703; l=1625; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=5dwFJADDv48q8TA8PHHEBjFP0VQQwZ8DdLYNIrtO1DM=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QIXwE2g0xgSsmV0hMeQZGNLsN5zJJxnJdIYbj2GsE+ydRVdwZz4D3k2FSgT+Uoz5xMvr/XOJKQx xERIPUljPBwc= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openssh; fpr=SHA256:kch4osYZ6A1BrPps5AUs6KnfdE2wm4ocMtyTc8TmZMs Enable UART C on the Khadas VIM4 board and attach the BCM43438 compatible Bluetooth controller to it. The node configures the RTS/CTS hardware flow control, the associated pinmux, the power supplies (vddao_3v3 and vddao_1v8), the 32 kHz LPO clock shared with the wifi32k fixed clock, and the GPIO lines used for host wakeup, device wakeup and shutdown. Remove clocks and clock-names for UART A, as they are defined in DTSI. Signed-off-by: Ronald Claveau --- .../dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 21 +++++++++++++++++= ++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts = b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts index 69d6118ba57e7..8ea7ae609fbd5 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts @@ -250,6 +250,23 @@ &sd_emmc_c { =20 &uart_a { status =3D "okay"; - clocks =3D <&xtal>, <&xtal>, <&xtal>; - clock-names =3D "xtal", "pclk", "baud"; +}; + +&uart_c { + status =3D "okay"; + pinctrl-0 =3D <&uart_c_pins>; + pinctrl-names =3D "default"; + uart-has-rtscts; + + bluetooth { + compatible =3D "brcm,bcm43438-bt"; + shutdown-gpios =3D <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios =3D <&gpio GPIOX_18 GPIO_ACTIVE_HIGH>; + device-wakeup-gpios =3D <&gpio GPIOX_19 GPIO_ACTIVE_HIGH>; + max-speed =3D <3000000>; + clocks =3D <&wifi32k>; + clock-names =3D "lpo"; + vbat-supply =3D <&vddao_3v3>; + vddio-supply =3D <&vddao_1v8>; + }; }; --=20 2.49.0