diff mbox

[2/5] dt-bindings: mediatek: Modify pinctrl bindings for mt2701

Message ID 1448527472-20651-3-git-send-email-biao.huang@mediatek.com (mailing list archive)
State New, archived
Headers show

Commit Message

Biao Huang (黄彪) Nov. 26, 2015, 8:44 a.m. UTC
Signed-off-by: Biao Huang <biao.huang@mediatek.com>
---
 .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Comments

Rob Herring Nov. 27, 2015, 8:38 p.m. UTC | #1
On Thu, Nov 26, 2015 at 04:44:29PM +0800, Biao Huang wrote:
> Signed-off-by: Biao Huang <biao.huang@mediatek.com>
> ---
>  .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |    9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
> index 0480bc3..ca6a27a 100644
> --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
> +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
> @@ -4,10 +4,11 @@ The Mediatek's Pin controller is used to control SoC pins.
>  
>  Required properties:
>  - compatible: value should be one of the following.
> -    (a) "mediatek,mt8135-pinctrl", compatible with mt8135 pinctrl.
> -    (b) "mediatek,mt8173-pinctrl", compatible with mt8173 pinctrl.
> -    (c) "mediatek,mt6397-pinctrl", compatible with mt6397 pinctrl.
> -    (d) "mediatek,mt8127-pinctrl", compatible with mt8127 pinctrl.
> +    (a) "mediatek,mt2701-pinctrl", compatible with mt2701 pinctrl.
> +    (b) "mediatek,mt6397-pinctrl", compatible with mt6397 pinctrl.
> +    (c) "mediatek,mt8135-pinctrl", compatible with mt8135 pinctrl.
> +    (d) "mediatek,mt8173-pinctrl", compatible with mt8173 pinctrl.
> +    (e) "mediatek,mt8127-pinctrl", compatible with mt8127 pinctrl.

If you were trying to sort these, they still aren't quite sorted. There 
is no point in sorting if you number (or letter) them because you will 
have to update many lines on any change. So drop the (a), (b), (c), etc.

Rob

>  - pins-are-numbered: Specify the subnodes are using numbered pinmux to
>    specify pins.
>  - gpio-controller : Marks the device node as a gpio controller.
> -- 
> 1.7.9.5
>
Biao Huang (黄彪) Dec. 8, 2015, 10:56 a.m. UTC | #2
On Sat, 2015-11-28 at 04:38 +0800, Rob Herring wrote:
> On Thu, Nov 26, 2015 at 04:44:29PM +0800, Biao Huang wrote:
> > Signed-off-by: Biao Huang <biao.huang@mediatek.com>
> > ---
> >  .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |    9 +++++----
> >  1 file changed, 5 insertions(+), 4 deletions(-)
> > 
> > diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
> > index 0480bc3..ca6a27a 100644
> > --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
> > +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
> > @@ -4,10 +4,11 @@ The Mediatek's Pin controller is used to control SoC pins.
> >  
> >  Required properties:
> >  - compatible: value should be one of the following.
> > -    (a) "mediatek,mt8135-pinctrl", compatible with mt8135 pinctrl.
> > -    (b) "mediatek,mt8173-pinctrl", compatible with mt8173 pinctrl.
> > -    (c) "mediatek,mt6397-pinctrl", compatible with mt6397 pinctrl.
> > -    (d) "mediatek,mt8127-pinctrl", compatible with mt8127 pinctrl.
> > +    (a) "mediatek,mt2701-pinctrl", compatible with mt2701 pinctrl.
> > +    (b) "mediatek,mt6397-pinctrl", compatible with mt6397 pinctrl.
> > +    (c) "mediatek,mt8135-pinctrl", compatible with mt8135 pinctrl.
> > +    (d) "mediatek,mt8173-pinctrl", compatible with mt8173 pinctrl.
> > +    (e) "mediatek,mt8127-pinctrl", compatible with mt8127 pinctrl.
> 
> If you were trying to sort these, they still aren't quite sorted. There 
> is no point in sorting if you number (or letter) them because you will 
> have to update many lines on any change. So drop the (a), (b), (c), etc.
> 
> Rob
> 
Thanks for your comments, I'll modify this in next patch. And patch v2
will be sent in next week.
> >  - pins-are-numbered: Specify the subnodes are using numbered pinmux to
> >    specify pins.
> >  - gpio-controller : Marks the device node as a gpio controller.
> > -- 
> > 1.7.9.5
> >
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
index 0480bc3..ca6a27a 100644
--- a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
+++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
@@ -4,10 +4,11 @@  The Mediatek's Pin controller is used to control SoC pins.
 
 Required properties:
 - compatible: value should be one of the following.
-    (a) "mediatek,mt8135-pinctrl", compatible with mt8135 pinctrl.
-    (b) "mediatek,mt8173-pinctrl", compatible with mt8173 pinctrl.
-    (c) "mediatek,mt6397-pinctrl", compatible with mt6397 pinctrl.
-    (d) "mediatek,mt8127-pinctrl", compatible with mt8127 pinctrl.
+    (a) "mediatek,mt2701-pinctrl", compatible with mt2701 pinctrl.
+    (b) "mediatek,mt6397-pinctrl", compatible with mt6397 pinctrl.
+    (c) "mediatek,mt8135-pinctrl", compatible with mt8135 pinctrl.
+    (d) "mediatek,mt8173-pinctrl", compatible with mt8173 pinctrl.
+    (e) "mediatek,mt8127-pinctrl", compatible with mt8127 pinctrl.
 - pins-are-numbered: Specify the subnodes are using numbered pinmux to
   specify pins.
 - gpio-controller : Marks the device node as a gpio controller.