From patchwork Fri Oct 21 20:45:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9390159 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 D700660762 for ; Fri, 21 Oct 2016 20:51:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C81D62A081 for ; Fri, 21 Oct 2016 20:51:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC8272A086; Fri, 21 Oct 2016 20:51:58 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 58A972A081 for ; Fri, 21 Oct 2016 20:51:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxglb-0001kx-W0; Fri, 21 Oct 2016 20:50:16 +0000 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxghU-0006dv-KJ for linux-arm-kernel@lists.infradead.org; Fri, 21 Oct 2016 20:46:48 +0000 Received: by mail-lf0-x22c.google.com with SMTP id b75so154135773lfg.3 for ; Fri, 21 Oct 2016 13:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=rWla4IFeXkEYzloQt+aSeananQpalOF7j7k3+n9mfPE=; b=NoEK4rCmABX257xYfgVvSHYEQpiYqaFKaXdFYB1ePbFWqKrf4kJ36w8p7c1JQjH+5J BpRYJbM+3cj+G3DeEUNKrFLsTFzLzsRA2MIXq1Jm/1DLu4o/P4kItMff3LEbyylWPMuu wFEX1/t7uiHcoAVS656D/WuXuks3mTB18dgBr6WnOyHgdh/nhrvh4EHupVUQOUKNlmpx n54G0J7fTS5qVTg+cUaHQFx32moNyb0g2t+YZQX/XzSvGirKYTiIJAwwajSQUeE09M+q iYhfw2dq92U1DwYnyn5qQUrXeBapp/I1CAukwB7wmUboRvyLby/epo5bCzPSTFk1wzXp crow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=rWla4IFeXkEYzloQt+aSeananQpalOF7j7k3+n9mfPE=; b=EMbSk+QY/8xrEcUDYrX3OfDy55XfNQ0eNryw9/GOWe+6H0gMd53DuOyIXimQurS2Gj /FjB66sZo77CG4InSuRmgAWBr6JwMg9aunwzfOatfcz3nwCVtjtsvgf6PQi79C8B85sd nC0+ZsidM+nNBRyDFdNClf8pLhbtzma26F1HTMiPlQjhc9NI5HzT4RV9dUUGB1sJKyhP 52Xf9GvJCmoB3wU79dkE4uRMPQ2xqztptN6kinGKahs/NarKby58C6szlYbRkdlw2suh BQvlcR8za9G81nRCmlA3Gm1Eon8kc6q4m7rdYm5HAMh175sap0QJ0qe2C/Rk35GmeMBT YZnQ== X-Gm-Message-State: ABUngvcEiWk/1Z1ROQ621YkdIWUB0hvADliQjIVfdSvfRp9ql0cGu4vyLSKw0kxNljIqTQ== X-Received: by 10.25.139.86 with SMTP id n83mr1581691lfd.72.1477082737986; Fri, 21 Oct 2016 13:45:37 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.212]) by smtp.gmail.com with ESMTPSA id a195sm744740lfb.17.2016.10.21.13.45.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Oct 2016 13:45:37 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: [PATCH v4 4/7] ARM: dts: r8a7743: add Ether support Date: Fri, 21 Oct 2016 23:45:36 +0300 Message-ID: <3177118.XYEgMqnqG8@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.7-100.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <2719479.geOc9vqcRS@wasted.cogentembedded.com> References: <2719479.geOc9vqcRS@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161021_134601_279842_3C77EE46 X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org 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 Define the generic R8A7743 part of the Ether device node. Based on the original (and large) patch by Dmitry Shifrin . Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- Changes in version 4: - refreshed the patch; - added Geert's tag. Changes in version 3: - resolved a reject; - updated the "clocks" property for the CPG/MSSR driver. Changes in version 2: - new patch. arch/arm/boot/dts/r8a7743.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7743.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7743.dtsi +++ renesas/arch/arm/boot/dts/r8a7743.dtsi @@ -413,6 +413,18 @@ power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; status = "disabled"; }; + + ether: ethernet@ee700000 { + compatible = "renesas,ether-r8a7743"; + reg = <0 0xee700000 0 0x400>; + interrupts = ; + clocks = <&cpg CPG_MOD 813>; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + phy-mode = "rmii"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; }; /* External root clock */