Re: [PATCH v2 6/7] dt-bindings: mfd: syscon: Split and enforce documenting MFD children

From
Rob Herring (Arm) <robh@kernel.org>
Date
2024-06-24 20:28:27
Also in
linux-arm-kernel, linux-mediatek, lkml
Reply to
Krzysztof Kozlowski, 2024-06-16
On Sun, 16 Jun 2024 15:19:26 +0200, Krzysztof Kozlowski wrote:
Simple syscon nodes can be documented in common syscon.yaml, however
devices with simple-mfd compatible, thus with some children, should have
their own schema listing these children.  Such listing makes the binding
specific, allows better validation (so the incorrect child would not
appear in the simple-mfd node) and actually enforces repeated rule for
simple-mfd devices:

  "simple-mfd" is only for simple devices, where the children do not
  depend on the parent.

Currently the syscon+simple-mfd binding is quite broad and allows
any child or property, thus above rule cannot be enforced.

Split the syscon.yaml binding into:
1. Common syscon properties, used potentially by many bindings.
2. Simple syscon devices (NO simple-mfd!).

Signed-off-by: Krzysztof Kozlowski <redacted>

---

Depends on:
1. Patch in MFD: https://lore.kernel.org/all/171828959006.2643902.8308227314531523435.b4-ty@kernel.org/ (local)
2. Previous patches in the series.
---
 .../devicetree/bindings/mfd/syscon-common.yaml     |  72 +++++
 Documentation/devicetree/bindings/mfd/syscon.yaml  | 294 +++++++++++++--------
 2 files changed, 251 insertions(+), 115 deletions(-)
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Thread (19 messages) 19 messages, 5 authors, last reply 2024-06-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help