dt-bindings: net: ipq4019-mdio: require and validate clocks
Now that we can match the platforms requiring clocks by compatible start using those to allow clocks per compatible and make them required. Signed-off-by: Robert Marko <robimarko@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20221114194734.3287854-3-robimarko@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
05c1cbb96f
commit
e50c50367d
|
@ -9,9 +9,6 @@ title: Qualcomm IPQ40xx MDIO Controller
|
||||||
maintainers:
|
maintainers:
|
||||||
- Robert Marko <robert.marko@sartura.hr>
|
- Robert Marko <robert.marko@sartura.hr>
|
||||||
|
|
||||||
allOf:
|
|
||||||
- $ref: "mdio.yaml#"
|
|
||||||
|
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
oneOf:
|
oneOf:
|
||||||
|
@ -40,10 +37,8 @@ properties:
|
||||||
address range is only required by the platform IPQ50xx.
|
address range is only required by the platform IPQ50xx.
|
||||||
|
|
||||||
clocks:
|
clocks:
|
||||||
maxItems: 1
|
items:
|
||||||
description: |
|
- description: MDIO clock source frequency fixed to 100MHZ
|
||||||
MDIO clock source frequency fixed to 100MHZ, this clock should be specified
|
|
||||||
by the platform IPQ807x, IPQ60xx and IPQ50xx.
|
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
|
@ -51,6 +46,24 @@ required:
|
||||||
- "#address-cells"
|
- "#address-cells"
|
||||||
- "#size-cells"
|
- "#size-cells"
|
||||||
|
|
||||||
|
allOf:
|
||||||
|
- $ref: "mdio.yaml#"
|
||||||
|
|
||||||
|
- if:
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
contains:
|
||||||
|
enum:
|
||||||
|
- qcom,ipq5018-mdio
|
||||||
|
- qcom,ipq6018-mdio
|
||||||
|
- qcom,ipq8074-mdio
|
||||||
|
then:
|
||||||
|
required:
|
||||||
|
- clocks
|
||||||
|
else:
|
||||||
|
properties:
|
||||||
|
clocks: false
|
||||||
|
|
||||||
unevaluatedProperties: false
|
unevaluatedProperties: false
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
|
|
Loading…
Reference in New Issue