Skip to content

Commit 1ca09f5

Browse files
krzkkuba-moo
authored andcommitted
dt-bindings: net: micrel,ks8851: allow SPI device properties
The Micrel KS8851 can be attached to SPI or parallel bus and the difference is expressed in compatibles. Allow common SPI properties when this is a SPI variant and narrow the parallel memory bus properties to the second case. This fixes dtbs_check warning: qcom-msm8960-cdp.dtb: ethernet@0: Unevaluated properties are not allowed ('spi-max-frequency' was unexpected) Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230619170134.65395-1-krzysztof.kozlowski@linaro.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 6a0a6dd commit 1ca09f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Documentation/devicetree/bindings/net/micrel,ks8851.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ required:
4444

4545
allOf:
4646
- $ref: ethernet-controller.yaml#
47-
- $ref: /schemas/memory-controllers/mc-peripheral-props.yaml#
4847
- if:
4948
properties:
5049
compatible:
5150
contains:
5251
const: micrel,ks8851
5352
then:
53+
$ref: /schemas/spi/spi-peripheral-props.yaml#
5454
properties:
5555
reg:
5656
maxItems: 1
@@ -60,6 +60,7 @@ allOf:
6060
contains:
6161
const: micrel,ks8851-mll
6262
then:
63+
$ref: /schemas/memory-controllers/mc-peripheral-props.yaml#
6364
properties:
6465
reg:
6566
minItems: 2

0 commit comments

Comments
 (0)