Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/rtc/nxp,pcf2123.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: NXP PCF2123 SPI Real Time Clock |
| 8 | |
| 9 | maintainers: |
| 10 | - Javier Carrasco <javier.carrasco.cruz@gmail.com> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: /schemas/spi/spi-peripheral-props.yaml# |
| 14 | - $ref: rtc.yaml# |
| 15 | |
| 16 | properties: |
| 17 | compatible: |
| 18 | enum: |
| 19 | - nxp,pcf2123 |
| 20 | |
| 21 | reg: |
| 22 | maxItems: 1 |
| 23 | |
| 24 | interrupts: |
| 25 | maxItems: 1 |
| 26 | |
| 27 | required: |
| 28 | - compatible |
| 29 | - reg |
| 30 | |
| 31 | unevaluatedProperties: false |
| 32 | |
| 33 | examples: |
| 34 | - | |
| 35 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 36 | spi { |
| 37 | #address-cells = <1>; |
| 38 | #size-cells = <0>; |
| 39 | |
| 40 | rtc@3 { |
| 41 | compatible = "nxp,pcf2123"; |
| 42 | reg = <3>; |
| 43 | interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_LOW>; |
| 44 | spi-cs-high; |
| 45 | }; |
| 46 | }; |
| 47 | ... |