From patchwork Mon Jan 21 09:13:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 156178 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6156238jaa; Mon, 21 Jan 2019 01:15:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN78KFicUU34BHojNIZ3nLLfcqV3b3mdfi69Z4oIC8Z0FYWwscxI/H5Dio779pV3sXkqqSIG X-Received: by 2002:a17:902:8641:: with SMTP id y1mr29385953plt.159.1548062122058; Mon, 21 Jan 2019 01:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548062122; cv=none; d=google.com; s=arc-20160816; b=BiHNMzX7OV7/nyOBkq3L8iask5xJX8S/0FccUItngNa06nW+v0khziNoObPwT433cB ev8M4VdonEK8sW3dUGNqshsZIvnnqI8aUcwrEGSbrw5UNSjIPLZBDZJCsd6FbxObKnqO uZgxvpw4wIt3PtgGCBm5o3cQMfaa2UL4A2SwAhaA1SpagQZWH8s6WfgOeKFtVcWrCPlQ Lw+q9+omGpX4HgApVfWW17x+rrEYWXn5mYwh2iGt/BUi9ruFBZOLQTf+0TP6f0BcnvpG NufgoTl4MEYlFsgg/hHZqCJvnpt0VEwiWgE/oQIolQoC4rjCi1u0pNoL2lRudvMz2w0X kbqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lwVX5b2tu3Im88rrVIWHY93FqdC5ZJHGnaIMVujG5c4=; b=pcRcHoYsgpr2szwZkX5jHMp5plyc3hR2+V9zr0VzEuIMn4MBB1CmaZgDpzAD5dD9E+ 5+ifynIXCNGWuvmBiE17Q1cQLvYmdDYZV4QzkKhrJ+bG63RxV6xdhweLmcHPW6adtuhC HJ4/U3Qt15V4dMDQEQKe09Dfg63hTORLI85WNFbkHiW0rCeWEvXlAaT50m25N/xsMcl3 Z61+Lao1SZCVxoIu3q99w82tZjapk89fEiUqKvcAoft6XGV8d1fRC9ndutQhl1x+7vyq ZIyxOcmFHfReChKXYP9KVr9nMTF02NxpK74AcYnc45HMCF+K97XBNHpbn2gcKDc0lvwW FB0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U1r546zP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6si13075679plk.231.2019.01.21.01.15.21; Mon, 21 Jan 2019 01:15:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U1r546zP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726059AbfAUJPV (ORCPT + 7 others); Mon, 21 Jan 2019 04:15:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:49742 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725908AbfAUJPV (ORCPT ); Mon, 21 Jan 2019 04:15:21 -0500 Received: from localhost.localdomain (unknown [122.178.235.99]) (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 3C89F2084A; Mon, 21 Jan 2019 09:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548062120; bh=kTgwd4yLu0J/UYVh3SCWXieovzri1J5sqRj5wXiOXUc=; h=From:To:Cc:Subject:Date:From; b=U1r546zPTEIj2rTgn1yte2WRogiM5lmimVKGKPPOfW8PgHyiVJaLEEpIiRZPszXaO bzSv0maWTar5885BkLdIdLHxUCdmiEojuRHsbU4KmwE7eu4DmfqDWzNRwR4CQztcHs HXZE+Dj6uLZcjuEKrZ1pPy1d0fiMSSnvJ8JEKolc= 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 v3 0/5] net: Add support for Qualcomm ethqos Date: Mon, 21 Jan 2019 14:43:13 +0530 Message-Id: <20190121091318.20079-1-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 fix the two phy drivers tested with this. Changes in v3: - Add description in DT and rename the file and compatible as suggested by Rob - Update changelog for QCA8K driver - Update AT803x phy disable delay for all RGMxx modes 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,ethqos.txt | 64 ++ 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 | 22 +- 7 files changed, 644 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/qcom,ethqos.txt create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c -- 2.20.1