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: iio: dac: 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>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220816124321.67817-5-krzysztof.kozlowski@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Krzysztof Kozlowski and committed by
Jonathan Cameron
25d04699 1deca207

+71 -66
+3 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5064.yaml
··· 95 95 vrefD-supply: true 96 96 vref-supply: true 97 97 98 - spi-max-frequency: true 99 - 100 - additionalProperties: false 101 - 102 98 required: 103 99 - compatible 104 100 - reg 105 101 106 102 allOf: 103 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 107 104 - # Shared external vref, no internal reference 108 105 if: 109 106 properties: ··· 228 231 required: 229 232 - vrefA-supply 230 233 - vrefB-supply 234 + 235 + unevaluatedProperties: false 231 236 232 237 examples: 233 238 - |
+3 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5360.yaml
··· 28 28 vref1-supply: true 29 29 vref2-supply: true 30 30 31 - spi-max-frequency: true 32 - 33 - additionalProperties: false 34 - 35 31 required: 36 32 - compatible 37 33 - reg ··· 35 39 - vref1-supply 36 40 37 41 allOf: 42 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 38 43 - if: 39 44 properties: 40 45 compatible: ··· 59 62 then: 60 63 required: 61 64 - vref2-supply 65 + 66 + unevaluatedProperties: false 62 67 63 68 examples: 64 69 - |
+5 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5380.yaml
··· 39 39 description: 40 40 If not supplied devices will use internal regulators. 41 41 42 - spi-max-frequency: true 43 - 44 - additionalProperties: false 45 - 46 42 required: 47 43 - compatible 48 44 - reg 45 + 46 + allOf: 47 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 48 + 49 + unevaluatedProperties: false 49 50 50 51 examples: 51 52 - |
+4 -3
Documentation/devicetree/bindings/iio/dac/adi,ad5421.yaml
··· 26 26 maxItems: 1 27 27 description: Fault signal. 28 28 29 - spi-max-frequency: true 30 - 31 29 required: 32 30 - compatible 33 31 - reg 34 32 35 - additionalProperties: false 33 + allOf: 34 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 35 + 36 + unevaluatedProperties: false 36 37 37 38 examples: 38 39 - |
+3 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5449.yaml
··· 27 27 reg: 28 28 maxItems: 1 29 29 30 - spi-max-frequency: true 31 - 32 30 VREF-supply: true 33 31 VREFA-supply: true 34 32 VREFB-supply: true 35 - 36 - additionalProperties: false 37 33 38 34 required: 39 35 - compatible 40 36 - reg 41 37 42 38 allOf: 39 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 43 40 - if: 44 41 properties: 45 42 compatible: ··· 68 71 required: 69 72 - VREFA-supply 70 73 - VREFB-supply 74 + 75 + unevaluatedProperties: false 71 76 72 77 examples: 73 78 - |
+5 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5624r.yaml
··· 22 22 reg: 23 23 maxItems: 1 24 24 25 - spi-max-frequency: true 26 - 27 25 vref-supply: 28 26 description: If not present, internal reference will be used. 29 - 30 - additionalProperties: false 31 27 32 28 required: 33 29 - compatible 34 30 - reg 31 + 32 + allOf: 33 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 34 + 35 + unevaluatedProperties: false 35 36 36 37 examples: 37 38 - |
+5 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5686.yaml
··· 53 53 vcc-supply: 54 54 description: If not supplied the internal reference is used. 55 55 56 - spi-max-frequency: true 57 - 58 - additionalProperties: false 59 - 60 56 required: 61 57 - compatible 62 58 - reg 59 + 60 + allOf: 61 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 62 + 63 + unevaluatedProperties: false 63 64 64 65 examples: 65 66 - |
+5 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5755.yaml
··· 25 25 description: Either this or spi-cpol but not both. 26 26 spi-cpol: true 27 27 28 - spi-max-frequency: true 29 - 30 28 adi,ext-dc-dc-compenstation-resistor: 31 29 $ref: /schemas/types.yaml#/definitions/flag 32 30 description: ··· 64 66 required: 65 67 - compatible 66 68 - reg 67 - 68 - additionalProperties: false 69 69 70 70 patternProperties: 71 71 "^channel@[0-7]$": ··· 118 122 - spi-cpha 119 123 - required: 120 124 - spi-cpol 125 + 126 + allOf: 127 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 128 + 129 + unevaluatedProperties: false 121 130 122 131 examples: 123 132 - |
+2 -2
Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml
··· 16 16 reg: 17 17 maxItems: 1 18 18 19 - spi-max-frequency: true 20 19 spi-cpha: true 21 20 22 21 adi,dc-dc-mode: ··· 98 99 - adi,dc-dc-mode 99 100 100 101 allOf: 102 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 101 103 - if: 102 104 properties: 103 105 adi,dc-dc-mode: ··· 115 115 required: 116 116 - adi,range-microvolt 117 117 118 - additionalProperties: false 118 + unevaluatedProperties: false 119 119 120 120 examples: 121 121 - |
+3 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5761.yaml
··· 22 22 reg: 23 23 maxItems: 1 24 24 25 - spi-max-frequency: true 26 - 27 25 vref-supply: 28 26 description: If not supplied, internal reference will be used. 29 - 30 - additionalProperties: false 31 27 32 28 required: 33 29 - compatible 34 30 - reg 35 31 36 32 allOf: 33 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 37 34 - if: 38 35 properties: 39 36 compatible: ··· 41 44 then: 42 45 required: 43 46 - vref-supply 47 + 48 + unevaluatedProperties: false 44 49 45 50 examples: 46 51 - |
+3 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5764.yaml
··· 22 22 reg: 23 23 maxItems: 1 24 24 25 - spi-max-frequency: true 26 - 27 25 vrefAB-supply: true 28 26 vrefCD-supply: true 29 - 30 - additionalProperties: false 31 27 32 28 required: 33 29 - compatible 34 30 - reg 35 31 36 32 allOf: 33 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 37 34 - if: 38 35 properties: 39 36 compatible: ··· 42 45 required: 43 46 - vrefAB-supply 44 47 - vrefCD-supply 48 + 49 + unevaluatedProperties: false 45 50 46 51 examples: 47 52 - |
+4 -3
Documentation/devicetree/bindings/iio/dac/adi,ad5770r.yaml
··· 49 49 asserted during driver probe. 50 50 maxItems: 1 51 51 52 - spi-max-frequency: true 53 - 54 52 '#address-cells': 55 53 const: 1 56 54 ··· 136 138 - channel@4 137 139 - channel@5 138 140 139 - additionalProperties: false 141 + allOf: 142 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 143 + 144 + unevaluatedProperties: false 140 145 141 146 examples: 142 147 - |
+5 -4
Documentation/devicetree/bindings/iio/dac/adi,ad5791.yaml
··· 23 23 reg: 24 24 maxItems: 1 25 25 26 - spi-max-frequency: true 27 - 28 26 vdd-supply: true 29 27 vss-supply: true 30 - 31 - additionalProperties: false 32 28 33 29 required: 34 30 - compatible 35 31 - reg 36 32 - vdd-supply 37 33 - vss-supply 34 + 35 + allOf: 36 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 37 + 38 + unevaluatedProperties: false 38 39 39 40 examples: 40 41 - |
+3 -4
Documentation/devicetree/bindings/iio/dac/adi,ad8801.yaml
··· 19 19 reg: 20 20 maxItems: 1 21 21 22 - spi-max-frequency: true 23 - 24 22 vrefh-supply: true 25 23 vrefl-supply: true 26 - 27 - additionalProperties: false 28 24 29 25 required: 30 26 - compatible ··· 28 32 - vrefh-supply 29 33 30 34 allOf: 35 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 31 36 - if: 32 37 properties: 33 38 compatible: ··· 40 43 else: 41 44 properties: 42 45 vrefl-supply: false 46 + 47 + unevaluatedProperties: false 43 48 44 49 examples: 45 50 - |
+5 -4
Documentation/devicetree/bindings/iio/dac/microchip,mcp4922.yaml
··· 21 21 reg: 22 22 maxItems: 1 23 23 24 - spi-max-frequency: true 25 - 26 24 vref-supply: true 27 - 28 - additionalProperties: false 29 25 30 26 required: 31 27 - compatible 32 28 - reg 33 29 - vref-supply 30 + 31 + allOf: 32 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 33 + 34 + unevaluatedProperties: false 34 35 35 36 examples: 36 37 - |
+5 -4
Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml
··· 33 33 vref-supply: 34 34 description: Needed to provide output scaling. 35 35 36 - spi-max-frequency: true 37 - 38 36 required: 39 37 - compatible 40 38 - reg 41 39 - vref-supply 42 - 43 - additionalProperties: false 44 40 45 41 oneOf: 46 42 - required: 47 43 - spi-cpha 48 44 - required: 49 45 - spi-cpol 46 + 47 + allOf: 48 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 49 + 50 + unevaluatedProperties: false 50 51 51 52 examples: 52 53 - |
+4 -3
Documentation/devicetree/bindings/iio/dac/ti,dac7311.yaml
··· 24 24 Reference voltage must be supplied to establish the scaling of the 25 25 output voltage. 26 26 27 - spi-max-frequency: true 28 - 29 27 required: 30 28 - compatible 31 29 - reg 32 30 - vref-supply 33 31 34 - additionalProperties: false 32 + allOf: 33 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 34 + 35 + unevaluatedProperties: false 35 36 36 37 examples: 37 38 - |
+4 -3
Documentation/devicetree/bindings/iio/dac/ti,dac7612.yaml
··· 29 29 DACs are loaded when the pin connected to this GPIO is pulled low. 30 30 maxItems: 1 31 31 32 - spi-max-frequency: true 33 - 34 32 required: 35 33 - compatible 36 34 - reg 37 35 38 - additionalProperties: false 36 + allOf: 37 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 38 + 39 + unevaluatedProperties: false 39 40 40 41 examples: 41 42 - |