From patchwork Mon Oct 23 18:56:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 10022995 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EDA0860245 for ; Mon, 23 Oct 2017 19:13:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF01228951 for ; Mon, 23 Oct 2017 19:13:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3C7828962; Mon, 23 Oct 2017 19:13:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 531382895A for ; Mon, 23 Oct 2017 19:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=4w4Lvot4waKFrHn+/tG8tbMkyE4U4XRcrsTUpkgVNWM=; b=Fu2amLCMKPdOcMdjYq4E2QGbj/ ea31AvP0WNNsuuekI5vdCKZG1Ab125Y0oJ76dBYVTXwiwZPqmxceMmZPdFz/eNxWuMto0UJQaN/Er cF/cUfsnSTIISfFRvscb+FuofyZDcSdQIZHapJjj3w3JcqsTZbaOEfLkAMHCUwVbl9+tKcH0wR1oc dyUrLyWLO/vEljWuNw5fEJhtyo0iHlVQ0rma7TiZ9ADXSr3hHzwanjYdq6cF31TI6Mn96rxbrOor6 +ujmBKNtuWq3RyrMvW7dDfaKvCl9V3iiA42bOnVGXIuKEfVC/bUBmYv3biJxaVq998LZp/3hi7Bmg JLtyBCEA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e6iAZ-0006Si-5r; Mon, 23 Oct 2017 19:13:51 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e6hwH-0004RC-Lo for linux-arm-kernel@lists.infradead.org; Mon, 23 Oct 2017 18:59:08 +0000 Received: by mail-wm0-x244.google.com with SMTP id b189so11346971wmd.4 for ; Mon, 23 Oct 2017 11:58:45 -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=IKmyJfa4Ci42HgzE058gjD2oJD7p3+g21jGCW3nA4++g3AZ3xBLTdrH+EpZZHaXY3d 2cSJLTIUttEZqMgWJBUECrUMI09JKkz27K3+QKTGgzNXPos/itTzUwRjyjUA7iR7qkbU s2mDPS1vIJJSYDPmN/unbp806/c109heIvPKolspCN1KNEdToZsE3xGW8MJxg6VWDAMQ BTtBBljYxZLHZvWNAhc50jUNxAjbqQDR2too0HSVY6/qhOEkW7yYSv67tvgNuNbyqVFI /sIZa1gMM6LwPv0OrbTVDAUkx+Gd7ZfMA3rqSqt2ep3HoIdyhyzJ+Nm8LXfda1t5HqIi zZYA== 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=BiHolKeN6R0dA/krMztzaJ5INzMWx7h2uMvZHixI2bSPlDwLi/rKDXRXdE74ClO9TS 05d8340d1kgIU8Jzs6+QRj+YGX7Gp2Ti6jPJPTu31xTwI6Mys/QCz4jLWYkW46pSoLae w99BBNgVthojRdVxPbf4YbBT/R1JjsK3F5COeaTBz0mcEylYTN8ShN72H+vYQFa+vNB7 CzE012vCjFhtxWNUHir8UvbRK9ROxqOVyiBpC7McX/1ehVFmTTT4erx0tgfEegXZ6xHD YkOm2PF1LavspSf2Kn2/KA5fsI2c9PwXnMC3nzyIfDWPY68ExqGfmACsZPilNwzx9cBN BTOw== X-Gm-Message-State: AMCzsaVxwtwa+9NFOLMizYDGb4eieOJcv0vqXxldEiLktuvxBNRhfj/y dSrUJ5Gs/AAEDzUwFtSHb+0= X-Google-Smtp-Source: ABhQp+QPIL/Cm3yeYKVswGM7l4W+uyONs2a/eOFQC86hwH/lFT/Ie66cWDWFttsMyiFf4/ae8lGKIA== X-Received: by 10.28.8.212 with SMTP id 203mr6001430wmi.43.1508785124020; Mon, 23 Oct 2017 11:58:44 -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 s196sm5370490wmb.26.2017.10.23.11.58.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Oct 2017 11:58:43 -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 Subject: [PATCH v8 03/10] arm: dts: sunxi: h3/h5: Restore EMAC changes Date: Mon, 23 Oct 2017 20:56:19 +0200 Message-Id: <20171023185626.31793-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171023185626.31793-1-clabbe.montjoie@gmail.com> References: <20171023185626.31793-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171023_115906_006577_440B453E X-CRM114-Status: UNSURE ( 8.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, Corentin Labbe , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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>;