From nobody Tue Jun 16 02:37:05 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 9672131F997; Mon, 20 Apr 2026 13:54:24 +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=1776693267; cv=none; b=NQeMDjKxvgcRTXIoSg5W2J6o7aXnsSBwZ+/5AB7FzllyyFxLHv8YTL4h7qwGBZEMa7FTvJRBymqscYqbGzLc/AZyBMLbOsMZjzYyc1HOg3osVVeeP2EOmLtEg0QBt0pWaTp51CG1VEPrm0bfFZGGqhPW1NDnJVLtl5WsxT+gftk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776693267; c=relaxed/simple; bh=2xif9DrmN7soyQpQm21uxoFmAmF5UmT4xjhU2FxZ+xY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hB5h4hnvyv9t4os+Im8r45ypJzlJgAsM7hsxg7e4223rQt58Fx7yY0qLNo3CipLPFp8PX3ROIW9cJJrtVFgpA6iwmu6VyNmEJiwl5TnA68qSwIV8UZNLo3qVm4WjMYCDAe1YVbFd/IzZ0lSTJOnIJCgygL0mMyZoheFPc6rnjXA= 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=RdEfQYMB; 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="RdEfQYMB" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776693262; bh=2xif9DrmN7soyQpQm21uxoFmAmF5UmT4xjhU2FxZ+xY=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=RdEfQYMBc7KxHZnntKxysggUJPzqbo6H3R8CcMZNDTZlPe7kNc/dJduE9hslXAn5a 8hbDTwgsZaB30j0yDi+HWzhZTetHpGJFE3gMcXDKptQwriAk0mo4gYZJaZQebwMhoj uldq2vu69zlgOHL/A876rClMTrG7vYsjJFfM94os= Date: Mon, 20 Apr 2026 15:54:02 +0200 Subject: [PATCH v4 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-v4-1-9505df0e7016@aliel.fr> References: <20260420-add-bluetooth-t7-vim4-v4-0-9505df0e7016@aliel.fr> In-Reply-To: <20260420-add-bluetooth-t7-vim4-v4-0-9505df0e7016@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=1776693260; l=1042; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=2xif9DrmN7soyQpQm21uxoFmAmF5UmT4xjhU2FxZ+xY=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QPuqg4yh4nEMBxiZjZbHTCP4zI0FzWHil9LvEk0WtPvvtgxdEAbhBgxzFhUfMQp1jBZ4gCOJr4M CzPuIgQe5HgE= 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. Reviewed-by: Neil Armstrong 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 Tue Jun 16 02:37:05 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 148DA329E5D; Mon, 20 Apr 2026 13:54:25 +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=1776693267; cv=none; b=hi3ExyO62AQJAI1rg5mHDflIZezbk/qH/qbek4OJsxwdTj/DMSLCgX/y6VB8irTW0gP34+CR8Q6vy3mmkmiKyhIgdSaXs2aThAjU9pFWHnmZp6oWacEU9hgXs17LO3YMakvxXPDnmlwMscmcte4zyt5CtRDthcqCNPmdq9U+BMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776693267; c=relaxed/simple; bh=n3WSYCLG98U4QY/QGJ/s1AzIwGndCctZjh3l/sS6VWg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V40mm3/ARiURi5Gjo3f4f1AzRsPKqy0J7+TCjqWDKJL0JPOsuPWLOhpd33QXg1Xyrg6xplHF8RG98TqFlEXwCdxuDNYFQhArJ/yfQ4Tjr5kAkldeWUoLp26Edm8kLkcvorh0buj7ca74mmNqL+fGBrWoFw1NDG0X3qLzItMbUuk= 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=JEamL4jr; 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="JEamL4jr" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776693263; bh=n3WSYCLG98U4QY/QGJ/s1AzIwGndCctZjh3l/sS6VWg=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=JEamL4jrS3hEkksbxfDh4pbl3D19ODNZHL6tsQb+Yq16vZ/NB/6u45zUeEcTJH2v+ AB1qaMP85qkVr8oMjidWU3U0h+apr/Tdi4gMEJvMihkYzJ7Tjjp8og/Xpq+A6Tw/RS j03Sp7+/R8bq9dnH5n2B2onzJSe2dwezrAMaNGls= Date: Mon, 20 Apr 2026 15:54:03 +0200 Subject: [PATCH v4 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-v4-2-9505df0e7016@aliel.fr> References: <20260420-add-bluetooth-t7-vim4-v4-0-9505df0e7016@aliel.fr> In-Reply-To: <20260420-add-bluetooth-t7-vim4-v4-0-9505df0e7016@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=1776693261; l=3707; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=n3WSYCLG98U4QY/QGJ/s1AzIwGndCctZjh3l/sS6VWg=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QJVZjrLsTC7ivdNRFaEyrVVrbc1Q3Tgttw/0wNxdmjyfZt/H9cKlmRaOj6h2KwKLYSsvxLAKpRV OXnav8Zrj1AI= 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. Reviewed-by: Neil Armstrong Signed-off-by: Ronald Claveau --- 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 02:37:05 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 A7DA132A3DA; Mon, 20 Apr 2026 13:54:25 +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=1776693267; cv=none; b=Ddpb/IwAWr8UKnq33tVxeUkdZCrZ214oAxNjmOGUqA1/5p4qeTfisCNDvJv8GpzndEiQoS3uR7zx6ojn2kJHCs4XT/BI/WRfr6B8YHXiHIcqPzXjCBob0NOss2FkkMir1Ildd+oNLwaCTZOw6ViFu9KJqFnsnA38qPIASOuDhuM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776693267; c=relaxed/simple; bh=TEedfJO5TR8o5gDN9orq4akY5TFlnSMd+EhYF81BVfA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=q2/jAgss5rBt4Sy/zujWsElvcOsQh5jQxPgic8W1eaw5L6HEuPbimBki7bHQkAlhMr5UoAaNfkmnFktCPlX+tPAMH00BFE/G/P/YrN63xwy1WpaLV7EGJgZUP7/ww800I8UtWLkOTC/Hr7IbAQNJ1cViSnljtVwXT+0g18VwxTY= 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=Ee7TOVI5; 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="Ee7TOVI5" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776693264; bh=TEedfJO5TR8o5gDN9orq4akY5TFlnSMd+EhYF81BVfA=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Ee7TOVI5f4AKDyzUEEs9t3WC8E/9VBL02/IxTl+n8w0gdU9oBRIKZVB4bqd55Usbg WWjSlF+oWytllwIzTJrmsvYwKFx9f+jcWM6fnDl3KWo8jo5Z92bZcBHIqg70SkE1eW x+f/KhqoCadzriBU4Ja9IosED50Eqt9gvi+9h+YQ= Date: Mon, 20 Apr 2026 15:54:04 +0200 Subject: [PATCH v4 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-v4-3-9505df0e7016@aliel.fr> References: <20260420-add-bluetooth-t7-vim4-v4-0-9505df0e7016@aliel.fr> In-Reply-To: <20260420-add-bluetooth-t7-vim4-v4-0-9505df0e7016@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=1776693261; l=791; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=TEedfJO5TR8o5gDN9orq4akY5TFlnSMd+EhYF81BVfA=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QB9Oi22krmUixENvm9gPAV6+FBMaSnSFWTTpfP6HPAwJnP/d9Vpju973LaRA+K1rKFYn37uZIlF TeasUHiBbtgg= 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. Reviewed-by: Neil Armstrong Signed-off-by: Ronald Claveau --- 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 Tue Jun 16 02:37:05 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 6D4C532A3E5; Mon, 20 Apr 2026 13:54:26 +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=1776693268; cv=none; b=ZrAHnQmyHjBDrefzUPgWT49UB62zceOjNFGdtFivonA68fX6BA6OnZEH41DzDdGzm/fvdWCoffBm0n6EMKKVWcVzr+J5ZE/8rDJr428uKPiC4pEpVrnCcVyVqOxkOIn3enILyOtbtYwJ5pcZ6gU0V2/pcVAnLxzW4g3ceiJYJqk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776693268; c=relaxed/simple; bh=RBIiK8CES8R9gJcjoYTCoKw0do5/miRgk0+ffcE8qDk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=r8zNAmdhrk3eHEeKRx2WUOjUivpzsXfjR0LAt+2g+IBL6TGV6ZyK24SHBnG9pwl4L2xHNSX50r2dxU4V5BkDaup7CNLQr06ZBjxzKoVzeKQdz3/nRmTUFkGoIq23r1yjr7RowaJN6PzXEMTohqU9c+ZGP5yv6Cb3AdqOVQ8xOJk= 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=Bqk3LylI; 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="Bqk3LylI" From: Ronald Claveau DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aliel.fr; s=courrier-s1; t=1776693264; bh=RBIiK8CES8R9gJcjoYTCoKw0do5/miRgk0+ffcE8qDk=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Bqk3LylI8jz9spsXo5qoAODLjNruZyLazz96UrsETlsfWkAfRPY6utJ/xRL5Q2dWO 5lX4rvRX8iZ+HSMfU9tLrdY/moYUwmcxLKcnLDKUDrqW2hAguHUxWcqKidVvLYd4UX evoWZkGKxMiAgegVqwcDAebS27djyLVe9XgXDQEQ= Date: Mon, 20 Apr 2026 15:54:05 +0200 Subject: [PATCH v4 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-v4-4-9505df0e7016@aliel.fr> References: <20260420-add-bluetooth-t7-vim4-v4-0-9505df0e7016@aliel.fr> In-Reply-To: <20260420-add-bluetooth-t7-vim4-v4-0-9505df0e7016@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=1776693261; l=1452; i=linux-kernel-dev@aliel.fr; s=id_ed25519; h=from:subject:message-id; bh=RBIiK8CES8R9gJcjoYTCoKw0do5/miRgk0+ffcE8qDk=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgMGec55oxeeisqykQiUedekMYyOnR9 BG9E/7rDWyqdNoAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QJpxuZIRj3W4tnr+l9B6tbn37Ka+/vmOZd3e8M2idNXYnjh4fSQSDtqZDilNf0yv6u2Td8L37uq uitqUOdsCHwg= 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 Reviewed-by: Neil Armstrong --- .../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