Skip to content

Commit 7e85661

Browse files
cazoustorulf
authored andcommitted
dt-bindings: mmc: Add support for rk3576 eMMC
The device is compatible with rk3588, so add an entry for the 2 compatibles together. The rk3576 device has a power-domain that needs to be on for the eMMC to be used. Add it as a requirement. Signed-off-by: Detlev Casanova <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 819e4b3 commit 7e85661

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

Documentation/devicetree/bindings/mmc/snps,dwcmshc-sdhci.yaml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ maintainers:
1212

1313
properties:
1414
compatible:
15-
enum:
16-
- rockchip,rk3568-dwcmshc
17-
- rockchip,rk3588-dwcmshc
18-
- snps,dwcmshc-sdhci
19-
- sophgo,cv1800b-dwcmshc
20-
- sophgo,sg2002-dwcmshc
21-
- sophgo,sg2042-dwcmshc
22-
- thead,th1520-dwcmshc
15+
oneOf:
16+
- items:
17+
- const: rockchip,rk3576-dwcmshc
18+
- const: rockchip,rk3588-dwcmshc
19+
- enum:
20+
- rockchip,rk3568-dwcmshc
21+
- rockchip,rk3588-dwcmshc
22+
- snps,dwcmshc-sdhci
23+
- sophgo,cv1800b-dwcmshc
24+
- sophgo,sg2002-dwcmshc
25+
- sophgo,sg2042-dwcmshc
26+
- thead,th1520-dwcmshc
2327

2428
reg:
2529
maxItems: 1
@@ -35,6 +39,9 @@ properties:
3539
minItems: 1
3640
maxItems: 5
3741

42+
power-domains:
43+
maxItems: 1
44+
3845
resets:
3946
maxItems: 5
4047

@@ -97,6 +104,20 @@ allOf:
97104
- const: block
98105
- const: timer
99106

107+
- if:
108+
properties:
109+
compatible:
110+
contains:
111+
const: rockchip,rk3576-dwcmshc
112+
113+
then:
114+
required:
115+
- power-domains
116+
117+
else:
118+
properties:
119+
power-domains: false
120+
100121
unevaluatedProperties: false
101122

102123
examples:

0 commit comments

Comments
 (0)