arm64: dts: rockchip: optimize clks for rk3399 dwc3
authorWu Liang feng <wulf@rock-chips.com>
Tue, 23 Aug 2016 09:41:41 +0000 (17:41 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 24 Aug 2016 05:04:49 +0000 (13:04 +0800)
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 <wulf@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index 7fc4d8cd6a82e571db0bb2800ede24296d5315ea..8f21aa78418d64f583837d473a920910e933a054 100644 (file)
        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";
        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";