From: Horatiu Vultur <horatiu.vultur@microchip.com>
To: Rob Herring <robh@kernel.org>
Cc: <kishon@ti.com>, <vkoul@kernel.org>, <linux@armlinux.org.uk>,
<andrew@lunn.ch>, <alexandre.belloni@bootlin.com>,
<linux-phy@lists.infradead.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 2/3] dt-bindings: phy: Add binding includes for lan966x serdes
Date: Fri, 15 Oct 2021 10:29:42 +0200 [thread overview]
Message-ID: <20211015082942.fpyanrg6on3wgzbp@soft-dev3-1.localhost> (raw)
In-Reply-To: <YWh2J32hZftzIi+F@robh.at.kernel.org>
The 10/14/2021 13:25, Rob Herring wrote:
>
> On Wed, Oct 06, 2021 at 08:35:22AM +0200, Horatiu Vultur wrote:
> > Add include bindings for lan966x serdes
> >
> > Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> > ---
> > include/dt-bindings/phy/lan966x_serdes.h | 14 ++++++++++++++
> > 1 file changed, 14 insertions(+)
> > create mode 100644 include/dt-bindings/phy/lan966x_serdes.h
> >
> > diff --git a/include/dt-bindings/phy/lan966x_serdes.h b/include/dt-bindings/phy/lan966x_serdes.h
> > new file mode 100644
> > index 000000000000..06e529473475
> > --- /dev/null
> > +++ b/include/dt-bindings/phy/lan966x_serdes.h
> > @@ -0,0 +1,14 @@
> > +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */
> > +
> > +#ifndef __LAN966X_SERDES_H__
> > +#define __LAN966X_SERDES_H__
> > +
> > +#define CU(x) (x)
> > +#define CU_MAX CU(2)
> > +#define SERDES6G(x) (CU_MAX + 1 + (x))
> > +#define SERDES6G_MAX SERDES6G(3)
> > +#define RG(x) (SERDES6G_MAX + 1 + (x))
> > +#define RG_MAX RG(2)
> > +#define SERDES_MAX (RG_MAX + 1)
>
> I'm guessing these are used for the phy cells? If so, I can't figure out
> how and I shouldn't have to search the driver to figure it out.
These are just some constatns to be able to select between the
integrated PHYs, RGMII, SerDes interfaces. Because these interfaces
needs to be muxed according to the HW.
This is something similar with the Ocelot Serdes where there are only
2 Serdes types.
>
> What's CU? What's RG?
Cu - copper PHY
RG - RGMII
I will create a new version where I will improve the log message.
--
/Horatiu
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2021-10-15 8:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-06 6:35 [PATCH v2 0/3] Add driver for lan966x Serdes driver Horatiu Vultur
2021-10-06 6:35 ` [PATCH v2 1/3] dt-bindings: phy: Add lan966x-serdes binding Horatiu Vultur
2021-10-06 6:35 ` [PATCH v2 2/3] dt-bindings: phy: Add binding includes for lan966x serdes Horatiu Vultur
2021-10-14 18:25 ` Rob Herring
2021-10-15 8:29 ` Horatiu Vultur [this message]
2021-10-06 6:35 ` [PATCH v2 3/3] phy: Add lan966x ethernet serdes PHY driver Horatiu Vultur
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=20211015082942.fpyanrg6on3wgzbp@soft-dev3-1.localhost \
--to=horatiu.vultur@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andrew@lunn.ch \
--cc=devicetree@vger.kernel.org \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux@armlinux.org.uk \
--cc=robh@kernel.org \
--cc=vkoul@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox