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

dt-bindings: gpio: fairchild,74hc595: use spi-peripheral-props.yaml

Instead of listing directly properties typical for SPI peripherals,
reference the spi-peripheral-props.yaml schema. This allows using all
properties typical for SPI-connected devices, even these which device
bindings author did not tried yet.

Remove the spi-* properties which now come via spi-peripheral-props.yaml
schema, except for the cases when device schema adds some constraints
like maximum frequency.

While changing additionalProperties->unevaluatedProperties, put it in
typical place, just before example DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>

authored by

Krzysztof Kozlowski and committed by
Bartosz Golaszewski
1e65d136 ba96b2e7

+4 -3
+4 -3
Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml
··· 33 33 description: GPIO connected to the OE (Output Enable) pin. 34 34 maxItems: 1 35 35 36 - spi-max-frequency: true 37 - 38 36 patternProperties: 39 37 "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": 40 38 type: object ··· 57 59 - '#gpio-cells' 58 60 - registers-number 59 61 60 - additionalProperties: false 62 + allOf: 63 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 64 + 65 + unevaluatedProperties: false 61 66 62 67 examples: 63 68 - |