24 Apr, 2018

1 commit

  • commit 89cd7aec21af26fd0c117bfc4bfc781724f201de upstream.

    The clock for which all PWM devices on MT7623 or MT2701 actually depending
    on has to be divided by four from its parent clock axi_sel in the clock
    path prior to PWM devices.

    Consequently, adding a fixed-factor clock axisel_d4 as one-fourth of
    clock axi_sel allows that PWM devices can have the correct resolution
    calculation.

    Cc: stable@vger.kernel.org
    Fixes: e9862118272a ("clk: mediatek: Add MT2701 clock support")
    Signed-off-by: Sean Wang
    Signed-off-by: Stephen Boyd
    Signed-off-by: Greg Kroah-Hartman

    Sean Wang
     

20 Dec, 2017

1 commit

  • [ Upstream commit c955bf3998efa3355790a4d8c82874582f1bc727 ]

    Since the previous setup always sets the PLL using crystal 26MHz, this
    doesn't always happen in every MediaTek platform. So the patch added
    flexibility for assigning extra member for determining the PLL source
    clock.

    Signed-off-by: Chen Zhong
    Signed-off-by: Sean Wang
    Signed-off-by: Stephen Boyd
    Signed-off-by: Sasha Levin
    Signed-off-by: Greg Kroah-Hartman

    Chen Zhong
     

02 Nov, 2017

1 commit

  • Many source files in the tree are missing licensing information, which
    makes it harder for compliance tools to determine the correct license.

    By default all files without license information are under the default
    license of the kernel, which is GPL version 2.

    Update the files which contain no license information with the 'GPL-2.0'
    SPDX license identifier. The SPDX identifier is a legally binding
    shorthand, which can be used instead of the full boiler plate text.

    This patch is based on work done by Thomas Gleixner and Kate Stewart and
    Philippe Ombredanne.

    How this work was done:

    Patches were generated and checked against linux-4.14-rc6 for a subset of
    the use cases:
    - file had no licensing information it it.
    - file was a */uapi/* one with no licensing information in it,
    - file was a */uapi/* one with existing licensing information,

    Further patches will be generated in subsequent months to fix up cases
    where non-standard license headers were used, and references to license
    had to be inferred by heuristics based on keywords.

    The analysis to determine which SPDX License Identifier to be applied to
    a file was done in a spreadsheet of side by side results from of the
    output of two independent scanners (ScanCode & Windriver) producing SPDX
    tag:value files created by Philippe Ombredanne. Philippe prepared the
    base worksheet, and did an initial spot review of a few 1000 files.

    The 4.13 kernel was the starting point of the analysis with 60,537 files
    assessed. Kate Stewart did a file by file comparison of the scanner
    results in the spreadsheet to determine which SPDX license identifier(s)
    to be applied to the file. She confirmed any determination that was not
    immediately clear with lawyers working with the Linux Foundation.

    Criteria used to select files for SPDX license identifier tagging was:
    - Files considered eligible had to be source code files.
    - Make and config files were included as candidates if they contained >5
    lines of source
    - File already had some variant of a license header in it (even if
    Reviewed-by: Philippe Ombredanne
    Reviewed-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

22 Jul, 2017

1 commit

  • Now that we have a custom printf format specifier, convert users of
    full_name to use %pOF instead. This is preparation to remove storing
    of the full path string for each node.

    Signed-off-by: Rob Herring
    Cc: Michael Turquette
    Cc: Stephen Boyd
    Cc: Maxime Coquelin
    Cc: Alexandre Torgue
    Cc: Russell King
    Cc: Matthias Brugger
    Cc: Geert Uytterhoeven
    Cc: Maxime Ripard
    Cc: Chen-Yu Tsai
    Cc: "Emilio López"
    Cc: Peter De Schrijver
    Cc: Prashant Gaikwad
    Cc: Thierry Reding
    Cc: Jonathan Hunter
    Cc: Tero Kristo
    Cc: linux-clk@vger.kernel.org
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: linux-mediatek@lists.infradead.org
    Cc: linux-renesas-soc@vger.kernel.org
    Cc: linux-tegra@vger.kernel.org
    Cc: linux-omap@vger.kernel.org
    Acked-by: Maxime Ripard
    Reviewed-by: Geert Uytterhoeven
    Acked-by: Geert Uytterhoeven
    Acked-by: James Liao
    Acked-by: Alexandre TORGUE
    Reviewed-by: Matthias Brugger
    Signed-off-by: Stephen Boyd

    Rob Herring
     

18 Jul, 2017

1 commit

  • Fixed the signedness bug returning '(-22)' on the return type as u8 with
    removing the sanity checker in clk_cpumux_get_parent() since
    clk_cpumux_set_parent() always ensures validity in clk_cpumux_get_parent()
    got called.

    Fixes: 1e17de9049da ("clk: mediatek: add missing cpu mux causing Mediatek cpufreq can't work")
    Reported-by: Dan Carpenter
    Signed-off-by: Sean Wang
    Signed-off-by: Stephen Boyd

    Sean Wang
     

20 Jun, 2017

3 commits


22 Apr, 2017

1 commit


20 Apr, 2017

1 commit


27 Jan, 2017

2 commits

  • The MT8135 is a 32-bit SoC, so only propose it on ARM architecture,
    not ARM64.

    Signed-off-by: Jean Delvare
    Fixes: 234d511d8c15 ("clk: mediatek: Add hardware dependency")
    Cc: Andreas Färber
    Acked-by: James Liao
    Reviewed-by: Matthias Brugger
    Signed-off-by: Stephen Boyd

    Jean Delvare
     
  • If I say "no" to "Clock driver for Mediatek MT2701", I don't want to
    be asked individually about each sub-driver. No means no.

    Additionally, this driver shouldn't be proposed at all on non-mediatek
    builds, unless build-testing.

    Signed-off-by: Jean Delvare
    Fixes: e9862118272a ("clk: mediatek: Add MT2701 clock support")
    Reviewed-by: Andreas Färber
    Reviewed-by: James Liao
    Cc: Shunli Wang
    Cc: Erin Lo
    Cc: Michael Turquette
    Reviewed-by: Matthias Brugger
    Signed-off-by: Stephen Boyd

    Jean Delvare
     

09 Nov, 2016

2 commits

  • In infrasys and perifsys, there are many reset
    control bits for kinds of modules. These bits are
    used as actual reset controllers to be registered
    into kernel's generic reset controller framework.

    Signed-off-by: Shunli Wang
    Signed-off-by: James Liao
    Signed-off-by: Erin Lo
    Tested-by: John Crispin
    Acked-by: Philipp Zabel
    Signed-off-by: Stephen Boyd

    Shunli Wang
     
  • Add MT2701 clock support, include topckgen, apmixedsys,
    infracfg, pericfg and subsystem clocks.

    Signed-off-by: Shunli Wang
    Signed-off-by: James Liao
    Signed-off-by: Erin Lo
    Tested-by: John Crispin
    Signed-off-by: Stephen Boyd

    Shunli Wang
     

18 Oct, 2016

1 commit

  • Only propose the mediatek clock drivers on this platform, unless
    build-testing.

    Signed-off-by: Jean Delvare
    Cc: Shunli Wang
    Cc: James Liao
    Cc: Erin Lo
    Cc: Matthias Brugger
    Cc: Michael Turquette
    Reviewed-by: Matthias Brugger
    Signed-off-by: Stephen Boyd

    Jean Delvare
     

21 Sep, 2016

1 commit


20 Aug, 2016

1 commit


19 Aug, 2016

1 commit


06 May, 2016

3 commits


30 Mar, 2016

1 commit


03 Mar, 2016

1 commit


30 Jan, 2016

2 commits


01 Oct, 2015

8 commits


29 Jul, 2015

4 commits

  • * cleanup-clk-h-includes: (62 commits)
    clk: Remove clk.h from clk-provider.h
    clk: h8300: Remove clk.h and clkdev.h includes
    clk: at91: Include clk.h and slab.h
    clk: ti: Switch clk-provider.h include to clk.h
    clk: pistachio: Include clk.h
    clk: ingenic: Include clk.h
    clk: si570: Include clk.h
    clk: moxart: Include clk.h
    clk: cdce925: Include clk.h
    clk: Include clk.h in clk.c
    clk: zynq: Include clk.h
    clk: ti: Include clk.h
    clk: sunxi: Include clk.h and remove unused clkdev.h includes
    clk: st: Include clk.h
    clk: qcom: Include clk.h
    clk: highbank: Include clk.h
    clk: bcm: Include clk.h
    clk: versatile: Remove clk.h and clkdev.h includes
    clk: ux500: Remove clk.h and clkdev.h includes
    clk: tegra: Properly include clk.h
    ...

    Stephen Boyd
     
  • MT8173 MMPLL frequency settings are different from common PLLs.
    It needs different post divider settings for some ranges of frequency.
    This patch add support for MT8173 MMPLL frequency setting by adding
    div-rate table to lookup suitable post divider setting under a
    specified frequency.

    Signed-off-by: James Liao
    Acked-by: Sascha Hauer
    Signed-off-by: Stephen Boyd

    James Liao
     
  • Avoid u32 overflow when calculate post divider setting, and
    increase the max post divider setting from 3 (/8) to 4 (/16).

    Signed-off-by: James Liao
    Acked-by: Sascha Hauer
    Signed-off-by: Stephen Boyd

    James Liao
     
  • Write postdiv and pcw settings at the same time for PLLs if postdiv
    and pcw settings are on the same register.

    This is need by PLLs such as MT8173 MMPLL and ARM*PLL.

    Signed-off-by: James Liao
    Acked-by: Sascha Hauer
    Signed-off-by: Stephen Boyd

    James Liao
     

21 Jul, 2015

1 commit

  • We don't need to include clk.h in header files, just forward
    declare struct clk here. This leads us to a few places where the
    include of clk.h was missing in C files. Add them.

    Cc: James Liao
    Cc: Henry Chen
    Cc: Sascha Hauer
    Signed-off-by: Stephen Boyd

    Stephen Boyd
     

07 Jul, 2015

1 commit

  • On the MT8173 the clocks are provided by different units. To enable
    the critical clocks we must be sure that all parent clocks are already
    registered, otherwise the parents of the critical clocks end up being
    unused and get disabled later. To find a place where all parents are
    registered we try each time after we've registered some clocks if
    all known providers are present now and only then we enable the critical
    clocks

    Signed-off-by: Sascha Hauer
    Signed-off-by: James Liao
    [sboyd@codeaurora.org: Marked function and data __init]
    Signed-off-by: Stephen Boyd

    Sascha Hauer
     

05 Jun, 2015

1 commit