From patchwork Thu Jul 18 07:42:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li via B4 Relay X-Patchwork-Id: 13736155 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 04395C3DA49 for ; Thu, 18 Jul 2024 07:43:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=g3xnLJAQ61SKNNkjH6gkuy7O3xQi7YQXg/t5/DcNJUQ=; b=GKaRWzJVAeo5haw6wSQaQDL/DN a4aZKwPEQ4FIzpDmpmPnDjVkjxM3C5yKJxW+QCgktFm22cakPB4Noyqwk/76HkE+3rVahZnL2IDdK t+wxifjiwe2CxZHVNblj7Nup3c57dlICnScWm4TS9yCC7xqi5MuHmVsQdwtOHE9AgNhEMmNogR/CQ rLyoqB8+WxGp/DnNbsw1EDFo/9nTyMAVgGccPZ9u82rFrTqMB8b1e/BuUylA9LSl0BJ6tvRQLec6K g46XqWjirEwwz+ZczCoK5ZhYORBUaMNR+OoU34HJ1GGOOoh1GxNhR7W8ffbdifBHikLSsUYCEIj7A oYqLxcqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sULnh-0000000GGAw-131K; Thu, 18 Jul 2024 07:43:41 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sULn2-0000000GFyQ-0lUE for linux-arm-kernel@lists.infradead.org; Thu, 18 Jul 2024 07:43:01 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id ECF85CE1872; Thu, 18 Jul 2024 07:42:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 2DCE6C116B1; Thu, 18 Jul 2024 07:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721288577; bh=McKO7a2Y9X5UuWrJvOXo6XzO6tf+ZBq08Na/c5RO+zI=; h=From:Subject:Date:To:Cc:Reply-To:From; b=iyYL68MF1S0LvsDrkCN9wdDVBzCz2X7MmT06y2MuWP9GsgLALmO7ebL4j6YKA0n/y XGZ89Xf7C0C73EL9NzJoJ5gHF0Q9GJAczDX/AwSGQQHYrxGzK4wUEHNVrtkrIgy8av Nrh2wegio2YIk/WURHdmmZHjamf7JyvYaOBtC/q7eM4b3UPXhCbSsERMrMWdX6l+Fm JQEybTVxLrBJMCfjrWwB+tPd2/LpCUqKBrPG+yFuraEW2ettzpWRuB8s3M13YCcZjW LCmZRkFgxDXs9uABRyv9jgpVoN+MhnJl37LnHEhAF1V4Mx3XIYPfC9Bvg8Jtn5NplI GhhTSuH1+no1A== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E186C3DA49; Thu, 18 Jul 2024 07:42:57 +0000 (UTC) From: Yang Li via B4 Relay Subject: [PATCH v2 0/3] Add support for Amlogic HCI UART Date: Thu, 18 Jul 2024 15:42:18 +0800 Message-Id: <20240718-btaml-v2-0-1392b2e21183@amlogic.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAFrHmGYC/y3MQQ7CIBRF0a00fywGkAZw5D5MB0Ch/YktBhqia di7WB3el5ezQ/YJfYZrt0PyBTPGtQU/deBms06e4NgaOOWCCqaI3czyIEGP0jItuTAW2veZfMD X4dyH1jPmLab3wRb2XX+CpP1fKIxQIgPrLypo5Xy4tTVO6M4uLjDUWj+mDLEinAAAAA== To: Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Yang Li , Ye He X-Mailer: b4 0.13-dev-f0463 X-Developer-Signature: v=1; a=ed25519-sha256; t=1721288574; l=1309; i=yang.li@amlogic.com; s=20240418; h=from:subject:message-id; bh=McKO7a2Y9X5UuWrJvOXo6XzO6tf+ZBq08Na/c5RO+zI=; b=yaEHvInkvweHp4KULgQoWMx2FfK9VIzp24xUAWtkczpAXykd9ulVlbDUQyyItoTFFdlqpTF+R 3LBUXfXOZtFBO1nMiiSc+rH13F9K6ssqRZO7fZnUFROqioIQsgUg1xr X-Developer-Key: i=yang.li@amlogic.com; a=ed25519; pk=86OaNWMr3XECW9HGNhkJ4HdR2eYA5SEAegQ3td2UCCs= X-Endpoint-Received: by B4 Relay for yang.li@amlogic.com/20240418 with auth_id=180 X-Original-From: Yang Li X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240718_004300_602520_55126D18 X-CRM114-Status: GOOD ( 11.79 ) 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: , Reply-To: yang.li@amlogic.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for Amlogic HCI UART, including dt-binding, and Amlogic Bluetooth driver. Signed-off-by: Yang Li --- Changes in v2: - Introduce a regulator for powering up the Bluetooth chip instead of power sequencing. - Use the GPIO Consumer API to manipulate the GPIO pins instead of the legacy API. - Minor fixes. - Link to v1: https://lore.kernel.org/r/20240705-btaml-v1-0-7f1538f98cef@amlogic.com --- Yang Li (3): dt-bindings: net: bluetooth: Add support for Amlogic Bluetooth Bluetooth: hci_uart: Add support for Amlogic HCI UART MAINTAINERS: Add an entry for Amlogic HCI UART (M: Yang Li) .../bindings/net/bluetooth/amlogic,w155s2-bt.yaml | 66 ++ MAINTAINERS | 7 + drivers/bluetooth/Kconfig | 12 + drivers/bluetooth/Makefile | 1 + drivers/bluetooth/hci_aml.c | 772 +++++++++++++++++++++ drivers/bluetooth/hci_ldisc.c | 8 +- drivers/bluetooth/hci_uart.h | 8 +- 7 files changed, 871 insertions(+), 3 deletions(-) --- base-commit: 54dd4796336de8ce5cbf344db837f9b8448ebcf8 change-id: 20240418-btaml-f9d7b19724ab Best regards,