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

Configure Feed

Select the types of activity you want to include in your feed.

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

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

The existing bindings do not mention interrupts, but
am335x-sancloud-bbe-extended-wifi.dts already defines such. This issue
is not being fixed here.

Existing binding also did not mention any supplies (which do exist as
confirmed in datasheet) 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
68f3769c 0e2a6af8

+76 -24
+25
Documentation/devicetree/bindings/net/bluetooth/qcom,bluetooth-common.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,bluetooth-common.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Bluetooth Common Properties 8 + 9 + maintainers: 10 + - Balakrishna Godavarthi <quic_bgodavar@quicinc.com> 11 + - Rocky Liao <quic_rjliao@quicinc.com> 12 + 13 + properties: 14 + firmware-name: 15 + minItems: 1 16 + items: 17 + - description: specify the name of nvm firmware to load 18 + - description: specify the name of rampatch firmware to load 19 + 20 + qcom,local-bd-address-broken: 21 + type: boolean 22 + description: 23 + boot firmware is incorrectly passing the address in big-endian order 24 + 25 + additionalProperties: true
+49
Documentation/devicetree/bindings/net/bluetooth/qcom,qca2066-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,qca2066-bt.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm QCA2006 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,qca2066-bt 17 + - qcom,qca6174-bt 18 + 19 + clocks: 20 + items: 21 + - description: External low-power 32.768 kHz clock input 22 + 23 + enable-gpios: 24 + maxItems: 1 25 + 26 + required: 27 + - compatible 28 + - clocks 29 + - enable-gpios 30 + 31 + allOf: 32 + - $ref: bluetooth-controller.yaml# 33 + - $ref: qcom,bluetooth-common.yaml 34 + - $ref: /schemas/serial/serial-peripheral-props.yaml# 35 + 36 + unevaluatedProperties: false 37 + 38 + examples: 39 + - | 40 + #include <dt-bindings/gpio/gpio.h> 41 + 42 + serial { 43 + bluetooth { 44 + compatible = "qcom,qca6174-bt"; 45 + clocks = <&divclk4>; 46 + enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; 47 + firmware-name = "nvm_00440302.bin"; 48 + }; 49 + };
+1 -24
Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
··· 16 16 properties: 17 17 compatible: 18 18 enum: 19 - - qcom,qca2066-bt 20 - - qcom,qca6174-bt 21 19 - qcom,qca9377-bt 22 20 - qcom,wcn3950-bt 23 21 - qcom,wcn3988-bt ··· 120 122 allOf: 121 123 - $ref: bluetooth-controller.yaml# 122 124 - $ref: /schemas/serial/serial-peripheral-props.yaml# 123 - - if: 124 - properties: 125 - compatible: 126 - contains: 127 - enum: 128 - - qcom,qca2066-bt 129 - - qcom,qca6174-bt 130 - then: 131 - required: 132 - - enable-gpios 133 - - clocks 134 125 135 126 - if: 136 127 properties: ··· 199 212 200 213 examples: 201 214 - | 202 - #include <dt-bindings/gpio/gpio.h> 203 - serial { 204 - 205 - bluetooth { 206 - compatible = "qcom,qca6174-bt"; 207 - enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; 208 - clocks = <&divclk4>; 209 - firmware-name = "nvm_00440302.bin"; 210 - }; 211 - }; 212 - - | 213 215 serial { 214 216 215 217 bluetooth { ··· 212 236 }; 213 237 }; 214 238 - | 239 + #include <dt-bindings/gpio/gpio.h> 215 240 serial { 216 241 217 242 bluetooth {
+1
MAINTAINERS
··· 21379 21379 M: Bartosz Golaszewski <brgl@kernel.org> 21380 21380 L: linux-arm-msm@vger.kernel.org 21381 21381 S: Maintained 21382 + F: Documentation/devicetree/bindings/net/bluetooth/qcom,* 21382 21383 F: drivers/bluetooth/btqca.[ch] 21383 21384 F: drivers/bluetooth/btqcomsmd.c 21384 21385 F: drivers/bluetooth/hci_qca.c