xref: /freebsd/sys/contrib/device-tree/Bindings/net/bluetooth/realtek,bluetooth.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*b2d2a78aSEmmanuel Vadot%YAML 1.2
3*b2d2a78aSEmmanuel Vadot---
4*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/net/bluetooth/realtek,bluetooth.yaml#
5*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*b2d2a78aSEmmanuel Vadot
7*b2d2a78aSEmmanuel Vadottitle: RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS Bluetooth
8*b2d2a78aSEmmanuel Vadot
9*b2d2a78aSEmmanuel Vadotmaintainers:
10*b2d2a78aSEmmanuel Vadot  - Vasily Khoruzhick <anarsoul@gmail.com>
11*b2d2a78aSEmmanuel Vadot  - Alistair Francis <alistair@alistair23.me>
12*b2d2a78aSEmmanuel Vadot
13*b2d2a78aSEmmanuel Vadotdescription:
14*b2d2a78aSEmmanuel Vadot  RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS is a WiFi + BT chip. WiFi part
15*b2d2a78aSEmmanuel Vadot  is connected over SDIO, while BT is connected over serial. It speaks
16*b2d2a78aSEmmanuel Vadot  H5 protocol with few extra commands to upload firmware and change
17*b2d2a78aSEmmanuel Vadot  module speed.
18*b2d2a78aSEmmanuel Vadot
19*b2d2a78aSEmmanuel Vadotproperties:
20*b2d2a78aSEmmanuel Vadot  compatible:
21*b2d2a78aSEmmanuel Vadot    oneOf:
22*b2d2a78aSEmmanuel Vadot      - enum:
23*b2d2a78aSEmmanuel Vadot          - realtek,rtl8723bs-bt
24*b2d2a78aSEmmanuel Vadot          - realtek,rtl8723cs-bt
25*b2d2a78aSEmmanuel Vadot          - realtek,rtl8723ds-bt
26*b2d2a78aSEmmanuel Vadot          - realtek,rtl8822cs-bt
27*b2d2a78aSEmmanuel Vadot      - items:
28*b2d2a78aSEmmanuel Vadot          - enum:
29*b2d2a78aSEmmanuel Vadot              - realtek,rtl8821cs-bt
30*b2d2a78aSEmmanuel Vadot          - const: realtek,rtl8723bs-bt
31*b2d2a78aSEmmanuel Vadot
32*b2d2a78aSEmmanuel Vadot  device-wake-gpios:
33*b2d2a78aSEmmanuel Vadot    maxItems: 1
34*b2d2a78aSEmmanuel Vadot    description: GPIO specifier, used to wakeup the BT module
35*b2d2a78aSEmmanuel Vadot
36*b2d2a78aSEmmanuel Vadot  enable-gpios:
37*b2d2a78aSEmmanuel Vadot    maxItems: 1
38*b2d2a78aSEmmanuel Vadot    description: GPIO specifier, used to enable the BT module
39*b2d2a78aSEmmanuel Vadot
40*b2d2a78aSEmmanuel Vadot  host-wake-gpios:
41*b2d2a78aSEmmanuel Vadot    maxItems: 1
42*b2d2a78aSEmmanuel Vadot    description: GPIO specifier, used to wakeup the host processor
43*b2d2a78aSEmmanuel Vadot
44*b2d2a78aSEmmanuel Vadot  max-speed: true
45*b2d2a78aSEmmanuel Vadot
46*b2d2a78aSEmmanuel Vadotrequired:
47*b2d2a78aSEmmanuel Vadot  - compatible
48*b2d2a78aSEmmanuel Vadot
49*b2d2a78aSEmmanuel VadotallOf:
50*b2d2a78aSEmmanuel Vadot  - $ref: /schemas/serial/serial-peripheral-props.yaml#
51*b2d2a78aSEmmanuel Vadot
52*b2d2a78aSEmmanuel VadotadditionalProperties: false
53*b2d2a78aSEmmanuel Vadot
54*b2d2a78aSEmmanuel Vadotexamples:
55*b2d2a78aSEmmanuel Vadot  - |
56*b2d2a78aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
57*b2d2a78aSEmmanuel Vadot
58*b2d2a78aSEmmanuel Vadot    uart1 {
59*b2d2a78aSEmmanuel Vadot        pinctrl-names = "default";
60*b2d2a78aSEmmanuel Vadot        pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
61*b2d2a78aSEmmanuel Vadot        uart-has-rtscts;
62*b2d2a78aSEmmanuel Vadot
63*b2d2a78aSEmmanuel Vadot        bluetooth {
64*b2d2a78aSEmmanuel Vadot            compatible = "realtek,rtl8723bs-bt";
65*b2d2a78aSEmmanuel Vadot            device-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
66*b2d2a78aSEmmanuel Vadot            host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
67*b2d2a78aSEmmanuel Vadot        };
68*b2d2a78aSEmmanuel Vadot    };
69