Skip to content

Commit d01cfea

Browse files
macpaul-lin-mtkmartinkpetersen
authored andcommitted
scsi: dt-bindings: mediatek,ufs: add MT8195 compatible and update clock nodes
Add MT8195 UFSHCI compatible string. Relax the schema to allow between one to eight clocks/clock-names entries for all MediaTek UFS nodes. Legacy platforms may only need a few clocks, whereas newer devices such as the MT8195 require additional clock-gating domains. For MT8195 specifically, enforce exactly eight clocks and clock-names entries to satisfy its hardware requirements. Signed-off-by: Macpaul Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 794ff7a commit d01cfea

File tree

1 file changed

+36
-6
lines changed

1 file changed

+36
-6
lines changed

Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ title: Mediatek Universal Flash Storage (UFS) Controller
99
maintainers:
1010
- Stanley Chu <[email protected]>
1111

12-
allOf:
13-
- $ref: ufs-common.yaml
14-
1512
properties:
1613
compatible:
1714
enum:
1815
- mediatek,mt8183-ufshci
1916
- mediatek,mt8192-ufshci
17+
- mediatek,mt8195-ufshci
2018

2119
clocks:
22-
maxItems: 1
20+
minItems: 1
21+
maxItems: 8
2322

2423
clock-names:
25-
items:
26-
- const: ufs
24+
minItems: 1
25+
maxItems: 8
2726

2827
phys:
2928
maxItems: 1
@@ -47,6 +46,37 @@ required:
4746

4847
unevaluatedProperties: false
4948

49+
allOf:
50+
- $ref: ufs-common.yaml
51+
52+
- if:
53+
properties:
54+
compatible:
55+
contains:
56+
enum:
57+
- mediatek,mt8195-ufshci
58+
then:
59+
properties:
60+
clocks:
61+
minItems: 8
62+
clock-names:
63+
items:
64+
- const: ufs
65+
- const: ufs_aes
66+
- const: ufs_tick
67+
- const: unipro_sysclk
68+
- const: unipro_tick
69+
- const: unipro_mp_bclk
70+
- const: ufs_tx_symbol
71+
- const: ufs_mem_sub
72+
else:
73+
properties:
74+
clocks:
75+
maxItems: 1
76+
clock-names:
77+
items:
78+
- const: ufs
79+
5080
examples:
5181
- |
5282
#include <dt-bindings/clock/mt8183-clk.h>

0 commit comments

Comments
 (0)