From patchwork Wed Sep 13 12:18:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 9951341 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 3C0E86024A for ; Wed, 13 Sep 2017 12:22:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AE3928685 for ; Wed, 13 Sep 2017 12:22:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F8EA28CDB; Wed, 13 Sep 2017 12:22:22 +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 B5AB828685 for ; Wed, 13 Sep 2017 12:22:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751756AbdIMMWV (ORCPT ); Wed, 13 Sep 2017 08:22:21 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:64787 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751885AbdIMMWS (ORCPT ); Wed, 13 Sep 2017 08:22:18 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 13 Sep 2017 21:22:17 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id EB129671A4; Wed, 13 Sep 2017 21:22:17 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.42,387,1500908400"; d="scan'208";a="257775871" Received: from mail-hk2apc01lp0212.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.212]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 13 Sep 2017 21:22:16 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5iRCz3Ydlsjk9vnK32aKqmEaKWrl/uC1mpeMQ8rHXUQ=; b=mXqYVlw0VFbLQ/vbuuDw4Ayqyi6t2sNMSRlFW+mpHIAlVsOm3nJ4tx78EozTdRPvxTykwQy9Qqe45mUvYLsSq5iJEb7UW2/r+0vx+63tLqL/dBXK7EWUYMJ9JpuaF60MfA0uhawuECkv792IojBZzeMx2jS9+ZTdhuqLSWKecAM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.138) by SG2PR06MB0982.apcprd06.prod.outlook.com (2a01:111:e400:5213::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Wed, 13 Sep 2017 12:22:13 +0000 From: Yoshihiro Shimoda To: horms@verge.net.au, magnus.damm@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH 2/2] arm64: dts: renesas: r8a77995: draak: enable EthernetAVB Date: Wed, 13 Sep 2017 21:18:39 +0900 Message-Id: <1505305119-4257-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505305119-4257-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1505305119-4257-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: HK2PR02CA0207.apcprd02.prod.outlook.com (2603:1096:201:20::19) To SG2PR06MB0982.apcprd06.prod.outlook.com (2a01:111:e400:5213::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2c81d102-c773-454b-7d89-08d4faa2111c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:SG2PR06MB0982; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0982; 3:lxviJbJbNVD2BHVcVQO+2dwJ4OYRkBU1INk2xAa/AJSZKF7zaR1HmXftBnSCMRprhbPD7du/xe1X62JG+cdcqVyhh0hUNQh/P4trgTKVr45nTUvwXOBXNGkdF+RdXCJSH9W3Pjaz4A/FfwchUj4ezYq+x4lYAlrTPjpn3JoK3Qojrb3yK6g4s/SjjhnIEoRBMK/UIEiX7OT+55MvwDqZr8PTn1XI/XVb/yIZHcZMwivEj2fTvKoi8RO6er5WB4NN; 25:SEhFHU/kaxjhfKVwASaOZ4JqUB1l2ofEnmEH5pbhef9/XJKnEI9Pwa9CCWyuq/VmEStrEhQ3TFmvGPrexe3qbhqjSrpWz4RAKbku1hINcWtbYNoYdx+Xa/8OUjRKqhnPSl3PjpILrgYdjA3Byyml9ZhS3xEVsMbcj+5eL4cEf7Sr/FCKfIk2Lvi2dlLWFpbcYy8Xd5ueL+zbJ0fVJ2i/0u/QB8GqWcaS6pg123aZZ6fZxwaBwKF/ViRWvkOsfeORHyIgF1SGKuYoqXDZ7BVvUSyiOWPFk/EYae9N5P16INzLHXHuJpijV5KOWuutkf92nOM74skayDqdBPch+gcJQw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aJNWkbP X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061750153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SG2PR06MB0982; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SG2PR06MB0982; X-Forefront-PRVS: 042957ACD7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6069001)(6009001)(376002)(346002)(39860400002)(366002)(199003)(189002)(107886003)(4326008)(68736007)(6116002)(3846002)(6512007)(2950100002)(53936002)(42882006)(6666003)(101416001)(6486002)(97736004)(316002)(16526017)(76176999)(50986999)(7350300001)(25786009)(110136004)(6506006)(498600001)(78352004)(305945005)(2906002)(7736002)(5660300001)(66066001)(81166006)(8676002)(47776003)(81156014)(50466002)(5003940100001)(48376002)(105586002)(106356001)(50226002)(33646002)(189998001)(36756003)(3720700003); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0982; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:0; LANG:en; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB0982; 23:4DHzvlGulqlHM5D83z0x1buqYypwk6oam3yfdFROn?= =?us-ascii?Q?VP9pYHPTaq6fNwM5iPO2vbSkGWdFUZOteUpihxCqtt9zlQcRAQssO1NSj94L?= =?us-ascii?Q?FMsEK46Z4ACZZkG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RjxzVAWZS2X0LH1bZm2eJaQWrHU1S0vQ5P2n5Sj8thevor9NQrqTk8cVD2MkqKHfiaopyP/qQ75e/Ax9dqvbRSbCxpHDiajpLji/3NjscW78OdoYsm1jZMr52d3CJJZw3nvZ3A4yvLdyP0f9w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0982; 20:5GuqYgGNp1o9eqzrs5gzceYTsK5I0wW9n/JhANWYM/vvJyXaq0B2sAIDU7XE8j4zMRZFQJnOxAHmd84VFc3laaQJsyqAcQNX2mnbCrwWh/O+IvgMGjZsufXoCa6M1DH4YVm0xR6r/jdXLpeZrWfcseBUnBYUzDQRpDkeoxqNu7w= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2017 12:22:13.6057 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0982 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 This patch enables EthernetAVB for R-Car D3 draak board. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77995-draak.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts index 19c5462..9c5a790 100644 --- a/arch/arm64/boot/dts/renesas/r8a77995-draak.dts +++ b/arch/arm64/boot/dts/renesas/r8a77995-draak.dts @@ -11,6 +11,7 @@ /dts-v1/; #include "r8a77995.dtsi" +#include / { model = "Renesas Draak board based on r8a77995"; @@ -18,6 +19,7 @@ aliases { serial0 = &scif2; + ethernet0 = &avb; }; chosen { @@ -37,6 +39,14 @@ }; &pfc { + avb0_pins: avb { + mux { + groups = "avb0_link", "avb0_phy_int", "avb0_mdc", + "avb0_mii"; + function = "avb0"; + }; + }; + scif2_pins: scif2 { groups = "scif2_data"; function = "scif2"; @@ -44,6 +54,21 @@ }; +&avb { + pinctrl-0 = <&avb0_pins>; + pinctrl-names = "default"; + renesas,no-ether-link; + phy-handle = <&phy0>; + status = "okay"; + + phy0: ethernet-phy@0 { + rxc-skew-ps = <1500>; + reg = <0>; + interrupt-parent = <&gpio5>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &scif2 { pinctrl-0 = <&scif2_pins>; pinctrl-names = "default";