Re: [PATCH v15 02/23] dt-bindings: ufs: mediatek,ufs: Complete the binding

From
sashiko-bot@kernel.org
Date
2026-11-19 15:25:31
Also in
linux-devicetree, linux-scsi
Reply to
Louis-Alexis Eyraud, 2026-11-19
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] dt-bindings: ufs: mediatek: incompatible schema breaks
  in-tree mt8195.dtsi
--

commit 897f6726f17b6227ef961cfcc71c9c313c14a3df
Author: Nicolas Frattaroli [off-list ref]

dt-bindings: ufs: mediatek,ufs: Complete the binding

This commit updates the MediaTek UFS devicetree binding schema to add
resets, controller power supplies, operating-points-v2, and updated
per-SoC clock definitions while disallowing freq-table-hz.
quoted hunk ↗ jump to hunk
diff --git a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml
index 15c347f5e6604..945cb986b06b7 100644
--- a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml
+++ b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml
@@ -19,11 +19,25 @@ properties:
 
   clocks:
     minItems: 1
-    maxItems: 8
+    maxItems: 10
 
   clock-names:
     minItems: 1
-    maxItems: 8
+    items:
+      - const: main
+      - const: aes
+      - const: tick
+      - const: unipro_sysclk
+      - const: unipro_tick
+      - const: unipro_mp_bclk
+      - const: tx_symbol
+      - const: mem_sub
+      - const: rx_symbol0
+      - const: rx_symbol1
+
+  operating-points-v2: true
+
+  freq-table-hz: false
[ ... ]
quoted hunk ↗ jump to hunk
@@ -54,29 +96,41 @@ allOf:
       properties:
         compatible:
           contains:
-            enum:
-              - mediatek,mt8195-ufshci
+            const: mediatek,mt8183-ufshci
     then:
       properties:
         clocks:
-          minItems: 8
+          maxItems: 1
         clock-names:
           items:
-            - const: ufs
-            - const: ufs_aes
-            - const: ufs_tick
-            - const: unipro_sysclk
-            - const: unipro_tick
-            - const: unipro_mp_bclk
-            - const: ufs_tx_symbol
-            - const: ufs_mem_sub
-    else:
+            - const: main
+        avdd12-ckbuf-supply: false
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: mediatek,mt8192-ufshci
+    then:
       properties:
         clocks:
-          maxItems: 1
+          minItems: 3
+          maxItems: 3
         clock-names:
-          items:
-            - const: ufs
+          minItems: 3
+          maxItems: 3
+        avdd09-supply: false
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: mediatek,mt8195-ufshci
+    then:
+      properties:
+        clocks:
+          minItems: 10
+        clock-names:
+          minItems: 10
+        avdd09-supply: false
[Severity: Medium]
Does renaming clock-names, setting freq-table-hz: false, and requiring 10
clocks for mediatek,mt8195-ufshci break DT ABI compatibility and
dtbs_check for the existing in-tree ufshci@11270000 node in
arch/arm64/boot/dts/mediatek/mt8195.dtsi?

Contrary to the commit message, mediatek,mt8195-ufshci is already used in
mainline (and enabled by mt8395-genio-1200-evk-ufs.dts and
mt8395-radxa-nio-12l.dts) with the 8 previously documented clock names and
freq-table-hz:

arch/arm64/boot/dts/mediatek/mt8195.dtsi {
    ...
		ufshci: ufshci@11270000 {
			compatible = "mediatek,mt8195-ufshci";
    ...
			clock-names = "ufs", "ufs_aes", "ufs_tick",
					"unipro_sysclk", "unipro_tick",
					"unipro_mp_bclk", "ufs_tx_symbol",
					"ufs_mem_sub";
			freq-table-hz = <0 0>, <0 0>, <0 0>,
					<0 0>, <0 0>, <0 0>,
					<0 0>, <0 0>;
    ...
}

Because those changes are not backwards-compatible with the existing DTS,
running make dtbs_check fails on the MT8195 and MT8395 boards.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261119-mt8196-ufs-v15-0-aae1eb0382e8@collabora.com?part=2

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
Thread (28 messages) 28 messages, 2 authors, last reply 5d ago
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