xref: /freebsd/sys/contrib/device-tree/Bindings/net/realtek-bluetooth.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
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/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
49additionalProperties: false
50
51examples:
52  - |
53    #include <dt-bindings/gpio/gpio.h>
54
55    uart1 {
56        pinctrl-names = "default";
57        pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>;
58        uart-has-rtscts;
59
60        bluetooth {
61            compatible = "realtek,rtl8723bs-bt";
62            device-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
63            host-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
64        };
65    };
66