Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1574499

[PATCH v2 5/6] dt-bindings: mt8173-xhci: add reference clock

From Chunfeng Yun <chunfeng.yun@mediatek.com>
Newsgroups linux.kernel
Subject [PATCH v2 5/6] dt-bindings: mt8173-xhci: add reference clock
Date 2017-02-06 10:40 +0100
Message-ID <t7NWb-3aZ-31@gated-at.bofh.it> (permalink)
References <t7NMt-37t-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Due to the reference clock comes from 26M oscillator directly
on mt8173, and it is a fixed-clock in DTS which always turned
on, we ignore it before. But on some platforms, it comes
from PLL, and need be controlled, so here add it, no matter
it is a fixed-clock or not.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Acked-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/usb/mt8173-xhci.txt        |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/mt8173-xhci.txt b/Documentation/devicetree/bindings/usb/mt8173-xhci.txt
index 2a930bd..ab8bb27 100644
--- a/Documentation/devicetree/bindings/usb/mt8173-xhci.txt
+++ b/Documentation/devicetree/bindings/usb/mt8173-xhci.txt
@@ -23,6 +23,7 @@ Required properties:
 	entry in clock-names
  - clock-names : must contain
 	"sys_ck": for clock of xHCI MAC
+	"ref_ck": for reference clock of xHCI MAC
 	"wakeup_deb_p0": for USB wakeup debounce clock of port0
 	"wakeup_deb_p1": for USB wakeup debounce clock of port1
 
@@ -47,10 +48,10 @@ usb30: usb@11270000 {
 	reg-names = "mac", "ippc";
 	interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
 	power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
-	clocks = <&topckgen CLK_TOP_USB30_SEL>,
+	clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>,
 		 <&pericfg CLK_PERI_USB0>,
 		 <&pericfg CLK_PERI_USB1>;
-	clock-names = "sys_ck",
+	clock-names = "sys_ck", "ref_ck",
 		      "wakeup_deb_p0",
 		      "wakeup_deb_p1";
 	phys = <&phy_port0 PHY_TYPE_USB3>,
@@ -82,6 +83,7 @@ Required properties:
 	entry in clock-names
  - clock-names : must be
 	"sys_ck": for clock of xHCI MAC
+	"ref_ck": for reference clock of xHCI MAC
 
 Optional properties:
  - vbus-supply : reference to the VBUS regulator;
@@ -94,8 +96,8 @@ usb30: usb@11270000 {
 	reg-names = "mac";
 	interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
 	power-domains = <&scpsys MT8173_POWER_DOMAIN_USB>;
-	clocks = <&topckgen CLK_TOP_USB30_SEL>;
-	clock-names = "sys_ck";
+	clocks = <&topckgen CLK_TOP_USB30_SEL>, <&clk26m>;
+	clock-names = "sys_ck", "ref_ck";
 	vusb33-supply = <&mt6397_vusb_reg>;
 	usb3-lpm-capable;
 };
-- 
1.7.9.5

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/6] usb: mtu3: get resources that cause deferred probe earlier Chunfeng Yun <chunfeng.yun@mediatek.com> - 2017-02-06 10:30 +0100
  [PATCH v2 6/6] dt-bindings: mt8173-mtu3: add reference clock Chunfeng Yun <chunfeng.yun@mediatek.com> - 2017-02-06 10:30 +0100
    Re: [PATCH v2 6/6] dt-bindings: mt8173-mtu3: add reference clock Chunfeng Yun <chunfeng.yun@mediatek.com> - 2017-02-07 07:10 +0100
  [PATCH v2 4/6] arm64: dts: mt8173: add reference clock for usb Chunfeng Yun <chunfeng.yun@mediatek.com> - 2017-02-06 10:40 +0100
  [PATCH v2 2/6] usb: mtu3: add reference clock Chunfeng Yun <chunfeng.yun@mediatek.com> - 2017-02-06 10:40 +0100
  [PATCH v2 5/6] dt-bindings: mt8173-xhci: add reference clock Chunfeng Yun <chunfeng.yun@mediatek.com> - 2017-02-06 10:40 +0100
  [PATCH v2 3/6] usb: xhci-mtk: add reference clock Chunfeng Yun <chunfeng.yun@mediatek.com> - 2017-02-06 10:40 +0100

csiph-web