Skip to content

Commit c006059

Browse files
krzkrobherring
authored andcommitted
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: Krzysztof Kozlowski <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/20240811-dt-bindings-serial-peripheral-props-v1-5-1dba258b7492@linaro.org Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 38415a8 commit c006059

File tree

5 files changed

+26
-21
lines changed

5 files changed

+26
-21
lines changed

Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -119,29 +119,28 @@ properties:
119119
items:
120120
- const: host-wakeup
121121

122-
max-speed: true
123-
current-speed: true
124-
125122
required:
126123
- compatible
127124

128125
dependencies:
129126
brcm,requires-autobaud-mode: [ shutdown-gpios ]
130127

131-
if:
132-
not:
133-
properties:
134-
compatible:
135-
contains:
136-
enum:
137-
- brcm,bcm20702a1
138-
- brcm,bcm4329-bt
139-
- brcm,bcm4330-bt
140-
then:
141-
properties:
142-
reset-gpios: false
143-
144-
additionalProperties: false
128+
allOf:
129+
- $ref: /schemas/serial/serial-peripheral-props.yaml#
130+
- if:
131+
not:
132+
properties:
133+
compatible:
134+
contains:
135+
enum:
136+
- brcm,bcm20702a1
137+
- brcm,bcm4329-bt
138+
- brcm,bcm4330-bt
139+
then:
140+
properties:
141+
reset-gpios: false
142+
143+
unevaluatedProperties: false
145144

146145
examples:
147146
- |

Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ properties:
1919
- mrvl,88w8897
2020
- mrvl,88w8997
2121

22-
max-speed:
23-
description: see Documentation/devicetree/bindings/serial/serial.yaml
22+
max-speed: true
2423

2524
required:
2625
- compatible
2726

2827
allOf:
28+
- $ref: /schemas/serial/serial-peripheral-props.yaml#
2929
- if:
3030
properties:
3131
compatible:

Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ properties:
9898
vddwlmx-supply:
9999
description: VDD_WLMX supply regulator handle
100100

101-
max-speed:
102-
description: see Documentation/devicetree/bindings/serial/serial.yaml
101+
max-speed: true
103102

104103
firmware-name:
105104
description: specify the name of nvm firmware to load
@@ -118,6 +117,7 @@ additionalProperties: false
118117

119118
allOf:
120119
- $ref: bluetooth-controller.yaml#
120+
- $ref: /schemas/serial/serial-peripheral-props.yaml#
121121
- if:
122122
properties:
123123
compatible:

Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ properties:
4646
required:
4747
- compatible
4848

49+
allOf:
50+
- $ref: /schemas/serial/serial-peripheral-props.yaml#
51+
4952
additionalProperties: false
5053

5154
examples:

Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ properties:
7474
required:
7575
- compatible
7676

77+
allOf:
78+
- $ref: /schemas/serial/serial-peripheral-props.yaml#
79+
7780
additionalProperties: false
7881

7982
examples:

0 commit comments

Comments
 (0)