From patchwork Wed Aug 7 16:20:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Klink X-Patchwork-Id: 13756492 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 2C935C3DA7F for ; Wed, 7 Aug 2024 16:20:58 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ktRGW0E56xnA0WaPK0cQa37bwkMRrNNMnbZAJWJegnY=; b=d9NIfuMqGeKyaZ mMVALqc2HDN3EcmrfxX8M20HXTEo14iB83Ld4Z7/Ykw2n0ozsBHahhq/YTzUzD7892380GSXtqzzX TYfw5LQ2DeDtIVLD9A2s9McDfsJWEqto7bWrd9kZDCBh+exjtpGVuG7h6t7QWi6hpmWp9aom83iMf kpAYrpO+4whwhPKdz7ppl1rZ5NmgTWl2bh7n8w9Ee6jzZxK4e46G07saKY1go/yPbImgrbau1mY30 4C96IJ1sS6kDzLfHKrmMRuYJabaOKkofX+XO5/Mrq9rl9VQzSQB/6gKrLTfayY/jpNS60NbcUOvy5 /37RWimfsoDRBz2Z6wNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbjPA-00000005eLd-2FY5; Wed, 07 Aug 2024 16:20:52 +0000 Received: from mail.flokli.de ([116.203.226.116]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbjOa-00000005eHy-4833; Wed, 07 Aug 2024 16:20:18 +0000 From: Florian Klink DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flokli.de; s=mail; t=1723047609; bh=xzTHPU4ay+ojdbSyqF8Os8imRNbH54y0xGyqIDsp8TI=; h=From:To:Subject:Date; b=QnRpCDisb3Xljb/+6HX+YkFlvqGPXsLih7lMAmZPSgaasfWfoyu17PsMb2e+DiOJg Rs94BZfEa1ebxQys2TaZyGHDUC5bKO7JQTpEIyNN1MVbsqmha2kuODdpbkCPUNemfX 52KZLRa0eB2XxhBOpagIccyxGhe0mRNHtTJPZ9zE= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel , Dragan Simic , Florian Klink , Kever Yang , Muhammed Efe Cetin , FUKAUMI Naoki , =?utf-8?b?VGFtw6FzIFN6xbFjcw==?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: rockchip: add rfkill node for M.2 E wifi on orangepi-5-plus Date: Wed, 7 Aug 2024 19:20:01 +0300 Message-ID: <20240807162001.1737829-1-flokli@flokli.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_092017_492261_0FC597E6 X-CRM114-Status: UNSURE ( 8.53 ) 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: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This follows the same logic as 82d40b141a4c7ab66, which did the same for rock-5b. The GPIO pin connecting the WiFi enable signal inside the M.2 Key E slot is the same as there. This can be validated in arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dtsi from Armbian rk-5.10-rkr4 kernel, which contains a `wifi_disable` node with that same GPIO pin. Signed-off-by: Florian Klink Tested-by: Florian Klink --- arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts index e74871491ef5..c3a6812cc93a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-plus.dts @@ -105,6 +105,13 @@ led { }; }; + rfkill { + compatible = "rfkill-gpio"; + label = "rfkill-pcie-wlan"; + radio-type = "wlan"; + shutdown-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; + }; + sound { compatible = "simple-audio-card"; pinctrl-names = "default";