aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2015-04-07 18:04:16 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-06-21 15:53:37 -0400
commit90bc35c5da64d05378b15c26a664a0ecedc984ac (patch)
tree0ad025043b5e93a641bb2f441539a49a0f7fdd29
parent018f62ee203465b11e2dfc8cabebcf4aa15bb1dd (diff)
phy: Add binding document for Pistachio USB2.0 PHY
Add a binding document for the USB2.0 PHY found on the IMG Pistachio SoC. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Pawel Moll <pawel.moll@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Ian Campbell <ijc+devicetree@hellion.org.uk> Cc: Kumar Gala <galak@codeaurora.org> Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: devicetree@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: James Hartley <james.hartley@imgtec.com> Cc: Damien Horsley <Damien.Horsley@imgtec.com> Patchwork: https://patchwork.linux-mips.org/patch/9727/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--Documentation/devicetree/bindings/phy/pistachio-usb-phy.txt29
-rw-r--r--include/dt-bindings/phy/phy-pistachio-usb.h16
2 files changed, 45 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/phy/pistachio-usb-phy.txt b/Documentation/devicetree/bindings/phy/pistachio-usb-phy.txt
new file mode 100644
index 000000000000..afbc7e24a3de
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/pistachio-usb-phy.txt
@@ -0,0 +1,29 @@
1IMG Pistachio USB PHY
2=====================
3
4Required properties:
5--------------------
6 - compatible: Must be "img,pistachio-usb-phy".
7 - #phy-cells: Must be 0. See ./phy-bindings.txt for details.
8 - clocks: Must contain an entry for each entry in clock-names.
9 See ../clock/clock-bindings.txt for details.
10 - clock-names: Must include "usb_phy".
11 - img,cr-top: Must constain a phandle to the CR_TOP syscon node.
12 - img,refclk: Indicates the reference clock source for the USB PHY.
13 See <dt-bindings/phy/phy-pistachio-usb.h> for a list of valid values.
14
15Optional properties:
16--------------------
17 - phy-supply: USB VBUS supply. Must supply 5.0V.
18
19Example:
20--------
21usb_phy: usb-phy {
22 compatible = "img,pistachio-usb-phy";
23 clocks = <&clk_core CLK_USB_PHY>;
24 clock-names = "usb_phy";
25 phy-supply = <&usb_vbus>;
26 img,refclk = <REFCLK_CLK_CORE>;
27 img,cr-top = <&cr_top>;
28 #phy-cells = <0>;
29};
diff --git a/include/dt-bindings/phy/phy-pistachio-usb.h b/include/dt-bindings/phy/phy-pistachio-usb.h
new file mode 100644
index 000000000000..d1877aa0a3f5
--- /dev/null
+++ b/include/dt-bindings/phy/phy-pistachio-usb.h
@@ -0,0 +1,16 @@
1/*
2 * Copyright (C) 2015 Google, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 */
8
9#ifndef _DT_BINDINGS_PHY_PISTACHIO
10#define _DT_BINDINGS_PHY_PISTACHIO
11
12#define REFCLK_XO_CRYSTAL 0x0
13#define REFCLK_X0_EXT_CLK 0x1
14#define REFCLK_CLK_CORE 0x2
15
16#endif /* _DT_BINDINGS_PHY_PISTACHIO */