From patchwork Tue Sep 1 11:41:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11747971 X-Patchwork-Delegate: iwamatsu@nigauri.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 534D61751 for ; Tue, 1 Sep 2020 11:45:12 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E3C9207EA for ; Tue, 1 Sep 2020 11:45:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=lists.cip-project.org header.i=@lists.cip-project.org header.b="uNOblP/q" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2E3C9207EA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bp.renesas.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+64572+5357+4520428+8129116@lists.cip-project.org X-Received: by 127.0.0.2 with SMTP id tD1dYY4521763xsyMoHsNZ0I; Tue, 01 Sep 2020 04:45:12 -0700 X-Received: from relmlie5.idc.renesas.com (relmlie5.idc.renesas.com []) by mx.groups.io with SMTP id smtpd.web12.11107.1598960480272809138 for ; Tue, 01 Sep 2020 04:41:32 -0700 X-IronPort-AV: E=Sophos;i="5.76,378,1592838000"; d="scan'208";a="56086797" X-Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 01 Sep 2020 20:41:32 +0900 X-Received: from localhost.localdomain (unknown [172.29.53.50]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id E7051400752B; Tue, 1 Sep 2020 20:41:30 +0900 (JST) From: Biju Das To: cip-dev@lists.cip-project.org, Nobuhiro Iwamatsu , Pavel Machek Cc: Chris Paterson , Biju Das , Prabhakar Mahadev Lad Subject: [cip-dev] [PATCH 4.4.y-cip 08/10] ARM: dts: r8a7742-iwg21d-q7: Enable Ethernet AVB Date: Tue, 1 Sep 2020 12:41:12 +0100 Message-Id: <20200901114114.3465-9-biju.das.jz@bp.renesas.com> In-Reply-To: <20200901114114.3465-1-biju.das.jz@bp.renesas.com> References: <20200901114114.3465-1-biju.das.jz@bp.renesas.com> Precedence: Bulk List-Unsubscribe: Sender: cip-dev@lists.cip-project.org List-Id: Mailing-List: list cip-dev@lists.cip-project.org; contact cip-dev+owner@lists.cip-project.org Delivered-To: mailing list cip-dev@lists.cip-project.org Reply-To: cip-dev@lists.cip-project.org X-Gm-Message-State: ClHEDTwpo10LsfLWmDbLv41nx4520428AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.cip-project.org; q=dns/txt; s=20140610; t=1598960712; bh=AoGJFlMtwKmksaJtjkyw5Wa0vQlx6Xe1EcYJ3BN/jOY=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=uNOblP/qaRzqg2ZADtvKKjevGqhnmz6uuktvnJNMVpprG3s9Na4C/K1LQKQ0tt2c4BK PdcAc3Ww/iA3DRfrLJXzWN+onTPBBTeSpm76JVkw6K/qfyTIdQa2urKOweTuzk4tCs5Vi 3SOeGU9XRRhNqm0pZlkhVr4tFSsf44OdhFk= From: Lad Prabhakar commit 8a8c81aa605cec4a086bd46a9b9214b9671f8f42 upstream. Enable Ethernet AVB on iWave RZ/G1H carrier board. Signed-off-by: Lad Prabhakar Reviewed-by: Marian-Cristian Rotariu Link: https://lore.kernel.org/r/1590420129-7531-4-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Biju Das --- arch/arm/boot/dts/r8a7742-iwg21d-q7.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts index 1f5c35c66d91..8ce82ad3d946 100644 --- a/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts @@ -14,6 +14,7 @@ aliases { serial2 = &scifa2; + ethernet0 = &avb; }; chosen { @@ -22,7 +23,27 @@ }; }; +&avb { + pinctrl-0 = <&avb_pins>; + pinctrl-names = "default"; + + phy-handle = <&phy3>; + phy-mode = "gmii"; + renesas,no-ether-link; + status = "okay"; + + phy3: ethernet-phy@3 { + reg = <3>; + micrel,led-mode = <1>; + }; +}; + &pfc { + avb_pins: avb { + groups = "avb_mdio", "avb_gmii"; + function = "avb"; + }; + scifa2_pins: scifa2 { groups = "scifa2_data_c"; function = "scifa2";