Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1463141
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Chris Zhong <zyw@rock-chips.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH v12 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399 |
| Date | Mon, 15 Aug 2016 22:00:01 +0200 |
| Message-ID | <s6wdb-1rf-19@gated-at.bofh.it> (permalink) |
| References | <s6wdb-1rf-5@gated-at.bofh.it> |
| 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=2QbjjR4r4L2p3TnCbl+aYCi5n9Qe00Klw0BGu8b4Kdo=; b=QDusahlCBt4zhKe4bYu/HrwAE5qNh6iqLsM8IEtU/Y/KM6A/zYgS0qvae3Kvj1pv1w F05mIdKhgqKvsjHOw8eazD2m2DLwjtS2rhZnLWzkF+8gQjJ0m9C0bSn+hw2a5Q2ES0+y 5jPgzGwoodxOhn3SyvEXXuatM8vU+YCuFEZXHfy3SMoMPtxaQMGRE3XEX5bSoYB3ch7X 9IqogGOIP0ZaaqtzN/a3cGvIiujvlxomQeCHUmokJpY+bYe/hoENV3Pcs89wgBZxmkiU GgO0GQ/sAp9d9FjKdj1/fWj250x0cGANci4ERiVqYRFeNX/AfhF9bsZr0KfB0lHSFYRQ EwHg== |
| X-Gm-Message-State | AEkoousr8lHwkQOAjSantLxnNrw1lhFcHg2iAwtR+aPPQ4pYeu9zqv0J3JYuuaXiFHXEUw== |
| X-Received | by 10.98.72.201 with SMTP id q70mr4744759pfi.159.1471290949799; Mon, 15 Aug 2016 12:55:49 -0700 (PDT) |
| X-Mailer | git-send-email 1.9.1 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 101 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-rockchip@lists.infradead.org, Chris Zhong <zyw@rock-chips.com>, David Wu <david.wu@rock-chips.com>, Jianqun Xu <jay.xu@rock-chips.com>, devicetree@vger.kernel.org, Elaine Zhang <zhangqing@rock-chips.com>, Brian Norris <briannorris@chromium.org>, Kumar Gala <galak@codeaurora.org>, Mark Yao <mark.yao@rock-chips.com>, linux-kernel@vger.kernel.org, Ian Campbell <ijc+devicetree@hellion.org.uk>, Shunqian Zheng <zhengsq@rock-chips.com>, Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>, Will Deacon <will.deacon@arm.com>, Mark Rutland <mark.rutland@arm.com>, Caesar Wang <wxt@rock-chips.com>, Catalin Marinas <catalin.marinas@arm.com>, linux-arm-kernel@lists.infradead.org |
| X-Original-Date | Mon, 15 Aug 2016 12:55:36 -0700 |
| X-Original-Message-ID | <1471290938-22569-4-git-send-email-zyw@rock-chips.com> |
| X-Original-References | <1471290938-22569-1-git-send-email-zyw@rock-chips.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1463141 |
Show key headers only | View raw
There are 2 Type-C phy on RK3399, they are almost same, except the
address of register. They support USB3.0 Type-C and DisplayPort1.3
Alt Mode on USB Type-C. Register a phy, supply it to USB3 controller
and DP controller.
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
---
Changes in v12: None
Changes in v11:
- split the dp-phy and usb3-phy to 2 child-node
Changes in v10:
- remove rockchip,uphy-dp-sel property
Changes in v9:
- change #phy-cells to 1
Changes in v8: None
Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None
Changes in v1: None
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 56 ++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 269fe75..6749240 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -1060,6 +1060,62 @@
};
};
+ tcphy0: phy@ff7c0000 {
+ compatible = "rockchip,rk3399-typec-phy";
+ reg = <0x0 0xff7c0000 0x0 0x40000>;
+ rockchip,grf = <&grf>;
+ clocks = <&cru SCLK_UPHY0_TCPDCORE>,
+ <&cru SCLK_UPHY0_TCPDPHY_REF>;
+ clock-names = "tcpdcore", "tcpdphy-ref";
+ assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>;
+ assigned-clock-rates = <50000000>;
+ resets = <&cru SRST_UPHY0>,
+ <&cru SRST_UPHY0_PIPE_L00>,
+ <&cru SRST_P_UPHY0_TCPHY>;
+ reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
+ rockchip,typec-conn-dir = <0xe580 0 16>;
+ rockchip,usb3tousb2-en = <0xe580 3 19>;
+ rockchip,external-psm = <0xe588 14 30>;
+ rockchip,pipe-status = <0xe5c0 0 0>;
+ status = "disabled";
+
+ tcphy0_dp: dp-port {
+ #phy-cells = <0>;
+ };
+
+ tcphy0_usb3: usb3-port {
+ #phy-cells = <0>;
+ };
+ };
+
+ tcphy1: phy@ff800000 {
+ compatible = "rockchip,rk3399-typec-phy";
+ reg = <0x0 0xff800000 0x0 0x40000>;
+ rockchip,grf = <&grf>;
+ clocks = <&cru SCLK_UPHY1_TCPDCORE>,
+ <&cru SCLK_UPHY1_TCPDPHY_REF>;
+ clock-names = "tcpdcore", "tcpdphy-ref";
+ assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>;
+ assigned-clock-rates = <50000000>;
+ resets = <&cru SRST_UPHY1>,
+ <&cru SRST_UPHY1_PIPE_L00>,
+ <&cru SRST_P_UPHY1_TCPHY>;
+ reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
+ rockchip,typec-conn-dir = <0xe58c 0 16>;
+ rockchip,usb3tousb2-en = <0xe58c 3 19>;
+ rockchip,external-psm = <0xe594 14 30>;
+ rockchip,pipe-status = <0xe5c0 16 16>;
+ status = "disabled";
+
+ tcphy1_dp: dp-port {
+ #phy-cells = <0>;
+ };
+
+ tcphy1_usb3: usb3-port {
+ #phy-cells = <0>;
+ };
+ };
+
watchdog@ff840000 {
compatible = "snps,dw-wdt";
reg = <0x0 0xff840000 0x0 0x100>;
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v12 PATCH 0/5] Rockchip Type-C and DisplayPort driver Chris Zhong <zyw@rock-chips.com> - 2016-08-15 22:00 +0200
[PATCH v12 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller Chris Zhong <zyw@rock-chips.com> - 2016-08-15 22:00 +0200
Re: [PATCH v12 PATCH 4/5] Documentation: bindings: add dt documentation for cdn DP controller Guenter Roeck <groeck@google.com> - 2016-08-17 19:30 +0200
[PATCH v12 PATCH 3/5] arm64: dts: rockchip: add Type-C phy for RK3399 Chris Zhong <zyw@rock-chips.com> - 2016-08-15 22:00 +0200
[PATCH v12 PATCH 2/5] phy: Add USB Type-C PHY driver for rk3399 Chris Zhong <zyw@rock-chips.com> - 2016-08-15 22:00 +0200
[PATCH v12 PATCH 1/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY Chris Zhong <zyw@rock-chips.com> - 2016-08-15 22:00 +0200
csiph-web