1. 19 Apr, 2017 1 commit
    • Stephen Boyd's avatar
      Merge tag 'sunxi-clk-for-4.12' of... · 8062b4aa
      Stephen Boyd authored
      Merge tag 'sunxi-clk-for-4.12' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-next
      
      Pull Allwinner clock patches for 4.12 from Maxime Ripard:
      
      Support for the new H5 SoC and the PRCM block found in a number of SoCs as
      well, plus the usual chunk of fixes and minor enhancements.
      
      * tag 'sunxi-clk-for-4.12' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
        clk: sunxi-ng: Display index when clock registration fails
        clk: sunxi-ng: a33: Add offset and minimum value for DDR1 PLL N factor
        clk: sunxi-ng: a80: Remodel CPU cluster PLLs as N-type multiplier clocks
        clk: sunxi-ng: mult: Support PLL lock detection
        clk: sunxi-ng: add support for PRCM CCUs
        dt-bindings: update device tree binding for Allwinner PRCM CCUs
        clk: sunxi-ng: sun5i: Fix mux width for csi clock
        clk: sunxi-ng: tighten SoC deps on explicit AllWinner SoCs
        clk: sunxi-ng: add Allwinner H5 CCU support for H3 CCU driver
        clk: sunxi-ng: gate: Support common pre-dividers
      8062b4aa
  2. 17 Apr, 2017 2 commits
    • Stephen Boyd's avatar
      Merge branch 'clk-fixes' into clk-next · e609f9f2
      Stephen Boyd authored
      * clk-fixes:
        clk: sunxi-ng: a33: gate then ungate PLL CPU clk after rate change
        clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks
        clk: sunxi-ng: fix build failure in ccu-sun9i-a80 driver
        clk: sunxi-ng: fix build error without CONFIG_RESET_CONTROLLER
        clk: stm32f4: fix: exclude values 0 and 1 for PLLQ
      e609f9f2
    • Stephen Boyd's avatar
      Merge tag 'sunxi-clk-fixes-for-4.11-2-bis' of... · e7590308
      Stephen Boyd authored
      Merge tag 'sunxi-clk-fixes-for-4.11-2-bis' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into clk-fixes
      
      Pull Allwinner clock fixes for 4.11 from Maxime Ripard:
      
      Two build errors fixes for the sunxi-ng drivers.
      
      The two other patches fix random CPU crashes happening on the A33 since
      CPUFreq has been enabled in 4.11.
      
      * tag 'sunxi-clk-fixes-for-4.11-2-bis' of https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
        clk: sunxi-ng: a33: gate then ungate PLL CPU clk after rate change
        clk: sunxi-ng: Add clk notifier to gate then ungate PLL clocks
        clk: sunxi-ng: fix build failure in ccu-sun9i-a80 driver
        clk: sunxi-ng: fix build error without CONFIG_RESET_CONTROLLER
      e7590308
  3. 13 Apr, 2017 4 commits
  4. 12 Apr, 2017 22 commits
  5. 07 Apr, 2017 8 commits
  6. 06 Apr, 2017 1 commit
  7. 05 Apr, 2017 2 commits
    • Chen-Yu Tsai's avatar
      clk: sunxi-ng: a33: Add offset and minimum value for DDR1 PLL N factor · 68f37d86
      Chen-Yu Tsai authored
      The DDR1 PLL on the A33 is an oddball amongst the A33 CCU clocks.
      It is a clock multiplier, with the effective multiplier in the
      range of 12 ~ 255 and no offset between the multiplier value and
      the value programmed into the register.
      
      Implement the zero offset and minimum value of 12 for this clock.
      
      Fixes: d05c748b ("clk: sunxi-ng: Add A33 CCU support")
      Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      68f37d86
    • Chen-Yu Tsai's avatar
      clk: sunxi-ng: a80: Remodel CPU cluster PLLs as N-type multiplier clocks · 25eb035c
      Chen-Yu Tsai authored
      The CPU cluster PLLs on the A80 are NP clocks that are atypical in two ways:
      
        - The P factor is 1 bit wide, and translates to a /1 or /4 divider.
      
        - The P factor should only be used for output frequencies lower than
          288 MHz. The N factor has a lower limit of 12, which likely contributed
          to this extra divider.
      
      According to the user manual, the clocks can only go as low as 200 MHz.
      The vendor BSP kernel does not even define operating points below 360
      MHz for these clocks. The lower end for cpufreq in the vendor kernel is
      even higher. The mainline Linux kernel doesn't support cpufreq for the
      A80 at the moment. This means the lower frequencies are untested, and
      will likely remain unused.
      
      The new sunxi-ng style clocks don't support the quirks listed above.
      Instead of trying to work the quirks in for something of little usage,
      we re-model the clocks into N-type multipler clocks, with P fixed at 1.
      At probe time we check if P is set to 4, and fix it up if needed. This
      is highly unlikely though.
      
      Fixes: b8eb71dc ("clk: sunxi-ng: Add A80 CCU")
      Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      25eb035c