From nobody Sat Jul 25 06:09:17 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 A57F73C3F68 for ; Thu, 16 Jul 2026 21:33:26 +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=1784237608; cv=none; b=ZMndepQdxiwNhV7Qf0LaHV39CoeGhLIki3FzPejmRKUPYRSXCc93WFpxCVHK3cVA3ndDxzwvL6V/K0k4jTsmZWPIoGi+6sao5TxbS1qiIMqzo/qj/bYjeuewzubmQEBykLt90t+gqMJmI5s08bM3GdGL30xGPusxGxQDV8H4dY4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784237608; c=relaxed/simple; bh=jVlD62Z7GXRoyWziRy+Y0t8uqM+eqg7Q7TT290OektI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BIy3grIeeYg3rRZZT7h63Kdw7bkaCt1dCwGnqyFpCHDfvDqWj6OtWJeoW0o/ib0GrHlWmjh+uieK88QH4s/rJTHnYoxXqBuh9rjuBmQzlIGi5MJkYtvTQN0a2bmJ91rez3DsSErs33xjqqEVEwRHvBI/S+/8lQaroXk4bnh5i6Y= 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=vlINY/9o; 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="vlINY/9o" 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=rjik6rfJr6jtR7tbaeLnY3KgLa11p29zALJ1ileAtbo=; b=vlINY/9o1BKc2JUgxurQtRekV6 K31YSd4AJV5fiOjPpecRvrkKf40C5Rd/J0c1zYVEpGVmXzcO7IyiMOa+Bn2yN+HIUAiC2lYwlcDeI N4lod96Aqz2qn0TIlhvPu6YJrDWMA0WNjsT4CVReKng977NEHG48I1sWBj2NH+07A/kX77fgcBffl F3fzEaC68wuucEouSK5w1bSFVTZrsqamJQFBWEgpZjePfo9R6/0iWKB4N8ss/CEjU9u8USy4KlJEo xffsCVOBybinoqk//2ewefGNMas8ZwuT3WHH1F2I044cThlwO+UZ/QX58ia9bE0zIRLsSLmsvh8w+ 7knTmXdQ==; 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 1wkThs-00000003GYb-35bo; Thu, 16 Jul 2026 23:33:24 +0200 From: Aurelien Jarno To: linux-kernel@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: Anirudh Srinivasan , Aurelien Jarno , linux-riscv@lists.infradead.org (open list:RISC-V ARCHITECTURE) Subject: [PATCH 1/4] riscv: defconfig: enable RFKILL and RFKILL_GPIO Date: Thu, 16 Jul 2026 23:19:01 +0200 Message-ID: <20260716213314.3027969-2-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260716213314.3027969-1-aurelien@aurel32.net> References: <20260716213314.3027969-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 requires RFKILL_GPIO to enable Bluetooth and WLAN. Signed-off-by: Aurelien Jarno Tested-by: Anirudh Srinivasan --- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 04ae305d5511b..ed6b854065c0f 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -100,6 +100,8 @@ CONFIG_NET_CLS_CGROUP=3Dm CONFIG_NETLINK_DIAG=3Dy CONFIG_CGROUP_NET_PRIO=3Dy CONFIG_CAN=3Dm +CONFIG_RFKILL=3Dm +CONFIG_RFKILL_GPIO=3Dm CONFIG_NET_9P=3Dy CONFIG_NET_9P_VIRTIO=3Dy CONFIG_PCI=3Dy --=20 2.53.0 From nobody Sat Jul 25 06:09:17 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 CEFA13C4544; Thu, 16 Jul 2026 21:33:27 +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=1784237609; cv=none; b=q/BhXebZicQoE+72pz9LbLbcIV9Adwp030LQ4QMGP9GzPQisMK8IBFsjDfw0f8wOjs0mw9j+UZqjvTqWbM1ekEz948pNLLCRDD8ljAIGBnHAY9689DluWnyI+EkhYT4FIsi3oEEiLClD0o8Z361tH6VdntzmWpARtmHqW6Sm1pA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784237609; c=relaxed/simple; bh=nh3IresRmlJc9BHXez0EQoTV179OC5kILjDNqhxVuLA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DXsRMh49zXxYBqaA2Lf2L/jHI6/9olrMrZM6vw1gz9pH7yAGdva0PU4dQj+nOFIRLvcAzVk1rPU+60W7InFbK7FEipp8r/adGZ2Ak427UXGuzY2TVS92Wkc1TsTuuwdOZLT+ZGukwmmbgph0z9NI1j/LgNw1Ru6UC8iMhoTTM60= 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=WIWENEJS; 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="WIWENEJS" 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=mHnVwT1+Yjvp5RDq89O4la0pgIctTbERsLfiIHJzr78=; b=WIWENEJS2xZmabuyDIQ10BBfHU dS4WI95fvyaDt/xnV9/tYsAMkDbJ+iIQ4p5Y4E2klY/HSBUWrwe3jPa+caKlTNkxbDb+YERO8CVNv JQ8Je6epXpvMhJqni1QfPyjegkpAd7H19MzD9PR8A/I35Og+ZVS45FXxIy4mKfQpHnXqUpN947oOA 1K7Q9WNm+ATYmtlKaMNwte8XLP8JXvWH9V8Y2Wgl35aU8du/FuIs3xFM1uleIBmujDOWWs1R54tpE BfcE+NLnUktNe+UTLSVGHH/vavzfbfAvHoumVl0IqylC6xCsDRejy2FYLQgm8rfDBcWnuCDNGUoYj WhsjWklw==; 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 1wkTht-00000003GYo-1BYn; Thu, 16 Jul 2026 23:33:25 +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: Anirudh Srinivasan , Aurelien Jarno , 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 2/4] riscv: dts: spacemit: k3: add rfkill node for Bluetooth on Pico-ITX board Date: Thu, 16 Jul 2026 23:19:02 +0200 Message-ID: <20260716213314.3027969-3-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260716213314.3027969-1-aurelien@aurel32.net> References: <20260716213314.3027969-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. Signed-off-by: Aurelien Jarno Tested-by: Anirudh Srinivasan --- 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 48b71cc419f09..4aa7d56fb7568 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 Jul 25 06:09:17 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 693003C4B63; Thu, 16 Jul 2026 21:33:28 +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=1784237610; cv=none; b=XFLa5DElmun8E3Tzhrwhgj9TnEy4Dj8pGsaPBXwhGe7GC8syqy153TaJiyJqdqnPH1X7q4dblRqBDHd26frzupOlo8XkGE5y3MdUVbyeQ8CqwWrfWQUCxx0R8B/TGspw7iN6dAIiSLvOqF6/LMq9Sc9lc+O9252lUG/oP4o0wXw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784237610; c=relaxed/simple; bh=H1U+73F8vYuJ4IkkOb7GdsSQE/TObiLX57wmlFts25E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oMBV7GvFGAEC7tnEq+iU/ZoiK8/lw7pa9i4PP2X8OpqwefS62u0Z4czExyYb6DnCYWsp4zzLbhB56QMrT9KubDpgKxwaTYGSUAYSadS+qI1tCelfx7NVki0ZJRfYCvbLP4nm/pB+ex+b64NQUEm6drPpYScFsoNP7HWt8GfhqgY= 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=lIAPXGHu; 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="lIAPXGHu" 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=MFR1Hi6i7aIKGEkXYS12ogWQN52DsFNDyd9nQVlY3ug=; b=lIAPXGHu1UWFC4BqQrawNnCUKA e80fwyDrqESRH9Vl59xIw0c+jGY4QNxbSDYPfP17VnYb1borax0BwTBiFg4SIhDYA04cmAJFxb83n mGzcPO37U2Po3qVeAl9+Ie/vZWzl/oKKx933nTkrRybC/bDXmmOfrQaGVsdIJJdRxNA/380BpdMdC K605UUOfOxvj632h7O79YAvzFtVFcl3PHfLFjUV0Wr2bAbb4y9N7Yie8DsGSvIBKHB7udwu538P8I BVMUqG5uyX9vZH7WzSkEm7C9ZPlwdBUkfCCNOkUuu3GVi1odRJ1iGIDFHJ4QdDzC2luu09EJD7ZWd bPFgWzaw==; 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 1wkThu-00000003GZ5-0Nb4; Thu, 16 Jul 2026 23:33:26 +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: Anirudh Srinivasan , Aurelien Jarno , 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 3/4] riscv: dts: spacemit: k3: add USB3 B and C controllers for Pico-ITX board Date: Thu, 16 Jul 2026 23:19:03 +0200 Message-ID: <20260716213314.3027969-4-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260716213314.3027969-1-aurelien@aurel32.net> References: <20260716213314.3027969-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 USB 2 mode only respectively for the M.2 B-Key slot and for the RTL8852BE Bluetooth controller. Add the two controller nodes and the two corresponding USB2 PHY nodes (the PCIe/USB3 combo PHY driver is not yet merged) and enable them on the K3 Pico-ITX board. Signed-off-by: Aurelien Jarno Tested-by: Anirudh Srinivasan --- arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 18 ++++++ arch/riscv/boot/dts/spacemit/k3.dtsi | 65 ++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot= /dts/spacemit/k3-pico-itx.dts index 4aa7d56fb7568..011a35e6372e1 100644 --- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts +++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts @@ -325,3 +325,21 @@ hub@1 { &usb2_phy { status =3D "okay"; }; + +&usb3b { + maximum-speed =3D "high-speed"; + status =3D "okay"; +}; + +&usb3b_u2phy { + status =3D "okay"; +}; + +&usb3c { + maximum-speed =3D "high-speed"; + status =3D "okay"; +}; + +&usb3c_u2phy { + status =3D "okay"; +}; diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spa= cemit/k3.dtsi index fc46e34465e47..b14bd8a164537 100644 --- a/arch/riscv/boot/dts/spacemit/k3.dtsi +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include =20 /dts-v1/; =20 @@ -438,6 +439,70 @@ 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"; + phys =3D <&usb3b_u2phy>; + phy-names =3D "usb2-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"; + phys =3D <&usb3c_u2phy>; + phy-names =3D "usb2-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"; + }; + usb2_host: usb@c0a00000 { compatible =3D "spacemit,k3-dwc3"; reg =3D <0x0 0xc0a00000 0x0 0x10000>; --=20 2.53.0 From nobody Sat Jul 25 06:09:17 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 C58B73C4B88; Thu, 16 Jul 2026 21:33:28 +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=1784237610; cv=none; b=CE+zn43my8EagwR2ACe0vnd6eJcTw6vNI4GSj97E/lLP5VYUsDzo8ZO3wqHH0Ym73mVmqhWUEc7cNKICXjCw/mi3a3FkQmNoyzVymJxsMXe8j0Ez/UZs0ynholE2WyHS+PI+ZcSRh8dH7Yt1qrOMPRUxtunYGOD4FYwBBWFA3n8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784237610; c=relaxed/simple; bh=ixwmN7ApwaZCwKdEvBhJMTs1Wg9gnmqMTRbrnyQ92P8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CyYR5VMksr6QaxW9tBXWWbxWnizY5TzKvQY8mk2GieWECv9GJYuJI1Fzi+/Zl2GgJjtTwgWKgFfZ0II1Gd/SpCYIHCHGqb9Zig9ehfYnKK2+6iFGSNrENX1+TTSfaVnQt0JFKECkETnUpxWHUY8cqWY7K7vlUcI8kr1CHOpng20= 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=wiWyipM/; 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="wiWyipM/" 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=w20tFWjgl7SpbISkFY39+gk/LQYyndb7IGAWxD+7QfM=; b=wiWyipM/QjvIzgDdjiDYPAGepM KnUTcKBBfBW9lQ4tPzBG7wc3GqcTWNUhAmM4nPoToxEYpGBpiGqOnuTlXo9AbJVry2Q0o/pJBGrI9 SXyac/e0i5y/jf5APjVm9nThQWzVv0QjQkQvaqSjS2XsYtMGry5eyiiYzhrwN5HT6gV1puKZLzSZ/ irIUdeo40Zt9/MAJ5W4IBb0v289S17O3pW0AWjsIaovvHcEGmNmCzo/miRCcYBLywgTnTeflhSgfm XsTXdoLCTdD9qqxcPRdPU/lwsZbxSzFU3tnayiaMtL5PX6NYYm8CRyKXDfcYetvSY91QOvYJoM1wu nCieDbmQ==; 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 1wkThu-00000003GZK-1Wew; Thu, 16 Jul 2026 23:33:26 +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: Anirudh Srinivasan , Aurelien Jarno , 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 4/4] riscv: dts: spacemit: k3: add rfkill node for WLAN on Pico-ITX board Date: Thu, 16 Jul 2026 23:19:04 +0200 Message-ID: <20260716213314.3027969-5-aurelien@aurel32.net> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260716213314.3027969-1-aurelien@aurel32.net> References: <20260716213314.3027969-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" 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 WiFi driver or userspace toggle it as required. Signed-off-by: Aurelien Jarno Tested-by: Anirudh Srinivasan --- 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 011a35e6372e1..328f4c2cd7e14 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