Skip to content

Commit 6af057a

Browse files
wensstorulf
authored andcommitted
dt-bindings: mmc: mtk-sd: Document compatibles that need two register ranges
Besides the MT8183's MMC controller and all its compatible derivatives, the recently added MT7986 and MT8196 also require two register ranges. This is based on the actual device trees. Properly enforce this in the binding. Fixes: 4a8bd2b ("dt-bindings: mmc: mtk-sd: Add mt7988 SoC") Fixes: 58927c9 ("dt-bindings: mmc: mtk-sd: Add support for MT8196") Cc: Frank Wunderlich <frank-w@public-files.de> Cc: Andy-ld Lu <andy-ld.lu@mediatek.com> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Message-ID: <20241210073212.3917912-2-wenst@chromium.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent ecfe492 commit 6af057a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Documentation/devicetree/bindings/mmc/mtk-sd.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,19 @@ allOf:
235235
properties:
236236
compatible:
237237
contains:
238-
const: mediatek,mt8183-mmc
238+
enum:
239+
- mediatek,mt7986-mmc
240+
- mediatek,mt7988-mmc
241+
- mediatek,mt8183-mmc
242+
- mediatek,mt8196-mmc
239243
then:
240244
properties:
241245
reg:
242246
minItems: 2
247+
else:
248+
properties:
249+
reg:
250+
maxItems: 1
243251

244252
- if:
245253
properties:

0 commit comments

Comments
 (0)