From mboxrd@z Thu Jan 1 00:00:00 1970 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 11CDAC3064D for ; Thu, 27 Jun 2024 16:09:13 +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:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gZ2Ynn+HMr3ipaYxOM6p42cuKYY0DO2xjG1rpcTu8M4=; b=LNVcz8j2R6eUrlk7VSYLKZBxxP 15wDCJU+QbvdJkiQtYEOOsMnsTjG80NFQDodeZHSS65YlQ1lgCW26ogeFMD8iudlGUNE/Ki5UitVX kXnIV7pIVtH8zW0qD17Oeo5OQdreZOGMzlY/HOoDPcqnL/W0Z8SoRNigmb7yj4myI3qE3eFGaE0rC sHYP3+CQKQ0myUyrtoxyAYj9NRmNVEBbkmDRa87RtH3Soi4qjCpzq6ZT+Hfj7tcKwvzEZ2Rlozt1H ro8kjQdeWAR/XcHeqUyNVc88M+fMpEk/oRgRgpEwgXfuNBigYH3/DLedCkdeN+dDhhZbjq4/pIWlX 2Lsdy9fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMrgB-0000000AzQx-3AIa; Thu, 27 Jun 2024 16:08:59 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMrg2-0000000AzQ3-3CDQ; Thu, 27 Jun 2024 16:08:52 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 81DBE61E1B; Thu, 27 Jun 2024 16:08:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCC65C2BBFC; Thu, 27 Jun 2024 16:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719504529; bh=UvvB9I+OgH/8xfj7J4ex+IlmHc9nIRL5By2AyR5g2VY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AfgjuZutP9Yi9KF01fUc7C9CHJgbKTj4/fWIOi34dC2+/URSxG4dJFccgjTM4KpaV 8RHbnWodxabvZm7+PdCJ2PbuO9VG5DIVcfLxQYfDWU3w59BVv5onIwKs9ypB1Ib5iL Xerul6ojTt6wqbH4lURYwXNAq018hhTqB4/Tx4xH2D5d2/rt+J9/LnRebWAmR4Sil2 Sy4aA7fGruCbDbhB3ZcxhV3JKbRi6aLhhKq8M+u1feh+JXnzDyQ26Of6RXsULOBMIT TJHQvi1dnWVn9sAsYeJ0kGlgif84MC1/oXcwFE/zc/1YGzsIdh67Cht5qay1GaBWFW md+ZzpwAbFHTQ== Date: Thu, 27 Jun 2024 10:08:47 -0600 From: Rob Herring To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , Matthias Brugger , AngeloGioacchino Del Regno , Sean Wang , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH] dt-bindings: net: bluetooth: convert MT7622 Bluetooth to the json-schema Message-ID: <20240627160847.GA3506035-robh@kernel.org> References: <20240627054011.26621-1-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240627054011.26621-1-zajec5@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240627_090851_042587_ED65C269 X-CRM114-Status: GOOD ( 16.64 ) 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 On Thu, Jun 27, 2024 at 07:40:11AM +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > This helps validating DTS files. > > Signed-off-by: Rafał Miłecki > --- > .../bluetooth/mediatek,mt7622-bluetooth.yaml | 61 +++++++++++++++++++ > .../bindings/net/mediatek-bluetooth.txt | 36 ----------- > 2 files changed, 61 insertions(+), 36 deletions(-) > create mode 100644 Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7622-bluetooth.yaml > > diff --git a/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7622-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7622-bluetooth.yaml > new file mode 100644 > index 000000000000..cb8ff93c93eb > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7622-bluetooth.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/bluetooth/mediatek,mt7622-bluetooth.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek SoC built-in Bluetooth > + > +description: > + This device is a serial attached device to BTIF device and thus it must be a > + child node of the serial node with BTIF. The dt-bindings details for BTIF > + device can be known via Documentation/devicetree/bindings/serial/8250.yaml. > + > +maintainers: > + - Sean Wang > + > +allOf: > + - $ref: bluetooth-controller.yaml# > + > +properties: > + compatible: > + const: mediatek,mt7622-bluetooth > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: ref > + > + power-domains: > + maxItems: 1 > + > +required: > + - clocks > + - clock-names > + - power-domains > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + serial@1100c000 { > + compatible = "mediatek,mt7622-btif", "mediatek,mtk-btif"; > + reg = <0 0x1100c000 0 0x1000>; > + interrupts = ; > + clocks = <&pericfg CLK_PERI_BTIF_PD>; > + clock-names = "main"; > + reg-shift = <2>; > + reg-io-width = <4>; Just drop all this. Not relevant to *this* example. You just need: serial { > + > + bluetooth { > + compatible = "mediatek,mt7622-bluetooth"; > + power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; > + clocks = <&clk25m>; > + clock-names = "ref"; > + }; > + };