From patchwork Fri Mar 14 23:53:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3836061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E5990BF540 for ; Fri, 14 Mar 2014 23:55:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D63FE201B4 for ; Fri, 14 Mar 2014 23:55:32 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D62FF200FE for ; Fri, 14 Mar 2014 23:55:31 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WObvv-0000mg-JH; Fri, 14 Mar 2014 23:54:36 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WObvh-0004OK-VW; Fri, 14 Mar 2014 23:54:21 +0000 Received: from exprod5og112.obsmtp.com ([64.18.0.24]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WObvV-0004K7-EN for linux-arm-kernel@lists.infradead.org; Fri, 14 Mar 2014 23:54:11 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) (using TLSv1) by exprod5ob112.postini.com ([64.18.4.12]) with SMTP ID DSNKUyOWjPbCTOO43XUldnR7uqvc1wVcf7Gp@postini.com; Fri, 14 Mar 2014 16:54:09 PDT Received: by mail-pa0-f49.google.com with SMTP id lj1so3264744pab.22 for ; Fri, 14 Mar 2014 16:53:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Scc4gSy61I/qyj4V2oU95euaEkC6td/ogLKOB0FAlAo=; b=dzjtuc6nldnKlU6qN2Fo4qCWejF/p1MXh32gNeT/15H4v8Lio0qVwYd+pvoLLoPayi 7nr8/M/FI0WLRl4drjDQwRN/hOqce1Si5/cy7OOfQn3SDQYiRJhMg6MqDCqowJl3blgK 8SPubQoGnEnaEwX3RgjGyCoyaWhPGFkgwN4PjGtzpO7aPAfDGWFpDQf87EJFF5l8RaFj FRiX6tTvlQYPWTuh+JzEA//0OFxJr68EBTNes+PksKbGhnAQYt0Zw0iRN0VPnyB466jF G4TEFZHH8I4r5pe5ck5l19dK4Kb90qvneGVWLNp9/l9FlyIk6fmHC1NGQUhYRseHhSEQ /Tqw== X-Gm-Message-State: ALoCoQnUv//CtU2NDOXR/vsW03xzyzq5B6i4SmTUX+vmVr1orwp3YWu3x+6O2FxxyISBWO77P9Cr63IXh2oUJzjwzvIYSPbCvg1pMvPLMh9XDw85okym4nMV3p5+XgU+aCl4hGCW5Jc5r1733b1nV0ah5KhErFylqznGRSqezUKBc/N22IMaKEWLBq016GEpEVVv6nuw7q8C X-Received: by 10.68.244.8 with SMTP id xc8mr406287pbc.164.1394841227627; Fri, 14 Mar 2014 16:53:47 -0700 (PDT) X-Received: by 10.68.244.8 with SMTP id xc8mr406272pbc.164.1394841227553; Fri, 14 Mar 2014 16:53:47 -0700 (PDT) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id lh13sm32488831pab.4.2014.03.14.16.53.45 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 14 Mar 2014 16:53:46 -0700 (PDT) From: Loc Ho To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Subject: [PATCH v18 2/4] Documentation: Add documentation for the APM X-Gene SoC SATA host controller DTS binding Date: Fri, 14 Mar 2014 17:53:19 -0600 Message-Id: <1394841201-29495-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1394841201-29495-2-git-send-email-lho@apm.com> References: <1394841201-29495-1-git-send-email-lho@apm.com> <1394841201-29495-2-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140314_195409_691561_45D14C0C X-CRM114-Status: GOOD ( 10.04 ) X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, Suman Tripathi , linux-scsi@vger.kernel.org, jcm@redhat.com, patches@apm.com, linux-ide@vger.kernel.org, ddutile@redhat.com, Loc Ho , Tuan Phan , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds documentation for the APM X-Gene SoC SATA host controller DTS binding. Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi Acked-by: Arnd Bergmann --- .../devicetree/bindings/ata/apm-xgene.txt | 76 ++++++++++++++++++++ 1 files changed, 76 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/ata/apm-xgene.txt diff --git a/Documentation/devicetree/bindings/ata/apm-xgene.txt b/Documentation/devicetree/bindings/ata/apm-xgene.txt new file mode 100644 index 0000000..7bcfbf5 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/apm-xgene.txt @@ -0,0 +1,76 @@ +* APM X-Gene 6.0 Gb/s SATA host controller nodes + +SATA host controller nodes are defined to describe on-chip Serial ATA +controllers. Each SATA controller (pair of ports) have its own node. + +Required properties: +- compatible : Shall contain: + * "apm,xgene-ahci" +- reg : First memory resource shall be the AHCI memory + resource. + Second memory resource shall be the host controller + core memory resource. + Third memory resource shall be the host controller + diagnostic memory resource. + 4th memory resource shall be the host controller + AXI memory resource. + 5th optional memory resource shall be the host + controller MUX memory resource if required. +- interrupts : Interrupt-specifier for SATA host controller IRQ. +- clocks : Reference to the clock entry. +- phys : A list of phandles + phy-specifiers, one for each + entry in phy-names. +- phy-names : Should contain: + * "sata-phy" for the SATA 6.0Gbps PHY + +Optional properties: +- status : Shall be "ok" if enabled or "disabled" if disabled. + Default is "ok". + +Example: + sataclk: sataclk { + compatible = "fixed-clock"; + #clock-cells = <1>; + clock-frequency = <100000000>; + clock-output-names = "sataclk"; + }; + + phy2: phy@1f22a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f22a000 0x0 0x100>; + #phy-cells = <1>; + }; + + phy3: phy@1f23a000 { + compatible = "apm,xgene-phy"; + reg = <0x0 0x1f23a000 0x0 0x100>; + #phy-cells = <1>; + }; + + sata2: sata@1a400000 { + compatible = "apm,xgene-ahci"; + reg = <0x0 0x1a400000 0x0 0x1000>, + <0x0 0x1f220000 0x0 0x1000>, + <0x0 0x1f22d000 0x0 0x1000>, + <0x0 0x1f22e000 0x0 0x1000>, + <0x0 0x1f227000 0x0 0x1000>; + interrupts = <0x0 0x87 0x4>; + status = "ok"; + clocks = <&sataclk 0>; + phys = <&phy2 0>; + phy-names = "sata-phy"; + }; + + sata3: sata@1a800000 { + compatible = "apm,xgene-ahci-pcie"; + reg = <0x0 0x1a800000 0x0 0x1000>, + <0x0 0x1f230000 0x0 0x1000>, + <0x0 0x1f23d000 0x0 0x1000>, + <0x0 0x1f23e000 0x0 0x1000>, + <0x0 0x1f237000 0x0 0x1000>; + interrupts = <0x0 0x88 0x4>; + status = "ok"; + clocks = <&sataclk 0>; + phys = <&phy3 0>; + phy-names = "sata-phy"; + };