From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755382AbcEaGqQ (ORCPT ); Tue, 31 May 2016 02:46:16 -0400 Received: from regular1.263xmail.com ([211.150.99.137]:41985 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755290AbcEaGqN (ORCPT ); Tue, 31 May 2016 02:46:13 -0400 X-Greylist: delayed 337 seconds by postgrey-1.27 at vger.kernel.org; Tue, 31 May 2016 02:46:11 EDT X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 X-RL-SENDER: frank.wang@rock-chips.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: frank.wang@rock-chips.com X-UNIQUE-TAG: <43a4e47d214c1db26c887d4f74824e7e> X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 From: Frank Wang To: heiko@sntech.de, dianders@chromium.org, kishon@ti.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Cc: linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-usb@vger.kernel.org, kever.yang@rock-chips.com, huangtao@rock-chips.com, william.wu@rock-chips.com, frank.wang@rock-chips.com.org, Frank Wang Subject: [PATCH 1/2] Documentation: bindings: add DT documentation for Rockchip USB2PHY Date: Tue, 31 May 2016 14:40:10 +0800 Message-Id: <1464676811-7418-2-git-send-email-frank.wang@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1464676811-7418-1-git-send-email-frank.wang@rock-chips.com> References: <1464676811-7418-1-git-send-email-frank.wang@rock-chips.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Frank Wang --- .../bindings/phy/phy-rockchip-inno-usb2.txt | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt new file mode 100644 index 0000000..4e537b2 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt @@ -0,0 +1,48 @@ +ROCKCHIP USB2.0 PHY WITH INNO IP BLOCK + +Required properties (phy (parent) node): + - compatible: should contain: + * "rockchip,rk3366-usb2phy" + - #clock-cells: should be 0. + - clock-names: specify the 480m output clk name. + +Optional properties: + - vbus_host-gpio: pull gpio high/low to control the host vbus power. + +Required nodes: a sub-node is required for each port the phy provides. + The sub-node name is used to identify host or otg port. + +Required properties (port (child) node): + - #phy-cells: must be 0. See ./phy-bindings.txt for details. + - interrupts: irq number for host/otg port. + - interrupt-names: interrupt name, in line with irq number. + +Example: + +grf: syscon@ff770000 { + compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd"; + #address-cells = <1>; + #size-cells = <1>; + +... + + u2phy: usb2-phy { + compatible = "rockchip,rk3366-usb2phy"; + #clock-cells = <0>; + clock-output-names = "sclk_otgphy0_480m"; + + u2phy_otg: otg-port { + #phy-cells = <0>; + interrupts = ; + interrupt-names = "linestate"; + status = "okay"; + }; + + u2phy_host: host-port { + #phy-cells = <0>; + interrupts = ; + interrupt-names = "linestate"; + status = "okay"; + }; + }; +}; -- 1.7.9.5