Skip to contentSkip to conversation

dt-bindings: rtc: pcf2127: add compatible string nxp,rtc-pcf2123

PATCH In review Frank Li 3 participants 7 messages Sep 3, 2025 – Sep 4, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: rtc: pcf2127: add compatible string nxp,rtc-pcf2123

Add compatible string nxp,rtc-pcf2123, which style is not consistent with existed compatible string because existed driver and dts use nxp,rtc-pcf2123.

Fix below CHECK_DTBS warning:
arch/arm/boot/dts/nxp/imx/imx6q-evi.dtb: /soc/bus@2000000/spba-bus@2000000/spi@2018000/rtc@3: failed to match any schema with compatible: ['nxp,rtc-pcf2123']

---
 Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +1 -0
index 11fcf0ca1ae07..595c20df6a411 100644
@@ -20,6 +20,7 @@ properties:
       - nxp,pcf2127
       - nxp,pcf2129
       - nxp,pcf2131
+      - nxp,rtc-pcf2123
 
   reg:
     maxItems: 1
Signature · 1 line
2.34.1
#1 lore raw
Quoted 17 lines · Frank Li

Add compatible string nxp,rtc-pcf2123, which style is not consistent with existed compatible string because existed driver and dts use nxp,rtc-pcf2123.

Fix below CHECK_DTBS warning:
arch/arm/boot/dts/nxp/imx/imx6q-evi.dtb: /soc/bus@2000000/spba-bus@2000000/spi@2018000/rtc@3: failed to match any schema with compatible: ['nxp,rtc-pcf2123']

---
 Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +0 -0
index 11fcf0ca1ae07..595c20df6a411 100644

Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml properties: · line 23

Quoted 4 lines
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +1 -0
@@ -20,6 +20,7 @@ properties:
       - nxp,pcf2127
       - nxp,pcf2129
       - nxp,pcf2131
+      - nxp,rtc-pcf2123

Nope, you need to fix the devicetree.

Quoted 6 lines
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +0 -0
   reg:
     maxItems: 1
Signature · 1 line
2.34.1
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author maintainer
#2 lore raw
Quoted 13 lines · Alexandre Belloni
Quoted 12 lines · Frank Li

Add compatible string nxp,rtc-pcf2123, which style is not consistent with existed compatible string because existed driver and dts use nxp,rtc-pcf2123.

Fix below CHECK_DTBS warning:
arch/arm/boot/dts/nxp/imx/imx6q-evi.dtb: /soc/bus@2000000/spba-bus@2000000/spi@2018000/rtc@3: failed to match any schema with compatible: ['nxp,rtc-pcf2123']

---
 Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml properties: · line 23

Quoted 9 lines
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +1 -0
index 11fcf0ca1ae07..595c20df6a411 100644
@@ -20,6 +20,7 @@ properties:
       - nxp,pcf2127
       - nxp,pcf2129
       - nxp,pcf2131
+      - nxp,rtc-pcf2123

Nope, you need to fix the devicetree.

Oh, driver drivers/rtc/rtc-pcf2123.c also use nxp,rtc-pcf2123. For such old devices, generally keep it as it.

Maybe DT team members provide more professional comments for it.

Frank

Quoted 12 lines
Quoted 7 lines
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +0 -1
   reg:
     maxItems: 1
--

2.34.1

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

#3 lore raw
Quoted 26 lines · Frank Li
Quoted 13 lines · Alexandre Belloni
Quoted 12 lines · Frank Li

Add compatible string nxp,rtc-pcf2123, which style is not consistent with existed compatible string because existed driver and dts use nxp,rtc-pcf2123.

Fix below CHECK_DTBS warning:
arch/arm/boot/dts/nxp/imx/imx6q-evi.dtb: /soc/bus@2000000/spba-bus@2000000/spi@2018000/rtc@3: failed to match any schema with compatible: ['nxp,rtc-pcf2123']

---
 Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines

Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml properties: · line 23

Quoted 9 lines
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +1 -0
index 11fcf0ca1ae07..595c20df6a411 100644
@@ -20,6 +20,7 @@ properties:
       - nxp,pcf2127
       - nxp,pcf2129
       - nxp,pcf2131
+      - nxp,rtc-pcf2123

Nope, you need to fix the devicetree.

Quoted 4 lines

Oh, driver drivers/rtc/rtc-pcf2123.c also use nxp,rtc-pcf2123. For such old devices, generally keep it as it.

Maybe DT team members provide more professional comments for it.

It is there for DT ABI compatibility, we don't need to advertise its existence in the doc, you must fix the device tree.

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw
Quoted 15 lines · Alexandre Belloni
Quoted 14 lines · Frank Li
Quoted 13 lines · Alexandre Belloni
Quoted 12 lines · Frank Li

Add compatible string nxp,rtc-pcf2123, which style is not consistent with existed compatible string because existed driver and dts use nxp,rtc-pcf2123.

Fix below CHECK_DTBS warning:
arch/arm/boot/dts/nxp/imx/imx6q-evi.dtb: /soc/bus@2000000/spba-bus@2000000/spi@2018000/rtc@3: failed to match any schema with compatible: ['nxp,rtc-pcf2123']

---
 Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml properties: · line 23

Quoted 9 lines
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +1 -0
index 11fcf0ca1ae07..595c20df6a411 100644
@@ -20,6 +20,7 @@ properties:
       - nxp,pcf2127
       - nxp,pcf2129
       - nxp,pcf2131
+      - nxp,rtc-pcf2123

Nope, you need to fix the devicetree.

Yep, 6 years is enough for all users to adjust, so I agree.

Quoted 8 lines
Quoted 5 lines

Oh, driver drivers/rtc/rtc-pcf2123.c also use nxp,rtc-pcf2123. For such old devices, generally keep it as it.

Maybe DT team members provide more professional comments for it.

It is there for DT ABI compatibility, we don't need to advertise its existence in the doc, you must fix the device tree.

In-tree compatibles should be documented anyway (as "deprecated: true").

Best regards,
Krzysztof

#5 lore raw
Quoted 34 lines · Krzysztof Kozlowski
Quoted 15 lines · Alexandre Belloni
Quoted 14 lines · Frank Li
Quoted 13 lines · Alexandre Belloni
Quoted 12 lines · Frank Li

Add compatible string nxp,rtc-pcf2123, which style is not consistent with existed compatible string because existed driver and dts use nxp,rtc-pcf2123.

Fix below CHECK_DTBS warning:
arch/arm/boot/dts/nxp/imx/imx6q-evi.dtb: /soc/bus@2000000/spba-bus@2000000/spi@2018000/rtc@3: failed to match any schema with compatible: ['nxp,rtc-pcf2123']

---
 Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml | 1 +
 1 file changed, 1 insertion(+)
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml properties: · line 23

Quoted 9 lines
Documentation/devicetree/bindings/rtc/nxp,pcf2127.yaml +1 -0
index 11fcf0ca1ae07..595c20df6a411 100644
@@ -20,6 +20,7 @@ properties:
       - nxp,pcf2127
       - nxp,pcf2129
       - nxp,pcf2131
+      - nxp,rtc-pcf2123

Nope, you need to fix the devicetree.

Yep, 6 years is enough for all users to adjust, so I agree.

Quoted 4 lines
Quoted 4 lines

Oh, driver drivers/rtc/rtc-pcf2123.c also use nxp,rtc-pcf2123. For such old devices, generally keep it as it.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Maybe DT team members provide more professional comments for it.

It is there for DT ABI compatibility, we don't need to advertise its existence in the doc, you must fix the device tree.

In-tree compatibles should be documented anyway (as "deprecated: true").

There is one device tree to fix, then we won't have any occurrence in-tree anymore.

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#6 lore raw
Quoted 6 lines · Alexandre Belloni
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Oh, driver drivers/rtc/rtc-pcf2123.c also use nxp,rtc-pcf2123. For such old devices, generally keep it as it.

Maybe DT team members provide more professional comments for it.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

It is there for DT ABI compatibility, we don't need to advertise its existence in the doc, you must fix the device tree.

In-tree compatibles should be documented anyway (as "deprecated: true").

There is one device tree to fix, then we won't have any occurrence in-tree anymore.

The driver is, unless there is patch dropping it somewhere...

Best regards,
Krzysztof