From patchwork Mon Feb 24 05:54:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loc Ho X-Patchwork-Id: 3706421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B261E9F35F for ; Mon, 24 Feb 2014 05:56:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0F3620160 for ; Mon, 24 Feb 2014 05:56:34 +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 E56542015A for ; Mon, 24 Feb 2014 05:56:32 +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 1WHoVq-0007g1-K7; Mon, 24 Feb 2014 05:55:35 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WHoVa-0008Js-HO; Mon, 24 Feb 2014 05:55:18 +0000 Received: from exprod5og104.obsmtp.com ([64.18.0.178]) by merlin.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WHoVM-0008GM-Cn for linux-arm-kernel@lists.infradead.org; Mon, 24 Feb 2014 05:55:06 +0000 Received: from mail-pd0-f177.google.com ([209.85.192.177]) (using TLSv1) by exprod5ob104.postini.com ([64.18.4.12]) with SMTP ID DSNKUwreomaf/7w5EqDT0IspV8Uks9YQ23Ah@postini.com; Sun, 23 Feb 2014 21:55:04 PST Received: by mail-pd0-f177.google.com with SMTP id g10so218938pdj.22 for ; Sun, 23 Feb 2014 21:54:42 -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=9Jd9v74rIZ41v8G+wEG7Tqm4iBsOKXTReovvFkNGtgw=; b=hIsLUFetsRde+F2o8H1Qk0TgzH/1mdb9T3asUM9YKccaDmQkAhub1t5BEx4VZVoG9M HJBB7A8949UelblzJREXfqEdh8ped1iXpNCZupEsvJ5qAx1mpu+LfqKsxq3R6EQqfkvQ GXKWhpYGET8fSbuxYZmgJonIRMsptuaraFAFgbVHx34dVPc93tkkXig+KfTKz2gVH6Fh 8vdavfohFBhGDMrBZQIl0PvCRvzrVmRkjbxKv426gKhsIqiYYdvxN2xss/5+6Lp8mRHH 6phY/uB9e1GG6otoAZnmBT2tIwrIzCtbMCLyps3hdXCTyuypy/k4ojJd5Tb6S+WR58+m +0oA== X-Gm-Message-State: ALoCoQnIo2VSSSbz9I+snUnd87N6qqB6GtpJEGVMIhxoGSHv5KQFiEIDwEizTJlBajo49zEZX79hE5ODVhuFbUaI3y0kym8mYrYp2Rfgwc3oQ5+YyXrPAABxU7s7o9LcM1ZJTrrw9fhsSxZyps2zaU6FAekXu9GKskk5lBFUy51/M5ZJf/SWze6OoYSjaeqq3nrqJP97l5KO X-Received: by 10.68.143.100 with SMTP id sd4mr11781033pbb.0.1393221282568; Sun, 23 Feb 2014 21:54:42 -0800 (PST) X-Received: by 10.68.143.100 with SMTP id sd4mr11781023pbb.0.1393221282476; Sun, 23 Feb 2014 21:54:42 -0800 (PST) Received: from localhost ([198.137.200.11]) by mx.google.com with ESMTPSA id un5sm111414341pab.3.2014.02.23.21.54.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 23 Feb 2014 21:54:41 -0800 (PST) From: Loc Ho To: olof@lixom.net, tj@kernel.org, arnd@arndb.de Subject: [PATCH v13 1/3] Documentation: Add documentation for APM X-Gene SoC SATA host controller DTS binding Date: Sun, 23 Feb 2014 22:54:23 -0700 Message-Id: <1393221265-13057-2-git-send-email-lho@apm.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1393221265-13057-1-git-send-email-lho@apm.com> References: <1393221265-13057-1-git-send-email-lho@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140224_005504_652392_C2EBDD27 X-CRM114-Status: GOOD ( 11.67 ) 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=-1.1 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no 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 | 70 ++++++++++++++++++++ 1 files changed, 70 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..633eb3b --- /dev/null +++ b/Documentation/devicetree/bindings/ata/apm-xgene.txt @@ -0,0 +1,70 @@ +* 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-sgmii" if mux'ed with SGMII + * "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-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-6g" for the SATA 6.0Gbps PHY + +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"; + reg = <0x0 0x1f23a000 0x0 0x100>, + <0x0 0x1f23c000 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"; + };