public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: phy: mvebu-comphy: Update references to CP110 nodes
@ 2019-05-21 14:35 Miquel Raynal
  2019-05-22 13:15 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Miquel Raynal @ 2019-05-21 14:35 UTC (permalink / raw)
  To: Kishon Vijay Abraham I, Rob Herring, Mark Rutland
  Cc: devicetree, Thomas Petazzoni, Gregory Clement, Antoine Tenart,
	Maxime Chevallier, Nadav Haklai, Grzegorz Jaszczyk, Miquel Raynal

From: Grzegorz Jaszczyk <jaz@semihalf.com>

The CP110 DT nodes references have changed, reflect these changes in
COMPHY documentation.

Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 .../devicetree/bindings/phy/phy-mvebu-comphy.txt          | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt b/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
index cf2cd86db267..af2402c18513 100644
--- a/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
+++ b/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
@@ -35,19 +35,19 @@ Required properties (child nodes):
 
 Examples:
 
-	cpm_comphy: phy@120000 {
+	CP110_LABEL(comphy): phy@120000 {
 		compatible = "marvell,comphy-cp110";
 		reg = <0x120000 0x6000>;
-		marvell,system-controller = <&cpm_syscon0>;
+		marvell,system-controller = <&CP110_LABEL(syscon0)>;
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		cpm_comphy0: phy@0 {
+		CP110_LABEL(comphy0): phy@0 {
 			reg = <0>;
 			#phy-cells = <1>;
 		};
 
-		cpm_comphy1: phy@1 {
+		CP110_LABEL(comphy1): phy@1 {
 			reg = <1>;
 			#phy-cells = <1>;
 		};
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: phy: mvebu-comphy: Update references to CP110 nodes
  2019-05-21 14:35 [PATCH] dt-bindings: phy: mvebu-comphy: Update references to CP110 nodes Miquel Raynal
@ 2019-05-22 13:15 ` Rob Herring
  2019-05-27 12:09   ` Miquel Raynal
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2019-05-22 13:15 UTC (permalink / raw)
  To: Miquel Raynal
  Cc: Kishon Vijay Abraham I, Mark Rutland, devicetree,
	Thomas Petazzoni, Gregory Clement, Antoine Tenart,
	Maxime Chevallier, Nadav Haklai, Grzegorz Jaszczyk

On Tue, May 21, 2019 at 9:35 AM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
>
> From: Grzegorz Jaszczyk <jaz@semihalf.com>
>
> The CP110 DT nodes references have changed, reflect these changes in
> COMPHY documentation.

This change isn't necessary. The examples are just examples. They
don't have to match anything exactly.

>
> Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
>  .../devicetree/bindings/phy/phy-mvebu-comphy.txt          | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt b/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
> index cf2cd86db267..af2402c18513 100644
> --- a/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
> +++ b/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
> @@ -35,19 +35,19 @@ Required properties (child nodes):
>
>  Examples:
>
> -       cpm_comphy: phy@120000 {
> +       CP110_LABEL(comphy): phy@120000 {

Also, as we convert bindings to schema, the examples are compiled and
this won't without CP110_LABEL defined.

>                 compatible = "marvell,comphy-cp110";
>                 reg = <0x120000 0x6000>;
> -               marvell,system-controller = <&cpm_syscon0>;
> +               marvell,system-controller = <&CP110_LABEL(syscon0)>;
>                 #address-cells = <1>;
>                 #size-cells = <0>;
>
> -               cpm_comphy0: phy@0 {
> +               CP110_LABEL(comphy0): phy@0 {
>                         reg = <0>;
>                         #phy-cells = <1>;
>                 };
>
> -               cpm_comphy1: phy@1 {
> +               CP110_LABEL(comphy1): phy@1 {
>                         reg = <1>;
>                         #phy-cells = <1>;
>                 };
> --
> 2.19.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: phy: mvebu-comphy: Update references to CP110 nodes
  2019-05-22 13:15 ` Rob Herring
@ 2019-05-27 12:09   ` Miquel Raynal
  0 siblings, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2019-05-27 12:09 UTC (permalink / raw)
  To: Rob Herring
  Cc: Kishon Vijay Abraham I, Mark Rutland, devicetree,
	Thomas Petazzoni, Gregory Clement, Antoine Tenart,
	Maxime Chevallier, Nadav Haklai, Grzegorz Jaszczyk

Hi Rob,

Rob Herring <robh+dt@kernel.org> wrote on Wed, 22 May 2019 08:15:27
-0500:

> On Tue, May 21, 2019 at 9:35 AM Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> >
> > From: Grzegorz Jaszczyk <jaz@semihalf.com>
> >
> > The CP110 DT nodes references have changed, reflect these changes in
> > COMPHY documentation.  
> 
> This change isn't necessary. The examples are just examples. They
> don't have to match anything exactly.

Ok then, let's drop it.

> 
> >
> > Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
> > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> > ---
> >  .../devicetree/bindings/phy/phy-mvebu-comphy.txt          | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt b/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
> > index cf2cd86db267..af2402c18513 100644
> > --- a/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
> > +++ b/Documentation/devicetree/bindings/phy/phy-mvebu-comphy.txt
> > @@ -35,19 +35,19 @@ Required properties (child nodes):
> >
> >  Examples:
> >
> > -       cpm_comphy: phy@120000 {
> > +       CP110_LABEL(comphy): phy@120000 {  
> 
> Also, as we convert bindings to schema, the examples are compiled and
> this won't without CP110_LABEL defined.

I didn't thought about the YAML schema conversion issue (IIRC there are
already occurrences of such macro in the bindings).

Thanks,
Miquèl

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-27 12:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-21 14:35 [PATCH] dt-bindings: phy: mvebu-comphy: Update references to CP110 nodes Miquel Raynal
2019-05-22 13:15 ` Rob Herring
2019-05-27 12:09   ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox