aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxe Yang <[email protected]>2023-12-07 14:35:34 +0800
committerUlf Hansson <[email protected]>2023-12-07 15:12:36 +0100
commitec1aaf792d9aafbe1d1ffd414c423ddc2a3d3103 (patch)
tree28d8c25fa8ccc237784b5e1337128f77edce3870
parent1f30f51053715af81a25d902511079aca3fdb213 (diff)
dt-bindings: mmc: mtk-sd: add tuning steps related property
Add 'mediatek,tuning-steps' setting. This property will give MSDC a chance to extend tuning steps up to 64. With more tuning steps, MSDC may achieve a more optimal calibration result, thus avoiding potential CRC issues. Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Axe Yang <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
-rw-r--r--Documentation/devicetree/bindings/mmc/mtk-sd.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
index 3fffa467e4e1..c532ec92d2d9 100644
--- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
+++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
@@ -145,6 +145,15 @@ properties:
minimum: 0
maximum: 7
+ mediatek,tuning-step:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ Some SoCs need extend tuning step for better delay value to avoid CRC issue.
+ If not present, default tuning step is 32. For eMMC and SD, this can yield
+ satisfactory calibration results in most cases.
+ enum: [32, 64]
+ default: 32
+
resets:
maxItems: 1