Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: rtc: convert hym8563 bindings to json-schema

Convert RTC binding for Haoyu Microelectronics HYM8563 to Device Tree
Schema format.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221024165549.74574-7-sebastian.reichel@collabora.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Sebastian Reichel and committed by
Alexandre Belloni
c69bffe1 1ff56edf

+56 -30
-30
Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt
··· 1 - Haoyu Microelectronics HYM8563 Real Time Clock 2 - 3 - The HYM8563 provides basic rtc and alarm functionality 4 - as well as a clock output of up to 32kHz. 5 - 6 - Required properties: 7 - - compatible: should be: "haoyu,hym8563" 8 - - reg: i2c address 9 - - #clock-cells: the value should be 0 10 - 11 - Optional properties: 12 - - clock-output-names: From common clock binding 13 - - interrupts: rtc alarm/event interrupt 14 - 15 - Example: 16 - 17 - hym8563: hym8563@51 { 18 - compatible = "haoyu,hym8563"; 19 - reg = <0x51>; 20 - 21 - interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 22 - 23 - #clock-cells = <0>; 24 - }; 25 - 26 - device { 27 - ... 28 - clocks = <&hym8563>; 29 - ... 30 - };
+56
Documentation/devicetree/bindings/rtc/haoyu,hym8563.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/rtc/haoyu,hym8563.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Haoyu Microelectronics HYM8563 RTC 8 + 9 + maintainers: 10 + - Alexandre Belloni <alexandre.belloni@bootlin.com> 11 + 12 + properties: 13 + compatible: 14 + const: haoyu,hym8563 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + "#clock-cells": 23 + const: 0 24 + 25 + clock-output-names: 26 + description: From common clock binding to override the default output clock name. 27 + maxItems: 1 28 + 29 + wakeup-source: 30 + description: Enables wake up of host system on alarm. 31 + 32 + allOf: 33 + - $ref: rtc.yaml 34 + 35 + unevaluatedProperties: false 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - "#clock-cells" 41 + 42 + examples: 43 + - | 44 + #include <dt-bindings/interrupt-controller/irq.h> 45 + 46 + i2c { 47 + #address-cells = <1>; 48 + #size-cells = <0>; 49 + 50 + rtc@51 { 51 + compatible = "haoyu,hym8563"; 52 + reg = <0x51>; 53 + interrupts = <13 IRQ_TYPE_EDGE_FALLING>; 54 + #clock-cells = <0>; 55 + }; 56 + };