From patchwork Fri Nov 30 14:47:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1005978 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rRC5aXgY"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 435y2g3y6Lz9sBZ for ; Sat, 1 Dec 2018 01:49:15 +1100 (AEDT) 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=9UyzJFROItjLnDS2c8y8Vb6wKa3F3lH+mcuQoAmT4N0=; b=rRC5aXgYLJ0KJF 0P3NBsVJHhnmJL8ycODpj0zEiLxZjSkHUtBhsH/ofNdPnLgzlVpuP9B7mJLUucnY0bwqdWzONtUgt aHGjfSlqXonsL/DBNRzWtMrSQXNPL4K6eaq6aiAzHEuFT17D00rhuEFAn97VE/48CfNuyuo7LcIfY A4T/mQiNKI07yuRdXUFc5hXtpl0g5322edhowMEiXMx6SptlMV7ZXVIRWTzbmIlB71mm1E365VKRR +j/cLLf3RVfVN5ZhY1CR8r5cbOSe4j837PvwuFK73UpLSjLqazKSQjpAxaHTswm0OPYrT2cA+eQy4 /CVv22reP6Ytgg0UwC+A==; 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 1gSk6P-0000Gf-Ko; Fri, 30 Nov 2018 14:49:09 +0000 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSk5T-0007o8-93 for linux-arm-kernel@lists.infradead.org; Fri, 30 Nov 2018 14:48:14 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id 23D4A20D27; Fri, 30 Nov 2018 15:47:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost.localdomain (aaubervilliers-681-1-63-158.w90-88.abo.wanadoo.fr [90.88.18.158]) by mail.bootlin.com (Postfix) with ESMTPSA id B8812207B0; Fri, 30 Nov 2018 15:47:44 +0100 (CET) From: Miquel Raynal To: Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Kishon Vijay Abraham I Subject: [PATCH v2 0/8] Add Armada 3700 COMPHY support Date: Fri, 30 Nov 2018 15:47:35 +0100 Message-Id: <20181130144743.675-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181130_064811_452561_6765B5FB X-CRM114-Status: GOOD ( 17.03 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Antoine Tenart , Grzegorz Jaszczyk , linux-kernel@vger.kernel.org, Maxime Chevallier , Nadav Haklai , Rob Herring , Thomas Petazzoni , Miquel Raynal , Marcin Wojtas , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hello, This series adds a new driver to support Armada 3700 COMPHY IP. The series has been tested on an ESPRESSObin with SATA, PCIe and USB3 host. For this purpose, patch 1 enumerates the SATA PHY mode. The SGMII PHY mode that is supported by the IP has been written (uses SMC calls anyway) but could not be tested on this platform. Three series will follow to add PHY support (or at least a PHY nodes in the A3700/ESPRESSObin device trees) to the MVEBU AHCI driver, the Aardvark PCI controller driver and the MVEBU xHCI driver. All this is needed in order to achieve suspend to RAM on this platform. Thanks, Miquèl Changes since v1: ================= * Fix wrong check in ->xlate(). * Apply the same fix to the cp110 comphy driver from which the a3700 driver is based. * Added credit to Gregorz Jaszczyk for his work. * Added Suggested-by tag to the patch adding the COMPHY DT node. Grzegorz Jaszczyk (1): phy: enumerate SATA PHY mode Miquel Raynal (7): phy: mvebu-cp110-comphy: fix spelling in structure name phy: mvebu-cp110-comphy: fix port check in ->xlate() phy: add A3700 COMPHY support dt-bindings: phy: mvebu-comphy: extend the file to describe a3700 bindings MAINTAINERS: phy: add entry for Armada 3700 COMPHY driver ARM64: dts: marvell: armada-37xx: fix SATA node scope ARM64: dts: marvell: armada-37xx: declare the COMPHY node .../bindings/phy/phy-mvebu-comphy.txt | 65 ++++- MAINTAINERS | 6 + arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 31 +- drivers/phy/marvell/Kconfig | 10 + drivers/phy/marvell/Makefile | 1 + drivers/phy/marvell/phy-mvebu-a3700-comphy.c | 276 ++++++++++++++++++ drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 8 +- include/linux/phy/phy.h | 1 + 8 files changed, 381 insertions(+), 17 deletions(-) create mode 100644 drivers/phy/marvell/phy-mvebu-a3700-comphy.c