Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp209199imm; Thu, 30 Aug 2018 12:02:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbiWNGWggFLko4546+lI1985+a3g3bVdzGlO16rXZXQwbNqIJ2FBluG3/sktHzOkrcRvhg2 X-Received: by 2002:a17:902:246a:: with SMTP id m39-v6mr11306559plg.57.1535655776708; Thu, 30 Aug 2018 12:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535655776; cv=none; d=google.com; s=arc-20160816; b=cF16lSpPT+C6r9zuG1fqHIyroZ8UtrZ2Xq3Rmqh9ivRRj/56TaGH0UTvUYDq9Kuo+i sHuePXPgJeKSz48xi6F/657J7yWGwzsPQz9NjLYqd+tJz5JcxL60ppD6/NQSa//ca+yn +aMm75JpYfAH+hC3vB2cQfvXp2MDY/9fjEFLh1u99xpCrUASse9Hf/WqqGBOY+9YvXSb bu8z7VdEprUfLleoUPDSdpPRS95qN+JrnJnWSHATGt0JQjlI4wVZcHIsZl8uJ5di3Mws mi993zwafcCJmOu+bkPD3JyqIFvuDZw6RTQBSrZhBeXUabv76u9WcZlY754N0E0lELQi SGwg== 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=jXUkY10s/14qETtLf7ygl1EQOVCMPEox82pGotNvPvuHCKkRHAThuBLWbThGqXgPJL 3pd6zsFVAybDQQfiGTc/6rMtvXz6h6kolPesauxbOF4hqeqyCwaTmpEhlttI69nSmS3v Ylir2QBRmIjhYDjsr0Io0pd8mL6AaNQMSp9PrRuCtWvs6zVcrxIwSbWckTf0Gbk0MZ87 dQ4s/mNvQhPv2veUzSoBG/gkC9K/XY+xGZ4rWY4daSYOBRoao1E97oE427uCU29J62+g r1iiEwpCE2RFiD8ZSgogoqeouTE1c/8IsMJl7NsnG4CfEErGcz2aEQgBreuTiRMeRdwt Go1A== 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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 13-v6si7342263pgs.579.2018.08.30.12.02.41; Thu, 30 Aug 2018 12:02:56 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SnTGvniA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727706AbeH3XFH (ORCPT + 99 others); Thu, 30 Aug 2018 19:05:07 -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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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