From patchwork Wed Jun 8 21:36:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9165819 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 4563560832 for ; Wed, 8 Jun 2016 21:38:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3525A28047 for ; Wed, 8 Jun 2016 21:38:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A10128303; Wed, 8 Jun 2016 21:38: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=-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 B791828047 for ; Wed, 8 Jun 2016 21:38:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAl9m-0006I6-99; Wed, 08 Jun 2016 21:36:58 +0000 Received: from mail-lf0-x22c.google.com ([2a00:1450:4010:c07::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bAl9i-0006An-OF for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2016 21:36:55 +0000 Received: by mail-lf0-x22c.google.com with SMTP id s186so14281478lfs.1 for ; Wed, 08 Jun 2016 14:36:34 -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=2Gk154uDDX0ZxBh5y5BsyGRNCFfkY9VmsMW64G4HgvSp/GRflLT3/oWJFyY6pjr9vh mNs3GCft4bs1zPRRmX2Ltl5mUsl5AmQCZ0tom49p2mpQmo50lTAud2btM3tX37o2WiPt kv7Nz2dmajynjZSJgg+xCgWZDLCGL12/Wofygna82bR3iqgQY/qiFMYLfDKpgBPcf1HP VwvHZCK4G+NUKYqJ5hvDBi9QnGP167V+kRDSlghtdJK5WhR1Q0aYA/noNJIWlvT/C3vv gVznJ8oefxgjA7beCDIQ4bpYGMiZqq1x0wJp2Wa/CkbzcrnoZpjH/p8zFynWM5DcqwzH 77Rg== 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=GG9ZLNppsFg8wvAqHZ/2FEPTbxbUTNqRTSoKq0vmYxsFizcEXsksOJPnzFa9SuHijX FzrztA+B8Qfj+7DV/Cv21A6JmeSKG8HJ67bcZ8gGZf3uaovlaiNF7l8nTifag8gp5mjz UzAcwq79xUaMP/kQD/zWx46jqbHRp35hiZW2cysJqMX0yTPB3O1kZJyysjYJcvqzDRNL 4dRnVLY+3kVCwaCxnjaWQg/D5yKkAdyDn9FNIAa38/ZOfA1NPeSj5bNxVotJcnElsm6A Ey/xk1Q244RmyNrHh24SCViNdGkEnj0BAFCIcUfRci5cV9ejSnyeVZI3fG0dYjyC8xyQ XhnA== X-Gm-Message-State: ALyK8tJK9x5ks3VzD87JwNGJslVQzXg6Yp3xFEvVyeHUAe58tyPQGNfHGPttTgxZ7F8kzQ== X-Received: by 10.25.168.9 with SMTP id r9mr4140921lfe.18.1465421793092; Wed, 08 Jun 2016 14:36:33 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.233]) by smtp.gmail.com with ESMTPSA id m6sm336936lbc.28.2016.06.08.14.36.32 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 08 Jun 2016 14:36:32 -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 Subject: [PATCH v3 12/12] ARM: dts: blanche: add Ethernet support Date: Thu, 09 Jun 2016 00:36:31 +0300 Message-ID: <1684757.OTRo8llZyo@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.4.11-200.fc22.x86_64; KDE/4.14.17; x86_64; ; ) In-Reply-To: <12536856.AsKMEpuejQ@wasted.cogentembedded.com> References: <12536856.AsKMEpuejQ@wasted.cogentembedded.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160608_143654_969168_CE915E5E X-CRM114-Status: GOOD ( 12.65 ) 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 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 {