]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: bluetooth: reference serial-peripheral-props.yaml
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 11 Aug 2024 18:17:08 +0000 (20:17 +0200)
committerRob Herring (Arm) <robh@kernel.org>
Mon, 19 Aug 2024 22:04:55 +0000 (17:04 -0500)
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 <krzysztof.kozlowski@linaro.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240811-dt-bindings-serial-peripheral-props-v1-5-1dba258b7492@linaro.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml
Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml
Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml

index e49e4146736f50db7d0fd40da996287201d73d82..3c410cadff230496cd4a0f1349c564a14abe8dbf 100644 (file)
@@ -119,29 +119,28 @@ properties:
     items:
       - const: host-wakeup
 
-  max-speed: true
-  current-speed: true
-
 required:
   - compatible
 
 dependencies:
   brcm,requires-autobaud-mode: [ shutdown-gpios ]
 
-if:
-  not:
-    properties:
-      compatible:
-        contains:
-          enum:
-            - brcm,bcm20702a1
-            - brcm,bcm4329-bt
-            - brcm,bcm4330-bt
-then:
-  properties:
-    reset-gpios: false
-
-additionalProperties: false
+allOf:
+  - $ref: /schemas/serial/serial-peripheral-props.yaml#
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - brcm,bcm20702a1
+                - brcm,bcm4329-bt
+                - brcm,bcm4330-bt
+    then:
+      properties:
+        reset-gpios: false
+
+unevaluatedProperties: false
 
 examples:
   - |
index 60b90cd6201394d3404ee9ab05fd7d3dd4af90a2..2fc36874deb74bd2fde1ec96e9e9ce1efafc10c9 100644 (file)
@@ -19,13 +19,13 @@ properties:
       - mrvl,88w8897
       - mrvl,88w8997
 
-  max-speed:
-    description: see Documentation/devicetree/bindings/serial/serial.yaml
+  max-speed: true
 
 required:
   - compatible
 
 allOf:
+  - $ref: /schemas/serial/serial-peripheral-props.yaml#
   - if:
       properties:
         compatible:
index 68c5ed1114178c7b21897ffdafbe8c1df58c0bdd..67f95e60ed3ade361c1583aa97163c12911684df 100644 (file)
@@ -98,8 +98,7 @@ properties:
   vddwlmx-supply:
     description: VDD_WLMX supply regulator handle
 
-  max-speed:
-    description: see Documentation/devicetree/bindings/serial/serial.yaml
+  max-speed: true
 
   firmware-name:
     description: specify the name of nvm firmware to load
@@ -118,6 +117,7 @@ additionalProperties: false
 
 allOf:
   - $ref: bluetooth-controller.yaml#
+  - $ref: /schemas/serial/serial-peripheral-props.yaml#
   - if:
       properties:
         compatible:
index 993c607eaa49b9cf94c53277585df74378957e98..7d567122bac9bb4cc0b5469da2c7a37367d96ab5 100644 (file)
@@ -46,6 +46,9 @@ properties:
 required:
   - compatible
 
+allOf:
+  - $ref: /schemas/serial/serial-peripheral-props.yaml#
+
 additionalProperties: false
 
 examples:
index 1f507ddccc3c7a641c5536b5b5af54f9fff5248b..290abc22e18aa179b39bd070f35988364dd20326 100644 (file)
@@ -74,6 +74,9 @@ properties:
 required:
   - compatible
 
+allOf:
+  - $ref: /schemas/serial/serial-peripheral-props.yaml#
+
 additionalProperties: false
 
 examples: