From patchwork Mon Sep 3 10:01:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145757 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2294599ljw; Mon, 3 Sep 2018 03:02:13 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbLy4BdCkWWdGMeRPH2748OC2JZW65rvyHwXOnfU7MdTJjUjAMkz7QsePJINKJrVK3RemOy X-Received: by 2002:a65:464b:: with SMTP id k11-v6mr25296211pgr.448.1535968933034; Mon, 03 Sep 2018 03:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968933; cv=none; d=google.com; s=arc-20160816; b=dT4aHXfrBN+MvyElkLfaoQrkJ4GkwXN17UbjMYC1tAacvQcnsbsaBTpi9C5gG0i9uC WdSCr8WKFGmWqWiSR+9lAee3C9ZKwIKdnbTtg8p6Oz6MHpCI/tyFCQmTfTIXCmfbt32f mEQAw811BbNK5gTU5LFkbqUAp5yt/OxVd0ilU77/9hUsyeKb3Q6/geAEm2YLxYD9WuIo lPwsah0qJhBgZf5QURpLN50C9BEZYUV3sUVFXHIcvs4KmG/tsrkUoD6yuUsRqlv4GCyF dXTlD0mBmLVOyU/hhZmURDHTDJBW2mFmZ+FYjeT5NXXT+6ryHdJ4Jp6Vp6w840v9H3Hl 1DmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=k6iCbW8J+KgHVaSl644rAO8j84rXqhGHUryoNJ+DbzA=; b=PRkRrF2Z1YjuLvUklWxLf2ikYtqcX89tBRF8rLohs2bw9mFrra22adU74iN7SWbm+G ivEyt+B15zpZRoQzsuQq9NiCiMx4rVkVmMaonicnBXLoVqSlwY+3owwng/R9FMa4tF9T oyyH9dhJPcYjg4stEkaeOJzFvX4Wf+dVTHCLO5lKkBiZ6P4wkS1zlR9btHSFlKijJ4eX hhGGoo31MEPMB+NGcUVbCSYzjBwYyT4y9vHpym9ZCrqYwzgSQWRRss7bC03BBUU00Pm1 IEoNaOA0LS5khzp4HyuaftNY7EB3TopIrpzzDdgbS7kINDjI+F4Zz4sCVU0FWEA5tyVO sdPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Ms/AL1db"; 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 71-v6si18448605pfv.139.2018.09.03.03.02.12; Mon, 03 Sep 2018 03:02:13 -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="Ms/AL1db"; 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 S1727657AbeICOVg (ORCPT + 32 others); Mon, 3 Sep 2018 10:21:36 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:53667 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727126AbeICOVe (ORCPT ); Mon, 3 Sep 2018 10:21:34 -0400 Received: by mail-wm0-f65.google.com with SMTP id b19-v6so547090wme.3; Mon, 03 Sep 2018 03:02:08 -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:in-reply-to:references; bh=k6iCbW8J+KgHVaSl644rAO8j84rXqhGHUryoNJ+DbzA=; b=Ms/AL1dbSwu/6OkcCoXkniJHuTppTg1eS/iAfsbHlJ4Igfren9etlHtyrmUz46G8v1 m5sOK4cOjhvE5gmLsm4B/yx/f3y8G9pf6oL9/JibL4a3Uw+ivm0U1VeQb9/JdawLRP3t 23ryPujptKghn7ly2mJ2FmLVXW2Mxm8oPKa9RJPLyvLxOH6wBNFC70TDFW7Nu/P1qD5G 6r2iRj8e7ZLKZKHgtqt/pW9+W+pC4jH+X9QgbL0W5eUesmDNFFOqyj3v5hCkdnu1DwYN ovhbadxfujnJSB6IHyflzPjmAvD/b140Z24hhQx+VgQU83T/MPPI01E0V3h6dBo1u5wv YOXQ== 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:in-reply-to :references; bh=k6iCbW8J+KgHVaSl644rAO8j84rXqhGHUryoNJ+DbzA=; b=aq3hjJlWlApXFzFrzHghEss1izgGzH985Q/9hk+kHGFjxODHfywmLp/rcVpYBc/uOB i2oFewibkMKRagIL2rsrQmLfKYVhr4vzNHDRVkRTF+RhoSNKpPzExaQFsZcmw+n5YeOc K2mbd2sa24V2dxJzzJM2zUJiDHmPKfEkAYJpBQZtT/YQVrJZ+bLGU9AY+cEPv4Qm4sJ0 6wN+ldzRyy/oTehHqV+7UDEioDZOpdaxnRrsm+ZmGPRh3bfP/yRtTQbY8IDujLigxFCd 9jUoErjQA29m38+iykZk4TzizOfqJQvns8ra2rckrMl1f77//fXzS/Acw+L7pesSHDVH lLmw== X-Gm-Message-State: APzg51Ajw+EvzC+3bwo8eDhLd3M6d2WOUXiHCSzr++jLGasVzq2pn9fl m41VpSs/x0uyeH8UCZ1vfF0= X-Received: by 2002:a1c:8145:: with SMTP id c66-v6mr3739310wmd.139.1535968927560; Mon, 03 Sep 2018 03:02:07 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:06 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org 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, Corentin Labbe Subject: [PATCH v5 1/9] dt-bindings: ata: ahci-platform: fix indentation of target-supply Date: Mon, 3 Sep 2018 12:01:53 +0200 Message-Id: <20180903100201.23131-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fix the indentation of target-supply's ':'. Signed-off-by: Corentin Labbe --- Documentation/devicetree/bindings/ata/ahci-platform.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.4 diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index 5d5bd456d9d9..b88820b4c01e 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt @@ -47,7 +47,7 @@ Sub-nodes required properties: - reg : the port number And at least one of the following properties: - phys : reference to the SATA PHY node -- target-supply : regulator for SATA target power +- target-supply : regulator for SATA target power Examples: sata@ffe08000 { From patchwork Mon Sep 3 10:01:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145765 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2295600ljw; Mon, 3 Sep 2018 03:02:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdauU2eZ5Dmheyh472sS498wdiQVrnmSvBAIj1VDqNaXXmFfAJAygdnwEsFs4gwxEhIIBo3m X-Received: by 2002:a63:5d1c:: with SMTP id r28-v6mr25739273pgb.445.1535968978997; Mon, 03 Sep 2018 03:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968978; cv=none; d=google.com; s=arc-20160816; b=NslqvFLftB+p5TtMPr9ZmPs+w8kKeNU0t5ds7hZAxic3+M+3GmHxuv8myzFJS+vqf1 BGe/QLTise20IuEGLnkO/xKKQ5+zq9v5wlAHd7D9cjn2cpS6/3SSy5rhxylZ/LV1e4li dafZaYQ7wDXjrYf0Amip9RTIl/Jn3AGvE9e1B67bFMR0fVnnBWFLxWl/e+IdqNz7ITqT lfJ8+KHDK+7oYl4BuqHXSgagDrlNrfOpLO9Y8HLugJ7zUmeVPD3l+Iwpkhb6veGav9Ax XJrJBnOd8wICzxUoMmcIMlc3ZC1cKnbR81nUl9bQqdpwQJVO72kmc1gmuYBdOlJAo+SC 3cbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=t7Yy96h1CNLQsmpPB+gBtt+3MwMJX3o+4LyGaKYq94s=; b=sQl7PEDHtPUMi9zwunPaLIjny3QkK5LgEohWbVsWzWzybN+am9S1lwNl8KIRbTZ3su tNd5X3uWkNwT/RxYK7qVk93aFjZL2MYI5N9NtTfmkdFZtN2taB4q7dQZmVbUSkm8SNjE 4tXlJTOxn51IvFxzqJcDY6bm/uzp1FzZileYSDkyNjIOw96uE0Vz9+vGg78N10U27Qzj MxNzEzlabGpm8bscXifCc1rxd1s/WJJ7grF7R7mc6W7CnDfWYVxujDQi8Ts1np2OVjHX tazBixW+ePWkweCJMRHTDzAvlEUyvUj62mDjr+4nBu2UG1Imk/laVY9bwGkfn5NgmGkJ NNXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m070xjmT; 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 31-v6si18187020plh.285.2018.09.03.03.02.58; Mon, 03 Sep 2018 03:02:58 -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=m070xjmT; 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 S1727694AbeICOVi (ORCPT + 32 others); Mon, 3 Sep 2018 10:21:38 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:40694 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726061AbeICOVg (ORCPT ); Mon, 3 Sep 2018 10:21:36 -0400 Received: by mail-wm0-f68.google.com with SMTP id 207-v6so515520wme.5; Mon, 03 Sep 2018 03:02:09 -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:in-reply-to:references; bh=t7Yy96h1CNLQsmpPB+gBtt+3MwMJX3o+4LyGaKYq94s=; b=m070xjmTV8oB18DF8XHLMSb11OXMKQs4HbkTJBzGsA/kkCepsrdAH/620RDjGWUxkr fVxM32Xk6O2ToADYUpC/Bq1fbBsqzz92WEv6rSx+LGrz9kYfmE73CQe85+DXUqdmUBaE uWoKO6TxQ4k8oheINrk/Jq9Ac6XrtY5d2/O2jLgsq96FdD8xXuF2Nl9aLvUQghs7ofoe nUoBZa99VKNQ+jcvmjSFELfUQbPnZ9lmh/l7UQq3nnfTTZ7kPUdp65SqiBqvf8gtq69B YqDJdpoLk/EmwXZcd40Kii785c1BHBSZ6eKnbDhQ+TROcSG2r8uN4HXB0TjMrtLBAFWt 4xwA== 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:in-reply-to :references; bh=t7Yy96h1CNLQsmpPB+gBtt+3MwMJX3o+4LyGaKYq94s=; b=nCiuma0+0eRTyFISjGCPXZBS/57wRf+bsCquqBvD+Ne2Nh9F0m0WQcT4ayoc4kfWOX OBtuvaKH7QveiZ5Q4NzIkp+b4+GB1Crhly3p3qlE4q7oWv21gHXXrS1+zfTz7BTmTpH5 R4wG8zvA3UKdPwtpiQRN4fPjd6tv1J7qcczhpd1yVB0vKQp+OsSRHDUphNgLLGxnmovL JuuQnhsOs4EC71oBjOY6G7w5IRC37k18LeyHN5BXfJiy8MZrhhS/kPmP6lK5K0lL8D32 sSCpeHFqU/MgfHMpEZGh1Fw7SOt9sPxPZ0Nch397EDMgJQSdgPzd0Y5IxgyuWyDVwsPX P/gg== X-Gm-Message-State: APzg51BukSDwVKW+gz12jpNjWXXLFTSTih7FHtQlxYqScmIddP2aULCa uWq+Ykt6j7CtVaCGTfKYHOA= X-Received: by 2002:a1c:1d87:: with SMTP id d129-v6mr4492426wmd.34.1535968928948; Mon, 03 Sep 2018 03:02:08 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:08 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org 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, Corentin Labbe Subject: [PATCH v5 2/9] ata: ahci_platform: add support for AHCI controller regulator Date: Mon, 3 Sep 2018 12:01:54 +0200 Message-Id: <20180903100201.23131-3-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The SoC R40 AHCI controller need a regulator to work. So this patch add a way to add an optional regulator on AHCI controller. Signed-off-by: Corentin Labbe --- drivers/ata/ahci.h | 1 + drivers/ata/libahci_platform.c | 26 ++++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) -- 2.16.4 diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 6a1515f0da40..1415f1012de5 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -352,6 +352,7 @@ struct ahci_host_priv { struct clk *clks[AHCI_MAX_CLKS]; /* Optional */ struct reset_control *rsts; /* Optional */ struct regulator **target_pwrs; /* Optional */ + struct regulator *ahci_regulator;/* Optional */ /* * If platform uses PHYs. There is a 1:1 relation between the port number and * the PHY position in this array. diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index c92c10d55374..a886b61476a3 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -139,7 +139,7 @@ EXPORT_SYMBOL_GPL(ahci_platform_disable_clks); * ahci_platform_enable_regulators - Enable regulators * @hpriv: host private area to store config values * - * This function enables all the regulators found in + * This function enables all the regulators found in controller and * hpriv->target_pwrs, if any. If a regulator fails to be enabled, it * disables all the regulators already enabled in reverse order and * returns an error. @@ -151,6 +151,12 @@ int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv) { int rc, i; + if (hpriv->ahci_regulator) { + rc = regulator_enable(hpriv->ahci_regulator); + if (rc) + return rc; + } + for (i = 0; i < hpriv->nports; i++) { if (!hpriv->target_pwrs[i]) continue; @@ -167,6 +173,8 @@ int ahci_platform_enable_regulators(struct ahci_host_priv *hpriv) if (hpriv->target_pwrs[i]) regulator_disable(hpriv->target_pwrs[i]); + if (hpriv->ahci_regulator) + regulator_disable(hpriv->ahci_regulator); return rc; } EXPORT_SYMBOL_GPL(ahci_platform_enable_regulators); @@ -175,7 +183,8 @@ EXPORT_SYMBOL_GPL(ahci_platform_enable_regulators); * ahci_platform_disable_regulators - Disable regulators * @hpriv: host private area to store config values * - * This function disables all regulators found in hpriv->target_pwrs. + * This function disables all regulators found in hpriv->target_pwrs and + * AHCI controller. */ void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv) { @@ -186,6 +195,9 @@ void ahci_platform_disable_regulators(struct ahci_host_priv *hpriv) continue; regulator_disable(hpriv->target_pwrs[i]); } + + if (hpriv->ahci_regulator) + regulator_disable(hpriv->ahci_regulator); } EXPORT_SYMBOL_GPL(ahci_platform_disable_regulators); /** @@ -351,6 +363,7 @@ static int ahci_platform_get_regulator(struct ahci_host_priv *hpriv, u32 port, * * 1) mmio registers (IORESOURCE_MEM 0, mandatory) * 2) regulator for controlling the targets power (optional) + * regulator for controlling the AHCI controller (optional) * 3) 0 - AHCI_MAX_CLKS clocks, as specified in the devs devicetree node, * or for non devicetree enabled platforms a single clock * 4) resets, if flags has AHCI_PLATFORM_GET_RESETS (optional) @@ -408,6 +421,15 @@ struct ahci_host_priv *ahci_platform_get_resources(struct platform_device *pdev, hpriv->clks[i] = clk; } + hpriv->ahci_regulator = devm_regulator_get_optional(dev, "ahci"); + if (IS_ERR(hpriv->ahci_regulator)) { + rc = PTR_ERR(hpriv->ahci_regulator); + if (rc == -EPROBE_DEFER) + goto err_out; + rc = 0; + hpriv->ahci_regulator = NULL; + } + if (flags & AHCI_PLATFORM_GET_RESETS) { hpriv->rsts = devm_reset_control_array_get_optional_shared(dev); if (IS_ERR(hpriv->rsts)) { From patchwork Mon Sep 3 10:01:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145758 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2294665ljw; Mon, 3 Sep 2018 03:02:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbmZw9erBIFKxtziIfTANJt7nFwHeWC0temrlmXfulFcGPMTLDQYqpv3m2RCPT9BkbzsRpO X-Received: by 2002:a17:902:3c5:: with SMTP id d63-v6mr21142087pld.145.1535968935856; Mon, 03 Sep 2018 03:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968935; cv=none; d=google.com; s=arc-20160816; b=w7o8l2cNa5j0CpNuhj7enk91Z63KZDKS7O4DOiv0/4vgkItl9sDQ/TYEhqTXYrnvum 2xX0EPlT0wcMnEFOcT1SocpLjCTTfkBUxyFMKenPqDmwcavRiGI7aAh98zjWeYwLnnlu ly8w+wKbZLcZajwfXYvnkq3uEl54DeMFvT1/6Zvatd9Pl/ezBG+ciqXZPtQ749NNm6zO ABJzbk2QY9O81vmueR//od8aY/t91OI2/3y4DSc6OpSHp7DEuCrXdV62BrDUZ/5sKJZf +hr5TsAEdeDPQoCDpL6zagkITlHQbhtJF9PrVFQot6CHnUP8FFgll7jt7XntvxAOmaRi Xc3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=/+HNfr3I0MzGHGd7Aj3LN1rm33wfTbHxswxtDehlIDw=; b=N52YliPR/vExm0vJ0SxQ963VR01F1/Cgb/QJCl34uGSsChBfkxcBMjFctFG+nL+7T8 +Chg09wXwqI4GsrRBZuCxjGJfhkVHZvSHO6HcRaFvTsB0cgGXC8Xlah1FSbeYihJGd2Q b2wrZvyAoBbP5weqIT8zOWO5JzAQU5ddJzZ74w/GPS3x2pvMdkaMXgvDdJn5/RyUBNUp QJVC8coehZ/1DTW3H+fuOiKyangJYnpuU/aqnJfKI+YF3nBSnxQnCSYmZ0nMjH6o6bmP fbfIAL3rFd5ssXG9BIup4YZLTpr8AdMearg6zvcgmxOCWYOcygkppshgC/ZqiGbh5lyS dqRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gEDqDcKo; 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 a34-v6si15609453pld.149.2018.09.03.03.02.15; Mon, 03 Sep 2018 03:02:15 -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=gEDqDcKo; 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 S1727736AbeICOVi (ORCPT + 32 others); Mon, 3 Sep 2018 10:21:38 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:55699 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727636AbeICOVh (ORCPT ); Mon, 3 Sep 2018 10:21:37 -0400 Received: by mail-wm0-f68.google.com with SMTP id f21-v6so534935wmc.5; Mon, 03 Sep 2018 03:02:11 -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:in-reply-to:references; bh=/+HNfr3I0MzGHGd7Aj3LN1rm33wfTbHxswxtDehlIDw=; b=gEDqDcKo7iy9T0WsJtmQLxyIP9rtZgMc9YreV4LnDm2vMI3qxoT5/qt/KAPFnFYhuP by+38DFjwWf5t0BKdPZ8F2FO65Cq8ZBga4J9kyowCpuGj38qDMS00JgKGm260tXMjzsC fVkYwl2A4C5aC6HweijBzuHZmwYUHJ6bASLi/FuA4pGFDn9zxrBQSICcVZLJ7tJyv0yC J4sTKmcr4xlRZA+ikai0huBh19pO7bTvyP7juqoyswIusWzsXZA2f8GAd7IP5oOc+eiF y6MxfhcAW/Z0hAKMYCVm93mWAXR0y6sf8Lro5eNagQ1vD8hlLqwPVPh4KOLmuP5Gs6Gq W7Yg== 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:in-reply-to :references; bh=/+HNfr3I0MzGHGd7Aj3LN1rm33wfTbHxswxtDehlIDw=; b=q+0AZfah1syJ120oMReV0RYbMCgzfIPMJShHu+gDPIEOI5/SpW6+wZVJWjSKXJKMYw su/hvaNzlMHQyJi7ZnLCpw94SmIuYntCKDhahIdjQ2+GH+nFgL480wEiOzrlMwPxPxbR OfbtAB/hKCa2bk5/k/W6DbAu0+QHC96nkXbAARGhA+IBL16yadJb9zcChN4oYfrvhoZM V1q4seqrqhkC0tugecwqLwxwsB/FeXPHApMtZ0ZNZzDZ8iAa4R952N+aQfQeXodrOjA0 vNi1mjvGHco2OkFQnTW4FgVyL/moZyLdQd4bD0hIMfdO7qOlYVpW0/DjH2jRWTa5AWjb 3l/Q== X-Gm-Message-State: APzg51BjJZ85C3fi6ppxJsAbcScQ5bXVuzeEEgLzM3Hzul8XOQFGCFth bg3485SbocTytPtP+8ZT8lM= X-Received: by 2002:a1c:e70b:: with SMTP id e11-v6mr4496423wmh.22.1535968930273; Mon, 03 Sep 2018 03:02:10 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:09 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org 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, Corentin Labbe Subject: [PATCH v5 3/9] dt-bindings: ata: ahci-platform: document ahci-supply Date: Mon, 3 Sep 2018 12:01:55 +0200 Message-Id: <20180903100201.23131-4-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch document the new optional ahci-supply. Signed-off-by: Corentin Labbe Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/ata/ahci-platform.txt | 1 + 1 file changed, 1 insertion(+) -- 2.16.4 diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index b88820b4c01e..f495774c8af9 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt @@ -33,6 +33,7 @@ Optional properties: - target-supply : regulator for SATA target power - phys : reference to the SATA PHY node - phy-names : must be "sata-phy" +- ahci-supply : regulator for AHCI controller - ports-implemented : Mask that indicates which ports that the HBA supports are available for software to use. Useful if PORTS_IMPL is not programmed by the BIOS, which is true with From patchwork Mon Sep 3 10:01:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145760 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2294735ljw; Mon, 3 Sep 2018 03:02:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYI1fciVDqQGXiEiFQusSw7mri8wDn3844uqw6TK8/3nsEiWzMy2kzwvgjuXIreB0vWVchE X-Received: by 2002:a63:c544:: with SMTP id g4-v6mr5563951pgd.113.1535968938743; Mon, 03 Sep 2018 03:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968938; cv=none; d=google.com; s=arc-20160816; b=NhmHkl5ITOwAyBHlbAbZkh6eZyKu8Vbs53Fu4DPeNFMnGQSZtv5740/K1kxwPL8Dyy tDzXlO+a7JU4G4TUxFt0k/DZl9E+7U2UakF9lOzW0ZsYbaI4uyiVve8DM7zxpGDxJciV ilp34rBZ++2bhafa1W2zRbxbuLrtlPnyruguabZ3OFtQcathKoPckne6vCN/MVo+a0DF LkWihH7HvKSVQTkYUL7/9HmZbIg30qK98v9dPlfCo/LKtZyiVB01WPaUxjT+t+Mo/gm1 sWjnAtPwAL8CeiGB4gV3hY6nI7bX7OjhSQFH3vaP4pfNGyUL1lsouKy5tjpluGmQj/LK S1vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=RUdmpyjvYH/P3gTVki1Kcr+96q6wklBBPgCeGs+6Dmc=; b=zIVMt8YNviUPXdPaDyBHaDbjEqp5C5hfxfoq8fx4n+2QBmWHb5NsvlYMMf7jb9PGwB +XCKem7/T+EWfwn4DnqhhtLiVBhWKdeELAiNpk44MjSTykOE7n2utzVgqnDzH5Z2K8gZ 611jRc+ZzP+YMmmsExt2VhiPUkVrv4boO8zjuoNUrwAYLzKk3y0L1CvV7UHrlhobuqv5 m7VFhrQl6veN/2YTzLE44FTAaqFqsg4LZCqDYsH+/hWYlam104EKL9EvFrYI1AA4r9S6 opJze5VIvl+sPKpjxSgiYDMulVqUbID+9QScFQ9GGWJRDtmGD35NksXMCNq4Y7QUOG3/ L1uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=laD9dgft; 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 d1-v6si10699796pld.322.2018.09.03.03.02.18; Mon, 03 Sep 2018 03:02:18 -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=laD9dgft; 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 S1727793AbeICOVl (ORCPT + 32 others); Mon, 3 Sep 2018 10:21:41 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:53679 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727636AbeICOVk (ORCPT ); Mon, 3 Sep 2018 10:21:40 -0400 Received: by mail-wm0-f65.google.com with SMTP id b19-v6so547421wme.3; Mon, 03 Sep 2018 03:02:13 -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:in-reply-to:references; bh=RUdmpyjvYH/P3gTVki1Kcr+96q6wklBBPgCeGs+6Dmc=; b=laD9dgftVxceZOvDHfCHlcltULXv1fqRzKjtuF6i1CuYCH/3IpLneIU0UA4HTWLzbm k7/KWF2eyedhidhT7l8W32vTlv/h6ybsNUqQ8XjhXKsPQIL2jwEMbZK9JkJAeP8oRTMp qtxIfTf4Xe9bG+2LoPGO5i7T1WKibKTBMdw7e85Dxt98zyvdOpHGBWdcZz5wEGhhxtuC xPt4t22anO0uGSCM0Ghc5YX9pyZzcBYVBWuBAa5UKUdfEV6eAiha9zB8YTjWTWSs1bqC lwdGAFQsJ1Clf7KWTH97gmoIQ6Bl6TPY+/21UW3JLhiJipizln9AfdYWnDldNzBxyFiI T+lA== 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:in-reply-to :references; bh=RUdmpyjvYH/P3gTVki1Kcr+96q6wklBBPgCeGs+6Dmc=; b=p5jwA1njYneRudRMErrjbrYV0UrkyWuhSIw9MEq///cZzOXPeOUdvIVCEfH+VwhNx1 5ZePCadHSNjptQpkIl+VCeCETclL1k7ALb3QlGqskDW/zRv4keA4W7UAFVFKgdijihbw 9XLMbg2CV7rqKs9BYsvFyL/g24t5HeV2aVntzNcutgg9zzR9jEq2xxpwjD55ohxmN9GK 3IvlmRcxCNOx9Mevkzqs2SJIAJe4geech6DmXM1PQzW3Byh5XV7SXlEM2IKKOnNqVDCe SWasKa2ejX4kv8IT+D1aFVTsv5M1vOOOStK7tpsTxkChDf0XlIeKLoXg6ITGqThtPtNg wbCw== X-Gm-Message-State: APzg51AHRYR/YvVSU+CeJzpUZfz5PhF0Q6ctO1mpkSa7muPbpEuibgKO W3/w0s0HATVp53riClhH8GEos+ir X-Received: by 2002:a1c:2e11:: with SMTP id u17-v6mr4638794wmu.102.1535968933093; Mon, 03 Sep 2018 03:02:13 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:12 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org 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, Corentin Labbe Subject: [PATCH v5 5/9] dt-bindings: ata: ahci-platform: document phy-supply Date: Mon, 3 Sep 2018 12:01:57 +0200 Message-Id: <20180903100201.23131-6-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch document the new optional phy-supply. Signed-off-by: Corentin Labbe --- Documentation/devicetree/bindings/ata/ahci-platform.txt | 1 + 1 file changed, 1 insertion(+) -- 2.16.4 diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index f495774c8af9..45b451961612 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt @@ -31,6 +31,7 @@ Optional properties: - clocks : a list of phandle + clock specifier pairs - resets : a list of phandle + reset specifier pairs - target-supply : regulator for SATA target power +- phy-supply : regulator for PHY power - phys : reference to the SATA PHY node - phy-names : must be "sata-phy" - ahci-supply : regulator for AHCI controller From patchwork Mon Sep 3 10:01:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145761 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2294773ljw; Mon, 3 Sep 2018 03:02:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYtetcCKryI/FTcwxQBo12R/1LjdUa9TKsPDiE2r92Hp2GsGnQTnip4aNKKgQHWpmSTkDzD X-Received: by 2002:a62:384a:: with SMTP id f71-v6mr28456960pfa.48.1535968940114; Mon, 03 Sep 2018 03:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968940; cv=none; d=google.com; s=arc-20160816; b=XDnH9lFE2vKXJ2K4t5OrT4PMAMjkqPo7yKOb6Ro37i5m54Nr07BLc3nyxFmAUCOzsf ZGi/khDE35KgOwytGUzIAzhhP81xulgFrbCuyJyC3k+PL/rZIzsqK5mxgT6ERcgvqGBO OEpVTmgld7FsQROEhiVLlpsKRLtKGiuqqk+n3rexU8z/RupWzJsSTxliLthttv8XdfA9 Ue0zsXa4u4u/3qHRnKtKIBbiCeT5avTRpj2WQ2zRZlBm41xV/rO+5FVEQFPPE/GcCP/6 v9i1cPx4gIDFQMByz+5fcm0G+9Cr4Ed924UWClITOC02Z5Ij0Q+pg2eINTmTzmuNozV+ wbTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=tfuzh9T+CpyAPnemdnqeg4728XIZ30noV5zNc4YBbSs=; b=k+AtxFpP8CUSIptF8Rqie2ZvBdmXC7indjdAjvmYYyoE6P5CLjEf+FFOo9vIR4udnw ft1lzGGsWaSyD//Hrjx3Giyo1N/Swe7LsPjGKr716XN1eD22W0cUOhyasTfgfh0rLcp1 Dxw2NG+TkunePfcfipRQqU0tb4UDzNluU60icLH9dNWyMC49udZPgJ/Nm2PoxdQgvkk8 ATXh4uI7Y9uXk3U99SQCp00O7O8nNCAb+qoY01sYsg+4qITZZqEeB575X/ZirvzJNflL JWJQmPQUp8ATxnJr8c4iUD4Hg43rMLoE79f5hJKY3/1bUrb62i+hSX8XhMg08I7Vfzai kzaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dkY7GaVz; 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 u13-v6si17789816pgg.263.2018.09.03.03.02.19; Mon, 03 Sep 2018 03:02:20 -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=dkY7GaVz; 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 S1727811AbeICOVm (ORCPT + 32 others); Mon, 3 Sep 2018 10:21:42 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:50566 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727126AbeICOVl (ORCPT ); Mon, 3 Sep 2018 10:21:41 -0400 Received: by mail-wm0-f65.google.com with SMTP id s12-v6so564080wmc.0; Mon, 03 Sep 2018 03:02:15 -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:in-reply-to:references; bh=tfuzh9T+CpyAPnemdnqeg4728XIZ30noV5zNc4YBbSs=; b=dkY7GaVzP2wLdFWCwyAMlswzjqggspJYq8VFG7wQe9/IZAXX6xJqJKxB783tYp23mG hhrySEyAMj/TN6r9QQGrQY2JhGI1vt/BEKEl3tLe/UQjfuzy9GhfLlZCMmDvURdr9zY5 yTDgyt/3Gov6fU4iL/zfEE6ntECK1PkvNmryp5djRcGbGcxOXxYVyoFD4J4hNk+a+ODb RdNHA6zniX6ngL7ElgrsP9Qb7xNWzoSXu+Zbzb08lESQ7ptWki58I/YZiG2jeH2S80G5 HJKyNyJd9F3fUXAkyR7w/snERMA1yAZShXQi0E2JyNilVXqEWYNmzaEdufWSlVSivwSZ 8C8w== 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:in-reply-to :references; bh=tfuzh9T+CpyAPnemdnqeg4728XIZ30noV5zNc4YBbSs=; b=OQSz/IBfOqs1HnU01j6vezhFQp3H7YW4Ptl2ppkFSIDklJ92QgqzU+uxijGcI/PPNJ btzzIiaBrGqpWyntIp9o6FecRnueGouq84XR99acyTi4dCtRpEqH/Nb5YZEoZ+TkAfcj faOWynZtuGLoRcFSBVn2U2yfr8g1jxVT2Jcc82dtlL6INnwaJ431UWS5RZzBS9VdQTsh smqAj05HF0vdjKg+0y5F9+8k9F+pU8HPdfd2eJnmgx3HRto5TYrarv69wVoLL0gne0ik DoDlhlDfpzOPT6adN/kD9+UmQ240rn5VnrjzeoN6sfkl20rxi4AdJ90yqA575aQ3upPB Qu0Q== X-Gm-Message-State: APzg51DOHfVlhdkeN5DJ8rR4O25c4wrnbYrwVt4HEvpueBOPIPQw/Bnf Qz+9JdGBkrfhGVMi+YYd83Y= X-Received: by 2002:a1c:b441:: with SMTP id d62-v6mr4695405wmf.17.1535968934457; Mon, 03 Sep 2018 03:02:14 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:13 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org 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, Corentin Labbe Subject: [PATCH v5 6/9] ata: ahci_sunxi: add support for r40 Date: Mon, 3 Sep 2018 12:01:58 +0200 Message-Id: <20180903100201.23131-7-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch add the r40 compatible to the ahci_sunxi's supported list of compatible. Since R40 need ahci_platform to handle the reset controller, we also add the new AHCI_PLATFORM_GET_RESETS flag for ahci_platform_get_resources(). This has no consequence for older platform (a10, a20) since the reset is optional. Signed-off-by: Corentin Labbe --- drivers/ata/ahci_sunxi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.16.4 diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index 631610b72aa5..911710643305 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -181,7 +181,7 @@ static int ahci_sunxi_probe(struct platform_device *pdev) struct ahci_host_priv *hpriv; int rc; - hpriv = ahci_platform_get_resources(pdev, 0); + hpriv = ahci_platform_get_resources(pdev, AHCI_PLATFORM_GET_RESETS); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); @@ -250,6 +250,7 @@ static SIMPLE_DEV_PM_OPS(ahci_sunxi_pm_ops, ahci_platform_suspend, static const struct of_device_id ahci_sunxi_of_match[] = { { .compatible = "allwinner,sun4i-a10-ahci", }, + { .compatible = "allwinner,sun8i-r40-ahci", }, { }, }; MODULE_DEVICE_TABLE(of, ahci_sunxi_of_match); From patchwork Mon Sep 3 10:01:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145762 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2294804ljw; Mon, 3 Sep 2018 03:02:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYSgfWWwCJNzjRHrMmvSiLYzI22RMWaZ6dm+tJHkAmUvc9V4c3u6Gy+hI5qa0736YZQY4Cz X-Received: by 2002:a62:455b:: with SMTP id s88-v6mr28078911pfa.203.1535968941498; Mon, 03 Sep 2018 03:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968941; cv=none; d=google.com; s=arc-20160816; b=mWXIKrOQ9t1Rmqwn+Gs/b9w88mIiTtW6pwrxLwrf9/G0VNhBQpRGSYBSacVYg5EHPK W9GyZ4nPDWShIfCmdZS0ZhcijIjklUxLQjZ6yQLm3f0VIWxuaUBKlbt5l7OyFPyVgmwo yq5vwE0qY0GhOGLnPm70F91+vZVfGhITc5Ia3myTKnxNnE0ufkLUSlCTtmfkXMaMdMml xSCRNMkD/1Pk+k/Uk3/yU/H4+PTPg7OYCnPLzQiTXV+zxHXZz2lRfS8fjMPwrAL+Xluk o1F7/LhFhTYo6Mot460KeArTSdeeVTV/tsQrbd7BZKmQkVjfM5eXw2DwdKcqNytLBab7 LN0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=sz99Ed4cFqHyXgEVj3BM7faY7Awz0qAK84Sc1hbiz1k=; b=jGM6phU0rBYnzY10XnxBlI4+aAW/pwoRDsoak3Qk7AvD20Lo2IeR7In6EsRtyucbtZ Zu8nlGwvZhhH1NViDjryhgwf0lazBmicWea/3tyFBOHn1MlWypDJXqY43CVBTNLqBm8B 2/Ajzh/O9+1AHBtkCFWI/bSTTBlzyq9dApjVuLaFBpR1uXT3bzN8hqyDnZQnYL9ogQ1X GlIkFScFEJ+kCehn4OcOG5Qk+/yJg15AYNx1R7nsZzgDMPX/lLquEVxR4AtVGBdE32Rb 8BFgtd/tvD7Gi7iM+MCSrctDLInlALAO42Uuih7brj4EojhIjagWAF0x3BgbP/LpBWhT eHVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="S2/ZIJCi"; 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 e20-v6si13621586pgm.172.2018.09.03.03.02.21; Mon, 03 Sep 2018 03:02:21 -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="S2/ZIJCi"; 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 S1727833AbeICOVn (ORCPT + 32 others); Mon, 3 Sep 2018 10:21:43 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:52354 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727636AbeICOVm (ORCPT ); Mon, 3 Sep 2018 10:21:42 -0400 Received: by mail-wm0-f67.google.com with SMTP id y139-v6so536542wmc.2; Mon, 03 Sep 2018 03:02:16 -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:in-reply-to:references; bh=sz99Ed4cFqHyXgEVj3BM7faY7Awz0qAK84Sc1hbiz1k=; b=S2/ZIJCiEXJjhxXnVeHi+pLSw3LwTTWpDMaaNjklWtYTVm10+efVbe3sykAGxVbuQP gAaQ48ck4Rrqr1UW7OKRa967JWbD49cFo68ykrQqdtfsmRzV7tZJocaoENvFH9Ab+wGJ chuI3cCXIDznKsrmTZL0jKArWuOFHM8/euRo7yXtDF6lVM/J2YEjprSNIwSuporMrpnV 765qGuaQX6PKlRgRD8Ns07+z1z3UamALBztNeJbmY7Cn9IWlr3mK/9iq3TOobGpwqamj C6IQwa1Gt2h0nFKW6rGW/k7aw7qJarrJgTZqOrd6QMxWW9thgY7lPRgQDlQjfmQCYR61 s2Vw== 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:in-reply-to :references; bh=sz99Ed4cFqHyXgEVj3BM7faY7Awz0qAK84Sc1hbiz1k=; b=hY5859sVTZ8tdNk60m25D0gi4Mx9eMtef0viaNENNQHUU38ndH0/Habpz5C0AH0gaZ yFBSKbPruThJruZMgQxiIPrxPinXNW9vrRrBiCHEE7uxdjrVPtyBRpzba/8Td0nmY4ld aJh8YFgPVzJegABNjpaDT/HqITX6BfGJWt6M/zu9nPQQWZF8oyfglyb+I3758J6NDxmo koo/vlJrJlxUaG2RCUiKADArgoDjlKTb/YFZbDTOVckqHQpd/cDCQRxyUseAFn0kbJMZ 8JQeVctZQz3yOvbmjOGpW8plPuvZdqjSL4v1z8LMLnllehtoCKsBcX6VFhv4gl8WGVLr xIgQ== X-Gm-Message-State: APzg51Dl9yK9PAufZk9TebUCxMjVRzB2fRGRxcQhsfI6iJ3pXWN2diXT xnkRxPA60QcyzkXBb24J09k= X-Received: by 2002:a1c:1805:: with SMTP id 5-v6mr4397863wmy.25.1535968935782; Mon, 03 Sep 2018 03:02:15 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:15 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org 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, Corentin Labbe Subject: [PATCH v5 7/9] dt-bindings: ata: update ahci_sunxi bindings Date: Mon, 3 Sep 2018 12:01:59 +0200 Message-Id: <20180903100201.23131-8-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch update binding with the new R40 compatible. Signed-off-by: Corentin Labbe --- Documentation/devicetree/bindings/ata/ahci-platform.txt | 2 ++ 1 file changed, 2 insertions(+) -- 2.16.4 diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index 45b451961612..e30fd106df4f 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt @@ -10,6 +10,7 @@ PHYs. Required properties: - compatible : compatible string, one of: - "allwinner,sun4i-a10-ahci" + - "allwinner,sun8i-r40-ahci" - "brcm,iproc-ahci" - "hisilicon,hisi-ahci" - "cavium,octeon-7130-ahci" @@ -44,6 +45,7 @@ Required properties when using sub-nodes: - #address-cells : number of cells to encode an address - #size-cells : number of cells representing the size of an address +For allwinner,sun8i-r40-ahci, the reset propertie must be present. Sub-nodes required properties: - reg : the port number From patchwork Mon Sep 3 10:02:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145763 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2294823ljw; Mon, 3 Sep 2018 03:02:22 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaHuHYpq4tUYmSyhssPGlgvx4QRS2dnblJTMZvs9HWf7ULeS3rtg0Kbk7TQJlIo6tFZfjoA X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr27595468plp.18.1535968942562; Mon, 03 Sep 2018 03:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968942; cv=none; d=google.com; s=arc-20160816; b=oSjUwjKLuy6U8BGmDvvnW5tNCEBPMAi7C77wOBg0/jJXQCHy7+bQP3BWXpaykVArJl 6hXqcasZRfvXvylKS1ZBbzADzvvhVVFNtMrdWrH181tGBg2It9T7P3RtpHKivLxCRKaE VRcZfM1GdTEffCFAFuM3gqxCcshkeiIwgmPkneYrjbmh8GUw4L/Y6DtQ8ihIt2b1hT0Y Csjx79ioc9XCGgVpLNqhOvyFwhS20XAWChPNvFZ4Xg2d1M5zPFuGo0OzQa+Xl07KnT4f OFiYnnL7V2fxzyqkBrt7JFAQjbqj9eQjCDJpiGOiQ7k4O/HroUKu7jsBFCKVewZ96NEB Bi+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=UNiJvsSjjdgkQ1ZQoChwHdQ+/Jgt1wIrgsMDUlZYcDA=; b=XZO5nk3rmYZBSEaeAGKSOCBXPsvrMHmJhd0xgf+NR4mW3ePSq3n/QIQkj6OXC+5EUk UtOCiY8f6xw9qr+3jvP9vkxBLHbRXS5evPFq1Mukb9tRnZpPNK1xrdkCYVYKbCYYxU4O xagLBS+v41MJLVLBe9SlxcH91Gjpyi+LTrTWPJ4T9ycEP3F/z+Xjnu3fEStpwxHAmhYn g7tUClu+svxkDI/9vFC+sCf9CC5/qfUVI08eXO7EBmNIefS2AQLpa/gspCeM+pBGaf4u f5yAdktWh06XGBEDm7X56F5MrqJ/svQlS68YtTMjaAsZtpMH310HuiOnvUePn0tKHYeR 2cXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Da0LDtvU; 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 f8-v6si19665538plm.117.2018.09.03.03.02.22; Mon, 03 Sep 2018 03:02:22 -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=Da0LDtvU; 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 S1727854AbeICOVo (ORCPT + 32 others); Mon, 3 Sep 2018 10:21:44 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46633 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727126AbeICOVn (ORCPT ); Mon, 3 Sep 2018 10:21:43 -0400 Received: by mail-wr1-f65.google.com with SMTP id a108-v6so17172782wrc.13; Mon, 03 Sep 2018 03:02:17 -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:in-reply-to:references; bh=UNiJvsSjjdgkQ1ZQoChwHdQ+/Jgt1wIrgsMDUlZYcDA=; b=Da0LDtvUx2ZakB3RYUo5s50VYBxKrxaxV+rN/HJEZP6SHYGGVcSrxGBYkVVFuMkMGK +dZ4PFxRXHuinvFrz2NSHlL6k/o/UB/YrXcn4QG1DJkvyuwRfX2bN1vablMwBV49QSyj XwjLVLlKhF6uFG0A5JCkMvIy1O4/XiJ0o7eFc3J5GCqn578gGR+Fr+LINYLX3IRHVoNX KN20NGujdnZC8PY21heiL2hKIOMpmjFNSml33FC71sQNXceZPqA6zjckHFG47mEriDqC dMiRnnrUizmsNroMIjSt4wFl4jBng3f7bYzftyzYnSe9tO6zYFr1hD0qzSGUkx7rBcJv yoIw== 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:in-reply-to :references; bh=UNiJvsSjjdgkQ1ZQoChwHdQ+/Jgt1wIrgsMDUlZYcDA=; b=F9zcGqSFz8A4ddvzXRSFMLwWe3NF0EHSsyFCj3oV5WIWnEvvopZWoR1YC1uU3Y7q5j bwn2Llg1AobJxeBhzQ/WjBAEpRDHgVFDeWjFlcHrrqwsdKrsO9Kz9rEn9SfqLdJDHOqZ IzazOeZanuf2InsEkDOKwYnP7mtiOUBQOqO+I7CAnQBFUoTk/NAs2Nesre1FJN9BaCdx hV1q5QbdlpFhvDPu67NSwDdlp+79pPY0TGysX4wOM/Pjqz08je7aQQt1SFFHxT6RFXRi 7HoLRrO/fB7cLdOXvupCmWgHDTuq0YJqGr/t5mKC1WFtB8N1oqWVKUKha1ShyNbMfdhk aXjg== X-Gm-Message-State: APzg51BR1HM++MZJqQT/xFgEPkXQ3dFX9XBptoIZcDEInppDzt23ihbr 3t7QI2J5NEtYpS1q19GPv0E= X-Received: by 2002:adf:e792:: with SMTP id n18-v6mr7407609wrm.136.1535968937245; Mon, 03 Sep 2018 03:02:17 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:16 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org 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, Corentin Labbe , Icenowy Zheng Subject: [PATCH v5 8/9] ARM: dts: sun8i: r40: add sata node Date: Mon, 3 Sep 2018 12:02:00 +0200 Message-Id: <20180903100201.23131-9-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org R40 have a sata controller which is the same as A20. This patch adds a DT node for it. Signed-off-by: Icenowy Zheng Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.16.4 diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index 852c2ccc3268..d27c522e1918 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -550,6 +550,19 @@ #size-cells = <0>; }; + ahci: sata@1c18000 { + compatible = "allwinner,sun8i-r40-ahci"; + reg = <0x01c18000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_SATA>, <&ccu CLK_SATA>; + resets = <&ccu RST_BUS_SATA>; + resets-name = "ahci"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + }; + gmac: ethernet@1c50000 { compatible = "allwinner,sun8i-r40-gmac"; syscon = <&ccu>; From patchwork Mon Sep 3 10:02:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 145764 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2294849ljw; Mon, 3 Sep 2018 03:02:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbVT7UP7nAYxd/fntqF3L4zchxUyS31LUssFTz7VnbnR4qmYJsQ+O86jvvTO/kTrDPaf3dI X-Received: by 2002:a65:5245:: with SMTP id q5-v6mr25024467pgp.67.1535968943996; Mon, 03 Sep 2018 03:02:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535968943; cv=none; d=google.com; s=arc-20160816; b=oz/y5G+3NsRgD57PaPR3eToTvkGwx0Xgsyexdb2UMdyxPKCUD5n3U95BiV7BFtlONh hR4H+IJcQHdzNZo6QsKApHDKgQt+BbrNGm/7EX4swkIwUJkQJjUOGVd2uhtDoXSPZ90e 3IsgfU2vKG9SABmiRp4M4hkWJYRazPL5n+UtqqMEZ+TX9dGzLW97yrNSxjUTIqmrj/PM Q0frROL8aJ2FQZDiFmstjtzaX9Kz78j6nzuNC6hq6VIFaWmSihIXGzVzdGYXdKTeWkAz qoZM7+ycwS9Y0wCyf8/F5oaSjCi6e3HQusL334it36QwdpQ55FfYNdwgjBkMMPpfyg8D UAAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Yco3GuOwe1ADSho8sukxLRIOHQlCReJ4bgpdQLYejFc=; b=t+SGlsBqRBjKbHUIH0idCIGVaOYYw0ozh9T3dSJbP11w7xC8clOvF1xUBqIH9RylD5 tqpy8VztCDSbmNfDuEl8dVKqnRLEqTncZKWvKDg36/drfY/votWOk/AZQCzOy9kKIww5 9PGc3MSf4xwfyIG/YnKUiqGEDcLshs/+TCKzOtNP3NI2KEYznowSatZzSmt+CRNJPM5v wcFbVVspTb8LxtljNAZp67uNkklrMHnWOuOAxrVzXTYEe+5RWran4WMPa3/x/9F4nmkw fVZBEj30IR75xo8opJLYLoHFa4PLTAblzpx6kfvKmHXraRnPOBwNUW4s7bG5pRiQeVKa cRpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J1X5KvpQ; 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 f8-v6si19665538plm.117.2018.09.03.03.02.23; Mon, 03 Sep 2018 03:02:23 -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=J1X5KvpQ; 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 S1727872AbeICOVr (ORCPT + 32 others); Mon, 3 Sep 2018 10:21:47 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41249 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727636AbeICOVp (ORCPT ); Mon, 3 Sep 2018 10:21:45 -0400 Received: by mail-wr1-f65.google.com with SMTP id z96-v6so6618wrb.8; Mon, 03 Sep 2018 03:02:19 -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:in-reply-to:references; bh=Yco3GuOwe1ADSho8sukxLRIOHQlCReJ4bgpdQLYejFc=; b=J1X5KvpQE8zgQgmc2/vQAmiKvPlYH1gGdMjr9Zuw9Y4Dos/aMtoSMHUNUhFqFXqeGd T3F8YIahgkY940DbwdulOsuINGsKtknyxXi1kvQpljEe4rM7fat35dAT+SWAt8J9vV3s 7KVWYEmTaWvqHrjvfPUcKYav5YtxbOqh7/w+qM3qI4U6VrnLNjJsgzr95uDgM2KQJ6k0 cnlooSaxrl5xHSkxW1DnZ73wVmzOjRbFWDo00o53FjBpoNaTQjix3YcAuGYbzqZZKtgn O7JBlpXiDHNSvGp+kmub0iow0Oi3DckfbwIeZxwSqJVqHMXDPObNVbpbl3azYMdcCA0h 4bpg== 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:in-reply-to :references; bh=Yco3GuOwe1ADSho8sukxLRIOHQlCReJ4bgpdQLYejFc=; b=lLDnnboDMgh1ilM5L8NV7vmfpHxsxpbG5jAk3NJdUs69/AN9IjwNlKxfqJrSf7oICr 7PQbkIvJyHAQDX0GVv/61vEVEAuqLaxAuVMLARKGwlrlOeXE6y+7khQTjdO/hxpcgP0m szdt/SPalMYExt2gK4CElCa9lfRI2vBSeE12ZImdzbCa7tsmnMU+TmnnQC0MGC0JBNU6 c/8BFxqswHXZ3YwxDl/vU/vRWMhgCaFCg3UXpF8aFkay1HOZ0bpvcp773JhZvQu1ecW4 RnRNM4gbqkOOvhZjWAo+kyUkhd05Jr/vwSiYKnU6h92AgPhvhnI9VL3VSRrV1UmDmQ4I df4g== X-Gm-Message-State: APzg51DEmcW0MEO7REU+Kw1sLClslTEQOy7UpTonoc6DuV88pHGBrMsF LEeHVz5KTgnPMAIRor2YkGE= X-Received: by 2002:adf:e084:: with SMTP id c4-v6mr17993852wri.199.1535968938709; Mon, 03 Sep 2018 03:02:18 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:17 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org 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, Corentin Labbe Subject: [PATCH v5 9/9] ARM: dts: sun8i: sun8i-r40-bananapi-m2-ultra: enable AHCI Date: Mon, 3 Sep 2018 12:02:01 +0200 Message-Id: <20180903100201.23131-10-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch enable the AHCI controller. Since this controller need two regulator, this patch add them. Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.16.4 diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts index a891a387e8f1..438b7b44dab3 100644 --- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts +++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts @@ -105,6 +105,12 @@ }; }; +&ahci { + ahci-supply = <®_dldo4>; + phy-supply = <®_eldo3>; + status = "okay"; +}; + &de { status = "okay"; }; @@ -250,6 +256,18 @@ regulator-name = "vcc-wifi"; }; +®_dldo4 { + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-name = "vdd2v5-sata"; +}; + +®_eldo3 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-name = "vdd1v2-sata"; +}; + &tcon_tv0 { status = "okay"; };