From patchwork Fri Aug 2 09:39:47 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: 13751360 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 2E1CDC3DA49 for ; Fri, 2 Aug 2024 09:42:05 +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:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=98Y2MZU0ZDAfE4+KB5E52t49jGoIqv0PIu5K9Qnw6gA=; b=Ofsm5rniYwZJes0pkLcotY57Wk eIPXVytsdJjDG9HMt6LhUcGasLte1xF7kYR6Fw/EL/4C04qFcKNLTQuW/esWhlTg6mbIll5pcn7KF J8yOMZPyWGHxcKxTeWTnjr1jmqQMWipSsqaN8x/VF5SpUJN+6hOUeN5M7ewpb7SpfM0Vxrs5wxudF +obxUJ5bwyT7vfNqhiXPgtWJsTIge3Wcv7oKIl8wetPrVoL7OlgVCG1S+MIP3orZ6jAhuF1gM+yVQ vYGvDduqeCkliImVtcOipet52Y9nbD0CUsVTZzZKeJWAZEnTYZHKuL56QeOeAk1T0XGyRSIMl0zJd aLN29Png==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZonL-00000008JyJ-2gLW; Fri, 02 Aug 2024 09:41:55 +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 1sZolv-00000008JPW-21Rr for linux-arm-kernel@lists.infradead.org; Fri, 02 Aug 2024 09:40:29 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id DEA05CE1AC8; Fri, 2 Aug 2024 09:40:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id F08EAC4AF09; Fri, 2 Aug 2024 09:40:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1722591625; bh=bF4ED4NrrC8dMHCfZvWLMB8aVMN3QYy8q3le4qszIoE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=SrRkcso3LeFN0KOM5VAQsFmQmV20aZzPvytVqKP4xWj+NYWzXI0P4CwwfjFA8L5X+ GSraZiryal2zbHWhawasP1xWkLOGiPcDd8Eij1khyLN6TREKzIXTQUPgT6yZrfk7hJ fgchyJ2wGepLjBFsEbQqAa4PZsK/3HaYZaeYZsqNT7QfkAoDL32fR951X6Ubyb04oJ UmcShHJGHGya2huRobc1iK0GAKPxzcESMnXvWfdZV6UagX0m1/5nu4pjPMG2OS0hTu 3TAsiDYGR5es+28PDUYCgdaAHRNHZA7wSXjCyBgcTImkjBLj+O4zv6u737FauES9iL NNFrHKa3W2/zA== 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 DE879C3DA7F; Fri, 2 Aug 2024 09:40:24 +0000 (UTC) From: Yang Li via B4 Relay Date: Fri, 02 Aug 2024 17:39:47 +0800 Subject: [PATCH v3 1/3] dt-bindings: net: bluetooth: Add support for Amlogic Bluetooth MIME-Version: 1.0 Message-Id: <20240802-btaml-v3-1-d8110bf9963f@amlogic.com> References: <20240802-btaml-v3-0-d8110bf9963f@amlogic.com> In-Reply-To: <20240802-btaml-v3-0-d8110bf9963f@amlogic.com> 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 X-Mailer: b4 0.13-dev-f0463 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722591623; l=2151; i=yang.li@amlogic.com; s=20240418; h=from:subject:message-id; bh=jit1Vgrwmm8Xigd6jWG3AYnjzF/YLlq67lp25AQso5I=; b=ZEK+MJkZmwHPV+HVoYUuAnMXbNQe8Jl4DSa+h1deIBEtfayDJAzEShJafcjwOrJ33ymOsCHgf jXIcUUJZ4/pC45LxP3HJkXTQWG8Us3sGvzOEtzoUYl8bVandsr/RwxL 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-20240802_024027_909084_5C4FD3A1 X-CRM114-Status: GOOD ( 13.01 ) 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 From: Yang Li Add binding document for Amlogic Bluetooth chipsets attached over UART. Signed-off-by: Yang Li Reviewed-by: Krzysztof Kozlowski --- .../bindings/net/bluetooth/amlogic,w155s2-bt.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/Documentation/devicetree/bindings/net/bluetooth/amlogic,w155s2-bt.yaml b/Documentation/devicetree/bindings/net/bluetooth/amlogic,w155s2-bt.yaml new file mode 100644 index 000000000000..c0c4209cd687 --- /dev/null +++ b/Documentation/devicetree/bindings/net/bluetooth/amlogic,w155s2-bt.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (C) 2024 Amlogic, Inc. All rights reserved +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/bluetooth/amlogic,w155s2-bt.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Bluetooth chips + +description: + The W155S2 is an Amlogic Bluetooth and Wi-Fi combo chip. It works on + the standard H4 protocol via a 4-wire UART interface, with baud rates + up to 4 Mbps. + +maintainers: + - Yang Li + +properties: + compatible: + oneOf: + - const: amlogic,w155s2-bt + - items: + - enum: + - amlogic,w265s1-bt + - amlogic,w265p1-bt + - amlogic,w265s2-bt + - const: amlogic,w155s2-bt + + clocks: + maxItems: 1 + description: clock provided to the controller (32.768KHz) + + enable-gpios: + maxItems: 1 + + vddio-supply: + description: VDD_IO supply regulator handle + + firmware-name: + maxItems: 1 + description: specify the path of firmware bin to load + +required: + - compatible + - enable-gpios + - vddio-supply + - clocks + - firmware-name + +additionalProperties: false + +examples: + - | + #include + bluetooth { + compatible = "amlogic,w155s2-bt"; + clocks = <&extclk>; + enable-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; + vddio-supply = <&wcn_3v3>; + firmware-name = "amlogic/aml_w155s2_bt_uart.bin"; + }; +