@@ -4,14 +4,11 @@
$id: http://devicetree.org/schemas/rtc/nxp,pcf8563.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Philips PCF8563/Epson RTC8564 Real Time Clock
+title: Philips PCF8563/Epson RTC8564, Haoyu Microelectronics HYM8563 Real Time Clock
maintainers:
- Alexandre Belloni <alexandre.belloni@bootlin.com>
-allOf:
- - $ref: rtc.yaml#
-
properties:
compatible:
enum:
@@ -19,6 +16,7 @@ properties:
- microcrystal,rv8564
- nxp,pca8565
- nxp,pcf8563
+ - haoyu,hym8563
reg:
maxItems: 1
@@ -39,6 +37,18 @@ required:
- compatible
- reg
+allOf:
+ - $ref: rtc.yaml#
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: haoyu,hym8563
+ then:
+ required:
+ - "#clock-cells"
+
additionalProperties: false
examples:
Haoyu HYM8563 is compatible with pcf8563 with '#clock-cells'. Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> --- .../devicetree/bindings/rtc/nxp,pcf8563.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-)