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

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

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

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
dcf72cd9 31a8753a

+67 -4
+67
Documentation/devicetree/bindings/net/bluetooth/qcom,wcn3950-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,wcn3950-bt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm WCN3950/WCN3988 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,wcn3950-bt 17 + - qcom,wcn3988-bt 18 + 19 + enable-gpios: 20 + maxItems: 1 21 + 22 + swctrl-gpios: 23 + maxItems: 1 24 + description: gpio specifier is used to find status 25 + of clock supply to SoC 26 + 27 + vddch0-supply: 28 + description: VDD_CH0 supply regulator handle 29 + 30 + vddio-supply: 31 + description: VDD_IO supply regulator handle 32 + 33 + vddrf-supply: 34 + description: VDD_RF supply regulator handle 35 + 36 + vddxo-supply: 37 + description: VDD_XO supply regulator handle 38 + 39 + required: 40 + - compatible 41 + - vddch0-supply 42 + - vddio-supply 43 + - vddrf-supply 44 + - vddxo-supply 45 + 46 + allOf: 47 + - $ref: bluetooth-controller.yaml# 48 + - $ref: qcom,bluetooth-common.yaml 49 + - $ref: /schemas/serial/serial-peripheral-props.yaml# 50 + 51 + unevaluatedProperties: false 52 + 53 + examples: 54 + - | 55 + #include <dt-bindings/gpio/gpio.h> 56 + 57 + serial { 58 + bluetooth { 59 + compatible = "qcom,wcn3950-bt"; 60 + enable-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>; 61 + max-speed = <3200000>; 62 + vddch0-supply = <&pm4125_l22>; 63 + vddio-supply = <&pm4125_l15>; 64 + vddrf-supply = <&pm4125_l10>; 65 + vddxo-supply = <&pm4125_l13>; 66 + }; 67 + };
-4
Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
··· 16 16 properties: 17 17 compatible: 18 18 enum: 19 - - qcom,wcn3950-bt 20 - - qcom,wcn3988-bt 21 19 - qcom,wcn3990-bt 22 20 - qcom,wcn3991-bt 23 21 - qcom,wcn3998-bt ··· 122 124 compatible: 123 125 contains: 124 126 enum: 125 - - qcom,wcn3950-bt 126 - - qcom,wcn3988-bt 127 127 - qcom,wcn3990-bt 128 128 - qcom,wcn3991-bt 129 129 - qcom,wcn3998-bt