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

dt-bindings: rtc: m41t80: Convert text schema to YAML one

Convert the m41t80 text schema to YAML schema.

Add "#clock-cells" requirement, which is required by clock-output-names.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221211205124.23823-1-marex@denx.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Marek Vasut and committed by
Alexandre Belloni
3e39f797 c2d12e85

+73 -39
-39
Documentation/devicetree/bindings/rtc/rtc-m41t80.txt
··· 1 - ST M41T80 family of RTC and compatible 2 - 3 - Required properties: 4 - - compatible: should be one of: 5 - "st,m41t62", 6 - "st,m41t65", 7 - "st,m41t80", 8 - "st,m41t81", 9 - "st,m41t81s", 10 - "st,m41t82", 11 - "st,m41t83", 12 - "st,m41t84", 13 - "st,m41t85", 14 - "st,m41t87", 15 - "microcrystal,rv4162", 16 - - reg: I2C bus address of the device 17 - 18 - Optional properties: 19 - - interrupts: rtc alarm interrupt. 20 - - clock-output-names: From common clock binding to override the default output 21 - clock name 22 - - wakeup-source: Enables wake up of host system on alarm 23 - 24 - Optional child node: 25 - - clock: Provide this if the square wave pin is used as boot-enabled fixed clock. 26 - 27 - Example: 28 - rtc@68 { 29 - compatible = "st,m41t80"; 30 - reg = <0x68>; 31 - interrupt-parent = <&UIC0>; 32 - interrupts = <0x9 0x8>; 33 - 34 - clock { 35 - compatible = "fixed-clock"; 36 - #clock-cells = <0>; 37 - clock-frequency = <32768>; 38 - }; 39 - };
+73
Documentation/devicetree/bindings/rtc/st,m41t80.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/st,m41t80.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ST M41T80 family of RTC and compatible 8 + 9 + maintainers: 10 + - Alexandre Belloni <alexandre.belloni@bootlin.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - st,m41t62 16 + - st,m41t65 17 + - st,m41t80 18 + - st,m41t81 19 + - st,m41t81s 20 + - st,m41t82 21 + - st,m41t83 22 + - st,m41t84 23 + - st,m41t85 24 + - st,m41t87 25 + - microcrystal,rv4162 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + "#clock-cells": 34 + const: 1 35 + 36 + clock-output-names: 37 + maxItems: 1 38 + description: From common clock binding to override the default output clock name. 39 + 40 + clock: 41 + type: object 42 + $ref: /schemas/clock/fixed-clock.yaml# 43 + properties: 44 + clock-frequency: 45 + const: 32768 46 + 47 + allOf: 48 + - $ref: rtc.yaml 49 + 50 + unevaluatedProperties: false 51 + 52 + required: 53 + - compatible 54 + - reg 55 + 56 + examples: 57 + - | 58 + i2c { 59 + #address-cells = <1>; 60 + #size-cells = <0>; 61 + rtc@68 { 62 + compatible = "st,m41t80"; 63 + reg = <0x68>; 64 + interrupt-parent = <&UIC0>; 65 + interrupts = <0x9 0x8>; 66 + 67 + clock { 68 + compatible = "fixed-clock"; 69 + #clock-cells = <0>; 70 + clock-frequency = <32768>; 71 + }; 72 + }; 73 + };