1. 20 Oct, 2015 5 commits
  2. 19 Oct, 2015 1 commit
  3. 16 Oct, 2015 10 commits
  4. 15 Oct, 2015 2 commits
    • Stephen Boyd's avatar
      clk: Make of_clk_get_parent_name() robust with #clock-cells = 1 · 0a4807c2
      Stephen Boyd authored
      If a clock provider has #clock-cells = 1 and we call
      of_clk_get_parent_name() on it we may end up returning the name
      of the provider node if the provider doesn't have a
      clock-output-names property. This doesn't make sense, especially
      when you consider that calling of_clk_get_parent_name() on such a
      node with different indices will return the same name each time.
      
      Let's try getting the clock from the framework via of_clk_get()
      instead, and only fallback to the node name if we have a provider
      with #clock-cells = 0. This way, we can't hand out the same name
      for different clocks when we don't actually know their names.
      
      Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      0a4807c2
    • Stephen Boyd's avatar
      Merge branch 'clk-fixes' into clk-next · 087a920d
      Stephen Boyd authored
      * clk-fixes:
        Partially revert "clk: mvebu: Convert to clk_hw based provider APIs"
      087a920d
  5. 14 Oct, 2015 2 commits
  6. 12 Oct, 2015 4 commits
    • Julia Lawall's avatar
      clk: tegra: delete unneeded of_node_put · 4e4f485c
      Julia Lawall authored
      for_each_child_of_node performs an of_node_put on each iteration, so
      putting an of_node_put before a continue results in a double put.
      
      The semantic match that finds this problem is as follows
      (http://coccinelle.lip6.fr):
      
      // <smpl>
      @@
      expression root,e;
      local idexpression child;
      iterator name for_each_child_of_node;
      @@
      
       for_each_child_of_node(root, child) {
         ... when != of_node_get(child)
      *  of_node_put(child);
         ...
      *  continue;
      }
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      4e4f485c
    • Stephen Boyd's avatar
      Merge branch 'clk-bcm2835' into clk-next · 67d7188a
      Stephen Boyd authored
      * clk-bcm2835:
        clk: bcm2835: Add support for programming the audio domain clocks
        clk: bcm2835: Add binding docs for the new platform clock driver.
        clk: bcm2835: Move under bcm/ with other Broadcom SoC clk drivers.
      67d7188a
    • Eric Anholt's avatar
      clk: bcm2835: Add support for programming the audio domain clocks · 41691b88
      Eric Anholt authored
      This adds support for enabling, disabling, and setting the rate of the
      audio domain clocks.  It will be necessary for setting the pixel clock
      for HDMI in the VC4 driver and let us write a cpufreq driver.  It will
      also improve compatibility with user changes to the firmware's
      config.txt, since our previous fixed clocks are unaware of it.
      
      The firmware also has support for configuring the clocks through the
      mailbox channel, but the pixel clock setup by the firmware doesn't
      work, and it's Raspberry Pi specific anyway.  The only conflicts we
      should have with the firmware would be if we made firmware calls that
      result in clock management (like opening firmware V3D or ISP access,
      which we don't support in upstream), or on hardware over-thermal or
      under-voltage (when the firmware would rewrite PLLB to take the ARM
      out of overclock).  If that happens, our cached .recalc_rate() results
      would be incorrect, but that's no worse than our current state where
      we used fixed clocks.
      
      The existing fixed clocks in the code are left in place to provide
      backwards compatibility with old device tree files.
      Signed-off-by: default avatarEric Anholt <eric@anholt.net>
      Tested-by: default avatarMartin Sperl <kernel@martin.sperl.org>
      Acked-by: default avatarStephen Warren <swarren@wwwdotorg.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      41691b88
    • Shengjiu Wang's avatar
      clk: imx6: Add SPDIF_GCLK clock in clock tree · 84a87250
      Shengjiu Wang authored
      Correct SPDIF clock setting issue in clock tree, the SPDIF_GCLK is also
      one clock of SPDIF, which is missed before.
      
      We found an issue that imx can't enter low power mode with spdif
      if IMX6x_CLK_SPDIF is used as the core clock of spdif. Because
      spdif driver will register IMX6x_CLK_SPDIF clock to regmap, regmap will do
      clk_prepare in init function, then IMX6x_CLK_SPDIF clock is prepared in probe,
      so its parent clock (PLL clock) is prepared, the prepare operation of
      PLL clock is to enable the clock. But I.MX needs all PLL clock is disabled,
      then it can enter low power mode.
      
      So we can't use IMX6x_CLK_SPDIF as the core clock of spdif, the correct spdif
      core clock is SPDIF_GCLK, which share same gate bit with IMX6x_CLK_SPDIF clock.
      SPDIF_GCLK's parent clock is ipg clock.
      Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@freescale.com>
      Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
      84a87250
  7. 09 Oct, 2015 11 commits
  8. 02 Oct, 2015 5 commits
    • Stephen Boyd's avatar
      Merge branch 'v4.3-rc3-clk' of https://github.com/jamesjjliao/linux into clk-next · 6082d88e
      Stephen Boyd authored
      Pull mediatek clock support and fixes from James Liao:
      
      "This is a collection of new Mediatek clocks support and fixes.
      These patches come from Joe and me, including clock support for
      subsystems, GPT and some minor fixes."
      
      * 'v4.3-rc3-clk' of https://github.com/jamesjjliao/linux:
        clk: mediatek: Add USB clock support in MT8173 APMIXEDSYS
        clk: mediatek: Add subsystem clocks of MT8173
        dt-bindings: ARM: Mediatek: Document devicetree bindings for clock controllers
        clk: mediatek: Fix rate and dependency of MT8173 clocks
        clk: mediatek: Add fixed clocks support for Mediatek SoC.
        clk: mediatek: Add __initdata and __init for data and functions
        clk: mediatek: Remove unused code from MT8173.
        clk: mediatek: Removed unused dpi_ck clock from MT8173
        clk: mediatek: add 13mhz clock for MT8173
      6082d88e
    • Stephen Boyd's avatar
      clk: samsung: exynos7: Staticize file scope symbols · 12b5aa61
      Stephen Boyd authored
      drivers/clk/samsung/clk-exynos7.c:896:33:
      warning: symbol 'fixed_rate_clks_fsys0' was not declared. Should
      it be static?
      drivers/clk/samsung/clk-exynos7.c:1010:33:
      warning: symbol 'fixed_rate_clks_fsys1' was not declared. Should
      it be static?
      
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      12b5aa61
    • Stephen Boyd's avatar
      Merge tag 'clk-samsung-4.4' of git://linuxtv.org/snawrocki/samsung into clk-next · caac0ef8
      Stephen Boyd authored
      Pull updates from Sylwester Nawrocki:
      
      "Fixes, improvements and addition of some missing features
      of the exynos7 clock controller driver."
      
      * tag 'clk-samsung-4.4' of git://linuxtv.org/snawrocki/samsung:
        clk: samsung: exynos7: Add required clock tree for UFS
        clk: samsung: exynos7: Add missing fixed_clks to cmu_info
        clk: samsung: exynos7: Correct CMU_FSYS1 clocks names
        clk: samsung: exynos7: Correct CMU_FSYS0 clocks names
        clk: samsung: exynos7: Correct CMU_PERIS clocks names
        clk: samsung: exynos7: Correct CMU_PERIC1 clocks names
        clk: samsung: exynos7: Correct CMU_PERIC0 clocks names
        clk: samsung: exynos7: Correct CMU_CCORE clocks names
        clk: samsung: exynos7: Correct CMU_TOP1 clocks names
        clk: samsung: exynos7: Correct CMU_TOP0 clocks names
        clk: samsung: exynos7: Adds missing clocks gates of CMU_TOPC
        clk: samsung: exynos7: Change the CMU_TOPC block clock names
        clk: samsung: exynos7: Correct nr_clk_ids for fsys1
        clk: samsung: exynos7: Correct nr_clk_ids for fsys0
        clk: samsung: exynos7: Fix CMU TOP1 block
        clk: samsung: exynos7: Fix CMU TOPC block clock
      caac0ef8
    • Stephen Boyd's avatar
      Merge branch 'clk-fixes' into clk-next · c0d625cb
      Stephen Boyd authored
      * clk-fixes: (3 commits)
        clk: ti: dflt: fix enable_reg validity check
        clk: ti: fix dual-registration of uart4_ick
        clk: ti: clk-7xx: Remove hardwired ABE clock configuration
      c0d625cb
    • Andy Shevchenko's avatar
      serial: 8250_dw: allow lower reference frequencies · 3b4261dc
      Andy Shevchenko authored
      We have couple of standard but rare used baudrates which are not supported by
      1,8432MHz reference frequency. Besides that user can potentially ask for any
      baudrate (via BOTHER flag) and we currently don't fully support that. Since
      clk-fractional-divider is moved to use rational best approximation for
      reference frequency we may amend the driver to support whatever user wants.
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      3b4261dc