Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Krzysztof Kozlowski and committed by
Jakub Kicinski
1ca09f57 6a0a6dd8

+2 -1
+2 -1
Documentation/devicetree/bindings/net/micrel,ks8851.yaml
··· 44 44 45 45 allOf: 46 46 - $ref: ethernet-controller.yaml# 47 - - $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# 48 47 - if: 49 48 properties: 50 49 compatible: 51 50 contains: 52 51 const: micrel,ks8851 53 52 then: 53 + $ref: /schemas/spi/spi-peripheral-props.yaml# 54 54 properties: 55 55 reg: 56 56 maxItems: 1 ··· 60 60 contains: 61 61 const: micrel,ks8851-mll 62 62 then: 63 + $ref: /schemas/memory-controllers/mc-peripheral-props.yaml# 63 64 properties: 64 65 reg: 65 66 minItems: 2