From patchwork Mon Jun 17 03:05:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13699918 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 1964FC27C79 for ; Mon, 17 Jun 2024 03:06:40 +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: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=cOgXPWBptF/A7mzZEZNg9cSudvTmsmGAGdfCLeFAxBA=; b=qJcPbY0AWX2svJ wm+3t6rli++KLanC6WlZaCk/q3xp1g/5FpaQ75kRISSCs/4b7BRVV8UQXiSRSeJtUAxt+SLjj8Xv8 LbHoXsHcJ1l8J2NmvebEuC/eo8WPQpctUKCOVqt8MDMB4TUEO66EFKiHYiG2QkE7NnBCdiQih9gnV HhN8LAgn5xv8tgalcivCs2BoSnr6xS4/kAM+NdTPswFLm0EN1yiYngbrynzyK0WDAY7GT4Kepfbfc Ci40SQ9poDgy99teBIoBHQs6M+jp6qCys1BeReaxi4YjA0pEyJ9fNnR8S9OyLiG1N4chZqPKnjdbf NE5GL8sSnm+8WF/XPNAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hY-00000008xRr-3unj; Mon, 17 Jun 2024 03:06:36 +0000 Received: from mail-sgaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feab::703] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hQ-00000008xKg-1jjl; Mon, 17 Jun 2024 03:06:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R54olXRGhaZqgAwrT/yWkcKb5M+wGrEV8p7sKJy4S95/8CPobqjYsRvOIp4+VeDN2moXBPoj0EI67hgPFWGd6AfTQvP1VG2E7vGHTvGpKV6zZxXqK4QI3gC7YzDFsbPXqe3rGHvC4YmQbJ7J58D92r5dgHGPc9fSNNl+FDLHEzaUy1tSKPWwy11ezaLWlyb42aG9nCdhLNlp9sJSDO8HQcCVUGqf623VoPhwotLj0fbdIO3yO++KFYIg/eu/1oC0IXGwMa9dfzXpNM6mJPSukVtusYNbKyGx0A/7AvqTNNJHS5Ye1pjpEpJSqSBYdBigNmWWmgKl6qwkDvVJgxgv3A== 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=FVw2NgDohpQBFahPboLSS8bU10mCoNlgnT9lJAK7tWY=; b=VArHqbBYhvQiIhZ1vhyRIovnjETZ96RghlwbruYhmFeSI71L8bKPi2QTar1q2ZBsrReMs5ZaxXRf1ovvghqRQpOdx40qCRIMY71TIAsqFoCK43np9/Afee6leLVwjhl/z9QqvQEmL1ZNaObgJPaHTmxjtpaPT3GvJRDftwS/z7+v+HZDEVCuc9C3nGveD44uz1FFQjpHNjzu/aw2NgUhU9dcdIIaBO2tWDWetHOUVBY7CCawezCcg+R8Y81h1541ccoAWB2ntGHjXVCMIb9m2/4LPP6e51KZU6QfplUEKByRcWYJOCZ44s0u3FKOaZQWd2N1QmCPafrxCk8+A8o7Rg== 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 KL1PR03MB8001.apcprd03.prod.outlook.com (2603:1096:820:fc::5) 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 03:06:24 +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 03:06:24 +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 v1 2/5] arm64: dts: rockchip: Add bluetooth rfkill to Khadas Edge2 Date: Mon, 17 Jun 2024 11:05:34 +0800 Message-Id: <20240617030537.3112356-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617030537.3112356-1-jacobe.zang@wesion.com> References: <20240617030537.3112356-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8001:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ccf8aac-084b-452b-73b1-08dc8e7a789a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|7416011|376011|52116011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: Lngn91gb+gCKWtrnI5bNf2rIXoGZDizm4EVEa8PI/UvPShbZHFuenbTjki11xtkVry5d/0ZlVr+JyV1EbmxDNoGs7E8gp59j8/GC5XPkH70iA2uTC4nj7CDEeVsB/bX3BMT71iZzKImnWn3fsGm6OqtEFqHm4Ruih9iruSsLzYr9+Z/3TI7lNXnfE+fR0Ze6UiVhiUnzQYUtVB1gKyelOI9uuINaxMggS5PbglwiNJlpwVv+Ml0uL6Uc4zQyJx4AV+ZP9xJOxcbOQK1QRQ74f0ag0t9bRE2T37j8olygngV5+047rIluVd2AlZ78Banm7ccoehkDNFTjnZXBGZo9wPwovENX+SvxzuINxqz8MNgg9quUzhjiGiEdGfR7Ef6nkm/oh7vSWXfvPEF4Yl82Dtvg4X0yeXgWVkSOCixfXRkcVuqs45QyX82gaaxCYWxnSzLTEcxzCFbM9XKK6WWN/97n9wMMF1icuvfhHkvfBeBRcSkwv7XlABJjPKq2puExEbzXnaC6n+mwJPQM5ZWtt1Ut4fSpG5eiWiJt+B3iPXIsH5ZwPhwll5ZdkXdkB1O1ndtQyF14s0cRiTU8NELCLKiA/0nacUEFxGEdXbvQTpLjHl1yyL5ulygzUviuAi7lt3kSIwbaTBMJjwgIa9yW4PaYFe0OqmSFXEaT/BmGwqEvf0HV4HtsDSzJsdRqPPCanEldExTYkfrhpyFwzPmUW+SQBlzWrZ2n0zgw0ht20obQJP9R+eIMRQBXqo7pab92zqCAOVsmvY355o8SOWB3Ii7fj6Ux2K5hx0VkM/fsLjwvRp6plDglKP86t3WXDqb8C3LUn7r5IP4gCpAzOwS3Gx5Vh5nfLwHhIadPbCIrbLsflcsAlWm6FswR3iLB8ur2bVNr3pHSKO3Lu5efTkJ3ao9y6avznKLWYgCYByoKDICSOajvTaG4a9hqvP8nsM2xWdOruQE3/ze2kF1f2wKeaGhLlFXQj22tJVHkaF6OdH8tputKOyBF1RBhu6uPPbbcjYt6SjWvbVuXzTWI11uBkipcTWbJamx53ZWzEugJkL9XJVcQsex+2vPjUUw2TkcCtfwItIiyp394fdhkHavQIE8fb0g/WxaCCqlbQb6WsxkXBQpylcif73AIhmL6xUd6nMNA/sCDhvG1vTXmSRGN+8rGF50H857AY5Fwg7j/ZJU1Ap5nEyKk37fvqe838QrXz2IBacjIDms0OdqVM6nLWRIb7YGQgF1B8lZy3TdHHy8U4S0TivmnmMOHHs/vm4b5c7KnY3WKof4PuzVIkzy0weJebmGbiQBQVYohPczHsGgkq3x5lxOjDvVUv5yLLYRit79Yc7HH4QHBAzH4GTgi5799Rf1D0dwnZ64pR080tF4= 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)(366013)(7416011)(376011)(52116011)(1800799021)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OI+VyJJzAJ007z4rgn1u2qTYFXxDbLadVszGl4XnRBxdyJUhbe8LPRACIl4q1Eyf7UmG1LAZYbclUsvAgA8apk+RjYpAZB5XnHvEV2x/ZRAzH2uLiOMmsdwy0YMvLIDl8r0qFevQ/h6fZXAe6Dvvb90R6ohr9tvQ9r+fdSDeIYtQZfHhvTub92RIlf/XJNldUagTuZ7ZnSq4Sr01X7/HApbiiusP4WC72I5S3AtyuNjnLQoiG6DOsCt+I8TFogvYA+SHnqT80dy9/ibj/OmGT0KLCEb+3McRYOuLhiNyPPIIl7++W694It9DWo9c5RqLwMh+YKa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otSxouL8xwQOuDYfy9jTngPOHLJ6jO80oaRRgelLoHylB74Jd2U8b9u+BekyGkezpObr81A/LNAi9iU3tJYLbARXHz2amSuCTy4O6SKspNtjmYKksDq+ecuQBWzPQxZAjcy4b+HZAc8pm2yyPwgkk7348t3TAKM9bha/Q992lVHFcEL250zyU7jwD9KVBr4EsImqXlgnbOiGAnGUM7IdJ5A== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ccf8aac-084b-452b-73b1-08dc8e7a789a X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 03:06:24.1376 (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: yr3pIglHmd/gEC5VokNWpsyCJqqlnwr+7bjbWCs1/q+L6f559pYRwCWb0GFom9C01Lg3RVu1qHHiDX0igSDsaw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8001 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_200628_478925_2CC9F1B0 X-CRM114-Status: UNSURE ( 8.85 ) 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 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 9c2678905d236..3570578d225b9 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 {