From nobody Sat Sep 26 20:28:04 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (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 9261F282F0C; Mon, 31 Aug 2026 04:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151556; cv=none; b=N+QJKyZQ5F3O/JJEbVowTptNQHTZDjUh2XXTwE1HOhzmeIbz4RceVq5r6QYn+2qOWjn6DEk9MQeG6tjBNiI2vBlmOQwMsfy/eOQ7fE9Ic0QcTkOoxMwhVMsgNlSzssV0lPCffEpHFpYGBfvj9hQD3y8BypkVBbGJqkHEg8Xqdis= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151556; c=relaxed/simple; bh=PGmyxVwnuFq6tiJ24U7SUFyBwEb+68dKZacfRy79PJ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eedq0Y5oeDvMoFY+laeaQsORkDv2EtpfYvavya5WK0f7zYKhZB7+nYdOkEvaherN2Kvvzf0YPD/mpL9ZGNNQ/2vZaR7+L1tdFJxZ7QnemDM7cp5tx2XlkJxBOLZY+1zdzDdbt8UVhRMM5BiUqbLliA8pa9+1PjU/1fPpCAvKDbQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=VjOGjKEj; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="VjOGjKEj" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=FH55rKIqHtOn1EkYVy++NU/qfFm2EXAkDRDl+Cfo4uo=; b=VjOGjKEjCrQzQLGwVHw7bBVh1z d0pf0TtnbZl2k4+IHlvYSgH/ccgwqQ4rDHGjAwfrAXQmC9sGokW0pGen/rGd2M1FaYal075Glnx8F cbu7mPo5HnEi0+e5rCMKlJg8leAbF19ErwwHH8SvbS28EUX12qCxRyOU7FIDUaXGEsOiX21XJrkL8 wcZOrdwzaPrwndvPJwRKIOUyGbPtjcOeiM2aA2aAD8eJmXUQMYbqC4K/TR6mgpUqfg9aWviYc08az 0Is+Uby3fAV1aTLjkcyTEmOX4dof6cLpP6FkdEac//XL3fe4EM1Vrd6lHK46jmooH1MMzPpn/Pg6t ryjSMumw==; Received: from authenticated user by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x0tu2-0000000Ape0-2Pci; Mon, 31 Aug 2026 06:45:50 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan , Inochi Amaoto Cc: Aurelien Jarno , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-riscv@lists.infradead.org (open list:RISC-V SPACEMIT SoC Support), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support) Subject: [PATCH v3 1/5] riscv: dts: spacemit: k3: move USB3 phy to board level Date: Mon, 31 Aug 2026 06:44:21 +0200 Message-ID: <20260831044540.3304350-2-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260831044540.3304350-1-aurelien@aurel32.net> References: <20260831044540.3304350-1-aurelien@aurel32.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On the SpacemiT K3 SoC, the combo phy provides 8 lines that can either be used for PCIe or USB3, depending on its configuration (spacemit,apmu). This configuration is defined at the board level, and assigning a phy line to a USB3 controller while it is configured as PCIe results in an "Invalid PHY mode" error. Move the USB phy definitions at the board level, as it is done for the submitted PCIe controller [1]. [1] https://lore.kernel.org/20260727094726.890179-3-inochiama@gmail.com/ Fixes: 46380e4b1534 ("riscv: dts: spacemit: k3: add USB controller and USB = phy support") Cc: Inochi Amaoto Signed-off-by: Aurelien Jarno --- arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 2 ++ arch/riscv/boot/dts/spacemit/k3.dtsi | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot= /dts/spacemit/k3-pico-itx.dts index b084a35aa00e3..0a6f669d509a9 100644 --- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts +++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts @@ -328,5 +328,7 @@ &usb3d_u2phy { }; =20 &usb3d { + phys =3D <&usb3d_u2phy>, <&combophy 4 PHY_TYPE_USB3>; + phy-names =3D "usb2-phy", "usb3-phy"; status =3D "okay"; }; diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spa= cemit/k3.dtsi index c3f2dce0969c0..6f8d55eae6f6b 100644 --- a/arch/riscv/boot/dts/spacemit/k3.dtsi +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi @@ -452,9 +452,6 @@ usb3d: usb@81a00000 { <&syscon_apmu RESET_APMU_USB3_D_VCC>, <&syscon_apmu RESET_APMU_USB3_D_PHY>; reset-names =3D "ahb", "vcc", "phy"; - phys =3D <&usb3d_u2phy>, - <&combophy 4 PHY_TYPE_USB3>; - phy-names =3D "usb2-phy", "usb3-phy"; phy_type =3D "utmi"; snps,dis_enblslpm_quirk; snps,dis_u2_susphy_quirk; --=20 2.53.0 From nobody Sat Sep 26 20:28:04 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (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 9273D3A5422; Mon, 31 Aug 2026 04:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151556; cv=none; b=F4ZSBTGivQaEK8TFiIMFIxtMYcm2ca2QnI6jKf4LKvvmE1OEvKa6EJBaTfkYFRtjxnR54OGxjH0ByoXr9A3cwr2oveOvnr+r+9umSL6KsCtM3Lo7h33gofgA9ommUoBSdhquLnxQ5m73FvFENkpdwqlcPWMF4gyx1wuliNRp5mo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151556; c=relaxed/simple; bh=8hsM7uEsdW9wHrV81u1kOderp6KDML/E1j9rjZQUchk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ox7+iKxULGNvmDh/rHXsS+tlyPj6z60m69kopW/qCqvjVMOhZiMHPyP4J3BC0cOb67oYjSt49w2f1ZsGdyXP3cihS1z3Yt3ERX2UienZqlsk1+v3+mt1t60dcXjpCV0dDsfjsmrjYUykJrQCgfS45+DxTs9ebKSaJNMeglQs6fc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=gzdNhHYY; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="gzdNhHYY" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=nPsllQ14yICJboie4pbgD9p7PzTM/mzFbU+8jrVYCwU=; b=gzdNhHYYv9Qz2/EAIciMLxfzh7 5ZDIjLV4v+qqwJFt/lAv07CAplPIx4MKauOFw9l1yJ6LJmsb90ZbhL2mFE5NdpCi4gq7+O2GKvrVI 2yezOYshcv6obWqrXfEI8pMWltbTF06DqcVD0c5MfHw+uJAbY4I8RQeZAaePQ+5m9c0+u5m9OAIYc ifrPSJR3+oKKigObMTEBaG6UDglY+w0QRxsBl0DiAWaMLiZGRE4re4JeyJ4MU9no9hGI1mJ9i69I+ NRtIjMOJkF23ZJeBNrX/nFw0ys4tAxFUaAqsQclVFOTdbll2djh6lVCG7Fc9exaZQQCPNI9qCI/3C ZFji2DtQ==; Received: from authenticated user by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x0tu3-0000000Ape4-0cLQ; Mon, 31 Aug 2026 06:45:51 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: Aurelien Jarno , Anirudh Srinivasan , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-riscv@lists.infradead.org (open list:RISC-V ARCHITECTURE), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support) Subject: [PATCH v3 2/5] riscv: dts: spacemit: k3: add USB3 B and C controllers for Pico-ITX board Date: Mon, 31 Aug 2026 06:44:22 +0200 Message-ID: <20260831044540.3304350-3-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260831044540.3304350-1-aurelien@aurel32.net> References: <20260831044540.3304350-1-aurelien@aurel32.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The SpacemiT K3 has 4 USB3 controllers labelled A to D. On the K3 Pico-ITX board, the controllers B and C are used in USB2 mode only respectively for the M.2 B-Key slot and for the RTL8852BE Bluetooth controller. Add the two controller nodes. On the K3 Pico-ITX board, enable the controllers nodes and add the two corresponding USB2 PHY nodes. Tested-by: Anirudh Srinivasan Signed-off-by: Aurelien Jarno --- arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 22 +++++++ arch/riscv/boot/dts/spacemit/k3.dtsi | 60 ++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot= /dts/spacemit/k3-pico-itx.dts index 0a6f669d509a9..5aa6fa89cab58 100644 --- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts +++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts @@ -323,6 +323,28 @@ &usb2_phy { status =3D "okay"; }; =20 +&usb3b { + phys =3D <&usb3b_u2phy>; + phy-names =3D "usb2-phy"; + maximum-speed =3D "high-speed"; + status =3D "okay"; +}; + +&usb3b_u2phy { + status =3D "okay"; +}; + +&usb3c { + phys =3D <&usb3c_u2phy>; + phy-names =3D "usb2-phy"; + maximum-speed =3D "high-speed"; + status =3D "okay"; +}; + +&usb3c_u2phy { + status =3D "okay"; +}; + &usb3d_u2phy { status =3D "okay"; }; diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spa= cemit/k3.dtsi index 6f8d55eae6f6b..55b00c0f429f7 100644 --- a/arch/riscv/boot/dts/spacemit/k3.dtsi +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi @@ -441,6 +441,66 @@ soc: soc { dma-noncoherent; ranges; =20 + usb3b: usb@81400000 { + compatible =3D "spacemit,k3-dwc3"; + reg =3D <0x0 0x81400000 0x0 0x10000>; + interrupts =3D <125 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent =3D <&saplic>; + clocks =3D <&syscon_apmu CLK_APMU_USB3_PORTB_BUS>; + clock-names =3D "usbdrd30"; + resets =3D <&syscon_apmu RESET_APMU_USB3_B_AHB>, + <&syscon_apmu RESET_APMU_USB3_B_VCC>, + <&syscon_apmu RESET_APMU_USB3_B_PHY>; + reset-names =3D "ahb", "vcc", "phy"; + phy_type =3D "utmi"; + snps,dis_enblslpm_quirk; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + snps,dis-del-phy-power-chg-quirk; + snps,dis-tx-ipgap-linecheck-quirk; + snps,parkmode-disable-ss-quirk; + dr_mode =3D "host"; + status =3D "disabled"; + }; + + usb3b_u2phy: phy@81500000 { + compatible =3D "spacemit,k3-usb2-phy"; + reg =3D <0x0 0x81500000 0x0 0x200>; + clocks =3D <&syscon_apmu CLK_APMU_USB3_PORTB_BUS>; + #phy-cells =3D <0>; + status =3D "disabled"; + }; + + usb3c: usb@81700000 { + compatible =3D "spacemit,k3-dwc3"; + reg =3D <0x0 0x81700000 0x0 0x10000>; + interrupts =3D <148 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent =3D <&saplic>; + clocks =3D <&syscon_apmu CLK_APMU_USB3_PORTC_BUS>; + clock-names =3D "usbdrd30"; + resets =3D <&syscon_apmu RESET_APMU_USB3_C_AHB>, + <&syscon_apmu RESET_APMU_USB3_C_VCC>, + <&syscon_apmu RESET_APMU_USB3_C_PHY>; + reset-names =3D "ahb", "vcc", "phy"; + phy_type =3D "utmi"; + snps,dis_enblslpm_quirk; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + snps,dis-del-phy-power-chg-quirk; + snps,dis-tx-ipgap-linecheck-quirk; + snps,parkmode-disable-ss-quirk; + dr_mode =3D "host"; + status =3D "disabled"; + }; + + usb3c_u2phy: phy@81800000 { + compatible =3D "spacemit,k3-usb2-phy"; + reg =3D <0x0 0x81800000 0x0 0x200>; + clocks =3D <&syscon_apmu CLK_APMU_USB3_PORTC_BUS>; + #phy-cells =3D <0>; + status =3D "disabled"; + }; + usb3d: usb@81a00000 { compatible =3D "spacemit,k3-dwc3"; reg =3D <0x0 0x81a00000 0x0 0x10000>; --=20 2.53.0 From nobody Sat Sep 26 20:28:04 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (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 F33B63ADBA2; Mon, 31 Aug 2026 04:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151556; cv=none; b=Fts4u35+rWv6L0GiMrCRiHzv52QZo7K5KuHFDeXuWVvEYTXaA9f/I53/Kw9P5Hrw+yJKEM71URf1JgNsw6e2mJQrn/HGMQm40F71MYf+wSvX8730O+aPgxWhScWBkjCGgMmss5Sg54s89xCCY+rQYIEVCoAB2x6FBe9PWYHIVUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151556; c=relaxed/simple; bh=gnssPAE5e9jERJdPqsG71tW7kOYJmhAmcMvHNkQs47A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KUJT7kkLKuRQDmAQ58bPVDaTkdsN7vBRLE+7gqW3Sj6rw9JMIUk6DFj8KfYqExLvlHr5CpggyflOSXfBG0GzBKvxEVKOhHuLrxgAS6XZdHUYwQnyUnSLCAnxYx4+rPJmcWr1/NbdxyxIugvQpi2pN4tdPJ/Nyg6KXhdzb5mUpqY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=CQsWHoPI; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="CQsWHoPI" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=9J2seGKRWZVNJ1p8+AjKgKsDACjOYKsJmiv89i7OaIc=; b=CQsWHoPIG+chRQp9FTX+9wntNC mq7WXVvcr6Ex4nrtJlK5nWnpfvZLZStA1SQrKX8PEahJ9LyNJ5URo92PNyOJiF7LZfQKeVkbW+BpD ycSAT/R/muR7+SnJHwWRWISrytdefBGF1gMDxh8j4tcMpy6Wff/2ZUA3jmdlaIzaCTr3KFbXGg+Yi WVCPUfE3VY86n9i+WNC5fa6sVRCTZJYiAZpVx4RUd8Q6qXK18Ts0zOf8CpHwmypovMjmZr/aYz3fB mIbaG0GCcp1R+pe4bfHLvJ6YZg8WB5Mv26hP84Z1d53jL57wZHnKa5gs6Ex8ENRnQZvmq90BTneXy UIK8nqCA==; Received: from authenticated user by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x0tu3-0000000Ape8-2BUo; Mon, 31 Aug 2026 06:45:51 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan Cc: Aurelien Jarno , Anirudh Srinivasan , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-riscv@lists.infradead.org (open list:RISC-V SPACEMIT SoC Support), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support) Subject: [PATCH v3 3/5] riscv: dts: spacemit: k3: add rfkill node for Bluetooth on Pico-ITX board Date: Mon, 31 Aug 2026 06:44:23 +0200 Message-ID: <20260831044540.3304350-4-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260831044540.3304350-1-aurelien@aurel32.net> References: <20260831044540.3304350-1-aurelien@aurel32.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On the K3 Pico-ITX board, by default the GPIO pin that connects to the RTL8852BE Bluetooth enable signal is driven low, resulting in impossibility to use Bluetooth. Add a DT node to expose it as an RFKILL device, which lets the Bluetooth driver or userspace toggle it as required. Tested-by: Anirudh Srinivasan Signed-off-by: Aurelien Jarno --- arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot= /dts/spacemit/k3-pico-itx.dts index 5aa6fa89cab58..d3f256dffb4fd 100644 --- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts +++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts @@ -43,6 +43,13 @@ reg_aux_vcc5v: regulator-aux-vcc5v { regulator-max-microvolt =3D <5000000>; regulator-always-on; }; + + rfkill-usb-bt { + compatible =3D "rfkill-gpio"; + label =3D "rfkill-usb-bt"; + radio-type =3D "bluetooth"; + shutdown-gpios =3D <&gpio 0 30 GPIO_ACTIVE_HIGH>; + }; }; =20 &i2c2 { --=20 2.53.0 From nobody Sat Sep 26 20:28:04 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (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 B041D3AC0D9; Mon, 31 Aug 2026 04:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151556; cv=none; b=PNjSVflP/0W6OZb9vSs2v9g7O7EFWyrrIe4IbTmWrotEbQXjw++ctRur5igwoqFt81qrwDA528qxX8AAFn+D4BqKz+cTOxNBsX4J2Asi4Xqe2wA4ZeIlRVqmsXieVhYzXn3s9hSVsaTSHiMMNsLl3U6LFb4aFgKU/chguq5eD1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151556; c=relaxed/simple; bh=Ovej68cLXFYOnS0QtY+PxZfnGeevRqdmCXTREH3RCZg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U+HkZzj6J8ewl3cjZX/vJIzQBL1+j5+MyGAP1EA2olU52S9a+fx2XMaBuulzs6gTIrqkDYAHn9EtOgIgVdUAdXgCBqfq59Eq3eWnmSLQyTRr65+O29A0xuCX6B0lD2NlH+JjUYJQquiCx57Y7tTrjA1DZMRJcrXRYTkpXenlb5k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=YzEAmaZU; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="YzEAmaZU" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=FjJnigpBeHIQ125/9YAb7UUdeqoXLLzRYVllv9SQ/2Y=; b=YzEAmaZUONWfIOcm0Rfr6LmhL5 pm0LIeefxErQuG1LTBIoHJijnOYdNnszYJuXeEu1pN2nLXZ8GfcXio3I0bAhwslfxvH64uRGYBdfG Qv4yRTNzR32iX463fYdcLylcj/lbRyKDmHYpgJxWqPnPBMDMzpgrHI+iwsEnjmm6fT0EWEzjQ6VAg po7JUg9UdWwUESvVSkflVvgpa09LkKKEcPYhep4I0LoWKaTQFdCJAt6tvlU3eQ4KkZzTlZQUSvgj4 abQFeWriRge2loMNtWVgS5KmtEGN5zhMZNXWszMrdCCsE1pMe03LtA49WMqPcOhkGIyR6DqTsuzuA 7HC0nkYw==; Received: from authenticated user by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x0tu3-0000000ApeA-45VG; Mon, 31 Aug 2026 06:45:52 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: Aurelien Jarno , Anirudh Srinivasan , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-riscv@lists.infradead.org (open list:RISC-V SPACEMIT SoC Support), spacemit@lists.linux.dev (open list:RISC-V SPACEMIT SoC Support) Subject: [PATCH v3 4/5] riscv: dts: spacemit: k3: add rfkill node for WLAN on the K3 Pico-ITX board Date: Mon, 31 Aug 2026 06:44:24 +0200 Message-ID: <20260831044540.3304350-5-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260831044540.3304350-1-aurelien@aurel32.net> References: <20260831044540.3304350-1-aurelien@aurel32.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On the K3 Pico-ITX board, by default the GPIO pin that connects to the RTL8852BE WLAN enable signal is driven low, resulting in impossibility to connect to any network. Add a DT node to expose it as an RFKILL device, which lets the WLAN driver or userspace toggle it as required. Tested-by: Anirudh Srinivasan Signed-off-by: Aurelien Jarno --- arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot= /dts/spacemit/k3-pico-itx.dts index d3f256dffb4fd..dda420900aa2c 100644 --- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts +++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts @@ -44,6 +44,13 @@ reg_aux_vcc5v: regulator-aux-vcc5v { regulator-always-on; }; =20 + rfkill-pcie-wlan { + compatible =3D "rfkill-gpio"; + label =3D "rfkill-pcie-wlan"; + radio-type =3D "wlan"; + shutdown-gpios =3D <&gpio 1 3 GPIO_ACTIVE_HIGH>; + }; + rfkill-usb-bt { compatible =3D "rfkill-gpio"; label =3D "rfkill-usb-bt"; --=20 2.53.0 From nobody Sat Sep 26 20:28:04 2026 Received: from hall.aurel32.net (hall.aurel32.net [195.154.119.183]) (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 F34463AE1BD for ; Mon, 31 Aug 2026 04:45:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.154.119.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151557; cv=none; b=F1l2Lt4Btu7+y1O5U2EmZyQLeIcwg2yxh3CozQYMOYCNuHflRT6509cKYVMBGP7XUmo227jFrrrh7RMzZAKIswYDoG3KfYYEmxDQUKxRuAJHkvuLK7vhzrj6/Y7TpzUH5BNklOxl7umCdYZ1fuNwU2Ng2OVX9/VdZh2wWwCJKzw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788151557; c=relaxed/simple; bh=7Oo6CjkgyeadWPVdHdSjHs4jmR9XEagio7pV7BczRBs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LnK3+W72SyyQTXj/nT/WmDFx2636DlkcO7o8yOquHgP9LmcaLDfNPJX3iOQqqBs0qVc7Pnk0MDM44C3QJKa82wlizqq0wPxad1kJdM15F9OwafA4+sMnZtwEStYcRcqYqmseN9OCxQmkRyR7FqHMS6a3GflR50Ts1iP+nhSJoAc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net; spf=pass smtp.mailfrom=aurel32.net; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b=0X5CSn3b; arc=none smtp.client-ip=195.154.119.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aurel32.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aurel32.net header.i=@aurel32.net header.b="0X5CSn3b" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=KX61QIrNDMGQZNkhbujvGPtXrkJ/uJvb5+zoWtNRHjk=; b=0X5CSn3bQBiJZlBdrT/fLfEcIN HtfA3z/+uSh6cLGhejo+QF7vdKbYAB0AoPqUKJisVFiW2Jor/QZhLSZZg/F04bLxjQvCypORBXvL3 py+sI8M1m3/GE5W7djluQan6srqt96N6pn+bo0onhPT1diO8YTJwWLpavSpbWAZV1dVtb9e0fRMCx 3NCDbyaF1gy9dLoJkiI36lHnHm1aEeYh5oOmOnx43B+qZfCdE9y4pOzi/a7e1c5GVucujXP4F2IKO EWlkiaEQg4Fl/tZvRMz9GJqcbaL9qRZLjDJnkE2WB1K9rIJ+jcAcCsKuyxQvxwtC2Cb8X9znGkeHq iiUZTFfg==; Received: from authenticated user by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x0tu4-0000000ApeD-2mOd; Mon, 31 Aug 2026 06:45:52 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: Aurelien Jarno , linux-riscv@lists.infradead.org (open list:RISC-V ARCHITECTURE) Subject: [PATCH v3 5/5] riscv64: defconfig: Enable BT and WLAN support for SpacemiT K3 Pico-ITX board Date: Mon, 31 Aug 2026 06:44:25 +0200 Message-ID: <20260831044540.3304350-6-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260831044540.3304350-1-aurelien@aurel32.net> References: <20260831044540.3304350-1-aurelien@aurel32.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The SpacemiT K3 Pico-ITX board has a RTL8852BE Bluetooth and WLAN controller connected through PCIe and USB. For the WLAN part, enable CFG80211, MAC80211, RTW89 and RTW89_8852BE as modules. For the Bluetooth, enable CONFIG_BT and CONFIG_BT_HCIBTUSB as modules. Both also require RFKILL and RFKILL_GPIO. Signed-off-by: Aurelien Jarno --- arch/riscv/configs/defconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 04ae305d5511b..1bc79ba2ee649 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -100,6 +100,12 @@ CONFIG_NET_CLS_CGROUP=3Dm CONFIG_NETLINK_DIAG=3Dy CONFIG_CGROUP_NET_PRIO=3Dy CONFIG_CAN=3Dm +CONFIG_BT=3Dm +CONFIG_BT_HCIBTUSB=3Dm +CONFIG_CFG80211=3Dm +CONFIG_MAC80211=3Dm +CONFIG_RFKILL=3Dm +CONFIG_RFKILL_GPIO=3Dm CONFIG_NET_9P=3Dy CONFIG_NET_9P_VIRTIO=3Dy CONFIG_PCI=3Dy @@ -143,6 +149,8 @@ CONFIG_DWMAC_THEAD=3Dm CONFIG_MICREL_PHY=3Dy CONFIG_MICROSEMI_PHY=3Dy CONFIG_MOTORCOMM_PHY=3Dy +CONFIG_RTW89=3Dm +CONFIG_RTW89_8852BE=3Dm CONFIG_INPUT_MOUSEDEV=3Dy CONFIG_INPUT_EVDEV=3Dy CONFIG_KEYBOARD_GPIO=3Dy --=20 2.53.0