From patchwork Tue Oct 24 17:57:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 116981 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6085258qgn; Tue, 24 Oct 2017 11:01:02 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QVXVh91b/yLLR0RiJxsE8fDUFwrrDefTKAUGS4jYhl6TGTO80kDpkuIzG/qxNOx/mWcE66 X-Received: by 10.98.214.76 with SMTP id r73mr17062789pfg.261.1508868062163; Tue, 24 Oct 2017 11:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508868062; cv=none; d=google.com; s=arc-20160816; b=pm+ehQaB6NIG24Ps24j0yax5rZhrj/eKedHTujgY/Z+ZETr3zvsgrdn/NG2aeJ1AD7 sBz13Ex4pmmWgeEupa4diKCKqH1/772wOux+6LP9f+COQF0Bjv0iQp3ssVRSnIdeQZb5 wn14RNvzBDFTMAjQ+6klstWtdvLcrqh39KK8jY/DqXJwiTEYBStp8vETuEmhTgd6xX6b YqGHWZFl+yqpaNmKiEbbTjYiHFdxBhO9e+YnApyNxTYNT27So+n7aeuAo3t3ZsGlg/9U cD0WrCRw24rfFqKc7P0Vz/k6m5sPP8/mTBEldu6RRZDO0YOymsnwmmE7bDDwLOnwio8q R1eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=mJWdJWphvFCIGiO1i1fpHkc0ROEkgHR+25Nt3OLFEhI=; b=qRWsHIEkI1EGcWkhIC8xHUcAg22c3KwsYsLgvMWKSwFPEn/TyPX+a7WmEe/nvI7WjX Ya09kY6WMwP1Bgm4oOfI7JhXOUzeQBc8XF2TlKXI9jjOgWjsoQ4laBUHsjZFJYlVkCir 8oBcPf9nVWDwZjaO6Rt+Xg8hlDr3BpLKsjIwBX2L3jhZ3vs9VGtT7c3TmL+36xXzaUGj D2APPQ37tL/lP20lBRrfoSncR8WnhUyIErgzhD+gMWomCRsaaKp84RIJMTNoK5PEeX0k vKLJGhEi+ix41Q9x8PUIoXY55S5UA67afDkXKrxwiQS6/ZhVFQxCFNrFLpldoLQ6b9L+ ogYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=CZAXXxtB; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 137si482532pgd.277.2017.10.24.11.01.01; Tue, 24 Oct 2017 11:01:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=CZAXXxtB; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751781AbdJXSBA (ORCPT + 6 others); Tue, 24 Oct 2017 14:01:00 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:49371 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbdJXSAs (ORCPT ); Tue, 24 Oct 2017 14:00:48 -0400 Received: by mail-wm0-f68.google.com with SMTP id b189so17207967wmd.4; Tue, 24 Oct 2017 11:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bZoVHS3dVwiMo0Kx9CpA8ml5rqRdl2WFAzPrr/Qotjg=; b=CZAXXxtBJOsr6wWBCVPXjIFxrVwyBWswfsgSoZEnL1jngTRjJhQnU/gt2ymO0+4EdE xaaTUQYdc/sW+foMv7nWtMCp7Lzu+stsiPgwQ9YuQq6lVtYNM2Sfg8KXbFnmnLoiTG8b Enh/uYtCTJnbmAHXoACNYN8SuBUyMXkiFtwyUMXGKEi8/c9Pcn0XPpxmg1B+zSR5E24i tij3zolW0os5QFYZp63uT4AIUKnwAaIcBEZ4Hx9OEwg4HQvKgjurQ3fdX+K8D/cYNz6b 9OefzrwUbVmci2y9KV0pdJgLbvArKD7fl25kywhm8pa9NEloGoaR1C10uNLGFkmuFfPk XipA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bZoVHS3dVwiMo0Kx9CpA8ml5rqRdl2WFAzPrr/Qotjg=; b=s9JPULNw/lfk3Wb3jwrAu4i/fVMlV5tZzn/HRMU5If3fniFh2FpKSCN0cozBqaCxB5 6fOj1ux5B06Rr4iNMdO55Qi1tmT4QyzrQFk7H4wD9VfuYIc1jwx4OE9M6P35JqvX8QFp 29Gou1+21PSi0pabLGL9dyuzn6ol34ByDCXuM7U7OS0tVp8IfZDjYY1XiA5Ff61W/p7b Dork/VqBdyNRPHHV3e+Wvq802slQ52ole0LgO/Qg4/SNjuN7ciSOCZewFGei6YFIHdtZ ZXPVvhTgWQWEQ1BrJLRInfr1+C+etFtSqKJkhXh/U6HIAYT7gdpOveLorQWs7dlZkf5M NV2Q== X-Gm-Message-State: AMCzsaX66LUP/3KgS4E87Kv4tkEWgzxSpfUUxa9c9YRVQOKNmce9Tilr gVnDSeAHgeF717aX4az5twY= X-Received: by 10.28.12.65 with SMTP id 62mr9819960wmm.129.1508868046891; Tue, 24 Oct 2017 11:00:46 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id s18sm818968wrg.87.2017.10.24.11.00.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Oct 2017 11:00:46 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, 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-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v9 03/10] arm: dts: sunxi: h3/h5: Restore EMAC changes Date: Tue, 24 Oct 2017 19:57:07 +0200 Message-Id: <20171024175714.15840-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171024175714.15840-1-clabbe.montjoie@gmail.com> References: <20171024175714.15840-1-clabbe.montjoie@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. This patch restore sunxi-h3-h5.dtsi This reverts partially commit fe45174b72ae ("arm: dts: sunxi: Revert EMAC changes") Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index c1bd09dab3da..d762098fc589 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -408,6 +408,32 @@ clocks = <&osc24M>; }; + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-h3-emac"; + syscon = <&syscon>; + reg = <0x01c30000 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + int_mii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + clocks = <&ccu CLK_BUS_EPHY>; + resets = <&ccu RST_BUS_EPHY>; + }; + }; + }; + spi0: spi@1c68000 { compatible = "allwinner,sun8i-h3-spi"; reg = <0x01c68000 0x1000>;