All of lore.kernel.org
 help / color / mirror / Atom feed
From: antoine.tenart@free-electrons.com (Antoine Tenart)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/9] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports
Date: Mon, 18 Sep 2017 15:52:17 +0200	[thread overview]
Message-ID: <20170918135217.GE20017@kwain> (raw)
In-Reply-To: <20170918130437.GA12118@lunn.ch>

Hi Andrew,

On Mon, Sep 18, 2017 at 03:04:37PM +0200, Andrew Lunn wrote:
> On Mon, Sep 18, 2017 at 11:50:12AM +0300, Baruch Siach wrote:
> > On Mon, Sep 18, 2017 at 09:58:10AM +0200, Antoine Tenart wrote:
> > > This patch adds comphy phandles to the Ethernet ports in the mcbin
> > > device tree. The comphy is used to configure the serdes PHYs used by
> > > these ports.
> > > 
> > > Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
> > > ---
> > >  arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 3 +++
> > >  1 file changed, 3 insertions(+)
> > > 
> > > diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
> > > index acf5c7d16d79..9a3b4a1fd445 100644
> > > --- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
> > > +++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
> > > @@ -223,6 +223,7 @@
> > >  &cpm_eth0 {
> > >  	status = "okay";
> > >  	phy = <&phy0>;
> > > +	phys = <&cpm_comphy4 0>;
> > >  	phy-mode = "10gbase-kr";
> > 
> > Since the 'phys' generic PHY property is unrelated to the 'phy*' Ethernet PHY 
> > properties that surround it, its location might be confusing. I think it 
> > should appear below those two other properties like you did below ...
> 
> Yes, i agree. It is confusing enough as it is, so we should not make
> it worse.
> 
> I even wonder if it is worth doing some renaming?
> 
>   	phy = <&ethernet_phy0>;
>   	phy-mode = "10gbase-kr";
>  	phys = <&cpm_generic_comphy4 0>;

We could also add an extra comment without renaming the comphy node, something
like:

	/* Network PHY */
	phy = <&ethernet_phy0>;
	phy-mode = "10gbase-kr";
	/* Generic PHY, providing serdes lanes */
	phys = <&cpm_comphy4 0>;

Thanks,
Antoine

-- 
Antoine T?nart, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170918/0161fae3/attachment.sig>

  reply	other threads:[~2017-09-18 13:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18  7:58 [PATCH 0/9] arm64: marvell: 7k/8k: improve network support Antoine Tenart
2017-09-18  7:58 ` [PATCH 1/9] arm64: defconfig: enable the Marvell 10G PHY as a module Antoine Tenart
2017-09-20 12:30   ` Gregory CLEMENT
2017-09-18  7:58 ` [PATCH 2/9] arm64: defconfig: enable Marvell CP110 comphy Antoine Tenart
2017-09-20 12:31   ` Gregory CLEMENT
2017-09-18  7:58 ` [PATCH 3/9] arm64: dts: marvell: extend the cp110 syscon register area length Antoine Tenart
2017-09-20 12:46   ` Gregory CLEMENT
2017-09-18  7:58 ` [PATCH 4/9] arm64: dts: marvell: add comphy nodes on cp110 master and slave Antoine Tenart
2017-09-20 12:47   ` Gregory CLEMENT
2017-09-18  7:58 ` [PATCH 5/9] arm64: dts: marvell: mcbin: add comphy references to Ethernet ports Antoine Tenart
2017-09-18  8:50   ` Baruch Siach
2017-09-18  9:44     ` Antoine Tenart
2017-09-18 13:04     ` Andrew Lunn
2017-09-18 13:52       ` Antoine Tenart [this message]
2017-09-18 16:32         ` Andrew Lunn
2017-09-18  7:58 ` [PATCH 6/9] arm64: dts: marvell: 7040-db: add comphy reference to Ethernet port Antoine Tenart
2017-09-18  7:58 ` [PATCH 7/9] arm64: dts: marvell: cp110: add PPv2 port interrupts Antoine Tenart
2017-09-20 12:47   ` Gregory CLEMENT
2017-09-18  7:58 ` [PATCH 8/9] arm64: dts: marvell: 7040-db: enable the SFP port Antoine Tenart
2017-09-18  7:58 ` [PATCH 9/9] arm64: dts: marvell: 8040-db: enable the SFP ports Antoine Tenart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170918135217.GE20017@kwain \
    --to=antoine.tenart@free-electrons.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.