devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] Phy: DT binding documentation for Marvell MVEBU SATA phy.
@ 2013-12-17 20:21 Andrew Lunn
  2013-12-17 20:21 ` [PATCH 2/4] Phy: Add a PHY driver for Marvell MVEBU SATA PHY Andrew Lunn
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Andrew Lunn @ 2013-12-17 20:21 UTC (permalink / raw)
  To: Jason Cooper, kishon
  Cc: devicetree, linux-ide, Gregory Clement, Sebastian Hesselbarth,
	linux ARM, Andrew Lunn

Describe the binding for the Marvell MVEBU SATA phy. This driver
can be used at least with Kirkwood, Dove and maybe others.
Additionally, update the SATA binding with the properties to link
to the phy nodes.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
---
v1->v2:
Correct #phy-cells
Correct number after @ to match first reg address.
Rename to phy-mvebu.txt

v2->v3:
Renamed to mvebu-phy.txt
Use "port0", "port1" instead of "0", "1"
---
 Documentation/devicetree/bindings/ata/marvell.txt  |  6 ++++++
 .../devicetree/bindings/phy/mvebu-phy.txt          | 22 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/phy/mvebu-phy.txt

diff --git a/Documentation/devicetree/bindings/ata/marvell.txt b/Documentation/devicetree/bindings/ata/marvell.txt
index b5cdd20cde9c..4c5447f1068d 100644
--- a/Documentation/devicetree/bindings/ata/marvell.txt
+++ b/Documentation/devicetree/bindings/ata/marvell.txt
@@ -6,11 +6,17 @@ Required Properties:
 - interrupts    : Interrupt controller is using
 - nr-ports      : Number of SATA ports in use.
 
+Optional Properties:
+- phys		: List of phandles to sata phys
+- phy-names	: Should be "port0", "port1", etc, one per phandle
+
 Example:
 
 	sata@80000 {
 		compatible = "marvell,orion-sata";
 		reg = <0x80000 0x5000>;
 		interrupts = <21>;
+		phys = <&sata_phy0>, <&sata_phy1>;
+		phy-names = "port0", "port1";
 		nr-ports = <2>;
 	}
diff --git a/Documentation/devicetree/bindings/phy/mvebu-phy.txt b/Documentation/devicetree/bindings/phy/mvebu-phy.txt
new file mode 100644
index 000000000000..6cb3364aeafb
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/mvebu-phy.txt
@@ -0,0 +1,22 @@
+* Marvell MVEBU SATA PHY
+
+Power control for the SATA phy found on Marvell MVEBU SoCs.
+
+This document extends the binding described in phy-bindings.txt
+
+Required properties :
+
+ - reg		   : Offset and length of the register set for the SATA device
+ - compatible	   : Should be "marvell,mvebu-sata-phy"
+ - clocks	   : phandle of clock and specifier that supplies the device
+ - clock-names	   : Should be "sata"
+
+Example:
+		sata-phy@84000 {
+			compatible = "marvell,mvebu-sata-phy";
+			reg = <0x84000 0x0334>;
+			clocks = <&gate_clk 15>;
+			clock-names = "sata";
+			#phy-cells = <0>;
+			status = "ok";
+		};
-- 
1.8.5.1


^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2014-01-20 12:47 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 20:21 [PATCH 1/4] Phy: DT binding documentation for Marvell MVEBU SATA phy Andrew Lunn
2013-12-17 20:21 ` [PATCH 2/4] Phy: Add a PHY driver for Marvell MVEBU SATA PHY Andrew Lunn
2013-12-19 10:40   ` Kishon Vijay Abraham I
2013-12-17 20:21 ` [PATCH 3/4] SATA: MV: Add support for the optional PHYs Andrew Lunn
2013-12-18  6:30   ` Kishon Vijay Abraham I
2013-12-18 12:13     ` Tejun Heo
2013-12-19 19:10       ` Andrew Lunn
2013-12-19 19:42         ` Tejun Heo
2013-12-26 17:25           ` [PATCH v4 0/4] PHY Driver for Marvell SATA Andrew Lunn
2013-12-26 17:25             ` [PATCH v4 1/4] Phy: DT binding documentation for Marvell MVEBU SATA phy Andrew Lunn
2013-12-26 17:25             ` [PATCH v4 2/4] Phy: Add a PHY driver for Marvell MVEBU SATA PHY Andrew Lunn
2013-12-27 16:33               ` Kishon Vijay Abraham I
2014-01-10 19:31                 ` Jason Cooper
2014-01-11 11:12                   ` Kishon Vijay Abraham I
2013-12-26 17:25             ` [PATCH v4 3/4] SATA: MV: Add support for the optional PHYs Andrew Lunn
2014-01-20 12:47               ` Tejun Heo
2013-12-26 17:25             ` [PATCH v4 4/4] Phy: Add DT nodes on kirkwood and Dove for the SATA PHY Andrew Lunn
     [not found]     ` <52B140F2.8070900-l0cyMroinI0@public.gmane.org>
2013-12-19 19:03       ` [PATCH 3/4] SATA: MV: Add support for the optional PHYs Andrew Lunn
2013-12-20  3:25         ` Jason Cooper
2013-12-17 20:21 ` [PATCH 4/4] Phy: Add DT nodes on kirkwood and Dove for the SATA PHY Andrew Lunn
2013-12-18  6:32   ` Kishon Vijay Abraham I
2013-12-22 17:21   ` Jason Cooper
2013-12-17 20:27 ` [PATCH 1/4] Phy: DT binding documentation for Marvell MVEBU SATA phy Andrew Lunn
2013-12-20  3:21 ` Jason Cooper

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).