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: 10582701 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D78ED14BD for ; Thu, 30 Aug 2018 19:04:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C722A2C419 for ; Thu, 30 Aug 2018 19:04:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8FF72C420; Thu, 30 Aug 2018 19:04:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 053192C419 for ; Thu, 30 Aug 2018 19:04:16 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=kDeNPG4ggDtoxlHAgzBXe1z6OI+hcfawKf7Ta8sXjUE=; b=WZN D7FAn1pmX5XjrOZd9QfNNTrJpeBLJx2owZ0nZRHhqvOlLfNZoOSHP2zg6LbQOC6yYKjZNdq1gC5D5 pJQaAHNBArKtZ/SGBh/DZk+8Qw2FBNT+IlUp5xhNc9NtBkzo4Ur0SvYmZsYs9rX7sUrQxisz26zHO BB7hQZiXHla5clISDniyBfks/CxL6ENFh6hebYHrm3izRlVQfx65qLmNd+35G4rE3UnDvSf0lfqkE M9K10sGzxKfE83kq1NVJ0VYkPw5H5bF9pJKoN/txHCRgKbMcZmhJfrodFgMb1mkZdGNZPg2wNL/Hw kX86Cnd3DJKoW+vceTcUyYIUiVw4Hog==; 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 1fvSEk-0003ED-6m; Thu, 30 Aug 2018 19:04:10 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvSCL-0001jU-FZ for linux-arm-kernel@lists.infradead.org; Thu, 30 Aug 2018 19:02:04 +0000 Received: by mail-wm0-x243.google.com with SMTP id c14-v6so2992053wmb.4 for ; Thu, 30 Aug 2018 12:01:30 -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=KV8cbFje1m8vDQ92GMWWiq2K6gjQQ6tpSedhMQ6MaVH5g/w1fG3DaFa1ERSY+xdrqP IbRbZHu1Ep2WjAV8Qi1tFbLLe+im439TPLQMxNb+1G0GdsNG95UyJqZCzIuJtOxV79oQ CBpRakUUsd8C3lZsMBPw3M/pw7m9tdYaADq6vnXO7rtjb5dTKkDTN2xlORpVygY1uwZo L4DWDAQzSwYDW0b1q5bj7FuwgUiS0zHlkJzg+hMoJbnV42043f7GjwLx0mGO7UK2Gcqq mhIfwRFr+zT/edhCY1nEqD+9ZFA3O9HyC1k/kfj9Gpheg5NXxK4zGqUSIJjesdXXZpWF flIA== X-Gm-Message-State: APzg51B2IlYdfwY4ZXoa0TX0kXD48vhcZwglZB7xPhGdP+6sgKkVqIo6 6Sd/Nqih/WulTtKGnhAEqTU= X-Google-Smtp-Source: ANB0Vdai2rqaT7J1abPZq/xBuLeSOI7jxtqizkXKLbhigygIbMjWpftzdbsf0oYRSY9S12A8LV86YA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180830_120141_628630_B25C3502 X-CRM114-Status: GOOD ( 13.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Hans de Goede