From patchwork Sun Jun 12 21:17:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9171661 X-Patchwork-Delegate: horms@verge.net.au 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 1733660573 for ; Sun, 12 Jun 2016 21:17:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09F6821327 for ; Sun, 12 Jun 2016 21:17:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2A9C24B44; Sun, 12 Jun 2016 21:17:16 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0F1121327 for ; Sun, 12 Jun 2016 21:17:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932212AbcFLVRQ (ORCPT ); Sun, 12 Jun 2016 17:17:16 -0400 Received: from mail-lf0-f53.google.com ([209.85.215.53]:34490 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932593AbcFLVRP (ORCPT ); Sun, 12 Jun 2016 17:17:15 -0400 Received: by mail-lf0-f53.google.com with SMTP id j7so50260520lfg.1 for ; Sun, 12 Jun 2016 14:17:15 -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=EJp3hJwkyL3bAygi9CZPKNiExtT8LZDyhpTk7bwE7is=; b=mDboxLUKbkWv8mLPbLmH0w99TtPXe4t02QCu/LAkJ/7n5JqR8mN6W9Gk79Ok+COWPj 8swZ0e5bGYT6qGGMKT1gn3v0Tka7iyF90D+w+oytTMsZwlU4GWRJVq0RnVtdVnCkqQNq mGjKggNiVn2kLEBU21Qid63Avvwk9yBDXkJtcN3HEqDLYCMLrGX+sLtDQnAJGW54GV7R 806ekr/4baxM9ORW21SRhFhUdGAfNChHPwyWhPebSQNwO0k/G0vb/rkaye+MycxMp7Md uazsx7o66kgms8AsYW+2n7dbYLUU1kgLVSZh4MBjRCmqwUykZbWv0c8JQEuDVUAZPAlG rIAg== 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=EJp3hJwkyL3bAygi9CZPKNiExtT8LZDyhpTk7bwE7is=; b=ORIagXyYyRIBtoIiCi0PmKCKsla0SZTFsJX6ZTjDLrBr8o7nT43D5hnA1eezjUj/UN /+zb0Jd1CdDQPZRCpvF9O1Y/BbZO4yNFfNEXeC5l1l7Rs10qq/8fEMGkTj51t/EihOpF dWibe8EN60Zxx+p0lV77ea60ffeINX63/qdGrOnrWwQOahniMkqeR40nCr2ku9hFKtDI DrFe2ojHMQCymYozzryZb0v0ylb1ujvpt3nDo8GOQf8x+ONyF2cyqrRXKUklI08h1QNv mobvEulsghNJ4wghppscBDMuthRMlKq6nSu9x3BrcQag8JdcMcGAXxwc2aUcNpkZvoLp AKAA== X-Gm-Message-State: ALyK8tJvZvsw/JGiEFbAxBvCe+nkY/UF6XVxKz/tapMMmIfWdz3BB4ZvIC5hwjzUrOSeNw== X-Received: by 10.25.213.65 with SMTP id m62mr3284608lfg.232.1465766233226; Sun, 12 Jun 2016 14:17:13 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.235]) by smtp.gmail.com with ESMTPSA id b203sm2480504lfe.11.2016.06.12.14.17.12 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Jun 2016 14:17:12 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 12/12] ARM: dts: blanche: add Ethernet support Date: Mon, 13 Jun 2016 00:17:11 +0300 Message-ID: <1791778.Vq4vL64bUW@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.4.12-200.fc22.x86_64; KDE/4.14.17; x86_64; ; ) In-Reply-To: <14666252.G84Ipxe6EL@wasted.cogentembedded.com> References: <14666252.G84Ipxe6EL@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP R8A7792 SoC doesn't have the EtherMAC core, so SMSC LAN89218 Ethernet chip was used instead on the Blanche board; this chip is compatible with SMSC LAN9115 for which there's a (device tree aware) driver. Describe the chip in the Blanche device tree; enable DHCP and NFS root in the kernel command line for the kernel booting. Signed-off-by: Sergei Shtylyov Acked-by: Simon Horman --- Changes in version 3: - refreshed the patch. Changes in version 2: - added Simon's ACK. arch/arm/boot/dts/r8a7792-blanche.dts | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) Index: renesas/arch/arm/boot/dts/r8a7792-blanche.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7792-blanche.dts +++ renesas/arch/arm/boot/dts/r8a7792-blanche.dts @@ -22,7 +22,7 @@ }; chosen { - bootargs = "ignore_loglevel"; + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; stdout-path = "serial0:115200n8"; }; @@ -30,6 +30,27 @@ device_type = "memory"; reg = <0 0x40000000 0 0x40000000>; }; + + d3_3v: regulator-3v3 { + compatible = "regulator-fixed"; + regulator-name = "D3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ethernet@18000000 { + compatible = "smsc,lan89218", "smsc,lan9115"; + reg = <0 0x18000000 0 0x100>; + phy-mode = "mii"; + interrupt-parent = <&irqc>; + interrupts = <0 IRQ_TYPE_EDGE_FALLING>; + smsc,irq-push-pull; + reg-io-width = <4>; + vddvario-supply = <&d3_3v>; + vdd33a-supply = <&d3_3v>; + }; }; &extal_clk {