From patchwork Tue Jan 8 16:29:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10752423 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 2B0631399 for ; Tue, 8 Jan 2019 16:32:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1ACE028F36 for ; Tue, 8 Jan 2019 16:32:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 181A728F4C; Tue, 8 Jan 2019 16:32:18 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 B779B28F5A for ; Tue, 8 Jan 2019 16:32:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729624AbfAHQcO (ORCPT ); Tue, 8 Jan 2019 11:32:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:39720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729399AbfAHQcN (ORCPT ); Tue, 8 Jan 2019 11:32:13 -0500 Received: from localhost.localdomain (unknown [171.76.109.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 565412070B; Tue, 8 Jan 2019 16:32:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546965133; bh=1iX1v4sf8sSKBmDlYKT2IoziebIFe6eGRqe8pZz1JSI=; h=From:To:Cc:Subject:Date:From; b=jcQ0rywiW/m68NXZYg2Ds3jWuW0wxiVYW1EFMqQezKGrcN/KEVPUvJRb2OfxcWCM8 OTqOrtMSdOUh6UAfNqLY4JV9XElrLf2NdBqmuJ0BHOBs3Rudc+sBaUPzEoyi3uQ79j UePiVyaHRfipV1S6h5uG7J2RiOLreAqFinDeoy7U= From: Vinod Koul To: David S Miller Cc: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, Niklas Cassel , Bjorn Andersson , Vinod Koul , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Andrew Lunn , Florian Fainelli , Vivien Didelot Subject: [PATCH v2 0/5] net: Add support for Qualcomm ethqos Date: Tue, 8 Jan 2019 21:59:21 +0530 Message-Id: <20190108162926.17806-1-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some Qualcomm SoCs sport a ethqos controller which use DW ip, so add the glue driver which uses stmmac driver along with DT bindings for this device. This controller supports rgmii mode and doesn't work with existing phy drivers as they do not remove the phy delay delay in this mode, so fix the two phy drivers tested with this. Changes in v2: - Fix the example in dt-binding - Remove DT property for disable the delay and disable delay for RGMII mode in AT803x and QCA8K PHY drivers Vinod Koul (5): dt-bindings: net: Add Qualcomm ethqos binding net: stmmac: Add driver for Qualcomm ethqos MAINTAINER: Add entry for Qualcomm ETHQOS ethernet driver net: phy: at803x: Disable phy delay for RGMII mode net: dsa: qca8k: disable delay for RGMII mode .../devicetree/bindings/net/qcom,dwmac.txt | 129 +++++ MAINTAINERS | 8 + drivers/net/dsa/qca8k.c | 16 +- drivers/net/ethernet/stmicro/stmmac/Kconfig | 10 + drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../stmicro/stmmac/dwmac-qcom-ethqos.c | 545 ++++++++++++++++++ drivers/net/phy/at803x.c | 21 + 7 files changed, 718 insertions(+), 12 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/qcom,dwmac.txt create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c