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