Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752091AbdHJIxz (ORCPT ); Thu, 10 Aug 2017 04:53:55 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:36378 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbdHJIxw (ORCPT ); Thu, 10 Aug 2017 04:53:52 -0400 From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org, peppe.cavallaro@st.com, alexandre.torgue@st.com, andrew@lunn.ch, f.fainelli@gmail.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Corentin Labbe Subject: [PATCH 0/3] net: stmmac: Detect PHY location with phy-is-integrated Date: Thu, 10 Aug 2017 10:51:26 +0200 Message-Id: <20170810085129.20463-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 29 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 internal one. This patchs series adds a new way to find if the PHY is internal, via the phy-is-integrated DT property. The first and third patch should go via the net tree. the second via the sunxi tree. Thanks Regards Corentin Labbe (3): Documentation: bindings: Add documentation for phy-is-integrated ARM: sun8i: sunxi-h3-h5: add phy-is-integrated property to internal PHY net: stmmac: dwmac-sun8i: choose internal PHY via phy-is-integrated Documentation/devicetree/bindings/net/phy.txt | 4 ++++ arch/arm/boot/dts/sunxi-h3-h5.dtsi | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 16 ++++++++-------- 3 files changed, 13 insertions(+), 8 deletions(-) -- 2.13.0