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