From patchwork Mon Sep 26 22:07:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 675333 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sjdNy1wJwz9s9c for ; Tue, 27 Sep 2016 08:07:14 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b=K9ELpbdK; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936368AbcIZWHK (ORCPT ); Mon, 26 Sep 2016 18:07:10 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:35929 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751972AbcIZWHJ (ORCPT ); Mon, 26 Sep 2016 18:07:09 -0400 Received: by mail-lf0-f42.google.com with SMTP id g62so160462348lfe.3 for ; Mon, 26 Sep 2016 15:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:organization:user-agent :mime-version:content-transfer-encoding; bh=uENIvsRU/Cr1+RaBU9u6dIf6mfy74d7Htloz1gfM1pk=; b=K9ELpbdKjZSFkK1Ts1nLkB3K1fasvNJYNSrVQXgQ4+mqSRnHcS8yVPTGEVxZBJ93El 9HsWzalwNzmvFr2Zk12Tf9z0oOPHzuO1MV+KObLGWGd90RGx86UMU3OCUTTezZwXSFE7 juYpST9poQBddE+5tptfegP3qDer+Pati8ux+fQb9Ezg1IIUBZr/Ub7Jwmb4OuWmg87q QvAl54K70sarJ4qQGxT+8RmzbAg28zYv89W2zpEOfAhdKEL1ca22OSOYKAiyAjI0EDVp JENBNd0b153ySF7x/nNTfLJd1j0eFVTQuE5gxM9KW8hW8ZhYAbDG7l8MahEAGkN3sTKR 2YEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:organization :user-agent:mime-version:content-transfer-encoding; bh=uENIvsRU/Cr1+RaBU9u6dIf6mfy74d7Htloz1gfM1pk=; b=QJv+rIIiw4eO8ZV4Mb23Da7yh6E7p1o7NGnbIHLPWq5YTPPc3vtqG60D4RZ22gCy1s MGEjfEpZaRRHpdb0wbHOK2qcGf6wM4PJp87iyo/FdiXFWlbZexIAaQcddXNyz0gSlhKU UOKAuUBSqQphujAiH7bQOTsT4nZgOiIJuZrXlbxEf72D/93Y6DbZX0FWKrRvZe1unSsM //Qjv7Wm724XpWj97WiVNM2XNNx764GkNAuPOX/eyvuOxCYDU9THbVbDCLEOpWP+ArpF Ythvbv17CRtTs50kRNWBAF8oBlsfuedGEpdfvObLpVrzLNZ4iT2gE2nkFL0VjkYFCjyq yztA== X-Gm-Message-State: AE9vXwMCiKqLNmS3VSWFvWSl/DetasHY+/rqaYhlSsdoQTR3vaNXr2n/E/L9CMDcGxBotA== X-Received: by 10.46.1.92 with SMTP id 89mr8284419ljb.77.1474927627339; Mon, 26 Sep 2016 15:07:07 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.84.138]) by smtp.gmail.com with ESMTPSA id 190sm3994181ljj.0.2016.09.26.15.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Sep 2016 15:07:06 -0700 (PDT) From: Sergei Shtylyov To: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH] sh_eth: add R8A7743/5 support Date: Tue, 27 Sep 2016 01:07:01 +0300 Message-ID: <1707101.iYqqKafBon@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.4-100.fc23.x86_64; KDE/4.14.20; x86_64; ; ) MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add support for the first two members of the Renesas RZ/G family, RZ/G1M/E (also known as R8A7743/5). The Ether core is the same as in the R-Car gen2 SoCs, so will share the code/data with them... Signed-off-by: Sergei Shtylyov --- The patch is against the DaveM's 'net-next.git' repo. Documentation/devicetree/bindings/net/sh_eth.txt | 2 ++ drivers/net/ethernet/renesas/Kconfig | 2 +- drivers/net/ethernet/renesas/sh_eth.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) Index: net-next/Documentation/devicetree/bindings/net/sh_eth.txt =================================================================== --- net-next.orig/Documentation/devicetree/bindings/net/sh_eth.txt +++ net-next/Documentation/devicetree/bindings/net/sh_eth.txt @@ -5,6 +5,8 @@ interface contains. Required properties: - compatible: "renesas,gether-r8a7740" if the device is a part of R8A7740 SoC. + "renesas,ether-r8a7743" if the device is a part of R8A7743 SoC. + "renesas,ether-r8a7745" if the device is a part of R8A7745 SoC. "renesas,ether-r8a7778" if the device is a part of R8A7778 SoC. "renesas,ether-r8a7779" if the device is a part of R8A7779 SoC. "renesas,ether-r8a7790" if the device is a part of R8A7790 SoC. Index: net-next/drivers/net/ethernet/renesas/Kconfig =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/Kconfig +++ net-next/drivers/net/ethernet/renesas/Kconfig @@ -27,7 +27,7 @@ config SH_ETH Renesas SuperH Ethernet device driver. This driver supporting CPUs are: - SH7619, SH7710, SH7712, SH7724, SH7734, SH7763, SH7757, - R8A7740, R8A777x and R8A779x. + R8A7740, R8A774x, R8A777x and R8A779x. config RAVB tristate "Renesas Ethernet AVB support" Index: net-next/drivers/net/ethernet/renesas/sh_eth.c =================================================================== --- net-next.orig/drivers/net/ethernet/renesas/sh_eth.c +++ net-next/drivers/net/ethernet/renesas/sh_eth.c @@ -2959,6 +2959,8 @@ static struct sh_eth_plat_data *sh_eth_p static const struct of_device_id sh_eth_match_table[] = { { .compatible = "renesas,gether-r8a7740", .data = &r8a7740_data }, + { .compatible = "renesas,ether-r8a7743", .data = &r8a779x_data }, + { .compatible = "renesas,ether-r8a7745", .data = &r8a779x_data }, { .compatible = "renesas,ether-r8a7778", .data = &r8a777x_data }, { .compatible = "renesas,ether-r8a7779", .data = &r8a777x_data }, { .compatible = "renesas,ether-r8a7790", .data = &r8a779x_data },