From: Loc Ho <lho@apm.com>
To: olof@lixom.net, tj@kernel.org, arnd@arndb.de
Cc: linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
jcm@redhat.com, Loc Ho <lho@apm.com>, Tuan Phan <tphan@apm.com>,
Suman Tripathi <stripathi@apm.com>
Subject: [PATCH 1/3] Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation
Date: Thu, 14 Nov 2013 12:31:57 -0700 [thread overview]
Message-ID: <1384457519-21335-2-git-send-email-lho@apm.com> (raw)
In-Reply-To: <1384457519-21335-1-git-send-email-lho@apm.com>
Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation
Document the DTS binding for the X-Gene SoC SATA PHY driver.
Signed-off-by: Loc Ho <lho@apm.com>
Signed-off-by: Tuan Phan <tphan@apm.com>
Signed-off-by: Suman Tripathi <stripathi@apm.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Olof Johansson <olof@lixom.net>
---
.../devicetree/bindings/ata/apm-xgene.txt | 69 ++++++++++++++++++++
1 files changed, 69 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..d18db67
--- /dev/null
+++ b/Documentation/devicetree/bindings/ata/apm-xgene.txt
@@ -0,0 +1,69 @@
+* APM X-Gene 6.0 Gb/s SATA PHY nodes
+
+SATA PHY nodes are defined to describe on-chip Serial ATA PHY. Each SATA PHY
+(pair of PHY) has its own node.
+
+Required properties:
+- compatible : Shall be "apm,xgene-ahci-phy"
+- reg : First memory resource shall be the PHY memory resource
+ Second memory resource shall be the optional PHY
+ memory resource if mux'ed with another IP
+- id : PHY ID (0 = first, 1 = second, 2 = third)
+- #phy-cells : Shall be 0
+
+Optional properties:
+- status : Shall be "ok" if enabled or "na" if disabled. Default
+ is "ok".
+- CTLE0 : PHY override parameters for channel 0 register REG1
+ field CTLE_EQ. First value for Gen1, second value
+ for Gen2, and third value for Gen3. Default is 0x2.
+- CTLE1 : PHY override parameters for channel 1 register REG1
+ field CTLE_EQ. First value for Gen1, second value
+ for Gen2, and third value for Gen3. Default is 0x2.
+- PQ0 : PHY override parameters for channel 0 register REG125
+ field PQ_REG. First value for Gen1, second value
+ for Gen2, and third value for Gen3. Default is 0xA.
+- PQ1 : PHY override parameters for channel 1 register REG125
+ field PQ_REG. First value for Gen1, second value
+ for Gen2, and third value for Gen3. Default is 0xA.
+- PQS0 : PHY override parameters for channel 0 register REG125
+ field PQ_SIGN. First value for Gen1, second value
+ for Gen2, and third value for Gen3. Default is 0x1.
+- PQS1 : PHY override parameters for channel 1 register REG125
+ field PQ_SIGN. First value for Gen1, second value
+ for Gen2, and third value for Gen3. Default is 0x1.
+- SPD0 : PHY override parameters for channel 0 register REG61
+ field PQ_SIGN. First value for Gen1, second value
+ for Gen2, and third value for Gen3. Default is 0x5.
+- SPD1 : PHY override parameters for channel 1 register REG61
+ field PQ_SIGN. First value for Gen1, second value
+ for Gen2, and third value for Gen3. Default is 0x5.
+
+NOTE: PHY override parameters are board specific setting.
+
+Example:
+ sataphy0: sataphy@1f210000 {
+ compatible = "apm,xgene-ahci-phy";
+ id = <0>;
+ reg = <0x0 0x1f210000 0x0 0x10000>;
+ #phy-cells = <0>;
+ status = "na";
+ };
+
+ sataphy1: sataphy@1f220000 {
+ compatible = "apm,xgene-ahci-phy";
+ id = <1>;
+ reg = <0x0 0x1f220000 0x0 0x10000>;
+ #phy-cells = <0>;
+ status = "ok";
+ };
+
+ sataphy2: sataphy@1f230000 {
+ compatible = "apm,xgene-ahci-phy";
+ id = <2>;
+ reg = <0x0 0x1f230000 0x0 0x10000
+ 0x0 0x1f2d0000 0x0 0x10000 >;
+ #phy-cells = <0>;
+ status = "ok";
+ };
+
--
1.5.5
next prev parent reply other threads:[~2013-11-14 19:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-14 19:31 [PATCH 0/3] ata: Add APM X-Gene SoC 6.0Gbps SATA PHY support Loc Ho
2013-11-14 19:31 ` Loc Ho [this message]
2013-11-14 19:31 ` [PATCH 2/3] ata: Add APM X-Gene SoC 6.0Gbps SATA PHY driver Loc Ho
2013-11-14 19:31 ` [PATCH 3/3] arm64: Add APM X-Gene SoC 6.0Gbps SATA PHY DTS entries Loc Ho
2013-11-15 12:46 ` [PATCH 2/3] ata: Add APM X-Gene SoC 6.0Gbps SATA PHY driver Arnd Bergmann
2013-11-15 16:14 ` Loc Ho
[not found] ` <1384457519-21335-2-git-send-email-lho-qTEPVZfXA3Y@public.gmane.org>
2013-11-15 12:35 ` [PATCH 1/3] Documentation: Add APM X-Gene SoC 6.0Gbps SATA PHY driver binding documentation Arnd Bergmann
2013-11-15 12:52 ` Arnd Bergmann
2013-11-15 16:22 ` Loc Ho
2013-11-15 19:26 ` Arnd Bergmann
2013-11-15 19:33 ` Loc Ho
2013-11-15 19:54 ` Arnd Bergmann
2013-11-15 20:00 ` Loc Ho
2013-11-15 20:19 ` Arnd Bergmann
2013-11-15 20:52 ` Loc Ho
2013-11-15 12:31 ` [PATCH 0/3] ata: Add APM X-Gene SoC 6.0Gbps SATA PHY support Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1384457519-21335-2-git-send-email-lho@apm.com \
--to=lho@apm.com \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=jcm@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=olof@lixom.net \
--cc=stripathi@apm.com \
--cc=tj@kernel.org \
--cc=tphan@apm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).