Skip to content

at24: convert the binding document to yaml

Bartosz Golaszewski linux-devicetree linux-i2c lkml 4 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 2 repliesApplied
  2. v52 patches 1 replySuperseded
  3. v21 patch 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch5 repliesSuperseded

Changes in v6 from the cover letter

- common 'compatible' schema prevents non-unique compatible items, so remove that part of the comment
- add missing cs and mac variants to the list of patterns

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/2dt-bindings: at24: convert the binding document to yamlDocumentation/devicetree/bindings/eeprom/at24.txt Documentation/devicetree/bindings/eeprom/at24.yaml MAINTAINERS+187 -901 reply
2/2dt-bindings: at24: add new compatibleDocumentation/devicetree/bindings/eeprom/at24.yaml+3 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/2] at24: convert the binding document to yaml

From: Bartosz Golaszewski <[email protected]>

The first patch converts the at24 DT binding to yaml. The second adds a new compatible special case that's being used undocumented currently.

v1 -> v2:
- modified the compatible property: we now list all possible combinations and non-standard types with appropriate fallbacks to be as strict as possible
- minor changes to other properties: added constraints, converted to enums where applicable and referenced the types from schema

v2 -> v3:
(Rob Herring:)
- Here's my reworking of compatible schema and all the other fixes I found. The inner 'oneOf' is probably a little excessive given the number of lines. All it does is ensure both compatible strings have the same part number.

v3 -> v4:
- Add a $nodename definition
- Turns out the compatible schema is too complex for generating a 'select' schema and only a small subset where getting validated. So we need a custom 'select' schema. This in turn fixes the issue with the nxp,se97b binding.

v4 -> v5:
- added a new patch extending the list of special cases of the compatible property
- added comments explaining the schema for the compatible property
- dropped redundant information from property descriptions (for instance:
there's no need to say "This parameterless property" where it's obvious from the type that the property is a flag)

v5 -> v6:
- common 'compatible' schema prevents non-unique compatible items, so remove that part of the comment
- add missing cs and mac variants to the list of patterns

Bartosz Golaszewski (2):
dt-bindings: at24: convert the binding document to yaml
dt-bindings: at24: add new compatible

 .../devicetree/bindings/eeprom/at24.txt       |  90 +--------
 .../devicetree/bindings/eeprom/at24.yaml      | 188 ++++++++++++++++++
 MAINTAINERS                                   |   2 +-
 3 files changed, 190 insertions(+), 90 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/eeprom/at24.yaml
Signature · 1 line
2.23.0