From patchwork Fri Sep 29 11:53:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9977863 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 5631360329 for ; Fri, 29 Sep 2017 12:21:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5167429848 for ; Fri, 29 Sep 2017 12:21:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 461DB2984E; Fri, 29 Sep 2017 12:21:02 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E5D1C29848 for ; Fri, 29 Sep 2017 12:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=9NFsNEmuT3MLnzEfptJoSotcuKeC007zvGJcqkeAdtk=; b=hiLar7SFgAUeGTyAdU85xHQCOV cmukP+nJ+wBP14PB/ZgGvU7VxJrUfMBibJrIk8aV+iel9SKFXBxvN2veP/buMTn/uGYaQW+vt2/FL Oc3ZaPW4Gdi5BY5x6dDI+UuDEhSpnc9w32nbETMJKn8U6ivGNtBtqdEEA/kYoDWpY5srLT7tIEewZ eELIx1YGqZbLw9QUX03q0zqqF3P0nVE61uqZcut7IDKYTS+FDX0Gl3XLrLjKbtqrhn0Ggd5n0Fzlx 29cGpO4RD39WZyqlpTNnq1vBuE64ML8ygN556r7j/gGUCg5KXylhE/ACDyblm7nmNFCp4/6PEMXrT d/cGPHDw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dxuHo-0006cY-2k; Fri, 29 Sep 2017 12:20:56 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dxu8j-0002ZF-Ol for linux-arm-kernel@lists.infradead.org; Fri, 29 Sep 2017 12:11:36 +0000 Received: from penelope.horms.nl (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPA id D106C25BF42; Fri, 29 Sep 2017 21:54:40 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1506686081; bh=yhGofcv9nSUCqOwkpufwVAayM2isSGMysJgWtxz0RLk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jTLJ5xF5MtDc55v2mS++cJwQYQywCYb6PalIyg+v6hoSknOK1X8BGty09iAnarnLZ 8ThRNRX7rlJMZIu6tbQeg5S6Mp29zBVEsKtjn6/mmDCQZ7Tr9KTE+jvO+K1i/AHPP6 gsh6WcOtKI9A6UGQCkWfI2pPsDxvH8MZoaqkKOf4= Received: by penelope.horms.nl (Postfix, from userid 7100) id 43167E209A8; Fri, 29 Sep 2017 07:53:42 -0400 (EDT) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 27/48] ARM: dts: iwg22d-sodimm: Add Ethernet AVB support Date: Fri, 29 Sep 2017 13:53:19 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170929_051134_125565_93A6C90C X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Simon Horman , Chris Paterson , Magnus Damm , linux-arm-kernel@lists.infradead.org, Biju Das MIME-Version: 1.0 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 From: Biju Das Define the iWave RainboW-G22D board dependent part of the Ethernet AVB device node. On some older versions of the platform (before R4.0) the phy address may be 1 or 3. The address is fixed to 3 for R4.0 onwards (which will be the first mainstream release), hence using 3 in the dts. Signed-off-by: Biju Das Signed-off-by: Chris Paterson Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts index 442a5cbb0838..aac84c67a31d 100644 --- a/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts +++ b/arch/arm/boot/dts/r8a7745-iwg22d-sodimm.dts @@ -17,9 +17,11 @@ aliases { serial0 = &scif4; + ethernet0 = &avb; }; chosen { + bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; stdout-path = "serial0:115200n8"; }; }; @@ -29,6 +31,11 @@ groups = "scif4_data_b"; function = "scif4"; }; + + avb_pins: avb { + groups = "avb_mdio", "avb_gmii"; + function = "avb"; + }; }; &scif4 { @@ -37,3 +44,22 @@ status = "okay"; }; + +&avb { + pinctrl-0 = <&avb_pins>; + pinctrl-names = "default"; + + phy-handle = <&phy3>; + phy-mode = "gmii"; + renesas,no-ether-link; + status = "okay"; + + phy3: ethernet-phy@3 { + /* + * On some older versions of the platform (before R4.0) the phy address + * may be 1 or 3. The address is fixed to 3 for R4.0 onwards. + */ + reg = <3>; + micrel,led-mode = <1>; + }; +};