Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: bluetooth: qcom,qca9377-bt: Split to separate schema

One big Qualcomm Bluetooth schema is hardly manageable: it lists all
possible properties (19 supplies). Split qcom,qca9377-bt to separate
bindings, so device schema will be easier to read/maintain and list only
relevant properties.

Existing binding has incomplete and incorrect list of supplies (e.g.
there is no VDD_XO) and Linux driver does not ask for any, thus keep
this state unchanged.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Krzysztof Kozlowski and committed by
Luiz Augusto von Dentz
e18c153d 68f3769c

+58 -1
+58
Documentation/devicetree/bindings/net/bluetooth/qcom,qca9377-bt.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/bluetooth/qcom,qca9377-bt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm QCA9377 Bluetooth 8 + 9 + maintainers: 10 + - Balakrishna Godavarthi <quic_bgodavar@quicinc.com> 11 + - Rocky Liao <quic_rjliao@quicinc.com> 12 + 13 + properties: 14 + compatible: 15 + enum: 16 + - qcom,qca9377-bt 17 + 18 + clocks: 19 + items: 20 + - description: External low-power 32.768 kHz clock input 21 + 22 + enable-gpios: 23 + maxItems: 1 24 + 25 + vddio-supply: 26 + description: VDD_IO supply regulator handle 27 + 28 + vddxo-supply: 29 + description: VDD_XO supply regulator handle 30 + 31 + required: 32 + - compatible 33 + - clocks 34 + - enable-gpios 35 + 36 + allOf: 37 + - $ref: bluetooth-controller.yaml# 38 + - $ref: qcom,bluetooth-common.yaml 39 + - $ref: /schemas/serial/serial-peripheral-props.yaml# 40 + 41 + unevaluatedProperties: false 42 + 43 + examples: 44 + - | 45 + #include <dt-bindings/gpio/gpio.h> 46 + 47 + serial { 48 + bluetooth { 49 + compatible = "qcom,qca9377-bt"; 50 + clocks = <&rk809 1>; 51 + enable-gpios = <&gpio3 5 GPIO_ACTIVE_HIGH>; 52 + max-speed = <2000000>; 53 + pinctrl-names = "default"; 54 + pinctrl-0 = <&bt_enable>; 55 + vddio-supply = <&vcc_1v8>; 56 + vddxo-supply = <&vcc3v3_sys>; 57 + }; 58 + };
-1
Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
··· 16 16 properties: 17 17 compatible: 18 18 enum: 19 - - qcom,qca9377-bt 20 19 - qcom,wcn3950-bt 21 20 - qcom,wcn3988-bt 22 21 - qcom,wcn3990-bt