1. 13 7月, 2019 1 次提交
  2. 07 6月, 2019 1 次提交
  3. 30 4月, 2019 1 次提交
  4. 29 12月, 2018 1 次提交
  5. 07 11月, 2018 1 次提交
    • A
      clk: imx7d: remove UART1 clock setting · ea662d2f
      Anson Huang 提交于
      There are clock assignments in all i.MX7D dtb files for UART1,
      below is the example in imx7d-sdb.dts, so setting UART1 clock
      in clock driver is NOT necessary, actually, module clocks setting
      should be done in module driver.
      
      &uart1 {
      	pinctrl-names = "default";
      	pinctrl-0 = <&pinctrl_uart1>;
      	assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>;
      	assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>;
      	status = "okay";
      };
      Signed-off-by: NAnson Huang <Anson.Huang@nxp.com>
      Signed-off-by: NStephen Boyd <sboyd@kernel.org>
      ea662d2f
  6. 17 10月, 2018 3 次提交
  7. 10 7月, 2018 1 次提交
  8. 02 6月, 2018 4 次提交
  9. 07 4月, 2018 4 次提交
  10. 01 3月, 2018 1 次提交
  11. 28 2月, 2018 2 次提交
  12. 22 2月, 2018 1 次提交
  13. 02 11月, 2017 2 次提交
  14. 31 8月, 2017 1 次提交
  15. 20 6月, 2017 1 次提交
  16. 01 6月, 2017 1 次提交
  17. 20 4月, 2017 3 次提交
  18. 21 1月, 2017 1 次提交
  19. 31 8月, 2016 1 次提交
    • F
      clk: imx7d: Add PLL_AUDIO_TEST_DIV/POST_DIV clocks · 54fe0791
      Fabio Estevam 提交于
      Currently we see the following error when using the SAI audio
      driver on mx7:
      
      Division by zero in kernel.
      CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc3-next-20160823
      Hardware name: Freescale i.MX7 Dual (Device Tree)
      Backtrace:
      [<c010b70c>] (dump_backtrace) from [<c010b8a8>] (show_stack+0x18)
      r6:60000013 r5:ffffffff r4:00000000 r3:00000000
      [<c010b890>] (show_stack) from [<c03e9324>] (dump_stack+0xb0/0xe)
      [<c03e9274>] (dump_stack) from [<c010b578>] (__div0+0x18/0x20)
      r8:00000000 r7:ffffffff r6:ffffffff r5:00000000 r4:00000000 r3:0
      [<c010b560>] (__div0) from [<c03e795c>] (Ldiv0_64+0x8/0x18)
      [<c06cd860>] (divider_get_val) from [<c06cda28>] (clk_divider_se)
      
      This error happens due to the lack of definition of the
      IMX7D_PLL_AUDIO_TEST_DIV/IMX7D_PLL_AUDIO_POST_DIV clocks.
      
      Add support for them.
      
      Tested on a imx7s-warp board.
      Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      54fe0791
  20. 20 8月, 2016 2 次提交
  21. 12 8月, 2016 1 次提交
    • F
      clk: imx7d: do not set the parent of IMX7D_ENET_AXI_ROOT_SRC · 1fd92dba
      Fabio Estevam 提交于
      Booting the kernel on a imx7s-warp leads to several warnings like these:
      
      [    0.000000] ------------[ cut here ]------------
      [    0.000000] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:3536 lock_release+0x2f8/0x330
      [    0.000000] releasing a pinned lock
      
      [    0.000000] ------------[ cut here ]------------
      [    0.000000] WARNING: CPU: 0 PID: 0 at kernel/locking/lockdep.c:2722 trace_hardirqs_on_caller+0x1ac/0x1f4
      [    0.000000] DEBUG_LOCKS_WARN_ON(unlikely(early_boot_irqs_disabled))
      
      [    0.000000] ---[ end trace cb88537fdc8fa201 ]---
      [    0.000000] bad: scheduling from the idle thread!
      [    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W       4.7.0-rc7-next-20160715 #404
      
      [    0.000000] ------------[ cut here ]------------
      [    0.000000] WARNING: CPU: 0 PID: 0 at kernel/time/sched_clock.c:179 sched_clock_register+0x44/0x1f8
      [    0.000000] Modules linked in:
      
      [    0.000591] ------------[ cut here ]------------
      [    0.000610] WARNING: CPU: 0 PID: 0 at kernel/time/sched_clock.c:179 sched_clock_register+0x44/0x1f8
      
      [    0.002084] ------------[ cut here ]------------
      [    0.002104] WARNING: CPU: 0 PID: 0 at init/main.c:576 start_kernel+0x258/0x3b0
      [    0.002114] Interrupts were enabled early
      
      This fix is along the same lines as 5e33ebff ("clk: imx7d: do not
      set parent of ethernet time/ref clocks") and the explanation from that
      commit is:
      
      "The reason for the warning is that setting the parent enables the ENET
       PLL since we are using CLK_OPS_PARENT_ENABLE. Enabling the ENET PLL can
       cause clk_pllv3_wait_lock to sleep. See also:
       commit fc8726a2 ("clk: core: support clocks which requires parents
       enable (part 2)")."
      
      imx7s-warp does not even use the FEC interface, so we should not really
      configure the parent of IMX7D_ENET_AXI_ROOT_SRC in the common MX7 clock
      driver code.
      
      The dts file should use the assigned-clocks/assigned-clock-parents method,
      so simply remove the configuration of IMX7D_ENET_AXI_ROOT_SRC parent.
      Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      1fd92dba
  22. 13 7月, 2016 1 次提交
    • S
      clk: imx7d: do not set parent of ethernet time/ref clocks · 5e33ebff
      Stefan Agner 提交于
      All device trees currently in mainline specify the time clock parent
      using the assigned-clocks/assigned-clock-parents method, there is no
      need to statically assign the parent in the core clock driver.
      Also all current boards provide an Ethernet reference clock for the
      PHY externally, hence configuring the internal PHY reference clock.
      
      Furthermore, and the actual driver of this patch, specify ethernet
      related parents at that early point in boot leads to a warning:
      bad: scheduling from the idle thread!
      
      The reason for the warning is that setting the parent enables the ENET
      PLL since we are using CLK_OPS_PARENT_ENABLE. Enabling the ENET PLL can
      cause clk_pllv3_wait_lock to sleep. See also:
      commit fc8726a2 ("clk: core: support clocks which requires parents
      enable (part 2)").
      
      Note that setting the ENET AXI root clock parent also requires ENET
      PLL to be enabled. However, U-Boot typically leaves the ENET PLL on,
      hence when the framework sets the parent of the first clock, it does
      not need to wait for the PLL to come up. But because there is currently
      no user of that clock, the PLL gets disabled after setting the parent.
      Therefore, subsequent reparenting calls of any clock which somehow rely
      on the ENET PLL, need to reenable the ENET PLL which leads to a sleep.
      Removing those subsequent reparenting calls works around this issue.
      
      Also remove comments. The code is really verbose enough.
      Signed-off-by: NStefan Agner <stefan@agner.ch>
      Tested-by: NFabio Estevam <festevam@gmail.com>
      Signed-off-by: NMichael Turquette <mturquette@baylibre.com>
      Link: lkml.kernel.org/r/20160703174813.13970-1-stefan@agner.ch
      5e33ebff
  23. 02 7月, 2016 2 次提交
    • D
      clk: imx7d: only enable minimum required clocks · e8e628fb
      Dong Aisheng 提交于
      Formerly clk core does not support imx7d clock type well that all
      its clock operations requires the parent clock on.
      Therefore we enabled all clocks by default in clock driver
      initialization for other module clocks operate well.
      
      After patch 'clk: imx7d: using api with flag CLK_OPS_PARENT_ENABLE',
      clk core can handle such clock type well, so we don't have to enable
      them all by default anymore. Instead, we only enable a minimum required
      set of clocks.
      
      Cc: Michael Turquette <mturquette@baylibre.com>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Signed-off-by: NDong Aisheng <aisheng.dong@nxp.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      e8e628fb
    • D
      clk: imx7d: using api with flag CLK_OPS_PARENT_ENABLE · cbeac74a
      Dong Aisheng 提交于
      i.MX7D requires all clocks operations including enable/disable,
      rate change and re-parent with its parent clock on.
      Changing to the correct APIs to tell clk core such requirement.
      
      Cc: Michael Turquette <mturquette@baylibre.com>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Signed-off-by: NDong Aisheng <aisheng.dong@nxp.com>
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      cbeac74a
  24. 12 6月, 2016 3 次提交