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: 116863 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4975716qgn; Mon, 23 Oct 2017 12:02:55 -0700 (PDT) X-Received: by 10.98.14.75 with SMTP id w72mr14078900pfi.341.1508785375597; Mon, 23 Oct 2017 12:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508785375; cv=none; d=google.com; s=arc-20160816; b=e6J3bnSCHCj+S/d74/b4DSQmNGyX7bep125TxMyv2sNdrpBytcyNMgdocysRz1BBN4 KmBEGHHcb1i3S8yor2LgJIdCRsLFi5u7zpBbHZPWa+lS9GyZVJO0RiS+vufHorUG1Fcm bBUsAB5UTR2pX+JEXdWs645orcKZBBsbQqz6Bx/PzTUrE3vsONe8GLs5CxAiLec3VeKW 7K31SKVJ+TGVeXIRgZty35joAwXhUbOMdupCgBkKerIWYn0ml4vI5uFm+ayiirkD+BMK ClgKz3v5mxpEjO7mu2/ypOH8PfFVp42WFGVXiIYziE6aVuY+5QAiRJo5ySYZojDaowjX Wkew== 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=bZoVHS3dVwiMo0Kx9CpA8ml5rqRdl2WFAzPrr/Qotjg=; b=SHp5jOynEjp6ZUopA9IvCwbejPIWqlYwiif/I1rTRIs5WP6TJ2ANb1jJQPf01Wolot baYDwASQUJy0wr7+LRz7J+fvjKmQIsdcm93m2CG1tB6R9zQ3gTMRUGbNYWoeiSMxk+7v IR3pFkajl4iC2kAHv+jY704nqJpPvVPA0AC9IcNIMkiiUXM2eQqicCQAbZaFroEtRNqT IT+zPaKcrLme04VV6fT59T71A3V7DjgjiF/kEkxX0IOQCN7U4/n2URY7RtbZ1c2CJG+C 09w1nJWtDCUwVTS8mKZ/sgf+GueUQSSSicRQt8KRXIncr333MPCtgaH6biGprovD7Y39 mmDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IKmyJfa4; 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 n22si4368372plp.580.2017.10.23.12.02.55; Mon, 23 Oct 2017 12:02:55 -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=IKmyJfa4; 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 S932373AbdJWTCy (ORCPT + 27 others); Mon, 23 Oct 2017 15:02:54 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:46092 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751855AbdJWS6p (ORCPT ); Mon, 23 Oct 2017 14:58:45 -0400 Received: by mail-wm0-f68.google.com with SMTP id m72so11436272wmc.1; Mon, 23 Oct 2017 11:58:44 -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=c8ccoaKdm1ApEXtwcPnZYiQ8FLlZuHL091AfWt9IDzFjonhBmHHgG91ZLted6lBWid cOt1LtVMul2dwk/HmvLNLa7cEkqFFNO2mHi3m842+HCFUVQfpVpk0yOPrd7w9WkIL3uK PcL+T+KXt+TfJZ2BjS+oy1yzTlKmEUMYieTlBUuc0N/bjI3PsY+vfCEXXXhXXloHAwVs mpVS8s/cFaG2tqfvH6r1vgvB2k5qO2G86qLf1jx2V1pqrgAc015Ny5dKdZp53o2sF5Xt 87aAHlgVySsCTEO7TB/bH8PKBVy16josX5KRZhmw9VPOneBUQg/J4VkMLlZ10o52PzCj NYFA== X-Gm-Message-State: AMCzsaXm8FWjhw+TAAKkOtaLEs86XkvF8IGDFUTLrYvNOMr2d0N5QU/E HUH5wSP8iQCjYk8LfBSbY3Q= 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 Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe 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> 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 --- 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>;