Skip to content

Commit e34bdc7

Browse files
amergnatLinus Walleij
authored andcommitted
dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365
In order to be more generic, "mediatek,pull-up-adv" and "mediatek,pull-down-adv" should be deprecated. Use "bias-pull-up" and "bias-pull-down" 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-2-6f56d5c7a8de@baylibre.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 000602e commit e34bdc7

1 file changed

Lines changed: 30 additions & 6 deletions

File tree

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

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,32 @@ patternProperties:
7272
bias-disable: true
7373

7474
bias-pull-up:
75-
description:
76-
Besides generic pinconfig options, it can be used as the pull up
77-
settings for 2 pull resistors, R0 and R1. User can configure those
78-
special pins.
79-
80-
bias-pull-down: true
75+
oneOf:
76+
- type: boolean
77+
- enum: [100, 101, 102, 103]
78+
description: Pull up R1/R0 type define value.
79+
description: |
80+
For pull up type is normal, it don't need add R1/R0 define.
81+
For pull up type is R1/R0 type, it can add value to set different
82+
resistance. Valid arguments are described as below:
83+
100: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled.
84+
101: (R1, R0) = (0, 1) which means R1 disabled and R0 enabled.
85+
102: (R1, R0) = (1, 0) which means R1 enabled and R0 disabled.
86+
103: (R1, R0) = (1, 1) which means R1 enabled and R0 enabled.
87+
88+
bias-pull-down:
89+
oneOf:
90+
- type: boolean
91+
- enum: [100, 101, 102, 103]
92+
description: Pull down R1/R0 type define value.
93+
description: |
94+
For pull down type is normal, it don't need add R1/R0 define.
95+
For pull down type is R1/R0 type, it can add value to set
96+
different resistance. Valid arguments are described as below:
97+
100: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled.
98+
101: (R1, R0) = (0, 1) which means R1 disabled and R0 enabled.
99+
102: (R1, R0) = (1, 0) which means R1 enabled and R0 disabled.
100+
103: (R1, R0) = (1, 1) which means R1 enabled and R0 enabled.
81101
82102
input-enable: true
83103

@@ -123,7 +143,9 @@ patternProperties:
123143
enum: [0, 1, 2, 3, 4, 5, 6, 7]
124144

125145
mediatek,pull-up-adv:
146+
deprecated: true
126147
description: |
148+
DEPRECATED: Please use bias-pull-up instead.
127149
Pull up setings for 2 pull resistors, R0 and R1. User can
128150
configure those special pins. Valid arguments are described as
129151
below:
@@ -135,7 +157,9 @@ patternProperties:
135157
enum: [0, 1, 2, 3]
136158

137159
mediatek,pull-down-adv:
160+
deprecated: true
138161
description: |
162+
DEPRECATED: Please use bias-pull-down instead.
139163
Pull down settings for 2 pull resistors, R0 and R1. User can
140164
configure those special pins. Valid arguments are described as
141165
below:

0 commit comments

Comments
 (0)