Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp592763imu; Thu, 13 Dec 2018 00:41:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vr0laHy015A+ckyBhuwqBpqKlRJGP1StIhdHgx9eEWhsTknjCM8kD8krCChTdULMG24B/f X-Received: by 2002:a63:78cd:: with SMTP id t196mr21139490pgc.62.1544690510716; Thu, 13 Dec 2018 00:41:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544690510; cv=none; d=google.com; s=arc-20160816; b=xaPLwkmvlKANnNksQCDWGue1Z58pAIKdTG2okTNNm7g58q/gCC5pNKhS1YdZE5klzc JE3GeGsdDUCxBuppJT+dPSNjXvxdCCo0UhdxvCfVXNS71EZsfm6ndEViuTIoDG3P9Gdw iIQJR9Xj3pnvcg6pSRy3Af5aoFoG1HroWR93CrvDNxLRT2XIyZix/ESunqqwXZSwWx8z 7q38a6oNqIWJw9ksZW+hCyrC95p6VnZIdTU+C+aTGHoujbdgpJfL8JbQvSBlXtq/iXfW 1GvF3om8Kkh4Ikwwv88vKbLRlUk+dkAFy6Tv3OZ86TeAt/zEi73SkejfHyG/9LP7gIkw nijg== 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; bh=ZoVcRL5qMf3pplIgalKSOEV4cHlKI8u/8p07fnY9rU8=; b=a9WbdgV+cK1qaSTcZqff22sIqTUKNWqIpmNuXtFyoQIcrV39KEhJ1o9zFhydMX7BYL sNgsOBXJODVBpG0ohLsnqHO1cUB0jsxCrfHF74jEMZLclGLfuU9gXRawIJZIE2B6s4j5 JAvVNUGugj5PpfVunlY9300tqaNmaE3D35Uyb0tcPCwrSv/S7Q99EEfJMDbQu2a1zeWS IhKT62BGCxe9TefdbhZhmYWWs4rVeH8I1D4qntp9AasrwnjH4ZCYpPXdFxfAgmfDmzxk LAMM2bSg6r6Syi+X6s3RDQuOqT3/vK1r8YfU9xBnH4784rIFKrY13l5+Yvprifk0vz6P 334A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si1036828pls.338.2018.12.13.00.41.36; Thu, 13 Dec 2018 00:41:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727434AbeLMIjO (ORCPT + 99 others); Thu, 13 Dec 2018 03:39:14 -0500 Received: from mail.bootlin.com ([62.4.15.54]:38622 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbeLMIjN (ORCPT ); Thu, 13 Dec 2018 03:39:13 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 062782079D; Thu, 13 Dec 2018 09:39:11 +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 (unknown [91.224.148.103]) by mail.bootlin.com (Postfix) with ESMTPSA id 18771206FF; Thu, 13 Dec 2018 09:39:10 +0100 (CET) From: Miquel Raynal To: Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Kishon Vijay Abraham I Cc: , , linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Thomas Petazzoni , Antoine Tenart , Maxime Chevallier , Nadav Haklai , Marcin Wojtas , Grzegorz Jaszczyk , Miquel Raynal Subject: [PATCH v4 0/7] Add Armada 3700 COMPHY support Date: Thu, 13 Dec 2018 09:39:01 +0100 Message-Id: <20181213083908.14180-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 v3: ================= * Added Rob's Reviewed-by tag on bindings. * Rebased on top of phy -next as of the 12th of December, 2018. * Adapted the driver to support SGMII/1000BASEX and HS_SGMII/2500BASEX. Changes since v2: ================= * Remove redundant check on lane->port/args->arg[0] at the end of the ->xlate() callback. Do it on both armada-cp110 and armada-a3700 COMPHY drivers. * Put my SoB as author of the patch first when a patch is co-developed. 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 (6): 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 | 318 ++++++++++++++++++ drivers/phy/marvell/phy-mvebu-cp110-comphy.c | 2 - include/linux/phy/phy.h | 1 + 8 files changed, 419 insertions(+), 15 deletions(-) create mode 100644 drivers/phy/marvell/phy-mvebu-a3700-comphy.c -- 2.19.1