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