Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1713638 > unrolled thread
| Started by | Corentin Labbe <clabbe.montjoie@gmail.com> |
|---|---|
| First post | 2017-08-17 10:00 +0200 |
| Last post | 2017-08-18 11:30 +0200 |
| Articles | 3 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH v2 0/6] net: stmmac: Detect PHY location with phy-is-integrated Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-08-17 10:00 +0200
[PATCH v2 3/6] ARM: sun8i: nanopi-neo: Set phy-is-integrated to the internal phy node Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-08-17 10:00 +0200
Re: [PATCH v2 0/6] net: stmmac: Detect PHY location with phy-is-integrated Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-08-18 11:30 +0200
| From | Corentin Labbe <clabbe.montjoie@gmail.com> |
|---|---|
| Date | 2017-08-17 10:00 +0200 |
| Subject | [PATCH v2 0/6] net: stmmac: Detect PHY location with phy-is-integrated |
| Message-ID | <ufnSF-1MZ-5@gated-at.bofh.it> |
Hello
The current way to find if the phy is internal is to compare DT phy-mode
and emac_variant/internal_phy.
But it will negate a possible future SoC where an external PHY use the
same phy mode than the integrated one.
This patchs series adds a new way to find if the PHY is integrated, via
the phy-is-integrated DT property.
Since it exists both integrated and external ethernet-phy@1, they are merged in
the final DTB and so share all properties.
For avoiding this, the phy-is-integrated is added only to board DT.
The first five patchs should go via the sunxi tree.
the last one should go via the net tree.
Note that this serie will need backporting the patch
"Documentation: net: phy: Add phy-is-integrated binding" which is in net-next
Thanks
Regards
Changes since v1:
- Dropped phy-is-integrated documentation patch since another same patch was already merged
- Moved phy-is-integrated from SoC dtsi to final board DT.
Corentin Labbe (6):
ARM: sun8i: orangepipc: Set phy-is-integrated to the internal phy node
ARM: sun8i: beelink-x2: Set phy-is-integrated to the internal phy node
ARM: sun8i: nanopi-neo: Set phy-is-integrated to the internal phy node
ARM: sun8i: orangepi-2: Set phy-is-integrated to the internal phy node
ARM: sun8i: orangepi-one: Set phy-is-integrated to the internal phy
node
net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated
arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 4 ++++
arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 4 ++++
arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 4 ++++
arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 4 ++++
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 4 ++++
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 16 ++++++++--------
6 files changed, 28 insertions(+), 8 deletions(-)
--
2.13.0
[toc] | [next] | [standalone]
| From | Corentin Labbe <clabbe.montjoie@gmail.com> |
|---|---|
| Date | 2017-08-17 10:00 +0200 |
| Subject | [PATCH v2 3/6] ARM: sun8i: nanopi-neo: Set phy-is-integrated to the internal phy node |
| Message-ID | <ufnSI-1MZ-65@gated-at.bofh.it> |
| In reply to | #1713638 |
This patch add the new phy-is-integrated property to the internal PHY node.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
index 78f6c24952dd..e77b51c98374 100644
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts
@@ -53,3 +53,7 @@
allwinner,leds-active-low;
status = "okay";
};
+
+&int_mii_phy {
+ phy-is-integrated;
+};
--
2.13.0
[toc] | [prev] | [next] | [standalone]
| From | Corentin Labbe <clabbe.montjoie@gmail.com> |
|---|---|
| Date | 2017-08-18 11:30 +0200 |
| Subject | Re: [PATCH v2 0/6] net: stmmac: Detect PHY location with phy-is-integrated |
| Message-ID | <ufLLl-1yQ-27@gated-at.bofh.it> |
| In reply to | #1713638 |
On Thu, Aug 17, 2017 at 09:51:43AM +0200, Corentin Labbe wrote: > Hello > > The current way to find if the phy is internal is to compare DT phy-mode > and emac_variant/internal_phy. > But it will negate a possible future SoC where an external PHY use the > same phy mode than the integrated one. > > This patchs series adds a new way to find if the PHY is integrated, via > the phy-is-integrated DT property. > > Since it exists both integrated and external ethernet-phy@1, they are merged in > the final DTB and so share all properties. > For avoiding this, the phy-is-integrated is added only to board DT. > > The first five patchs should go via the sunxi tree. > the last one should go via the net tree. > Note that this serie will need backporting the patch > "Documentation: net: phy: Add phy-is-integrated binding" which is in net-next > > Thanks > Regards > > Changes since v1: > - Dropped phy-is-integrated documentation patch since another same patch was already merged > - Moved phy-is-integrated from SoC dtsi to final board DT. > > Corentin Labbe (6): > ARM: sun8i: orangepipc: Set phy-is-integrated to the internal phy node > ARM: sun8i: beelink-x2: Set phy-is-integrated to the internal phy node > ARM: sun8i: nanopi-neo: Set phy-is-integrated to the internal phy node > ARM: sun8i: orangepi-2: Set phy-is-integrated to the internal phy node > ARM: sun8i: orangepi-one: Set phy-is-integrated to the internal phy > node > net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated > > arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 4 ++++ > arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 4 ++++ > arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 4 ++++ > arch/arm/boot/dts/sun8i-h3-orangepi-one.dts | 4 ++++ > arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 4 ++++ > drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 16 ++++++++-------- > 6 files changed, 28 insertions(+), 8 deletions(-) > > -- > 2.13.0 > Hello Self NACK, the comment from Rob on previous series is pertinent. I will send a v3 which use a mdio-mux for solving all problems. Regards
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web