[v2,4/7] dt-bindings: pinctrl: st,stm32: Deprecate pins-are-numbered

Message ID 20221122010753.3126828-5-bero@baylibre.com
State New
Headers
Series Remove the pins-are-numbered DT property |

Commit Message

Bernhard Rosenkränzer Nov. 22, 2022, 1:07 a.m. UTC
  Deprecate the pins-are-numbered property

Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
---
 .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml      | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
  

Comments

Matthias Brugger Nov. 22, 2022, 5:03 p.m. UTC | #1
On 22/11/2022 02:07, Bernhard Rosenkränzer wrote:
> Deprecate the pins-are-numbered property
> 
> Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>

Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>

> ---
>   .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml      | 7 +++----
>   1 file changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
> index 9d59208d83c18..eeb29b4ad4d1a 100644
> --- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
> @@ -34,7 +34,9 @@ properties:
>       const: 1
>   
>     ranges: true
> -  pins-are-numbered: true
> +  pins-are-numbered:
> +    $ref: /schemas/types.yaml#/definitions/flag
> +    deprecated: true
>     hwlocks: true
>   
>     interrupts:
> @@ -206,7 +208,6 @@ required:
>     - '#address-cells'
>     - '#size-cells'
>     - ranges
> -  - pins-are-numbered
>   
>   additionalProperties: false
>   
> @@ -220,7 +221,6 @@ examples:
>                 #size-cells = <1>;
>                 compatible = "st,stm32f429-pinctrl";
>                 ranges = <0 0x40020000 0x3000>;
> -              pins-are-numbered;
>   
>                 gpioa: gpio@0 {
>                         gpio-controller;
> @@ -238,7 +238,6 @@ examples:
>                 #size-cells = <1>;
>                 compatible = "st,stm32f429-pinctrl";
>                 ranges = <0 0x50020000 0x3000>;
> -              pins-are-numbered;
>   
>                 gpiob: gpio@1000 {
>                         gpio-controller;
  
Krzysztof Kozlowski Nov. 23, 2022, 8:18 a.m. UTC | #2
On 22/11/2022 02:07, Bernhard Rosenkränzer wrote:
> Deprecate the pins-are-numbered property
> 
> Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
> ---


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof
  

Patch

diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
index 9d59208d83c18..eeb29b4ad4d1a 100644
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
@@ -34,7 +34,9 @@  properties:
     const: 1
 
   ranges: true
-  pins-are-numbered: true
+  pins-are-numbered:
+    $ref: /schemas/types.yaml#/definitions/flag
+    deprecated: true
   hwlocks: true
 
   interrupts:
@@ -206,7 +208,6 @@  required:
   - '#address-cells'
   - '#size-cells'
   - ranges
-  - pins-are-numbered
 
 additionalProperties: false
 
@@ -220,7 +221,6 @@  examples:
               #size-cells = <1>;
               compatible = "st,stm32f429-pinctrl";
               ranges = <0 0x40020000 0x3000>;
-              pins-are-numbered;
 
               gpioa: gpio@0 {
                       gpio-controller;
@@ -238,7 +238,6 @@  examples:
               #size-cells = <1>;
               compatible = "st,stm32f429-pinctrl";
               ranges = <0 0x50020000 0x3000>;
-              pins-are-numbered;
 
               gpiob: gpio@1000 {
                       gpio-controller;