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

dt-bindings: rtc: Move trivial RTC over to a schemas of their own

The RTC generic bindings has a bunch of devices that have a pretty simple
binding, with just compatible, reg and optional interrupts properties.

This is exactly what the trivial devices YAML schema has been created for,
except that they can also have the start-year property, but not any other
generic RTC property.

Let's create a schema with those constraints.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Maxime Ripard and committed by
Alexandre Belloni
43390e07 7bdcb8e0

+92 -39
-39
Documentation/devicetree/bindings/rtc/rtc.txt
··· 1 1 This file has been moved to rtc.yaml. 2 - 3 - Trivial RTCs 4 - ------------ 5 - 6 - This is a list of trivial RTC devices that have simple device tree 7 - bindings, consisting only of a compatible field, an address and 8 - possibly an interrupt line. 9 - 10 - 11 - Compatible Vendor / Chip 12 - ========== ============= 13 - abracon,abb5zes3 AB-RTCMC-32.768kHz-B5ZE-S3: Real Time Clock/Calendar Module with I2C Interface 14 - abracon,abeoz9 AB-RTCMC-32.768kHz-EOZ9: Real Time Clock/Calendar Module with I2C Interface 15 - dallas,ds1374 I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output 16 - dallas,ds1672 Dallas DS1672 Real-time Clock 17 - dallas,ds3232 Extremely Accurate I²C RTC with Integrated Crystal and SRAM 18 - epson,rx8010 I2C-BUS INTERFACE REAL TIME CLOCK MODULE 19 - epson,rx8571 I2C-BUS INTERFACE REAL TIME CLOCK MODULE with Battery Backed RAM 20 - epson,rx8581 I2C-BUS INTERFACE REAL TIME CLOCK MODULE 21 - emmicro,em3027 EM Microelectronic EM3027 Real-time Clock 22 - isil,isl1208 Intersil ISL1208 Low Power RTC with Battery Backed SRAM 23 - isil,isl1218 Intersil ISL1218 Low Power RTC with Battery Backed SRAM 24 - isil,isl12022 Intersil ISL12022 Real-time Clock 25 - microcrystal,rv3028 Real Time Clock Module with I2C-Bus 26 - microcrystal,rv3029 Real Time Clock Module with I2C-Bus 27 - microcrystal,rv8523 Real Time Clock 28 - nxp,pcf2127 Real-time clock 29 - nxp,pcf2129 Real-time clock 30 - nxp,pcf8563 Real-time clock/calendar 31 - pericom,pt7c4338 Real-time Clock Module 32 - ricoh,r2025sd I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 33 - ricoh,r2221tl I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 34 - ricoh,rs5c372a I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 35 - ricoh,rs5c372b I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 36 - ricoh,rv5c386 I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 37 - ricoh,rv5c387a I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 38 - sii,s35390a 2-wire CMOS real-time clock 39 - whwave,sd3078 I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 40 - xircom,x1205 Xircom X1205 I2C RTC
+92
Documentation/devicetree/bindings/rtc/trivial-rtc.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/rtc/trivial-rtc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Trivial RTCs 8 + 9 + maintainers: 10 + - Alexandre Belloni <alexandre.belloni@bootlin.com> 11 + 12 + description: | 13 + This is a list of trivial RTC devices that have simple device tree 14 + bindings, consisting only of a compatible field, an address and 15 + possibly an interrupt line. 16 + 17 + allOf: 18 + - $ref: "rtc.yaml#" 19 + 20 + properties: 21 + compatible: 22 + enum: 23 + # AB-RTCMC-32.768kHz-B5ZE-S3: Real Time Clock/Calendar Module with I2C Interface 24 + - abracon,abb5zes3 25 + # AB-RTCMC-32.768kHz-EOZ9: Real Time Clock/Calendar Module with I2C Interface 26 + - abracon,abeoz9 27 + # I2C, 32-Bit Binary Counter Watchdog RTC with Trickle Charger and Reset Input/Output 28 + - dallas,ds1374 29 + # Dallas DS1672 Real-time Clock 30 + - dallas,ds1672 31 + # Extremely Accurate I²C RTC with Integrated Crystal and SRAM 32 + - dallas,ds3232 33 + # I2C-BUS INTERFACE REAL TIME CLOCK MODULE 34 + - epson,rx8010 35 + # I2C-BUS INTERFACE REAL TIME CLOCK MODULE with Battery Backed RAM 36 + - epson,rx8571 37 + # I2C-BUS INTERFACE REAL TIME CLOCK MODULE 38 + - epson,rx8581 39 + # Intersil ISL1208 Low Power RTC with Battery Backed SRAM 40 + - isil,isl1208 41 + # Intersil ISL1218 Low Power RTC with Battery Backed SRAM 42 + - isil,isl1218 43 + # Intersil ISL12022 Real-time Clock 44 + - isil,isl12022 45 + # Real Time Clock Module with I2C-Bus 46 + - microcrystal,rv3028 47 + # Real Time Clock Module with I2C-Bus 48 + - microcrystal,rv3029 49 + # Real Time Clock 50 + - microcrystal,rv8523 51 + # Real-time clock 52 + - nxp,pcf2127 53 + # Real-time clock 54 + - nxp,pcf2129 55 + # Real-time clock/calendar 56 + - nxp,pcf8563 57 + # Real-time Clock Module 58 + - pericom,pt7c4338 59 + # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 60 + - ricoh,r2025sd 61 + # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 62 + - ricoh,r2221tl 63 + # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 64 + - ricoh,rs5c372a 65 + # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 66 + - ricoh,rs5c372b 67 + # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 68 + - ricoh,rv5c386 69 + # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 70 + - ricoh,rv5c387a 71 + # 2-wire CMOS real-time clock 72 + - sii,s35390a 73 + # I2C bus SERIAL INTERFACE REAL-TIME CLOCK IC 74 + - whwave,sd3078 75 + # Xircom X1205 I2C RTC 76 + - xircom,x1205 77 + 78 + reg: 79 + maxItems: 1 80 + 81 + interrupts: 82 + maxItems: 1 83 + 84 + start-year: true 85 + 86 + required: 87 + - compatible 88 + - reg 89 + 90 + additionalProperties: false 91 + 92 + ...