From patchwork Mon Jun 17 07:11:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13700261 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 0F45CC27C6E for ; Mon, 17 Jun 2024 07:12:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lutJzI8NSE3f7AXzCNg/cZwY862kkt0I4yc7Qb9FrSw=; b=SodWOx5NN3lCHiXXZPI9QJRihX zlLVBRY95JsJdMi/P9peXb2IltgK2sCtFgKQCrIOpqlcg3AWC6eHpXKdAkg91HKoy6cZA9/IfdI12 rfdmtp/s+kt2keqy5vrCXtz0PQ3nm8zkDGysnOcjHc5+SrnJCoc5cs6nUNsh0IOknd6ixW5iwSdBo bRdC8r8auyS17oxsQEz7IYWHFPOSjNpfoaAhsdgvao8WB9I52tXUBaOAlPtPpBBzVarHwpEyZojHm d1A30+32pPuuymrRniJWoWmBRgb31U99Oly8lGvsiejjcUrgBAQ4XbsQPjdZIxVu8a13Otw/kMj1m qnMDQDBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Wt-00000009YQl-1UfJ; Mon, 17 Jun 2024 07:11:51 +0000 Received: from mail-tyzapc01on20701.outbound.protection.outlook.com ([2a01:111:f403:2011::701] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Wl-00000009YN5-0hiE; Mon, 17 Jun 2024 07:11:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SAEUbcVgRdWu4b4cUEPLyDHeaMVHv+STw9l6Ic1p7+zh9tBzC9dS3hxtRzQQaH/ZOOwwgCf5Igjq28wUQwXEmBBjGLUkS/dZ3lSWbhlzrCUdBFciIPFNH6ns8DB2rVrKODphtGmb0eyld+n2HFREuXfw1yoApztEtBEWDSSo+q2eNrEKenCMcBOAgh2nqTLCYw4GtZPShxa7UQaQfekzyz/nOyVsE9cX6f39TMguIkHOrtJFDrVEP18XpSd8hdX5SFmj5qQ+tzRke1iVYbBEPXTpDumPpNWin8Tl7tGiehQ5SYIigpPJytn0Ig2G1vY3R+ytvvhI21SKPDyJbeHhdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lutJzI8NSE3f7AXzCNg/cZwY862kkt0I4yc7Qb9FrSw=; b=MnzrZfwKKIivsQGMUtElEu7WShgmyu5eVznkkKGS13spzd+8UgFMuYJIssU3bjKqBBuLD1pbYGKMQidBKtcJpPskNui8X8ew10Qyr8dyCTTrwUusMlVT1cpu7KYRjoGH6yZFAyYFs0R0ZE5kcLhXNQQYa0xgwtAe6jG/fSW69toTSLUk00b41ubw6DpRCMFF6T0QhN5XQTIlnsP1C7uP0pxqx4P5QZ/bjwUn3hY1bNVv9ARxBJrM6cxLS0DWGPCal/3607MiwRsw8SdASFIyAZHYTzIcR0iyb0O+pMjwnFa3lXKVDaC8gShVCMZcwQ7ByZPT9YsXPiZKEkGT7Jgyug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEYPR03MB7968.apcprd03.prod.outlook.com (2603:1096:101:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 07:11:27 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7677.029; Mon, 17 Jun 2024 07:11:27 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v2 2/5] arm64: dts: rockchip: Add bluetooth rfkill to Khadas Edge2 Date: Mon, 17 Jun 2024 15:11:09 +0800 Message-Id: <20240617071112.3133101-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617071112.3133101-1-jacobe.zang@wesion.com> References: <20240617071112.3133101-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI2PR06CA0017.apcprd06.prod.outlook.com (2603:1096:4:186::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7968:EE_ X-MS-Office365-Filtering-Correlation-Id: 3692d415-b0a0-4dbc-3994-08dc8e9cb484 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|376011|7416011|366013|38350700011; X-Microsoft-Antispam-Message-Info: 5U7vuW0pklVJFeBiQi37kV4i/ff19DCfoRN61JyR6zeOudflH3jKlvBlOVTqHc48PNR6NvvVEywiLB/GAI/5KYUxkVh8SRnW7kHYPrjyvwnkNWkZii/cEQY039ihoYJwItHKMhVI+n/znxwiFuxhvGuv7DdCDRoG8QKjAqmaDrno5JdqUSVQdsJOsHEQeVLM5G157c9SX6SeYK++xXP3LmX9K+0IQNHvsHQXJP3MXdDbY8F62Bvs0DuRonA+tJp0qxQfNCWYeLuj56bG7tTcwsLY6OEfoG7MISmv1PccZAlJmuvNnjzse1ecuMzl9C9zVoDOmgCxQ4xkwdOGmi2xPiUDZVpawhJloWu9z5Kl0KV35cJqOzXlB1ztbGz9u7LaeMmcA0pE+W36VYaPukGoYAZU2gYDI1HqsVRxmxr1CdrfIgzcYxTelZ5tqUUNvfU8LC/TyTI5/F1TdrohIkddRz4/IgfZazWU0hSRHzvJBY1C0hsQ3OVUKKkFJs1a2dAGOrzHt0LkAKEFT6QeWERZiV8LwGsOLJL/QV/Sre4o1iOXaq0dgT1Ol9/amCauFb11+hGN3ZhSZfC3/Nvjo1RYhhCoWXj3FrzNBq/Ywk5Domx5RzxAJZZnx0ZY5mQVDuZg2ff8FoV8a5fx2HIm25OY1xVY0z7tR9LSkBpG98b+Z2PoAVeum5g1t/2pbi0XLQtZXsx9m/xuf9qluN0tpaEWgBmyR8Frp7xSmO1B8YG+z6OpDvwanH4mm7BW7HdpBE4OJwDsP48bMSOkDccMzAsurfQH/CqQqiwQuO+LqFl8rdmtwCSQxpuxg4s1SRGCqqWbqh6Ux14mRLIbYQjqRPdpxnj49aKKzOQYQH6FewU8DSDmLqrl2lpWElRsNbs4pCmqJ7khKzuW0aj2hJJ+EduBp/w7tApTxqMG8uV87n+EMQx558xngozTtsO7/5rlYl12zZVOVWhot8lsDyCLWPEEzQIUuBswzKE85Wl4+DYhaEThQcL+cMdKscgXeur8FAAhEwqnNiL4qywELWD8Tm4FPVgu55wIOy7a5EQ1iw0ow7gKo8lfRqrE3BDTxeZdNmDfPGlniPx1+qNqfknLjjbMKQRuumJSphj102u+9IHGi6LEHJlv91wf8bfMqgK/zvBZQ9/rxwJR8gPF0dMsDFANCTYGpEdzoByDuboaPgZpKU2RwrzINHCLTwuSwSSPoUAmBhGiXXU0gkP57l7NDsVjXAcL9aw5Ccp/sQ+ZPaLnfHfq9LFhq7tvg2prLQ5ZNvvyE2GxD9Zs8urrVGfQUy5inrtp1VUcfaHjAGlnDIwVGkhNovvQ28SLc/bBzRJuuu2lAEwKuZQmFMnwBB3EXvmRZWfVw4PQ7RGQePOFj58uX84= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(376011)(7416011)(366013)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B4VQTqCVPAHM5c6TUE55ly1DZksslwCTEXLgS76/DgzSjHfrqJTd0zJPIEi8n4Wz6/uW8IDOuwes0NUnO0DZJsLyCWSNuuCMPUp8RDQ0hSYGJbjw0vn3sao/t0N1e0EkJQHfjXInjQI88+GVXOkzv/zxlu/tJfa37GNXWiHAgkwAMi5qqlsZMghGziKbeq43lDlh5jobO8xz8a1OUg1ZoJQIhoBisqpwJFzC26W5eomwn6DhmdTSUeHKdZtd+NCs1JMnOzVROYDSxprtJw41mLdfoT7oQOj5ebvEq5CHtD8VMC0f2w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oIkMNkzcIhTo7kUcMdXtKdqSNP7qe/FGthsh7G0cgiiqdIqriza2MfZ91x4kAkWmNRyra3goSlXq3LJVTAv2xU5T6bixy0DF0TWm5CDYtI9K99ZrHjfgefwvdBlT53naWFSbXcvOHsVCscricdpgd8zmmNs5Y/RmFtG35pZ2Gxx2DcsBdy85d2Tp4QylLJyhb1rTds9PxkIpF00ZrTBIwq13FhaUg== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3692d415-b0a0-4dbc-3994-08dc8e9cb484 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 07:11:27.5470 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Fy6Dx0kISR7pJ6bydK1L7RmzRZ/T++SgGwYq24uEWNW9oT8jUEDWvtSrTyO/7ypzSOh5OMQ8GSDZNiG1G8Pl2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7968 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_001143_258144_DA0C6EBE X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add bluetooth node which managed by rfkill, bluetooth and wlan controller on Khadas Edge2 was BCM43438. In uart9 add RTS node in pinctrl. Signed-off-by: Jacobe Zang --- .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index 8c0bc675690dd..a82f10312eacd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -77,6 +77,14 @@ blue_led: led-2 { }; }; + bluetooth-rfkill { + compatible = "rfkill-gpio"; + label = "rfkill-bluetooth"; + radio-type = "bluetooth"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_reset_pin>; + }; + vcc3v3_pcie_wl: vcc3v3-pcie-wl-regulator { compatible = "regulator-fixed"; enable-active-high; @@ -750,8 +758,15 @@ &uart2 { &uart9 { pinctrl-names = "default"; - pinctrl-0 = <&uart9m2_xfer &uart9m2_ctsn>; + pinctrl-0 = <&uart9m2_xfer &uart9m2_ctsn &uart9m2_rtsn>; status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_reset_pin &bt_wake_host_irq &bt_wake_pin>; + shutdown-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; + }; }; &u2phy0 {