From patchwork Tue Oct 31 08:19:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117529 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3599188qgn; Tue, 31 Oct 2017 01:25:14 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TZQG5HmSSxXA/Axina5m3FcVgWi2x+5C5NQcDlDLVg6qhz8G17eIeC4DDun5U2/aoiyUsA X-Received: by 10.101.72.132 with SMTP id n4mr1102412pgs.245.1509438314109; Tue, 31 Oct 2017 01:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509438314; cv=none; d=google.com; s=arc-20160816; b=e/Lihkg5vfMIKjJCiJP9Jcr49lsEvUL+zs57seFL2/YoJgsi4JoGDkFOSqn7tJCg6N fLrj3E2S90pMXt1JBfJTsBQDqTjKaIZ9/GFqspknoAZu+H7aBlXVyexO85I6PFKI1YjS mHvkLeNXHR7kdSvQz6jNLXQ2/+Es1ZO3O3C6CAJEUnLNDMUbkH4Xn6zLSDoUArialEx6 5rlYY4tbZ+or8ZIRhzc10qtfAma1LwyVmpYRDV44WyD3ZqYwoiIaLCgbO4Jct0t6Cbsy o9OdgVEoE/LRSvrAdNGXjDeP4gv7lhowpqaQaM/YvoJbUGcye+sgNu1zn2NzyCoZdyt5 Kr2w== 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=nNZjkm5Junn5P5OvaA3soZ4C9o/4dyUFCrOJhgrmhNM=; b=xJ/jp7lH+WhV14jpglw3FiIXi13FF6KuecP1IExkifYS7XM+Kbh2eilaIrDsEzCzX3 pyxy+6KBBdyeKIufv8BTNBBOmH6x8aM6LKA6dcf3Im54ZMPKTmZgKXPiYZgAs9n6NeIB It00livS5PMT0I6++X7ajhND0oyDGvhenLmOgnfvzjyH85jPPnY8BURWHmFf4lOoUxYQ S0f+W9Z1hLMMS7iZ8X/Mm6TuRJ8NgUXldCrzbQCwasquz9qSznWcvWWFdvGRyGFHjGbG mj4S22NVFKxJhoAxE7L38qCe9wOPH09LgBw9Xb886eGyExnywIu9hjC6SFPUT9dkAQA3 dhyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H/E52Q+9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 k190si990792pgc.648.2017.10.31.01.25.13; Tue, 31 Oct 2017 01:25:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H/E52Q+9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753373AbdJaIZL (ORCPT + 27 others); Tue, 31 Oct 2017 04:25:11 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:49527 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752747AbdJaIV0 (ORCPT ); Tue, 31 Oct 2017 04:21:26 -0400 Received: by mail-wr0-f194.google.com with SMTP id g90so15094710wrd.6; Tue, 31 Oct 2017 01:21:25 -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=nNZjkm5Junn5P5OvaA3soZ4C9o/4dyUFCrOJhgrmhNM=; b=H/E52Q+91Yrj2l3NA5a1V77KbGCjURZMprDGCUzmi/zJxfbj4wkVaXu1bGLIzD91L3 n8q+szNCSUsH+Vg6KH9qXboH1GoF4BCQCxtbP+jMAn8/zjNrQj5dU6fanAcWIGnq1FXW o04KYMcQAgTtOzRTdzWmDc3tObRX/60y4pmaqejyvLjQvJYxoo3fsMB0g4y43PZV2JXg /+j/v0ZNrGMJwvAKlwplxRNSQrR5fAH9qf19D6wspxrD0vymH6qtZL7fcohzlS5TsE9Q C5Sv1CLqnGunI7EVd211LA4kXc2W+3pQn8Wkimk2orAthg1v+b4YpN/HPS3K1l8c9x8e snTg== 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=nNZjkm5Junn5P5OvaA3soZ4C9o/4dyUFCrOJhgrmhNM=; b=CxsYrbNPghQBEQ8n70b6i0KQKxLJDIpZEKd8WetpG4BHgv0h9RgOOg+wEjXjj4CbVZ VcCZFNpzYEx144IJ3LRQE6zGDhCW8qEY2dhzau2Pc7TWS7hzLROf/OuSGAjfg7j5WNsV XmcGQbDvPhRNTSf0CHyFOh/M+F9yJxzlfoqOvKzIRQVDdtLzn2lZnI/mudbYtYTM+sct DvS2tJmmuRPmZdhJmX5tUcH0C/ppDxLGrPu0lMxrHMqwA8xb/cMN0W2ST6uOcPRoSlhx O8fyKxmGtkmrayshSabAsRhTOxuxBryVPykrdY8KjTNhs2UllLpTU35LXGqmyrOwo5hZ r1wQ== X-Gm-Message-State: AMCzsaXlRxXKFetkpvAyP+JlJJYOM79Z9UWnj1tMBMglu2gjvOTLJ5cn sCrR/BxVRsDpBt95/tSoyEk= X-Received: by 10.223.184.125 with SMTP id u58mr942115wrf.8.1509438084862; Tue, 31 Oct 2017 01:21:24 -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 d18sm796423wra.50.2017.10.31.01.21.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:24 -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 Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v10 3/8] arm: dts: sunxi: h3/h5: Restore EMAC changes Date: Tue, 31 Oct 2017 09:19:10 +0100 Message-Id: <20171031081915.18960-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Acked-by: Florian Fainelli --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) -- 2.13.6 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>;