dt-bindings: mmc: synopsys-dw-mshc: fix clock-freq-min-max in example
Subsystems (3)
PATCH 1/1 dt-bindings: mmc: synopsys-dw-mshc: fix clock-freq-min-max in example
A test with the command below does not detect all errors in combination with 'additionalProperties: false' and allOf:
- $ref: "synopsys-dw-mshc-common.yaml#"
allOf:
- $ref: "mmc-controller.yaml#"
'additionalProperties' applies to all properties that are not accounted-for by 'properties' or 'patternProperties' in the immediate schema.
First when we combine synopsys-dw-mshc.yaml, synopsys-dw-mshc-common.yaml and mmc-controller.yaml it gives this error:
Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.example.dt.yaml:
mmc@12200000: 'clock-freq-min-max' does not match any of the regexes:
'^.*@[0-9]+$', '^clk-phase-(legacy|sd-hs|mmc-(hs|hs[24]00|ddr52)| uhs-(sdr(12|25|50|104)|ddr50))$', 'pinctrl-[0-9]+'
'clock-freq-min-max' is deprecated, so replace it by 'max-frequency'.
make ARCH=arm dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.yaml
--- Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.yaml +1 -1
@@ -62,7 +62,7 @@ examples: cap-mmc-highspeed; cap-sd-highspeed; card-detect-delay = <200>; - clock-freq-min-max = <400000 200000000>; + max-frequency = <200000000>; clock-frequency = <400000000>; data-addr = <0x200>; fifo-depth = <0x80>;
Signature · 1 line
2.11.0
Quoted 21 lines · Johan Jonker
A test with the command below does not detect all errors in combination with 'additionalProperties: false' and allOf:
- $ref: "synopsys-dw-mshc-common.yaml#"
allOf:
- $ref: "mmc-controller.yaml#"'additionalProperties' applies to all properties that are not accounted-for by 'properties' or 'patternProperties' in the immediate schema.
First when we combine
synopsys-dw-mshc.yaml,synopsys-dw-mshc-common.yamlandmmc-controller.yamlit gives this error:
Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.example.dt.yaml:
mmc@12200000: 'clock-freq-min-max' does not match any of the regexes:
'^.*@[0-9]+$', '^clk-phase-(legacy|sd-hs|mmc-(hs|hs[24]00|ddr52)| uhs-(sdr(12|25|50|104)|ddr50))$', 'pinctrl-[0-9]+'
Quoted 6 lines
'clock-freq-min-max' is deprecated, so replace it by 'max-frequency'.
make ARCH=arm
dt_binding_checkDT_SCHEMA_FILES=Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.yamlSigned-off-by Johan Jonker <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 20 lines
--- Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/mmc/synopsys-dw-mshc.yaml +1
-2@@ -62,7 +62,7 @@ examples: cap-mmc-highspeed; cap-sd-highspeed; card-detect-delay = <200>; - clock-freq-min-max = <400000 200000000>; + max-frequency = <200000000>; clock-frequency = <400000000>; data-addr = <0x200>; fifo-depth = <0x80>; --2.11.0