Skip to content

Commit 5416d79

Browse files
ehristevdavem330
authored andcommitted
dt-bindings: net: rockchip-dwmac: fix {tx|rx}-delay defaults/range in schema
The range and the defaults are specified in the description instead of being specified in the schema. Fix it by adding the default value in the `default` field and specifying the range as `minimum` and `maximum`. Fixes: b331b8e ("dt-bindings: net: convert rockchip-dwmac to json-schema") Signed-off-by: Eugen Hristev <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4a08226 commit 5416d79

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Documentation/devicetree/bindings/net/rockchip-dwmac.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,18 @@ properties:
9191
$ref: /schemas/types.yaml#/definitions/phandle
9292

9393
tx_delay:
94-
description: Delay value for TXD timing. Range value is 0~0x7F, 0x30 as default.
94+
description: Delay value for TXD timing.
9595
$ref: /schemas/types.yaml#/definitions/uint32
96+
minimum: 0
97+
maximum: 0x7F
98+
default: 0x30
9699

97100
rx_delay:
98-
description: Delay value for RXD timing. Range value is 0~0x7F, 0x10 as default.
101+
description: Delay value for RXD timing.
99102
$ref: /schemas/types.yaml#/definitions/uint32
103+
minimum: 0
104+
maximum: 0x7F
105+
default: 0x10
100106

101107
phy-supply:
102108
description: PHY regulator

0 commit comments

Comments
 (0)