Skip to content

Commit

Permalink
dt-bindings: gpio: fairchild,74hc595: use spi-peripheral-props.yaml
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Rob Herring <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
  • Loading branch information
krzk authored and brgl committed Aug 15, 2022
1 parent ba96b2e commit 1e65d13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ properties:
description: GPIO connected to the OE (Output Enable) pin.
maxItems: 1

spi-max-frequency: true

patternProperties:
"^(hog-[0-9]+|.+-hog(-[0-9]+)?)$":
type: object
Expand All @@ -59,7 +57,10 @@ required:
- '#gpio-cells'
- registers-number

additionalProperties: false
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down

0 comments on commit 1e65d13

Please sign in to comment.