Skip to contentSkip to conversation

dt-bindings: rtc: pcf2127: Reference spi-peripheral-props.yaml

PATCH Applied Fabio Estevam 3 participants 3 messages Mar 17, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: rtc: pcf2127: Reference spi-peripheral-props.yaml

From: Fabio Estevam <[email protected]>

PCF2127 is an SPI device, thus its binding should reference spi-peripheral-props.yaml.

Add a reference to spi-peripheral-props.yaml to fix the following dt-schema warning:

imx7d-flex-concentrator.dtb: rtc@0: 'spi-max-frequency' does not match any of the regexes: 'pinctrl-[0-9]+'

---
Changes since v2:
- Specify that the dt-schema error comes from imx7d-flex-concentrator.dtb.
- Write a more concise commit log.

 Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +2 -1
index 2d9fe5a75b06..11fcf0ca1ae0 100644
@@ -8,6 +8,7 @@ title: NXP PCF2127 Real Time Clock
 
 allOf:
   - $ref: rtc.yaml#
+  - $ref: /schemas/spi/spi-peripheral-props.yaml#
 
 maintainers:
   - Alexandre Belloni <[email protected]>
@@ -34,7 +35,7 @@ required:
   - compatible
   - reg
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |
Signature · 1 line
2.34.1
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

PCF2127 is an SPI device, thus its binding should reference spi-peripheral-props.yaml.

Add a reference to spi-peripheral-props.yaml to fix the following dt-schema warning:

imx7d-flex-concentrator.dtb: rtc@0: 'spi-max-frequency' does not match any of the regexes: 'pinctrl-[0-9]+'

Quoted 9 lines

---
Changes since v2:
- Specify that the dt-schema error comes from imx7d-flex-concentrator.dtb.
- Write a more concise commit log.

 Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
maintainer Applied
#2 lore raw
In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

PCF2127 is an SPI device, thus its binding should reference spi-peripheral-props.yaml.

Add a reference to spi-peripheral-props.yaml to fix the following dt-schema warning:

imx7d-flex-concentrator.dtb: rtc@0: 'spi-max-frequency' does not match any of the regexes: 'pinctrl-[0-9]+'

[...]

Applied, thanks!

[1/1] dt-bindings: rtc: pcf2127: Reference spi-peripheral-props.yaml

      https://git.kernel.org/abelloni/c/6c2b833525eb

Best regards,

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com