From patchwork Wed Jan 15 07:11:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3490571 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 B0BD4C02DC for ; Wed, 15 Jan 2014 08:08:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCACC200F2 for ; Wed, 15 Jan 2014 08:08:31 +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 52D1320127 for ; Wed, 15 Jan 2014 08:08:30 +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 1W3KfV-0004un-3L; Wed, 15 Jan 2014 07:13:43 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3Kee-0004tm-Np; Wed, 15 Jan 2014 07:12:48 +0000 Received: from exprod5og113.obsmtp.com ([64.18.0.26]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3KeR-0004qB-Lr for linux-arm-kernel@lists.infradead.org; Wed, 15 Jan 2014 07:12:37 +0000 Received: from mail-pb0-f51.google.com ([209.85.160.51]) (using TLSv1) by exprod5ob113.postini.com ([64.18.4.12]) with SMTP ID DSNKUtY0zI20BRaWX8sTRup03JNjHO1mYbZi@postini.com; Tue, 14 Jan 2014 23:12:35 PST Received: by mail-pb0-f51.google.com with SMTP id rp16so745307pbb.24 for ; Tue, 14 Jan 2014 23:12:12 -0800 (PST) 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=d0I8Ag6rkFnq9svu7AWi6t68Mg4zdxgy+3lbNKDC57Q=; b=mRDLqK/kR/l8s+KaFX788WD2wvv+uae8JQ5wAKz3Pxb4RRgurzMQG3M9IO0vGH4FHO FZbIgaph60KP03DGE8hq8BXstBrdKqP/Z7XoXbB4M/rIM/CdFTSHzar7R8PKEGlR39HJ Kb9n/E9CBHjQN5LAzd5SeCIeAtGU4Fs2ucJJAsfQYz4M77Lxu+D/xWx2Qj3LrI9vDJzw W3NmhlcAd2LEmDFxUFqCIXQ//DL6DXrFFLCzBf9asSFCamJWT7q8rfUZJ0kpWD6vqWgV 2WkcXiOWJoo6894VlK6XS/VwX4R7lB31p2YH+Bq/0L0HrrSpPLPS4s75+IvkNYbe8yxl yUxQ== X-Gm-Message-State: ALoCoQmVwfzHKyA9/BE6JsVg6RqjnuPMBOYXNm/B0ohbZppiOrSBCzlp6YVh6XcOxUpGN2KykBKRYJcVR0TOnwA0w5PA2vaYUj93jveg1JyACpxtQ3KshXpLtCJ/YMwkYPQKK8g9bLa3ulyUMRyG6mclCydnUrGTonmc85JlSOuNRkxzWog7voxaQEs0Kf9O5L29+ifr6PLX X-Received: by 10.68.43.101 with SMTP id v5mr629127pbl.149.1389769932392; Tue, 14 Jan 2014 23:12:12 -0800 (PST) X-Received: by 10.68.43.101 with SMTP id v5mr629112pbl.149.1389769932320; Tue, 14 Jan 2014 23:12:12 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id un5sm7715236pab.3.2014.01.14.23.12.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 23:12:11 -0800 (PST) From: Loc Ho To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Subject: [PATCH v9 2/4] Documentation: Add documentation for APM X-Gene SoC SATA host controller DTS binding Date: Wed, 15 Jan 2014 00:11:48 -0700 Message-Id: <1389769910-15505-3-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1389769910-15505-2-git-send-email-lho@apm.com> References: <1389769910-15505-1-git-send-email-lho@apm.com> <1389769910-15505-2-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140115_021235_926684_7B82A2A7 X-CRM114-Status: GOOD ( 11.57 ) X-Spam-Score: -4.2 (----) Cc: devicetree@vger.kernel.org, Suman Tripathi , linux-scsi@vger.kernel.org, dmilburn@redhat.com, jcm@redhat.com, patches@apm.com, linux-ide@vger.kernel.org, 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.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Signed-off-by: Loc Ho Signed-off-by: Tuan Phan Signed-off-by: Suman Tripathi --- .../devicetree/bindings/ata/apm-xgene.txt | 68 ++++++++++++++++++++ 1 files changed, 68 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..3d1421a --- /dev/null +++ b/Documentation/devicetree/bindings/ata/apm-xgene.txt @@ -0,0 +1,68 @@ +* 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 be "apm,xgene-ahci-sgmii" if mux'ed with SGMII + or "apm,xgene-ahci-pcie" if mux'ed with PCIe. +- reg : First memory resource shall be the AHCI memory + resource. + Second memory resource shall be the host controller + memory resource. +- interrupts : Interrupt mapping for SATA host controller IRQ. +- clocks : Reference to the clock entry. +- phys : PHY reference with parameter 0. +- phy-names : Name of the PHY. Shall be "sata-6g". + +Optional properties: +- status : Shall be "ok" if enabled or "disabled" if disabled. + Default is "ok". +- interrupt-parent : Interrupt controller. + +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>, + <0x0 0x1f22c000 0x0 0x100>; + #phy-cells = <1>; + }; + + phy3: phy@1f23a000 { + compatible = "apm,xgene-phy-ext"; + reg = <0x0 0x1f23a000 0x0 0x100>, + <0x0 0x1f23c000 0x0 0x100>, + <0x0 0x1f2d0000 0x0 0x100>; + #phy-cells = <1>; + }; + + sata2: sata@1a400000 { + compatible = "apm,xgene-ahci-sgmii"; + reg = <0x0 0x1a400000 0x0 0x1000>, + <0x0 0x1f220000 0x0 0x10000>; + interrupt-parent = <&gic>; + interrupts = <0x0 0x87 0x4>; + status = "ok"; + clocks = <&sataclk 0>; + phys = <&phy2 0>; + phy-names = "sata-6g"; + }; + + sata3: sata@1a800000 { + compatible = "apm,xgene-ahci-pcie"; + reg = <0x0 0x1a800000 0x0 0x1000>, + <0x0 0x1f230000 0x0 0x10000>; + interrupt-parent = <&gic>; + interrupts = <0x0 0x88 0x4>; + status = "ok"; + clocks = <&sataclk 0>; + phys = <&phy3 0>; + phy-names = "sata-6g"; + };