From patchwork Wed Jan 2 09:17:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 1019921 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="w2t0x6j7"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43V59C31jyz9s9h for ; Wed, 2 Jan 2019 20:19:43 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729101AbfABJTl (ORCPT ); Wed, 2 Jan 2019 04:19:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:46472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726782AbfABJTl (ORCPT ); Wed, 2 Jan 2019 04:19:41 -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 7DD3B2171F; Wed, 2 Jan 2019 09:19:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546420780; bh=hnmaiij/nkrB2/plAQj8A0E1VmBARnnG0VDZSLfsgsk=; h=From:To:Cc:Subject:Date:From; b=w2t0x6j7f5a3qB1PzA0+N+x1h4fyIisZbALqJRUniN698yeKgPnIhBvLcA7/a6vOM nLmxRVGNXqXZQxvjGlgn6DH5eL9sdPvjeEgiyqSM9RYp52hxkhlyCDNqgG8QMG1YLd xmRwD1nzAXcE7se9kHrBFZUTxL1d7BlSc3nw5X20= From: Vinod Koul To: "David S . Miller" Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.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 0/7] net: Add support for Qualcomm ethqos Date: Wed, 2 Jan 2019 14:47:22 +0530 Message-Id: <20190102091729.18582-1-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 add a DT property and disable the delay when this property is present, this is done for two phys at803x and qca8k. Vinod Koul (7): dt-bindings: net: Add Qualcomm ethqos binding net: stmmac: Add driver for Qualcomm ethqos dt-bindings: net: stmmac: Add the bindings documentation for delays MAINTAINER: Add entry for Qualcomm ETHQOS ethernet driver net: phy: at803x: Rework at803x_config_init() net: phy: at803x: Add support to disable tx/rx delays net: dsa: qca8k: handle disable tx/rx delay .../devicetree/bindings/net/qcom,dwmac.txt | 129 +++++ .../devicetree/bindings/net/stmmac.txt | 2 + MAINTAINERS | 8 + drivers/net/dsa/qca8k.c | 27 +- 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 | 48 +- 8 files changed, 758 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