From 6e4ff77147b2ac387f4b3b99e22b9fb491540891 Mon Sep 17 00:00:00 2001 From: Wu Liang feng Date: Tue, 23 Aug 2016 17:41:41 +0800 Subject: [PATCH] arm64: dts: rockchip: optimize clks for rk3399 dwc3 1. modify clock-names, according to Heiko's suggestion, clock names should always be in the scope of the device block (named after what it supplies), and clock-names are always meant from the perspective of the individual ip-block. 2. remove unnecessary clocks, refer to rk3399 TRM, aclk_usb3 is the parent of aclk_usb3otg0/1 and aclk_usb3_grf, and we will enable aclk_usb3otg0/1 and aclk_usb3_grf, so don't need to enable aclk_usb3 again. In addition, the aclk_usb3_rksoc_axi_perf clk is used for usb3 performance monitor module which we don't use now, so don't need to enable it. Change-Id: I1d50a72d1523b8b70f1e5f388dc357807131dd7c Signed-off-by: Wu Liang feng --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 7fc4d8cd6a82..8f21aa78418d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -433,11 +433,9 @@ usbdrd3_0: usb@fe800000 { compatible = "rockchip,rk3399-dwc3"; clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>, - <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_RKSOC_AXI_PERF>, - <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>; - clock-names = "clk_usb3otg0_ref", "clk_usb3otg0_suspend", - "aclk_usb3otg0", "aclk_usb3_rksoc_axi_perf", - "aclk_usb3", "aclk_usb3_grf"; + <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_GRF>; + clock-names = "ref_clk", "suspend_clk", + "bus_clk", "grf_clk"; power-domains = <&power RK3399_PD_USB3>; resets = <&cru SRST_A_USB3_OTG0>; reset-names = "usb3-otg"; @@ -464,11 +462,9 @@ usbdrd3_1: usb@fe900000 { compatible = "rockchip,rk3399-dwc3"; clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>, - <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_RKSOC_AXI_PERF>, - <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>; - clock-names = "clk_usb3otg1_ref", "clk_usb3otg1_suspend", - "aclk_usb3otg1", "aclk_usb3_rksoc_axi_perf", - "aclk_usb3", "aclk_usb3_grf"; + <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_GRF>; + clock-names = "ref_clk", "suspend_clk", + "bus_clk", "grf_clk"; power-domains = <&power RK3399_PD_USB3>; resets = <&cru SRST_A_USB3_OTG1>; reset-names = "usb3-otg"; -- 2.34.1