From nobody Thu Jun 18 08:17:42 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 09A8E386444; Mon, 20 Apr 2026 11:58:29 +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=1776686312; cv=none; b=tfa6FmpUnsyH+gZh27pKBZRMbnNRi/7P9ND7lojrIt7tXPx/eNLvPTQXNM2mMIJlzVm/Kc89ck/f1S0W5x4Oq8ov+tV3RmmULDsBDQmRZqDmnIwjVoJkan3cMlCwPy7Qus4QN8Xju36E8BSxCwk1RtNR6xi5rBG0HCnMihIy0/4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776686312; c=relaxed/simple; bh=lyciA6D1svothfyq1FxMYi4aiIW3PQdO74tZM2hpXA4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nD4eR6EbRN3SIKZp6rAUmwAChspFuccxqJkE+1rpOm5lEZhT9il9Fjaq6zUZ2yPCl6JfuSOBYoEBXyUk5Va2UJEfN7MS3YCNoLe9RLGNzTjDvXYR34xlIp5KR1pr6wymkYnB8tSuu2UclMcyLFF3oGEAQ48DSJiB5+jsEQC8AlE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=dpm+XCED; arc=none smtp.client-ip=65.21.61.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="dpm+XCED" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776686308; bh=lyciA6D1svothfyq1FxMYi4aiIW3PQdO74tZM2hpXA4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=dpm+XCED6KKE42lYOacYUaSZMwedLU7WM+KkajzWdwy3k8OKdVB8fDglKi/6r792f m4vm9GA4d6Uey+xUOWsn+6wEsLbtKPzj5SDDMn5+FBPBuE8cykOVXmy3VZ0BlyTsQO ytPLuyi5eEmzfV1zhyqQxtBLDW2HgYC1XSun0wLg= Date: Mon, 20 Apr 2026 13:58:09 +0200 Subject: [PATCH v3 1/4] 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: <20260420-add-bluetooth-t7-vim4-v3-1-669cd2530ae5@aliel.fr> References: <20260420-add-bluetooth-t7-vim4-v3-0-669cd2530ae5@aliel.fr> In-Reply-To: <20260420-add-bluetooth-t7-vim4-v3-0-669cd2530ae5@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=1776686305; l=985; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=lyciA6D1svothfyq1FxMYi4aiIW3PQdO74tZM2hpXA4=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QIXP3GgOE1T359EuuEL+ssPLRwBHZFf5VYd7Zwf5tg1+ZcPGtb9cZ3ErTKRQI8EIKrJ05twK2Hu LLRC45H0RPAA= 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 --- 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 Thu Jun 18 08:17:42 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 53FEB39E6FD; Mon, 20 Apr 2026 11:58:30 +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=1776686313; cv=none; b=pj7tX3/vVVRcl7MFmFK2IlkL3csmyfxGn/hX5CMKIQ9yE9LAEDwPmTkTmrG2Alwlx2/hVoy4Njw1jaNjpAo/F2ttWxgSTddfXszMklErMNSjPiCNFmaysyUwxjNJWnG7NYkdJfBpOIX5XqxX9SY1un6a+delCVZehDew/uCPaqs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776686313; 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=a0mHSNRkDnJdjuC22P5G38pUbugJVm25RD3xTyUo0pD0AQVQnL6uV58FKywkmUwsbA6aWuNjRzX/5x/3s63BUnO2Q24DrD7jcubr+qKMvsBA3ezFWbwlIwv4jZcDt+wXienxP/xx8rzYJ18bRc4MsXon9FYh3jLmfKzx5uMEgcE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=Zq0lQpL0; arc=none smtp.client-ip=65.21.61.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="Zq0lQpL0" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776686308; bh=1WmAgn/FyzsKhMv+YbDwDX6oHzK8g6LX2ZrR/tJNlRw=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Zq0lQpL09erDcI35QsWMK54O4QwcsaBe2uGoQdyutNGi53llGlJ21VdkkRI8E9BHv 9brYw4ssMws8HsGwnojT6P6s18STJJ7mAQzwoOOBblzHgAm+yr+9YNrUIkUxukDtxm GDR5d1Hvoe5qWUs25YFedYj+A3xnzliLjTXLnG8g= Date: Mon, 20 Apr 2026 13:58:10 +0200 Subject: [PATCH v3 2/4] 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: <20260420-add-bluetooth-t7-vim4-v3-2-669cd2530ae5@aliel.fr> References: <20260420-add-bluetooth-t7-vim4-v3-0-669cd2530ae5@aliel.fr> In-Reply-To: <20260420-add-bluetooth-t7-vim4-v3-0-669cd2530ae5@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=1776686306; 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 QP01c986XK1M73imz/pawPqggaTpTWUHpjx/8+Yxoykf0MdHPg0ep6+sR3mPTxJBfkWZfnziwOX hld/29NENvAg= 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 Thu Jun 18 08:17:42 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 1EE6F39E6FE; Mon, 20 Apr 2026 11:58:31 +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=1776686314; cv=none; b=GOYV2u5PKSUv82T1260HnTP6+8zOswZQO/p0LSZTPI5j1csIis7qMYZqbpMGLkjr/EPWTgzJF0qFIKeVdZihHhtTjO2fBkmbhuN5k1U4vV7ahWKAJomhZxTUkyAmRZPUve0BOdWh4QBpDRekHPIovgjlH9Vzu4HAP4Wvhmf5PZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776686314; c=relaxed/simple; bh=uZbSyEl+Sxr6uO9AnkOGD8y2uFq03R2x1l1DSja6uPs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OKRghMgRumTYCI1nLG1zNJXPxpV4FP9ZjuT/4i6x3RB+Dy/CUT25Fvzs/xpU+NZGTHltEKrmeW/9M3oaTfIUHQD6mUtS11nnAKwwQfKjUmSOGsKt1LZ82XJH069DuF2EnPVLkS1u+VeI/ZHVwQoQ6tFWAXc/aljVFCeS9NMEvhw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=Le5bi12E; arc=none smtp.client-ip=65.21.61.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="Le5bi12E" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776686309; bh=uZbSyEl+Sxr6uO9AnkOGD8y2uFq03R2x1l1DSja6uPs=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Le5bi12ElraZDjURgaBVgQApD0W2FCoh1e9blkC4h5vZbQ8/whgCLo6psfwSGfXUX +qzaZ8M6VORlXLv5c+t9CJyMJrSRd+UVYGDRsWoXtsVuQsveVNEKVoxZrGyPNlfSSc yEQWU/3sRYROHYrYdIkPYyMsMkYWO1mh1L3sQ+Kk= Date: Mon, 20 Apr 2026 13:58:11 +0200 Subject: [PATCH v3 3/4] arm64: dts: amlogic: t7: khadas-vim4: Remove redundant clocks from UART A 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: <20260420-add-bluetooth-t7-vim4-v3-3-669cd2530ae5@aliel.fr> References: <20260420-add-bluetooth-t7-vim4-v3-0-669cd2530ae5@aliel.fr> In-Reply-To: <20260420-add-bluetooth-t7-vim4-v3-0-669cd2530ae5@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=1776686306; l=734; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=uZbSyEl+Sxr6uO9AnkOGD8y2uFq03R2x1l1DSja6uPs=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QJwMV+8nGkap0JrBgXbWYcIRbe+A0IZ2iLOLsn8GXAF69pzTbCJmK3rcTkc2Ls+/bXTUpwwh/aB gtKa6RfxzaAg= X-Developer-Key: i=linux-kernel-dev@aliel.fr; a=openssh; fpr=SHA256:kch4osYZ6A1BrPps5AUs6KnfdE2wm4ocMtyTc8TmZMs Remove clocks and clock-names for UART A, as they are defined in DTSI. Signed-off-by: Ronald Claveau Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 2 -- 1 file changed, 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..3227ab27de107 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,4 @@ &sd_emmc_c { =20 &uart_a { status =3D "okay"; - clocks =3D <&xtal>, <&xtal>, <&xtal>; - clock-names =3D "xtal", "pclk", "baud"; }; --=20 2.49.0 From nobody Thu Jun 18 08:17:42 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 B9C8939E6FF; Mon, 20 Apr 2026 11:58:31 +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=1776686313; cv=none; b=t6qIqrpQcQk+3yiUOE+w4YBxoDL3JGeAgrFA/UqC5v4umdh+nwdnU3qS640v+E5I9d2nS9MkL3MRNQTlDXy6EudxEzIklKooftUrgYO5fkBLh6mhiLu+y57uDPE6Ny9FFFno9765hdQ5aFsAcxfLppB7pgnMbUka0d+myF0dIv8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776686313; c=relaxed/simple; bh=RBIiK8CES8R9gJcjoYTCoKw0do5/miRgk0+ffcE8qDk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DWOp3Ze91lbgdfq+eaQtxIiOHLHcoyrW1LHrXKGQNAi/u5fqihYgbAJfTiXltbuD/HrgVk2ae9xV6iy0xo8uQySbcLpoOvuZObooxy/6Npd0ZRIWez/IyUtXo9DJX8rSbD8W4nSoeqkerfq+6ccUpW0gXkKbRMG7VJYg322hZmg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=ZerujxtJ; arc=none smtp.client-ip=65.21.61.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="ZerujxtJ" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776686310; bh=RBIiK8CES8R9gJcjoYTCoKw0do5/miRgk0+ffcE8qDk=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=ZerujxtJbGVcHbVY4b8YK784n53CsLLh59fArPvcSdwAYmepXTVLw8kpsRcmGx7kn kG2tgWC6UkR3MAoFl9Ghx5MylUZ2O/xR+jLVZuhugo3/CPT0z6RKMUli7bTsvneZOJ yKa9MFRcwvqiiI6eDHY7GunPVhWSlEx1c4Db2zpk= Date: Mon, 20 Apr 2026 13:58:12 +0200 Subject: [PATCH v3 4/4] 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: <20260420-add-bluetooth-t7-vim4-v3-4-669cd2530ae5@aliel.fr> References: <20260420-add-bluetooth-t7-vim4-v3-0-669cd2530ae5@aliel.fr> In-Reply-To: <20260420-add-bluetooth-t7-vim4-v3-0-669cd2530ae5@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=1776686306; l=1452; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=RBIiK8CES8R9gJcjoYTCoKw0do5/miRgk0+ffcE8qDk=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QEm5UubTT1JeCQxNolsfWdJjOCnekr349lwOC0xs6MPAtNGVHjpQVVaNkgqgpcF6jLzVEElbdXc mEwZ91s4fPww= 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. Signed-off-by: Ronald Claveau --- .../dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts | 19 +++++++++++++++= ++++ 1 file changed, 19 insertions(+) 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 3227ab27de107..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 @@ -251,3 +251,22 @@ &sd_emmc_c { &uart_a { status =3D "okay"; }; + +&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