[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_JsqKCb2ZA+CLTVnGBMjp6zu0yw-rSFjWRg2S3hA7S6h-XEA@mail.gmail.com>
Date: Tue, 8 Nov 2022 07:59:33 -0600
From: Rob Herring <robh+dt@...nel.org>
To: Dominique Martinet <dominique.martinet@...ark-techno.com>
Cc: Marcel Holtmann <marcel@...tmann.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Luiz Augusto von Dentz <luiz.dentz@...il.com>,
Johan Hedberg <johan.hedberg@...il.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-bluetooth@...r.kernel.org,
Paolo Abeni <pabeni@...hat.com>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
"David S . Miller" <davem@...emloft.net>, mizo@...ark-techno.com
Subject: Re: [RFC PATCH 1/2] dt-bindings: net: h4-bluetooth: add new bindings
for hci_h4
On Mon, Nov 7, 2022 at 11:56 PM Dominique Martinet
<dominique.martinet@...ark-techno.com> wrote:
>
> Add devicetree binding to support defining a bluetooth device using the h4
> uart protocol
The protocol is mostly irrelevant to the binding. The binding is for a
particular device even if the driver is shared.
>
> 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 <dominique.martinet@...ark-techno.com>
> ---
> .../devicetree/bindings/net/h4-bluetooth.yaml | 49 +++++++++++++++++++
Use the compatible string for the filename.
There's now a pending (in linux-next) net/bluetooth/ directory and a
bluetooth-controller.yaml schema which you should reference.
> 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
> @@ -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 <dominique.martinet@...ark-techno.com>
> +
> +description:
> + H4 is a common bluetooth over uart protocol.
> + 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 <dt-bindings/gpio/gpio.h>
> + #include <dt-bindings/clock/imx8mp-clock.h>
> +
> + uart1 {
serial {
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_uart1>;
> + assigned-clocks = <&clk IMX8MP_CLK_UART1>;
> + assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>;
> + status = "okay";
> + fsl,dte-mode = <1>;
> + fsl,uart-has-rtscts;
All these properties are irrelevant to the example. Drop.
> +
> +
> + bluetooth {
> + compatible = "nxp,aw-xm458-bt";
> + max-speed = <3000000>;
> + };
> + };
> --
> 2.35.1
>
>
Powered by blists - more mailing lists