From patchwork Wed Dec 12 09:35:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?QmlhbyBIdWFuZyAo6buE5b2qKQ==?= X-Patchwork-Id: 10725831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 78638174F for ; Wed, 12 Dec 2018 09:36:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63E3B2ADAD for ; Wed, 12 Dec 2018 09:36:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 574282AEC7; Wed, 12 Dec 2018 09:36:36 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 0A7AD2ADAD for ; Wed, 12 Dec 2018 09:36:36 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=kg+D26nVXW8cWoqDycfp4Zq4/BsU0TsiWjprtlH2a/U=; b=H/ZORmPjqO7VX4 7sPtoUf9GdzTFwV3s/kQshN5PNqfws9FlgJUdecPKXX/5n/OyTOg0SEMyOwjwLSmYgM0CDOLp4dK9 irHr5/CfVxaS8CUehgmM6JpMxXHj/gLGxiWD4PzFGybnQCWvP5dcAHxLt8WWQ0gVW7OyMvsLYupK8 1b0+GRwO1Nyi6v6wU9wsAfVkph66Pb322YcJLeSw+QwRCHOzf5qTG9HE5QFdHv/5J4/pMIfCdz+sU QOSespK2LrkiCnevNQ+6qs3M9C1eO6luEkZOO2GwGb+IIxvY29EvogV9khZqU9nz4kwQM9kXBw7YG 4qvZ5ZKVnwXUwXAfqYQQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gX0wQ-0003eh-Cl; Wed, 12 Dec 2018 09:36:30 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gX0wN-0003c2-18; Wed, 12 Dec 2018 09:36:28 +0000 X-UUID: 24007c7db5544aa399e52006acc07eb5-20181212 X-UUID: 24007c7db5544aa399e52006acc07eb5-20181212 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 532604860; Wed, 12 Dec 2018 17:35:57 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 12 Dec 2018 17:35:54 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 12 Dec 2018 17:35:53 +0800 From: Biao Huang To: , Subject: [v6, PATCH 0/2] add Ethernet driver support for mt2712 Date: Wed, 12 Dec 2018 17:35:30 +0800 Message-ID: <1544607332-29921-1-git-send-email-biao.huang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-TM-SNTS-SMTP: 6591352EF4A2D8B84B96720AD430D40B02690301532B82060EB1480892F5AD312000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181212_013627_198447_9E2DBEB8 X-CRM114-Status: UNSURE ( 7.76 ) 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: mark.rutland@arm.com, devicetree@vger.kernel.org, nelson.chang@mediatek.com, andrew@lunn.ch, biao.huang@mediatek.com, netdev@vger.kernel.org, liguo.zhang@mediatek.com, linux-kernel@vger.kernel.org, matthias.bgg@gmail.com, joabreu@synopsys.com, linux-mediatek@lists.infradead.org, honghui.zhang@mediatek.com, yt.shen@mediatek.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 Changes in v6: modifications according to comments from Rob/Andrew/Sean: 1. use delay_ps instead of delay stage. 2. add comments in driver to avoid confusion. 2. rewrite set_delay function. 3. modify binding document for properties: tx-delay-ps/rx-delay-ps/pericfg etc. Biao Huang (2): net:stmmac: dwmac-mediatek: add support for mt2712 dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC .../devicetree/bindings/net/mediatek-dwmac.txt | 87 +++++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 8 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 408 ++++++++++++++++++++ 4 files changed, 504 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/mediatek-dwmac.txt create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c --- 1.7.9.5