dt-bindings: net: Define properties at top-level
Convention is DT schemas should define all properties at the top-level and not inside of if/then schemas. That minimizes the if/then schemas and is more future proof. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Link: https://patch.msgid.link/20240703195827.1670594-2-robh@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
caa93b7c25
commit
390b14b5e9
@ -68,6 +68,17 @@ properties:
|
|||||||
Phandle to the syscon node that handles the path from GMAC to
|
Phandle to the syscon node that handles the path from GMAC to
|
||||||
PHY variants.
|
PHY variants.
|
||||||
|
|
||||||
|
mediatek,pcie-mirror:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/phandle
|
||||||
|
description:
|
||||||
|
Phandle to the mediatek pcie-mirror controller.
|
||||||
|
|
||||||
|
mediatek,pctl:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/phandle
|
||||||
|
description:
|
||||||
|
Phandle to the syscon node that handles the ports slew rate and
|
||||||
|
driver current.
|
||||||
|
|
||||||
mediatek,sgmiisys:
|
mediatek,sgmiisys:
|
||||||
$ref: /schemas/types.yaml#/definitions/phandle-array
|
$ref: /schemas/types.yaml#/definitions/phandle-array
|
||||||
minItems: 1
|
minItems: 1
|
||||||
@ -131,15 +142,12 @@ allOf:
|
|||||||
|
|
||||||
mediatek,infracfg: false
|
mediatek,infracfg: false
|
||||||
|
|
||||||
mediatek,pctl:
|
|
||||||
$ref: /schemas/types.yaml#/definitions/phandle
|
|
||||||
description:
|
|
||||||
Phandle to the syscon node that handles the ports slew rate and
|
|
||||||
driver current.
|
|
||||||
|
|
||||||
mediatek,wed: false
|
mediatek,wed: false
|
||||||
|
|
||||||
mediatek,wed-pcie: false
|
mediatek,wed-pcie: false
|
||||||
|
else:
|
||||||
|
properties:
|
||||||
|
mediatek,pctl: false
|
||||||
|
|
||||||
- if:
|
- if:
|
||||||
properties:
|
properties:
|
||||||
@ -201,12 +209,10 @@ allOf:
|
|||||||
minItems: 1
|
minItems: 1
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
mediatek,pcie-mirror:
|
|
||||||
$ref: /schemas/types.yaml#/definitions/phandle
|
|
||||||
description:
|
|
||||||
Phandle to the mediatek pcie-mirror controller.
|
|
||||||
|
|
||||||
mediatek,wed-pcie: false
|
mediatek,wed-pcie: false
|
||||||
|
else:
|
||||||
|
properties:
|
||||||
|
mediatek,pcie-mirror: false
|
||||||
|
|
||||||
- if:
|
- if:
|
||||||
properties:
|
properties:
|
||||||
|
@ -512,6 +512,12 @@ properties:
|
|||||||
description:
|
description:
|
||||||
Frequency division factor for MDC clock.
|
Frequency division factor for MDC clock.
|
||||||
|
|
||||||
|
snps,tso:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/flag
|
||||||
|
description:
|
||||||
|
Enables the TSO feature otherwise it will be managed by MAC HW capability
|
||||||
|
register.
|
||||||
|
|
||||||
mdio:
|
mdio:
|
||||||
$ref: mdio.yaml#
|
$ref: mdio.yaml#
|
||||||
unevaluatedProperties: false
|
unevaluatedProperties: false
|
||||||
@ -595,41 +601,38 @@ allOf:
|
|||||||
- if:
|
- if:
|
||||||
properties:
|
properties:
|
||||||
compatible:
|
compatible:
|
||||||
contains:
|
not:
|
||||||
enum:
|
contains:
|
||||||
- allwinner,sun7i-a20-gmac
|
enum:
|
||||||
- allwinner,sun8i-a83t-emac
|
- allwinner,sun7i-a20-gmac
|
||||||
- allwinner,sun8i-h3-emac
|
- allwinner,sun8i-a83t-emac
|
||||||
- allwinner,sun8i-r40-gmac
|
- allwinner,sun8i-h3-emac
|
||||||
- allwinner,sun8i-v3s-emac
|
- allwinner,sun8i-r40-gmac
|
||||||
- allwinner,sun50i-a64-emac
|
- allwinner,sun8i-v3s-emac
|
||||||
- loongson,ls2k-dwmac
|
- allwinner,sun50i-a64-emac
|
||||||
- loongson,ls7a-dwmac
|
- loongson,ls2k-dwmac
|
||||||
- ingenic,jz4775-mac
|
- loongson,ls7a-dwmac
|
||||||
- ingenic,x1000-mac
|
- ingenic,jz4775-mac
|
||||||
- ingenic,x1600-mac
|
- ingenic,x1000-mac
|
||||||
- ingenic,x1830-mac
|
- ingenic,x1600-mac
|
||||||
- ingenic,x2000-mac
|
- ingenic,x1830-mac
|
||||||
- qcom,qcs404-ethqos
|
- ingenic,x2000-mac
|
||||||
- qcom,sa8775p-ethqos
|
- qcom,qcs404-ethqos
|
||||||
- qcom,sc8280xp-ethqos
|
- qcom,sa8775p-ethqos
|
||||||
- qcom,sm8150-ethqos
|
- qcom,sc8280xp-ethqos
|
||||||
- snps,dwmac-4.00
|
- qcom,sm8150-ethqos
|
||||||
- snps,dwmac-4.10a
|
- snps,dwmac-4.00
|
||||||
- snps,dwmac-4.20a
|
- snps,dwmac-4.10a
|
||||||
- snps,dwmac-5.10a
|
- snps,dwmac-4.20a
|
||||||
- snps,dwmac-5.20
|
- snps,dwmac-5.10a
|
||||||
- snps,dwxgmac
|
- snps,dwmac-5.20
|
||||||
- snps,dwxgmac-2.10
|
- snps,dwxgmac
|
||||||
- st,spear600-gmac
|
- snps,dwxgmac-2.10
|
||||||
|
- st,spear600-gmac
|
||||||
|
|
||||||
then:
|
then:
|
||||||
properties:
|
properties:
|
||||||
snps,tso:
|
snps,tso: false
|
||||||
$ref: /schemas/types.yaml#/definitions/flag
|
|
||||||
description:
|
|
||||||
Enables the TSO feature otherwise it will be managed by
|
|
||||||
MAC HW capability register.
|
|
||||||
|
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user