Commit c0060591 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring (Arm)

dt-bindings: bluetooth: reference serial-peripheral-props.yaml

Reference common serial properties schema (for children of UART
controllers) to bring common definition of "current-speed" and
"max-speed" properties.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240811-dt-bindings-serial-peripheral-props-v1-5-1dba258b7492@linaro.orgSigned-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
parent 38415a81
...@@ -119,29 +119,28 @@ properties: ...@@ -119,29 +119,28 @@ properties:
items: items:
- const: host-wakeup - const: host-wakeup
max-speed: true
current-speed: true
required: required:
- compatible - compatible
dependencies: dependencies:
brcm,requires-autobaud-mode: [ shutdown-gpios ] brcm,requires-autobaud-mode: [ shutdown-gpios ]
if: allOf:
not: - $ref: /schemas/serial/serial-peripheral-props.yaml#
properties: - if:
compatible: not:
contains: properties:
enum: compatible:
- brcm,bcm20702a1 contains:
- brcm,bcm4329-bt enum:
- brcm,bcm4330-bt - brcm,bcm20702a1
then: - brcm,bcm4329-bt
properties: - brcm,bcm4330-bt
reset-gpios: false then:
properties:
additionalProperties: false reset-gpios: false
unevaluatedProperties: false
examples: examples:
- | - |
......
...@@ -19,13 +19,13 @@ properties: ...@@ -19,13 +19,13 @@ properties:
- mrvl,88w8897 - mrvl,88w8897
- mrvl,88w8997 - mrvl,88w8997
max-speed: max-speed: true
description: see Documentation/devicetree/bindings/serial/serial.yaml
required: required:
- compatible - compatible
allOf: allOf:
- $ref: /schemas/serial/serial-peripheral-props.yaml#
- if: - if:
properties: properties:
compatible: compatible:
......
...@@ -98,8 +98,7 @@ properties: ...@@ -98,8 +98,7 @@ properties:
vddwlmx-supply: vddwlmx-supply:
description: VDD_WLMX supply regulator handle description: VDD_WLMX supply regulator handle
max-speed: max-speed: true
description: see Documentation/devicetree/bindings/serial/serial.yaml
firmware-name: firmware-name:
description: specify the name of nvm firmware to load description: specify the name of nvm firmware to load
...@@ -118,6 +117,7 @@ additionalProperties: false ...@@ -118,6 +117,7 @@ additionalProperties: false
allOf: allOf:
- $ref: bluetooth-controller.yaml# - $ref: bluetooth-controller.yaml#
- $ref: /schemas/serial/serial-peripheral-props.yaml#
- if: - if:
properties: properties:
compatible: compatible:
......
...@@ -46,6 +46,9 @@ properties: ...@@ -46,6 +46,9 @@ properties:
required: required:
- compatible - compatible
allOf:
- $ref: /schemas/serial/serial-peripheral-props.yaml#
additionalProperties: false additionalProperties: false
examples: examples:
......
...@@ -74,6 +74,9 @@ properties: ...@@ -74,6 +74,9 @@ properties:
required: required:
- compatible - compatible
allOf:
- $ref: /schemas/serial/serial-peripheral-props.yaml#
additionalProperties: false additionalProperties: false
examples: examples:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment