Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3366236rwb; Tue, 8 Nov 2022 03:51:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf6hXBGlHG3pk/fcdspp+aIg+TYa3u4Xf23vM9PRxW39+sCR0itqg1Oelh4DRicQ/+Yb17at X-Received: by 2002:a17:902:e5cc:b0:188:712f:df78 with SMTP id u12-20020a170902e5cc00b00188712fdf78mr19318076plf.106.1667908312950; Tue, 08 Nov 2022 03:51:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667908312; cv=none; d=google.com; s=arc-20160816; b=SZhtf6RFAg9Wybb/dALvDfq7Xq6LYjxLsQy2L+y7m6HqR9ygbYEuip0wlsDucDVDcn NRqA46m28zKLs1EZhWHRteJdiCd2fL+eothrwmeAlezdXZRB6ZeEGwI1lOR6Zl14PeEH v/1c48AcoeTTMP9CAmgTvU/1j1/NcrTXA1vobD7QKdI/VUu0ijwwrW0oNq10YupKAZIB jojmlg780UbskkAxsUrBatp28puXsMr4zeKQQdVk4kmkNiiMwjO52TzXUzd3ATlV6DRC 4XRL3oz0SwHk8oK1LqzF5VhD3HJ7gt3gmq2eMqthC5EzBX6QDp2hbku8cRaMnfhQ7wWw 3wFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/lVzoqt83Ak42kIKiN8LqOfDF7RgMmRJivY7ZIPnKXQ=; b=tnSBLUCGIMOy91IVaBYadyXUHyISh5jyFkDuYpGx+bZRimNEpWSa9kxgOrFb2I9tuM swsDp7YuZ2yaJKv9uf+GDEHEIi/bJC3aEI5F1YYbLVNn22BDwj/h3I0MJhiJF3kfYp+S qqX1Ouaamu59C4fbD5PAXcZ+1qMuZS8EZRgJa5BtoOoleo2lNPW234c3uaDu007oIRUq XEjrKienJs+OYMjjwv/ZDGfYrAjJtRGsxGHRg+uCbQGtABS2EiJiA7OAxo4UYr4O2vrQ fAo+ORMYfEhhm4ikew8p9gcQyKcQ3elr9+RDs2LyVHhbxRZYRFNKmrjO410yNu5+APey Nv+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KbCk9zzD; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a056a00124e00b0056262d97880si15334124pfi.186.2022.11.08.03.51.30; Tue, 08 Nov 2022 03:51:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KbCk9zzD; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233846AbiKHLhp (ORCPT + 99 others); Tue, 8 Nov 2022 06:37:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233592AbiKHLho (ORCPT ); Tue, 8 Nov 2022 06:37:44 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68DCF1AF38 for ; Tue, 8 Nov 2022 03:37:42 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id s24so20652099ljs.11 for ; Tue, 08 Nov 2022 03:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/lVzoqt83Ak42kIKiN8LqOfDF7RgMmRJivY7ZIPnKXQ=; b=KbCk9zzDc2wv90rxSwsopGI0FlGUd0PHG+RyDVhJXRh4SJnAEKlKOHAO9WzEyon8/U x8mfPKi9UZIZ9QyvTtebQx0+Gx0ESDxdOVK95xjJ0U2s0YKMlQua3U2+b/ucPREDz8ia OYEVwIEafPl7Sencx2iu54Uzz/81mg7fz8Zm+KNetL+aRMNVH03nrfONnWzdc4Z9Q75h 11a45zws/P3tKRV/zIyFERUv6WRx8DqVi6CTX+cBPFYQv9ROPz47OMh6mXx2IIjhTxuU pZ+fSG0PFRhHeZYK5Gx4OQHEQWQ/Nav1ZvRnWCgN7+2C/IddxLnpLb7U11DpCM11lOLJ J9+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/lVzoqt83Ak42kIKiN8LqOfDF7RgMmRJivY7ZIPnKXQ=; b=S6hR6sZv0WnV5q5JGWhgv75lfe6hknX5h+M+V1I/e9fMmboX53/hBoH1o2sXj/I8Er OnaNuKeLnsVFPIO6EqGlsHmmbfw8M8lVDkH6U33kf6T9MuiuVa1AmNli3ANxBW401L6D z7JpCv1Qha89sXkws4rCNiS8/mXh6fIe8wc1fqp5P18cldM5G4ERNa67bJzjQHhKmneD 9fNBjQYRR+Rh2sTOm0s93mC+TKKm7mtpucnhuBnT3VnFeTbI83GFC0yjVsi3dFw/TSVj 0Umo5/2BiuMXdEXRrf3/6QeSZwuu5M1N9KbcsvqbK9rpVmkHKKY+RuhAINIE2ocrsZ6J XUIw== X-Gm-Message-State: ACrzQf2/S+d13yLlvXp3d8JPE5YtDjOqok6vxFQhoegt48INdxwFulsl rc9igTlLs1IOzpGTZ3Wpb2MAAw== X-Received: by 2002:a05:651c:307:b0:277:113f:3a1e with SMTP id a7-20020a05651c030700b00277113f3a1emr19582705ljp.518.1667907460751; Tue, 08 Nov 2022 03:37:40 -0800 (PST) Received: from [192.168.0.20] (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id o4-20020ac25e24000000b0048af4dc964asm1758175lfg.73.2022.11.08.03.37.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Nov 2022 03:37:40 -0800 (PST) Message-ID: <6a4f7104-8b6f-7dcd-a7ac-f866956e31d6@linaro.org> Date: Tue, 8 Nov 2022 12:37:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [RFC PATCH 1/2] dt-bindings: net: h4-bluetooth: add new bindings for hci_h4 Content-Language: en-US To: Dominique Martinet , Marcel Holtmann , Rob Herring , Krzysztof Kozlowski , Luiz Augusto von Dentz , Johan Hedberg Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S . Miller" , mizo@atmark-techno.com References: <20221108055531.2176793-1-dominique.martinet@atmark-techno.com> <20221108055531.2176793-2-dominique.martinet@atmark-techno.com> From: Krzysztof Kozlowski In-Reply-To: <20221108055531.2176793-2-dominique.martinet@atmark-techno.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 08/11/2022 06:55, Dominique Martinet wrote: > Add devicetree binding to support defining a bluetooth device using the h4 > uart protocol > subject: drop second redundant "bindings" > This was tested with a NXP wireless+BT AW-XM458 module, but might > benefit others as the H4 protocol seems often used. > > Signed-off-by: Dominique Martinet > --- > .../devicetree/bindings/net/h4-bluetooth.yaml | 49 +++++++++++++++++++ > 1 file changed, 49 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/h4-bluetooth.yaml > > diff --git a/Documentation/devicetree/bindings/net/h4-bluetooth.yaml b/Documentation/devicetree/bindings/net/h4-bluetooth.yaml > new file mode 100644 > index 000000000000..5d11b89ca386 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/h4-bluetooth.yaml If the schema is for one specific device, then filename matching the compatible, so nxp,aw-xm458-bt.yaml... but I understand you want to describe here class of devices using H4 Bluetooth? Won't they need their own specific properties? > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/h4-bluetooth.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: H4 Bluetooth > + > +maintainers: > + - Dominique Martinet > + > +description: > + H4 is a common bluetooth over uart protocol. Bluetooth UART > + For example, the AW-XM458 is a WiFi + BT module where the WiFi part is > + connected over PCI (M.2), while BT is connected over serial speaking > + the H4 protocol. Its firmware is sent on the PCI side. > + > +properties: > + compatible: > + enum: > + - nxp,aw-xm458-bt > + > + max-speed: true > + > +required: > + - compatible > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + uart1 { uart > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_uart1>; > + assigned-clocks = <&clk IMX8MP_CLK_UART1>; > + assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>; Drop unrelated properties. > + status = "okay"; Drop status. > + fsl,dte-mode = <1>; > + fsl,uart-has-rtscts; Are these two related to this hardware? > + > + > + bluetooth { > + compatible = "nxp,aw-xm458-bt"; > + max-speed = <3000000>; > + }; > + }; Best regards, Krzysztof