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