Skip to content

Commit 000602e

Browse files
amergnatLinus Walleij
authored andcommitted
dt-bindings: pinctrl: mediatek: deprecate custom drive strength property
Deprecate mediatek,drive-strength-adv which shall not exist, that was an unnecessary property that leaked upstream from downstream kernels and there's no reason to use it. The generic property drive-strength-microamp should be used instead. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230327-cleanup-pinctrl-binding-v3-1-6f56d5c7a8de@baylibre.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 0538897 commit 000602e

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,13 @@ patternProperties:
110110
drive-strength:
111111
enum: [2, 4, 6, 8, 10, 12, 14, 16]
112112

113+
drive-strength-microamp:
114+
enum: [125, 250, 500, 1000]
115+
113116
mediatek,drive-strength-adv:
117+
deprecated: true
114118
description: |
119+
DEPRECATED: Please use drive-strength-microamp instead.
115120
Describe the specific driving setup property.
116121
For I2C pins, the existing generic driving setup can only support
117122
2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they
@@ -217,7 +222,7 @@ examples:
217222
pinmux = <PINMUX_GPIO48__FUNC_SCL5>,
218223
<PINMUX_GPIO49__FUNC_SDA5>;
219224
mediatek,pull-up-adv = <3>;
220-
mediatek,drive-strength-adv = <7>;
225+
drive-strength-microamp = <1000>;
221226
};
222227
};
223228
@@ -226,7 +231,6 @@ examples:
226231
pinmux = <PINMUX_GPIO50__FUNC_SCL3>,
227232
<PINMUX_GPIO51__FUNC_SDA3>;
228233
mediatek,pull-down-adv = <2>;
229-
mediatek,drive-strength-adv = <4>;
230234
};
231235
};
232236
};

Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ patternProperties:
9191

9292
input-schmitt-disable: true
9393

94+
drive-strength-microamp:
95+
enum: [125, 250, 500, 1000]
96+
9497
mediatek,drive-strength-adv:
98+
deprecated: true
9599
description: |
100+
DEPRECATED: Please use drive-strength-microamp instead.
96101
Describe the specific driving setup property.
97102
For I2C pins, the existing generic driving setup can only support
98103
2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they
@@ -191,7 +196,6 @@ examples:
191196
pins {
192197
pinmux = <MT8365_PIN_59_SDA1__FUNC_SDA1_0>, <MT8365_PIN_60_SCL1__FUNC_SCL1_0>;
193198
mediatek,pull-up-adv = <3>;
194-
mediatek,drive-strength-adv = <00>;
195199
bias-pull-up;
196200
};
197201
};

0 commit comments

Comments
 (0)