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

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Nov 19 07:25:30 PST 2026


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 <nicolas.frattaroli at collabora.com>

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.

> 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

[ ... ]

> @@ -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 at 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 at 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



More information about the linux-phy mailing list