Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp659067imm; Mon, 9 Jul 2018 08:22:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIehWUfJoNVl7KmsS0+58TDPPJstiOQvwjk5E9+98mnY+W1N6d4Hwbd7s0RQYr7x0XAEUB X-Received: by 2002:a17:902:9681:: with SMTP id n1-v6mr21624906plp.244.1531149776244; Mon, 09 Jul 2018 08:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531149776; cv=none; d=google.com; s=arc-20160816; b=CMuqhtWkK5z18GE+xA31Ai5BEHzahfOpH9wtduHgvWVjVuTNTzvqgagx4dq691PZNv nSbpctP5nbZSYlerHp4PmxskfyTGLYjoiSTuNJ45HPf1+Zdkdlgd5uV/gMq+kKBUAW7B NCHFKoTfKWCLzLW+2LHyK7EXOPQS29XAdTC+Fud0aBhLaH8wt9uKvbOvoHNeHVig5FtB /OqobCXj1jxR1VQwsShk0iON8OFiWai0g68/I25Q46ZEP5M8sRfJqJNbaKQQoMz9svI6 V0ipesfWJwxqRiCq6Wxg00h1Zl0jw6nTDMw3nka7A4gNMBFPmEOhPz/DPdAI8Adyv+4q jZ5Q== 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=P2n+dbh0pf2JlTt/2aTmjrTkU5W81yVSeGZDp8AkMgc=; b=xd6lCrpbymEgCiCQuK0nRe2EzmOhmkaWoDx6macEMxl1lXGDEgKI5GQRbzsdflCD/L iZraiTtE3ZdFEv2YNrsqsrFFfBtxBU1pGQ1DIN1b3Wy/LpuK0u47r9rErDdz0BAEJWmW qpAhhS75EPg3cSJLC4dWwJXoux/lDu6K7i3fc6BOUNrUne27XBxoA+Ltxg7LSJvL2Bfx VSgXU7G03H9zuuXViNb2DOeBLNXdmZbTxcqjRijkMZPmZnezfhBj7tOZ263CZ44NxMcn AvAWR0S/vs0lSRdU64GrxykR5DaYwxkDqb4vOqje5y9CxauuB1sYz1C0mGo2zziQtmdH 6qOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=AAJpyl6t; 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 x6-v6si14265391pgk.597.2018.07.09.08.22.40; Mon, 09 Jul 2018 08:22: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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=AAJpyl6t; 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 S933490AbeGIPVT (ORCPT + 99 others); Mon, 9 Jul 2018 11:21:19 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36413 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933387AbeGIPVP (ORCPT ); Mon, 9 Jul 2018 11:21:15 -0400 Received: by mail-wr1-f65.google.com with SMTP id h9-v6so11416665wro.3 for ; Mon, 09 Jul 2018 08:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P2n+dbh0pf2JlTt/2aTmjrTkU5W81yVSeGZDp8AkMgc=; b=AAJpyl6tGGRZsG6t391YsyAQsxRg+ynjRiC7xqxcDf0etUOMii8/Gw7a9F30qUL2qi LKDLQRODcMJeJ449ddicc1wf58zRvQwujxNg7zlhSWwmvzf3LKOkTMVfAggakad/n5Fq rNGssX1tF1mmyG79KaE+jSmTTzxgy8i/PgSEn1TsliUato/MtzhpIatE92dNkoERuZix yftf4Zk6qAdAkQbd737TVZxTqu+XhteT/G5I0CQ/1URuCRLw/F1ngd6p/2TGj2ua1hLh p8WktB3TQIDhtnmqCY174Kvd4gq88IFJ7qLO0cqKX0fEqEz0YDouVLiV64vvkPuVlx0/ KOgw== 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=P2n+dbh0pf2JlTt/2aTmjrTkU5W81yVSeGZDp8AkMgc=; b=m69bXGRDD+aOYhfXYX/MwSyJR8G7J1+uLxcdUW2Vh3c0yL8ccwq8d2kRXIq3POFzAM 3zbZfBQjqH3KT89BhimhxTx+uo1sYO9NHtG0CUCY93BZCNi7DyuRi4CLuX5md0XRK7IK FmSoS13TNve4Z1kpnHTOjdfzCWu/8euEhzB4/S64NdC/n3s1Jp9+mTNV8GOk/4JU/C2R IYamxKbBJt2bZMEYGZOjNbFrikDz7m39A6kMC3hhIuDY17evoDWbXHwheKFSGLtQNCcn HYhu5FxQBBiK+FtkwBIm+NLaRbgMJpYPXzqPltnrZzCrOq7vF3pDCCKCRkD3We3+M++m t5vw== X-Gm-Message-State: APt69E0o8EnvApS/i5mdeLrLxQnujxzVqs9jiXyFqnAeHnDYO6JMRCnw TlpXnA7wYYRy68qW4ZPlMa+v4w== X-Received: by 2002:adf:e24d:: with SMTP id n13-v6mr15566595wri.205.1531149673748; Mon, 09 Jul 2018 08:21:13 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id p4-v6sm14468474wrj.71.2018.07.09.08.21.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Jul 2018 08:21:13 -0700 (PDT) From: Corentin Labbe To: linux@armlinux.org.uk, mark.rutland@arm.com, maxime.ripard@free-electrons.com, robh+dt@kernel.org, tj@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, icenowy@aosc.io, Corentin Labbe Subject: [PATCH v2 1/4] dt-bindings: add binding for Allwinner R40 SATA AHCI controller Date: Mon, 9 Jul 2018 15:20:55 +0000 Message-Id: <1531149658-27030-2-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531149658-27030-1-git-send-email-clabbe@baylibre.com> References: <1531149658-27030-1-git-send-email-clabbe@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Icenowy Zheng The Allwinner R40 SoC contains a SATA AHCI controller like the one in A10/A20 SoCs, however a reset control and two power supplies are added to it. Add a binding document for it. As a dedicated binding document is needed now for the A10/A20/R40 AHCI controller, drop the A10 compatible line from generic platform AHCI controller binding document. Signed-off-by: Icenowy Zheng Signed-off-by: Corentin Labbe --- .../devicetree/bindings/ata/ahci-platform.txt | 1 - .../bindings/ata/allwinner,sun4i-a10-ahci.txt | 40 ++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.txt diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index c760ecb81381..1bea4b5ef9fd 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt @@ -9,7 +9,6 @@ PHYs. Required properties: - compatible : compatible string, one of: - - "allwinner,sun4i-a10-ahci" - "brcm,iproc-ahci" - "hisilicon,hisi-ahci" - "cavium,octeon-7130-ahci" diff --git a/Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.txt b/Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.txt new file mode 100644 index 000000000000..0eea78c14ad3 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/allwinner,sun4i-a10-ahci.txt @@ -0,0 +1,40 @@ +Allwinner A10/A20/R40 SoC SATA AHCI Controller + +Required properties: +- compatible : compatible string, one of: + - "allwinner,sun4i-a10-ahci" + - "allwinner,sun8i-r40-ahci" +- interrupts : the SATA IRQ +- reg : the register mapping +- clocks : the clocks needed by SATA controller, usually contains + an AHB clock and a mod clock + +Optional properties: +- target-supply : regulator for SATA target power + +Required properties for the following compatibles: + - "allwinner,sun8i-r40-ahci" +- resets : the reset control needed by SATA controller +- vdd1v2-supply : regulator for SATA controller's 1.2V VDD +- vdd2v5-supply : regulator for SATA controller's 2.5V VDD + + +Examples for A10: + ahci: sata@1c18000 { + compatible = "allwinner,sun4i-a10-ahci"; + reg = <0x01c18000 0x1000>; + interrupts = <56>; + clocks = <&pll6 0>, <&ahb_gates 25>; + target-supply = <®_ahci_5v>; + }; + +Examples for R40: + ahci: sata@1c18000 { + compatible = "allwinner,sun8i-r40-ahci"; + reg = <0x01c18000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_SATA>, <&ccu CLK_BUS_SATA>; + resets = <&ccu RST_BUS_SATA>; + vdd1v2-supply = <®_eldo3>; + vdd2v5-supply = <®_dldo4>; + }; -- 2.16.4