dt-bindings: rtc: isl12026: convert to YAML schema
Subsystems (2)
PATCH v2 1/1 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.
---
Changes in v2:
- Fixed schema validation issues pointed out in review
- Improved example node formatting
- Removed redundant description text
--- .../devicetree/bindings/rtc/isil,isl12026.txt | 28 -------- .../bindings/rtc/isil,isl12026.yaml | 64 +++++++++++++++++++ 2 files changed, 64 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/isil,isl12026.txt create mode 100644 Documentation/devicetree/bindings/rtc/isil,isl12026.yaml
Documentation/devicetree/bindings/rtc/isil,isl12026.txt deleted +0 -28
@@ -1,28 +0,0 @@ -ISL12026 I2C RTC/EEPROM - -ISL12026 is an I2C RTC/EEPROM combination device. The RTC and control -registers respond at bus address 0x6f, and the EEPROM array responds -at bus address 0x57. The canonical "reg" value will be for the RTC portion. - -Required properties supported by the device: - - - "compatible": must be "isil,isl12026" - - "reg": I2C bus address of the device (always 0x6f) - -Optional properties: - - - "isil,pwr-bsw": If present PWR.BSW bit must be set to the specified - value for proper operation. - - - "isil,pwr-sbib": If present PWR.SBIB bit must be set to the specified - value for proper operation. - - -Example: - - rtc@6f { - compatible = "isil,isl12026"; - reg = <0x6f>; - isil,pwr-bsw = <0>; - isil,pwr-sbib = <1>; - }
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml new file +64 -0
64 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 8 lines · Piyush Patle
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml new file +2
-0@@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml line 12
Quoted 10 lines
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml new file +10
-0+--- +$id: http://devicetree.org/schemas/rtc/isil,isl12026.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intersil ISL12026 I2C RTC/EEPROM + +maintainers: + - Piyush Patle <[email protected]> + +description: |
Do not need '|' unless you need to preserve formatting.
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml line 23
Quoted 11 lines
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml new file +11
-0+ The ISL12026 is a combination RTC and EEPROM device connected via I2C. + The RTC and control registers respond at address 0x6f, while the EEPROM + array responds at address 0x57. The "reg" property refers to the RTC + portion of the device. + +select: + properties: + compatible: + const: isil,isl12026 + required: + - compatible
Why do you have this select? Look at existing bindings - NONE have that.
Just in case if that was not obvious: don't send us AI microslop.
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml line 26
Quoted 3 lines
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml new file +3
-0+ +allOf: + - $ref: rtc.yaml#
Best regards,
Krzysztof
PATCH v3 1/1 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.
---
Changes in v2:
- Fixed schema validation issues pointed out in review
- Improved example node formatting
- Removed redundant description text
---
Changes in v3:
- Dropped unnecessary block scalar ('|') in description
- Removed unsupported select section to match existing RTC bindings
- Aligned schema structure with other RTC YAML bindings
- Fixed YAML formatting and dt_binding_check errors
--- .../devicetree/bindings/rtc/isil,isl12026.txt | 28 -------- .../bindings/rtc/isil,isl12026.yaml | 64 +++++++++++++++++++ 2 files changed, 64 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rtc/isil,isl12026.txt create mode 100644 Documentation/devicetree/bindings/rtc/isil,isl12026.yaml
Documentation/devicetree/bindings/rtc/isil,isl12026.txt deleted +0 -28
@@ -1,28 +0,0 @@ -ISL12026 I2C RTC/EEPROM - -ISL12026 is an I2C RTC/EEPROM combination device. The RTC and control -registers respond at bus address 0x6f, and the EEPROM array responds -at bus address 0x57. The canonical "reg" value will be for the RTC portion. - -Required properties supported by the device: - - - "compatible": must be "isil,isl12026" - - "reg": I2C bus address of the device (always 0x6f) - -Optional properties: - - - "isil,pwr-bsw": If present PWR.BSW bit must be set to the specified - value for proper operation. - - - "isil,pwr-sbib": If present PWR.SBIB bit must be set to the specified - value for proper operation. - - -Example: - - rtc@6f { - compatible = "isil,isl12026"; - reg = <0x6f>; - isil,pwr-bsw = <0>; - isil,pwr-sbib = <1>; - }
Documentation/devicetree/bindings/rtc/isil,isl12026.yaml new file +64 -0
64 lines not on this page · raw message
Signature · 1 line
2.34.1
Quoted 10 lines · Piyush Patle
Convert the ISL12026 RTC binding from text format to YAML schema. Remove the legacy text binding.
The new schema enables
dtbs_checkvalidation.
---
Changes in v2:
- Fixed schema validation issues pointed out in review
- Improved example node formatting
- Removed redundant description text
Quoted 4 lines
---
Changes in v3:
- Dropped unnecessary block scalar ('|') in description
- Removed unsupported select section to match existing RTC bindings
Where?
Quoted 4 lines
- Aligned schema structure with other RTC YAML bindings
- Fixed YAML formatting anddt_binding_checkerrorsSigned-off-by Piyush Patle <[email protected]>
Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets. See also:
https://elixir.bootlin.com/linux/v6.16-rc2/source/Documentation/process/submitting-patches.rst#L830
Best regards,
Krzysztof