From patchwork Thu Aug 30 19:01:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145567 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp251934ljw; Thu, 30 Aug 2018 12:01:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnq43SBROSJzoH+z3WJ16zQJNSYAchz3StCa+S64IeJ8rOIC4dODwIkCSmZqKDD9rlMnqo X-Received: by 2002:a63:1316:: with SMTP id i22-v6mr10698411pgl.86.1535655692444; Thu, 30 Aug 2018 12:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535655692; cv=none; d=google.com; s=arc-20160816; b=cgAdmWKhCKsDRNJ+NGh0XkYYOwdwa9QngaGu0EkpbH1NolZG8Y/aOCkixgwTIojCZm ppotvsVlzy+mvo1K364uMBb8t5K43hzfsKOzBs8Klgy5rl2nje07lsarMtGnvIvZCLeb 9xUQ37GkwM0DmSygl6qio8ShpP7qIGXUIKdQby5aym26qasj/iq7Nw1vCjNjTdDNg69w DijW1WP8FG7jZkSRXIFrJFEWCwX1A8D6Swe6+uZNAGOhuX1auEssr1UpO2iqXsuW5hpB TtArZZjMqob+qfvYfnsPvgannSylJbf9On0VlRB3Ww+gXjRWPJMBD/Lp0bxTFFVFEZmy XG4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=xCKx9NEGzJwtaXAXUXUGumz714/0g1o9mExKt4VtueU=; b=xQnmMejt0NuNrkK4ml/9dG7FoYV8m+OGxziustFuufkW4rh7ouyooDfyruuutGGHY8 6ZTpgRL9D+M8zPIoMHdP2cXHA7Ul4J+huYGGeB6JnABmuhuK6NUIjeP02wuzcjnsqAKt pcheVCk7oqpbhgb6GEODWGa6NxOweNiYxPca3lS+C2X9o5+2pBBeg00ULidr2cba9ujS YYPguHoa6m2ND8KC+mYGic1AWd5ipRIMe09GyL2eNSad973eqJcDjArwMy3HqThnS0pQ mTSdv+eJZNt74mzkaKWWwS0h/ig+H6/ZYjMWNnejRlQuim7ofAAqMA+vVt9YRdzrsRZl cC0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SnTGvniA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4-v6si5591227pgk.583.2018.08.30.12.01.32; Thu, 30 Aug 2018 12:01:32 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=SnTGvniA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727578AbeH3XFG (ORCPT + 6 others); Thu, 30 Aug 2018 19:05:06 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:39480 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbeH3XFG (ORCPT ); Thu, 30 Aug 2018 19:05:06 -0400 Received: by mail-wm0-f67.google.com with SMTP id q8-v6so3067072wmq.4; Thu, 30 Aug 2018 12:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=xCKx9NEGzJwtaXAXUXUGumz714/0g1o9mExKt4VtueU=; b=SnTGvniACGn8C6kPyeufdxpxFhMY2VEw7HBcss31a2xRvrYnQO2yG1L2pKJ7szYoOf yBw2PdOnKAqI3nfVaDCqiFvL+cQ3FJ6F4wdvVdYmBeZBnUmMotYfoEH/2/vMnpgEyf4B DpMYgZq3PLoFu4vmerbyUwVd4dh2QDf0xRYOC2vD6OR6rhNpJbcbsT2/HCEU0Hgfi0PK e8N2H2rsXUHLa/E3I6W37EJg7x1yYjWd5tTfIhDR2BAOvJV7lOnfX9GBtGFoF9nHx5PH juSEs3HM1h+Fp6OTuNgTFDDkE6Bt530MnbleuIZ8ozHK69zqby8whZZGf8M613IjoZZj Ulyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xCKx9NEGzJwtaXAXUXUGumz714/0g1o9mExKt4VtueU=; b=IL7POy7GQkrXDnGpZPvaK5KR8vGN1/aFLOxC9XuVooyeGsmf5OoufPa4DsGsA4Hi1d /7tn1xECe8cVVYVJjTk7QgQY0GxUMDPDcH/fC6QoeMGRmadYne1jUNNk95ujaRnuUKcZ 3KLaxlCwls1P3au/FDSSHDr8m14FQO/QbNDtN/yX3WawxHl6eeadpnHGoTGC+VFkT2PH QuhJY0yydphJ3FoumNbLRSdh8tOuJJJwKfAz35Y0nV1ZdeOsPPtpEqKOca7tmUexdhHG 8+KoYKOW+d1g31lmd1EDOXtd9fBAiePIaG4thgoYIHq5PME+s1qAY7WSx7lWyWmup1ro Mh/g== X-Gm-Message-State: APzg51B2FTdzt6S4Vqy4v5gIiQrzyLVQvLi7QbSiX3012xuzPt3sMMpM qMiHAE8K3UmlFwSzWmR/lyA= X-Received: by 2002:a1c:3f08:: with SMTP id m8-v6mr2759411wma.88.1535655688420; Thu, 30 Aug 2018 12:01:28 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id w17-v6sm2937095wmc.43.2018.08.30.12.01.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 12:01:27 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, kishon@ti.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org, clabbe.montjoie@gmail.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v4 00/13] ata: ahci_platform: support allwinner R40 AHCI Date: Thu, 30 Aug 2018 21:01:07 +0200 Message-Id: <20180830190120.722-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello This patchset add support for allwinner R40 AHCI controller. The whole patchset is tested on sun8i-r40-bananapi-m2-ultra and on sun7i-a20-cubieboard2 which doesnt have any of the ressources added by this serie, so no regression should come with it. The last patch(ata: ahci_sunxi: remove PHY code) should not be merged, but will be resent for inclustion when all patchs will have hit linus tree. Changes since v3: - Moved PHY code to a new sun4i-a10-phy-sata driver - Removed reset code since ahci_platform support now reset controller. Changes since V2 - Moved all ressources management to ahci_platform Corentin Labbe (13): dt-bindings: ata: ahci-platform: fix indentation of target-supply ata: ahci_platform: add support for AHCI controller regulator dt-bindings: ata: ahci-platform: document ahci-supply phy: Add sun4i-a10-phy-sata driver dt-bindings: phy: document sun4i-a10-sata-phy dt-bindings: ata: update ahci_sunxi bindings ata: ahci_sunxi: Bypass PHY init when using the new binding ata: ahci_sunxi: add support for r40 ARM: dts: sun8i: r40: add sata node ARM: dts: sun8i: sun8i-r40-bananapi-m2-ultra: enable AHCI ARM: dts: sun7i: a20: add sata-port/sata-phy nodes ARM: dts: sun4i: a10: add sata-port/sata-phy nodes ata: ahci_sunxi: remove PHY code .../devicetree/bindings/ata/ahci-platform.txt | 11 +- .../devicetree/bindings/phy/sun4i-sata-phy.txt | 20 ++ arch/arm/boot/dts/sun4i-a10.dtsi | 13 ++ arch/arm/boot/dts/sun7i-a20.dtsi | 13 ++ arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 21 +++ arch/arm/boot/dts/sun8i-r40.dtsi | 23 +++ drivers/ata/ahci.h | 1 + drivers/ata/ahci_sunxi.c | 87 +-------- drivers/ata/libahci_platform.c | 26 ++- drivers/phy/allwinner/Kconfig | 7 + drivers/phy/allwinner/Makefile | 1 + drivers/phy/allwinner/phy-sun4i-sata.c | 208 +++++++++++++++++++++ 12 files changed, 343 insertions(+), 88 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/sun4i-sata-phy.txt create mode 100644 drivers/phy/allwinner/phy-sun4i-sata.c -- 2.16.4