From patchwork Wed Nov 27 01:58:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FUKAUMI Naoki X-Patchwork-Id: 13886494 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BEEA0D66BA3 for ; Wed, 27 Nov 2024 01:59:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=IVk3Gb9gKNfSI7+UgUr54qLhv09Zi2fx6q2ApYCPZTc=; b=NHvHE5hC1lyzaJ dWz0CWZcwjWeBe4BKbvQuzSHhEWs4vyC/8a5shNvQ64SaK4ouEhJSmg2eC1ucXmm1ch3NwcpR+D3R 68enh73NSGRLr1/kMNSqO/Ru6zFY7qrlY4MsA7vqJM0b5DTuxrfYWItzYO7SiObMzEilekYtMb8cF GTMkPSGOi3Qo1sPZf7NUpv8JKhAVNW1V3YnIHo2s5Qv6UO3qIn2xL+z/oEhnorumtzTDpF+8450FT gb+rqN1Ha/q8Q4/wa9d5cWMw5KrG1it6QZ7YNIzbMFySbHiT92RlhbAK5kr5i0sWckc25BFsjF4ON Hwn2TXrEFnXBuf3nd+Zw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tG7LD-0000000C2wh-1eNJ; Wed, 27 Nov 2024 01:59:43 +0000 Received: from sakura.naobsd.org ([160.16.200.221] helo=mail.naobsd.org) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tG7LA-0000000C2wG-2ao1 for linux-rockchip@lists.infradead.org; Wed, 27 Nov 2024 01:59:42 +0000 Received: from secure.fukaumi.org ([10.0.0.2]) by mail.naobsd.org (8.14.4/8.14.4/Debian-4.1ubuntu1.1) with ESMTP id 4AR1x0D2012974; Wed, 27 Nov 2024 10:59:01 +0900 From: FUKAUMI Naoki To: heiko@sntech.de Subject: [PATCH] arm64: dts: rockchip: add rfkill for wireless modules for Radxa ROCK 5A Date: Wed, 27 Nov 2024 01:58:56 +0000 Message-ID: <20241127015856.2792-1-naoki@radxa.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241126_175940_870887_4F962526 X-CRM114-Status: UNSURE ( 7.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, cfsworks@gmail.com, sebastian.reichel@collabora.com, linux-rockchip@lists.infradead.org, FUKAUMI Naoki , krzk+dt@kernel.org, jing@jing.rocks, dsimic@manjaro.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Radxa ROCK 5A has a M.2 E key slot which can be used for wireless modules. there are two enable/disable switch pins, one for Wi-Fi, another for Bluetooth. these pins are connected to GPIO. add rfkill and rfkill-bt to control these pins via GPIO. Signed-off-by: FUKAUMI Naoki --- this patch depends on [1] which depends on [2]. [1] https://patchwork.kernel.org/project/linux-rockchip/patch/20241119100813.78820-1-naoki@radxa.com/ [2] https://patchwork.kernel.org/project/linux-rockchip/patch/20241119095113.78151-1-naoki@radxa.com/ --- arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts index 2d7fc691fafc..799340cb8242 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-rock-5a.dts @@ -21,6 +21,20 @@ led-1 { }; }; + rfkill { + compatible = "rfkill-gpio"; + label = "rfkill-m2-wlan"; + radio-type = "wlan"; + shutdown-gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>; + }; + + rfkill-bt { + compatible = "rfkill-gpio"; + label = "rfkill-m2-bt"; + radio-type = "bluetooth"; + shutdown-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; + }; + vcc12v_dcin: dcin: regulator-vcc12v-dcin { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin";