Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751809AbdHBGL1 (ORCPT ); Wed, 2 Aug 2017 02:11:27 -0400 Received: from lucky1.263xmail.com ([211.157.147.132]:59662 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751061AbdHBGLZ (ORCPT ); Wed, 2 Aug 2017 02:11:25 -0400 X-263anti-spam: KSV:0; X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: david.wu@rock-chips.com X-FST-TO: davem@davemloft.net X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: david.wu@rock-chips.com X-UNIQUE-TAG: <9eb25751a90e81139e7b4433223c9edc> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: David Wu To: davem@davemloft.net, heiko@sntech.de, andrew@lunn.ch, f.fainelli@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, olof@lixom.net, linux@armlinux.org.uk, arnd@arndb.de Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, huangtao@rock-chips.com, hwg@rock-chips.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, David Wu Subject: [PATCH v3 00/11] Add the internal phy support Date: Wed, 2 Aug 2017 14:15:35 +0800 Message-Id: <1501654546-17292-1-git-send-email-david.wu@rock-chips.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1612 Lines: 34 The rk3228 and rk3328 support internal phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip internal phy driver. David Wu (11): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make rockchip phy built-in arm64: defconfig: Enable CONFIG_ROCKCHIP_PHY net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii() net: stmmac: dwmac-rk: Add internal phy support net: stmmac: dwmac-rk: Add internal phy support for rk3228 net: stmmac: dwmac-rk: Add internal phy supprot for rk3328 ARM: dts: rk322x: Add support internal phy for gmac ARM: dts: rk3228-evb: Enable the internal phy for gmac ARM64: dts: rockchip: Add gmac2phy node support for rk3328 ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb .../devicetree/bindings/net/rockchip-dwmac.txt | 6 +- arch/arm/boot/dts/rk3228-evb.dts | 20 ++ arch/arm/boot/dts/rk322x.dtsi | 8 +- arch/arm/configs/multi_v7_defconfig | 1 + arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 ++ arch/arm64/boot/dts/rockchip/rk3328.dtsi | 25 +++ arch/arm64/configs/defconfig | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 122 ++++++++++- drivers/net/phy/Kconfig | 5 + drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c | 229 +++++++++++++++++++++ 11 files changed, 424 insertions(+), 11 deletions(-) create mode 100644 drivers/net/phy/rockchip.c -- 1.9.1