Re: [PATCH 17/20] dt-bindings: mfd: Add Synaptics SL261x global block binding

From
sashiko-bot@kernel.org
Date
2026-09-29 06:45:59
Also in
linux-clk, linux-i3c, linux-serial
Reply to
Jisheng Zhang, 2026-09-29
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: mfd: hardcoded child node names reject standard generic names
--

commit 0676aaa06a44b6b171bf0c3b295a14f6820c22d4
Author: Jisheng Zhang [off-list ref]

dt-bindings: mfd: Add Synaptics SL261x global block binding

This commit introduces the device tree binding for Synaptics SL261x global
and control register blocks. It defines constraints for the AVIO global,
CPU wrapper, chip control, and MCU global blocks, exposing clocks, pinctrl,
and reset functions.
quoted hunk ↗ jump to hunk
diff --git a/Documentation/devicetree/bindings/mfd/syna,sl261x-gbl.yaml b/Documentation/devicetree/bindings/mfd/syna,sl261x-gbl.yaml
new file mode 100644
index 0000000000000..3e5842169c4a3
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/syna,sl261x-gbl.yaml
[ ... ]
+properties:
[ ... ]
quoted hunk ↗ jump to hunk
+  reg:
+    maxItems: 1
+
+  clock:
+    type: object
+    additionalProperties: true
+
+  pin-controller:
+    type: object
+    additionalProperties: true
+
+  reset:
+    type: object
+    additionalProperties: true
[Severity: Low]
Does enforcing these exact node names prevent devicetree authors from using
standard generic node names like clock-controller or reset-controller?

[ ... ]
quoted hunk ↗ jump to hunk
+        reset:
+          properties:
+            compatible:
+              const: syna,sl261x-system-reset
+
+additionalProperties: false
[Severity: Low]
Could this strict validation reject devicetrees using standard generic names,
since only clock, pin-controller, and reset are explicitly allowed in the
properties block?

Using patternProperties (e.g., "^clock-controller(@.*)?$": type: object)
would allow standard devicetree naming conventions.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260929061417.20733-1-jszhang@kernel.org?part=17
Thread (67 messages) 67 messages, 9 authors, last reply 2026-10-28
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