Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751491AbaBKKG4 (ORCPT ); Tue, 11 Feb 2014 05:06:56 -0500 Received: from eu1sys200aog104.obsmtp.com ([207.126.144.117]:54116 "EHLO eu1sys200aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750785AbaBKKGv (ORCPT ); Tue, 11 Feb 2014 05:06:51 -0500 From: To: Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Rob Landley , Russell King , Srinivas Kandagatla , Stuart Menefy , Giuseppe Cavallaro , , , , , , Subject: [PATCH v3 0/3] net: stmmac: Add STi GMAC ethernet Date: Tue, 11 Feb 2014 09:58:36 +0000 Message-ID: <1392112716-30803-1-git-send-email-srinivas.kandagatla@st.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391770455-24291-1-git-send-email-srinivas.kandagatla@st.com> References: <1391770455-24291-1-git-send-email-srinivas.kandagatla@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.65.51.147] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla Hi All, This patch series adds Ethernet support to STi series SOCs STiH415 and STiH416. STi SOC series integrates dwmac IP from synopsis, however there is a hardware glue on top of this standard IP, this glue needs to configured before the actual dwmac can be used. Also the glue logic needs re-configuring when the link speed changes, This is because the clk source can change as the link speed changes. This patch just adds STi specific callbacks into of_data for configuring the glue layer. I have rebased my original patches (http://lkml.org/lkml/2013/11/12/243) to latest stmmac which updates callbacks to suit glue drivers like this. These patches are tested on b2000 and B2020 with STiH415 and STiH416. Changes since v1: - fixed multi-line function call format as suggested by David Miller. Changes since v2: - fix indenting issues & superfluous empty lines as suggested by David Miller. - Run the code through scripts/Lindent. Dave, Can I request you to take the first patch via net tree for v3.15, I can request Arnd or Olof to take the DT patches via the arm-soc tree for v3.15. Thanks, srini Srinivas Kandagatla (3): net: stmmac:sti: Add STi SOC glue driver. ARM: STi: Add STiH415 ethernet support. ARM: STi: Add STiH416 ethernet support. .../devicetree/bindings/net/sti-dwmac.txt | 58 ++++ arch/arm/boot/dts/stih415-clock.dtsi | 14 + arch/arm/boot/dts/stih415-pinctrl.dtsi | 121 +++++++ arch/arm/boot/dts/stih415.dtsi | 48 +++ arch/arm/boot/dts/stih416-clock.dtsi | 14 + arch/arm/boot/dts/stih416-pinctrl.dtsi | 109 +++++++ arch/arm/boot/dts/stih416.dtsi | 44 +++ arch/arm/boot/dts/stih41x-b2000.dtsi | 22 ++ arch/arm/boot/dts/stih41x-b2020.dtsi | 26 ++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c | 330 ++++++++++++++++++++ drivers/net/ethernet/stmicro/stmmac/stmmac.h | 3 + .../net/ethernet/stmicro/stmmac/stmmac_platform.c | 5 + 14 files changed, 806 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/sti-dwmac.txt create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/