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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: rtc: isl12026: convert to YAML schema

Convert the ISL12026 RTC binding from text format to YAML schema.
Remove the legacy text binding.

The new schema enables dtbs_check validation.

Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260227185115.174997-1-piyushpatle228@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Piyush Patle and committed by
Alexandre Belloni
5ff89ef4 10663044

+59 -28
-28
Documentation/devicetree/bindings/rtc/isil,isl12026.txt
··· 1 - ISL12026 I2C RTC/EEPROM 2 - 3 - ISL12026 is an I2C RTC/EEPROM combination device. The RTC and control 4 - registers respond at bus address 0x6f, and the EEPROM array responds 5 - at bus address 0x57. The canonical "reg" value will be for the RTC portion. 6 - 7 - Required properties supported by the device: 8 - 9 - - "compatible": must be "isil,isl12026" 10 - - "reg": I2C bus address of the device (always 0x6f) 11 - 12 - Optional properties: 13 - 14 - - "isil,pwr-bsw": If present PWR.BSW bit must be set to the specified 15 - value for proper operation. 16 - 17 - - "isil,pwr-sbib": If present PWR.SBIB bit must be set to the specified 18 - value for proper operation. 19 - 20 - 21 - Example: 22 - 23 - rtc@6f { 24 - compatible = "isil,isl12026"; 25 - reg = <0x6f>; 26 - isil,pwr-bsw = <0>; 27 - isil,pwr-sbib = <1>; 28 - }
+59
Documentation/devicetree/bindings/rtc/isil,isl12026.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/isil,isl12026.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Intersil ISL12026 I2C RTC/EEPROM 8 + 9 + maintainers: 10 + - Piyush Patle <piyushpatle228@gmail.com> 11 + 12 + description: 13 + The ISL12026 is a combination RTC and EEPROM device connected via I2C. 14 + The RTC and control registers respond at address 0x6f, while the EEPROM 15 + array responds at address 0x57. The "reg" property refers to the RTC 16 + portion of the device. 17 + 18 + allOf: 19 + - $ref: rtc.yaml# 20 + 21 + properties: 22 + compatible: 23 + const: isil,isl12026 24 + 25 + reg: 26 + maxItems: 1 27 + description: I2C address of the RTC portion (must be 0x6f) 28 + 29 + isil,pwr-bsw: 30 + $ref: /schemas/types.yaml#/definitions/uint32 31 + enum: [ 0, 1 ] 32 + description: 33 + Value written to the PWR.BSW bit for proper device operation. 34 + 35 + isil,pwr-sbib: 36 + $ref: /schemas/types.yaml#/definitions/uint32 37 + enum: [ 0, 1 ] 38 + description: 39 + Value written to the PWR.SBIB bit for proper device operation. 40 + 41 + required: 42 + - compatible 43 + - reg 44 + 45 + unevaluatedProperties: false 46 + 47 + examples: 48 + - | 49 + i2c { 50 + #address-cells = <1>; 51 + #size-cells = <0>; 52 + 53 + rtc@6f { 54 + compatible = "isil,isl12026"; 55 + reg = <0x6f>; 56 + isil,pwr-bsw = <0>; 57 + isil,pwr-sbib = <1>; 58 + }; 59 + };