* [PATCH 0/2] Cleanup Mediatek pinctrl device tree binding
@ 2023-03-28 13:06 Alexandre Mergnat
2023-03-28 13:06 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property Alexandre Mergnat
2023-03-28 13:06 ` [PATCH 2/2] dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365 Alexandre Mergnat
0 siblings, 2 replies; 9+ messages in thread
From: Alexandre Mergnat @ 2023-03-28 13:06 UTC (permalink / raw)
To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Matthias Brugger,
AngeloGioacchino Del Regno, Zhiyong Tao,
Bernhard Rosenkränzer
Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Alexandre Mergnat
Deprecate properties which shall not exist, leaked upstream from downstream
kernels, there's no reason to use them. Here the deprecated properties and
the generic properties which will replace them:
- mediatek,drive-strength-adv => drive-strength-microamp
- mediatek,pull-up-adv => bias-pull-up
- mediatek,pull-down-adv => bias-pull-down
Thanks AngeloGioacchino Del Regno to reported it. [1]
[1]: https://lore.kernel.org/all/6e08d78f-ef4c-b228-f7d2-d63767ea87b8@collabora.com/
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
---
Alexandre Mergnat (2):
dt-bindings: pinctrl: mediatek: deprecate custom drive strength property
dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365
.../bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 8 +++--
.../bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 38 +++++++++++++++++++---
2 files changed, 39 insertions(+), 7 deletions(-)
---
base-commit: fe15c26ee26efa11741a7b632e9f23b01aca4cc6
change-id: 20230327-cleanup-pinctrl-binding-8064a8f8bf68
Best regards,
--
Alexandre Mergnat <amergnat@baylibre.com>
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property 2023-03-28 13:06 [PATCH 0/2] Cleanup Mediatek pinctrl device tree binding Alexandre Mergnat @ 2023-03-28 13:06 ` Alexandre Mergnat 2023-03-28 13:41 ` AngeloGioacchino Del Regno 2023-03-29 8:00 ` Krzysztof Kozlowski 2023-03-28 13:06 ` [PATCH 2/2] dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365 Alexandre Mergnat 1 sibling, 2 replies; 9+ messages in thread From: Alexandre Mergnat @ 2023-03-28 13:06 UTC (permalink / raw) To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, AngeloGioacchino Del Regno, Zhiyong Tao, Bernhard Rosenkränzer Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, Alexandre Mergnat 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. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> --- .../devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 8 ++++++-- .../devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 6 +++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml index c30cd0d010dd..b82a066b91ec 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml @@ -110,8 +110,13 @@ patternProperties: drive-strength: enum: [2, 4, 6, 8, 10, 12, 14, 16] + drive-strength-microamp: + enum: [125, 250, 500, 1000] + mediatek,drive-strength-adv: + deprecated: true description: | + DEPRECATED: Please use drive-strength-microamp instead. Describe the specific driving setup property. For I2C pins, the existing generic driving setup can only support 2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they @@ -215,7 +220,7 @@ examples: pinmux = <PINMUX_GPIO48__FUNC_SCL5>, <PINMUX_GPIO49__FUNC_SDA5>; mediatek,pull-up-adv = <3>; - mediatek,drive-strength-adv = <7>; + drive-strength-microamp = <1000>; }; }; @@ -224,7 +229,6 @@ examples: pinmux = <PINMUX_GPIO50__FUNC_SCL3>, <PINMUX_GPIO51__FUNC_SDA3>; mediatek,pull-down-adv = <2>; - mediatek,drive-strength-adv = <4>; }; }; }; diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml index 4b96884a1afc..347f533776ba 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml @@ -91,8 +91,13 @@ patternProperties: input-schmitt-disable: true + drive-strength-microamp: + enum: [125, 250, 500, 1000] + mediatek,drive-strength-adv: + deprecated: true description: | + DEPRECATED: Please use drive-strength-microamp instead. Describe the specific driving setup property. For I2C pins, the existing generic driving setup can only support 2/4/6/8/10/12/14/16mA driving. But in specific driving setup, they @@ -189,7 +194,6 @@ examples: pins { pinmux = <MT8365_PIN_59_SDA1__FUNC_SDA1_0>, <MT8365_PIN_60_SCL1__FUNC_SCL1_0>; mediatek,pull-up-adv = <3>; - mediatek,drive-strength-adv = <00>; bias-pull-up; }; }; -- 2.25.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property 2023-03-28 13:06 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property Alexandre Mergnat @ 2023-03-28 13:41 ` AngeloGioacchino Del Regno 2023-03-29 7:58 ` Krzysztof Kozlowski 2023-03-29 8:00 ` Krzysztof Kozlowski 1 sibling, 1 reply; 9+ messages in thread From: AngeloGioacchino Del Regno @ 2023-03-28 13:41 UTC (permalink / raw) To: Alexandre Mergnat, Linus Walleij, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, Zhiyong Tao, Bernhard Rosenkränzer Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek Il 28/03/23 15:06, Alexandre Mergnat ha scritto: > 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. > > Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> > --- > .../devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 8 ++++++-- > .../devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 6 +++++- > 2 files changed, 11 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml > index c30cd0d010dd..b82a066b91ec 100644 > --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml Thanks for doing MT8183!!! > @@ -110,8 +110,13 @@ patternProperties: > drive-strength: ..snip.. > diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > index 4b96884a1afc..347f533776ba 100644 > --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > @@ -91,8 +91,13 @@ patternProperties: > > input-schmitt-disable: true > > + drive-strength-microamp: > + enum: [125, 250, 500, 1000] > + > mediatek,drive-strength-adv: > + deprecated: true In the case of MT8365, since there's *no* devicetree using this property, *at all*, I think you can even just entirely remove this block, as that should not be considered an ABI breakage in that case. Krzysztof, can you please confirm? Cheers! Angelo ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property 2023-03-28 13:41 ` AngeloGioacchino Del Regno @ 2023-03-29 7:58 ` Krzysztof Kozlowski 2023-03-30 13:50 ` Rob Herring 0 siblings, 1 reply; 9+ messages in thread From: Krzysztof Kozlowski @ 2023-03-29 7:58 UTC (permalink / raw) To: AngeloGioacchino Del Regno, Alexandre Mergnat, Linus Walleij, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, Zhiyong Tao, Bernhard Rosenkränzer Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek On 28/03/2023 15:41, AngeloGioacchino Del Regno wrote: > Il 28/03/23 15:06, Alexandre Mergnat ha scritto: >> 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. >> >> Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> >> --- >> .../devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 8 ++++++-- >> .../devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 6 +++++- >> 2 files changed, 11 insertions(+), 3 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml >> index c30cd0d010dd..b82a066b91ec 100644 >> --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml >> +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml > > Thanks for doing MT8183!!! > >> @@ -110,8 +110,13 @@ patternProperties: >> drive-strength: > > ..snip.. > >> diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml >> index 4b96884a1afc..347f533776ba 100644 >> --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml >> +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml >> @@ -91,8 +91,13 @@ patternProperties: >> >> input-schmitt-disable: true >> >> + drive-strength-microamp: >> + enum: [125, 250, 500, 1000] >> + >> mediatek,drive-strength-adv: >> + deprecated: true > > In the case of MT8365, since there's *no* devicetree using this property, *at all*, > I think you can even just entirely remove this block, as that should not be > considered an ABI breakage in that case. > > Krzysztof, can you please confirm? If it is defined as ABI in a released kernel, then should be rather deprecated. Best regards, Krzysztof ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property 2023-03-29 7:58 ` Krzysztof Kozlowski @ 2023-03-30 13:50 ` Rob Herring 0 siblings, 0 replies; 9+ messages in thread From: Rob Herring @ 2023-03-30 13:50 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: AngeloGioacchino Del Regno, Alexandre Mergnat, Linus Walleij, Krzysztof Kozlowski, Matthias Brugger, Zhiyong Tao, Bernhard Rosenkränzer, linux-gpio, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek On Wed, Mar 29, 2023 at 09:58:57AM +0200, Krzysztof Kozlowski wrote: > On 28/03/2023 15:41, AngeloGioacchino Del Regno wrote: > > Il 28/03/23 15:06, Alexandre Mergnat ha scritto: > >> 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. > >> > >> Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> > >> --- > >> .../devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 8 ++++++-- > >> .../devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 6 +++++- > >> 2 files changed, 11 insertions(+), 3 deletions(-) > >> > >> diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml > >> index c30cd0d010dd..b82a066b91ec 100644 > >> --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml > >> +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml > > > > Thanks for doing MT8183!!! > > > >> @@ -110,8 +110,13 @@ patternProperties: > >> drive-strength: > > > > ..snip.. > > > >> diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > >> index 4b96884a1afc..347f533776ba 100644 > >> --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > >> +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > >> @@ -91,8 +91,13 @@ patternProperties: > >> > >> input-schmitt-disable: true > >> > >> + drive-strength-microamp: > >> + enum: [125, 250, 500, 1000] > >> + > >> mediatek,drive-strength-adv: > >> + deprecated: true > > > > In the case of MT8365, since there's *no* devicetree using this property, *at all*, > > I think you can even just entirely remove this block, as that should not be > > considered an ABI breakage in that case. > > > > Krzysztof, can you please confirm? > > If it is defined as ABI in a released kernel, then should be rather > deprecated. Yes, but if no one notices it's not an ABI. It's up to the platform maintainers really. I only care that the commits indicate they know what they are doing (usually not). Rob ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property 2023-03-28 13:06 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property Alexandre Mergnat 2023-03-28 13:41 ` AngeloGioacchino Del Regno @ 2023-03-29 8:00 ` Krzysztof Kozlowski 1 sibling, 0 replies; 9+ messages in thread From: Krzysztof Kozlowski @ 2023-03-29 8:00 UTC (permalink / raw) To: Alexandre Mergnat, Linus Walleij, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, AngeloGioacchino Del Regno, Zhiyong Tao, Bernhard Rosenkränzer Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek On 28/03/2023 15:06, Alexandre Mergnat wrote: > 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. > > Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> > --- > .../devicetree/bindings/pinctrl/mediatek,mt8183-pinctrl.yaml | 8 ++++++-- > .../devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 6 +++++- > 2 files changed, 11 insertions(+), 3 deletions(-) > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/2] dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365 2023-03-28 13:06 [PATCH 0/2] Cleanup Mediatek pinctrl device tree binding Alexandre Mergnat 2023-03-28 13:06 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property Alexandre Mergnat @ 2023-03-28 13:06 ` Alexandre Mergnat 2023-03-28 13:42 ` AngeloGioacchino Del Regno 2023-03-29 8:00 ` Krzysztof Kozlowski 1 sibling, 2 replies; 9+ messages in thread From: Alexandre Mergnat @ 2023-03-28 13:06 UTC (permalink / raw) To: Linus Walleij, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, AngeloGioacchino Del Regno, Zhiyong Tao, Bernhard Rosenkränzer Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek, Alexandre Mergnat 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. Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> --- .../bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 32 +++++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml index 347f533776ba..4ebc7f1caf55 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml @@ -72,12 +72,32 @@ patternProperties: bias-disable: true bias-pull-up: + oneOf: + - type: boolean + - enum: [0, 1, 2, 3] + description: Pull up R1/R0 type define value. description: | - Besides generic pinconfig options, it can be used as the pull up - settings for 2 pull resistors, R0 and R1. User can configure those - special pins. + For pull up type is normal, it don't need add R1/R0 define. + For pull up type is R1/R0 type, it can add value to set different + resistance. Valid arguments are described as below: + 0: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled. + 1: (R1, R0) = (0, 1) which means R1 disabled and R0 enabled. + 2: (R1, R0) = (1, 0) which means R1 enabled and R0 disabled. + 3: (R1, R0) = (1, 1) which means R1 enabled and R0 enabled. - bias-pull-down: true + bias-pull-down: + oneOf: + - type: boolean + - enum: [0, 1, 2, 3] + description: Pull down R1/R0 type define value. + description: | + For pull down type is normal, it don't need add R1/R0 define. + For pull down type is R1/R0 type, it can add value to set + different resistance. Valid arguments are described as below: + 0: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled. + 1: (R1, R0) = (0, 1) which means R1 disabled and R0 enabled. + 2: (R1, R0) = (1, 0) which means R1 enabled and R0 disabled. + 3: (R1, R0) = (1, 1) which means R1 enabled and R0 enabled. input-enable: true @@ -123,7 +143,9 @@ patternProperties: enum: [0, 1, 2, 3, 4, 5, 6, 7] mediatek,pull-up-adv: + deprecated: true description: | + DEPRECATED: Please use bias-pull-up instead. Pull up setings for 2 pull resistors, R0 and R1. User can configure those special pins. Valid arguments are described as below: 0: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled. @@ -134,7 +156,9 @@ patternProperties: enum: [0, 1, 2, 3] mediatek,pull-down-adv: + deprecated: true description: | + DEPRECATED: Please use bias-pull-down instead. Pull down settings for 2 pull resistors, R0 and R1. User can configure those special pins. Valid arguments are described as below: 0: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled. -- 2.25.1 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365 2023-03-28 13:06 ` [PATCH 2/2] dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365 Alexandre Mergnat @ 2023-03-28 13:42 ` AngeloGioacchino Del Regno 2023-03-29 8:00 ` Krzysztof Kozlowski 1 sibling, 0 replies; 9+ messages in thread From: AngeloGioacchino Del Regno @ 2023-03-28 13:42 UTC (permalink / raw) To: Alexandre Mergnat, Linus Walleij, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, Zhiyong Tao, Bernhard Rosenkränzer Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek Il 28/03/23 15:06, Alexandre Mergnat ha scritto: > 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. > > Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> > --- > .../bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 32 +++++++++++++++++++--- > 1 file changed, 28 insertions(+), 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > index 347f533776ba..4ebc7f1caf55 100644 > --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt8365-pinctrl.yaml > @@ -72,12 +72,32 @@ patternProperties: > bias-disable: true > > bias-pull-up: > + oneOf: > + - type: boolean > + - enum: [0, 1, 2, 3] > + description: Pull up R1/R0 type define value. > description: | > - Besides generic pinconfig options, it can be used as the pull up > - settings for 2 pull resistors, R0 and R1. User can configure those > - special pins. > + For pull up type is normal, it don't need add R1/R0 define. > + For pull up type is R1/R0 type, it can add value to set different > + resistance. Valid arguments are described as below: > + 0: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled. > + 1: (R1, R0) = (0, 1) which means R1 disabled and R0 enabled. > + 2: (R1, R0) = (1, 0) which means R1 enabled and R0 disabled. > + 3: (R1, R0) = (1, 1) which means R1 enabled and R0 enabled. > > - bias-pull-down: true > + bias-pull-down: > + oneOf: > + - type: boolean > + - enum: [0, 1, 2, 3] > + description: Pull down R1/R0 type define value. > + description: | > + For pull down type is normal, it don't need add R1/R0 define. > + For pull down type is R1/R0 type, it can add value to set > + different resistance. Valid arguments are described as below: > + 0: (R1, R0) = (0, 0) which means R1 disabled and R0 disabled. > + 1: (R1, R0) = (0, 1) which means R1 disabled and R0 enabled. > + 2: (R1, R0) = (1, 0) which means R1 enabled and R0 disabled. > + 3: (R1, R0) = (1, 1) which means R1 enabled and R0 enabled. > > input-enable: true > > @@ -123,7 +143,9 @@ patternProperties: > enum: [0, 1, 2, 3, 4, 5, 6, 7] > > mediatek,pull-up-adv: > + deprecated: true Same for this one, removing it shouldn't be a ABI breakage.... but please wait for Krzysztof or Rob to confirm that before pushing a v2. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/2] dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365 2023-03-28 13:06 ` [PATCH 2/2] dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365 Alexandre Mergnat 2023-03-28 13:42 ` AngeloGioacchino Del Regno @ 2023-03-29 8:00 ` Krzysztof Kozlowski 1 sibling, 0 replies; 9+ messages in thread From: Krzysztof Kozlowski @ 2023-03-29 8:00 UTC (permalink / raw) To: Alexandre Mergnat, Linus Walleij, Rob Herring, Krzysztof Kozlowski, Matthias Brugger, AngeloGioacchino Del Regno, Zhiyong Tao, Bernhard Rosenkränzer Cc: linux-gpio, devicetree, linux-kernel, linux-arm-kernel, linux-mediatek On 28/03/2023 15:06, Alexandre Mergnat wrote: > 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. > > Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> > --- > .../bindings/pinctrl/mediatek,mt8365-pinctrl.yaml | 32 +++++++++++++++++++--- > 1 file changed, 28 insertions(+), 4 deletions(-) Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-03-30 13:50 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-03-28 13:06 [PATCH 0/2] Cleanup Mediatek pinctrl device tree binding Alexandre Mergnat 2023-03-28 13:06 ` [PATCH 1/2] dt-bindings: pinctrl: mediatek: deprecate custom drive strength property Alexandre Mergnat 2023-03-28 13:41 ` AngeloGioacchino Del Regno 2023-03-29 7:58 ` Krzysztof Kozlowski 2023-03-30 13:50 ` Rob Herring 2023-03-29 8:00 ` Krzysztof Kozlowski 2023-03-28 13:06 ` [PATCH 2/2] dt-bindings: pinctrl: mediatek: deprecate custom bias pull properties for mt8365 Alexandre Mergnat 2023-03-28 13:42 ` AngeloGioacchino Del Regno 2023-03-29 8:00 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).