Re: [PATCH v7 1/4] dt-bindings: rtc: Add NXP PCF8525 RTC

From: Krzysztof Kozlowski

Date: Tue Dec 01 2026 - 00:12:30 EST


On Mon, Nov 30, 2026 at 10:58:20AM +0530, Shiv Prakash Gupta wrote:
> Add a Devicetree binding for the NXP PCF8525 I2C RTC. Describe the
> optional INTA interrupt used for RTC alarm and timestamp events, and
> the INTB interrupt used by the watchdog.
>
> Add a property to select the temperature-compensation crystal model.
> Also allow the common start-year and wakeup-source properties.
>
> Signed-off-by: Lakshay Piplani <lakshay.piplani@xxxxxxx>
> Signed-off-by: Shiv Prakash Gupta <shivprakash.gupta@xxxxxxx>
> ---
> .../devicetree/bindings/rtc/nxp,pcf8525.yaml | 88 +++++++++++++++++++
> 1 file changed, 88 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/rtc/nxp,pcf8525.yaml
>
> diff --git a/Documentation/devicetree/bindings/rtc/nxp,pcf8525.yaml b/Documentation/devicetree/bindings/rtc/nxp,pcf8525.yaml
> new file mode 100644
> index 000000000000..a2fe4c2d36a1
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/rtc/nxp,pcf8525.yaml
> @@ -0,0 +1,88 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/rtc/nxp,pcf8525.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: NXP PCF8525 Real Time Clock
> +
> +description:
> + The PCF8525 is an I2C real-time clock with alarm, timestamp, watchdog,
> + backup battery switch-over, and temperature compensation for an external
> + 32.768 kHz crystal.
> +
> +allOf:
> + - $ref: rtc.yaml#
> + - if:
> + required:
> + - wakeup-source
> + - interrupt-names
> + then:
> + properties:
> + interrupt-names:
> + contains:
> + const: inta

Entire allOf should be rather placed before
additionalProperties/unevaluatedProperties.

> +
> +maintainers:
> + - Lakshay Piplani <lakshay.piplani@xxxxxxx>
> + - Shiv Prakash Gupta <shivprakash.gupta@xxxxxxx>
> +
> +properties:
> + compatible:
> + enum:
> + - nxp,pcf8525
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + minItems: 1
> + maxItems: 2
> + description:
> + One interrupt may be INTA or INTB as identified by interrupt-names.
> + When both outputs are connected, INTA is followed by INTB.
> +
> + interrupt-names:
> + oneOf:
> + - items:
> + - enum: [inta, intb]
> + - items:
> + - const: inta
> + - const: intb

Entire interrupt-names can be simpler:
- items:
- enum:
- const:
minItems: 1


> +
> + nxp,xtal-type:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Crystal model used by the temperature compensation engine.
> + Value 1 selects -0.035 ppm/degC^2 and value 2 selects
> + -0.04 ppm/degC^2.
> + enum: [1, 2]
> + default: 1
> +
> + start-year: true
> +
> + wakeup-source: true

Drop these two

> +
> +required:
> + - compatible
> + - reg
> +
> +additionalProperties: false

unevaluatedProperties instead

> +
> +examples:

Best regards,
Krzysztof