[v4,2/5] dt-bindings: eeprom: Inherit from nvmem.yaml
Commit Message
EEPROMs can be nvmem providers. Let's make all EEPROM bindings
reference nvmem.yaml as they should, so that nvmem cells and layout
parsers can be safely described within the EEPROM nodes.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
Documentation/devicetree/bindings/eeprom/at24.yaml | 5 ++++-
Documentation/devicetree/bindings/eeprom/at25.yaml | 1 +
.../devicetree/bindings/eeprom/microchip,93lc46b.yaml | 1 +
3 files changed, 6 insertions(+), 1 deletion(-)
Comments
On Mon, Nov 14, 2022 at 9:57 AM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
>
> EEPROMs can be nvmem providers. Let's make all EEPROM bindings
> reference nvmem.yaml as they should, so that nvmem cells and layout
> parsers can be safely described within the EEPROM nodes.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Mon, 14 Nov 2022 09:56:56 +0100, Miquel Raynal wrote:
> EEPROMs can be nvmem providers. Let's make all EEPROM bindings
> reference nvmem.yaml as they should, so that nvmem cells and layout
> parsers can be safely described within the EEPROM nodes.
>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> Documentation/devicetree/bindings/eeprom/at24.yaml | 5 ++++-
> Documentation/devicetree/bindings/eeprom/at25.yaml | 1 +
> .../devicetree/bindings/eeprom/microchip,93lc46b.yaml | 1 +
> 3 files changed, 6 insertions(+), 1 deletion(-)
>
Reviewed-by: Rob Herring <robh@kernel.org>
@@ -10,6 +10,9 @@ title: I2C EEPROMs compatible with Atmel's AT24
maintainers:
- Bartosz Golaszewski <bgolaszewski@baylibre.com>
+allOf:
+ - $ref: /schemas/nvmem/nvmem.yaml
+
select:
properties:
compatible:
@@ -183,7 +186,7 @@ required:
- compatible
- reg
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
@@ -104,6 +104,7 @@ required:
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
+ - $ref: /schemas/nvmem/nvmem.yaml
- if:
properties:
compatible:
@@ -47,6 +47,7 @@ required:
allOf:
- $ref: /schemas/spi/spi-peripheral-props.yaml#
+ - $ref: /schemas/nvmem/nvmem.yaml
unevaluatedProperties: false