Re: [PATCH RESEND] thermal: Add QPNP PMIC temperature alarm driver

2014-09-15 Thread Georgi Djakov
Hi, On 09/15/2014 06:03 PM, Ivan T. Ivanov wrote: Add support for the temperature alarm peripheral found inside Qualcomm plug-and-play (QPNP) PMIC chips. The temperature alarm peripheral outputs a pulse on an interrupt line whenever the thermal over temperature stage value changes.

[PATCH v1] clk: qcom: Add support for regmap clock dividers

2014-09-30 Thread Georgi Djakov
This patch expands the regmap support to allow registration of clock dividers. It just prepares for the introduction of a clkdiv driver, that will be in a separate patch. Such dividers are found in the Qualcomm PMIC chips such as PM8941, PMA8084 and others. Signed-off-by: Georgi Djakov gdja...@mm

Re: [PATCH v1] clk: qcom: Add support for regmap clock dividers

2014-10-03 Thread Georgi Djakov
On 10/02/2014 09:11 PM, Stephen Boyd wrote: On 09/30/14 10:20, Georgi Djakov wrote: This patch expands the regmap support to allow registration of clock dividers. It just prepares for the introduction of a clkdiv driver, that will be in a separate patch. Such dividers are found

[PATCH] ARM: qcom: Increase MMC_BLOCK_MINORS in defconfig

2014-10-09 Thread Georgi Djakov
There are currently more than 16 partitions on the eMMC of all recent Qualcomm devices. Increase the number of minors per block device to detect all available partitions. Signed-off-by: Georgi Djakov gdja...@mm-sol.com --- arch/arm/configs/qcom_defconfig |2 +- 1 file changed, 1 insertion

[PATCH] ARM: multi_v7_defconfig: Enable SDHCI for Qualcomm platforms

2014-10-10 Thread Georgi Djakov
Enable MMC support for Qualcomm msm8974, apq8074 and apq8084 platforms. Also increase the number of minors per block device in order to detect all the 25 eMMC partitions. Signed-off-by: Georgi Djakov gdja...@mm-sol.com --- arch/arm/configs/multi_v7_defconfig |3 ++- 1 file changed, 2

[PATCH] clk: qcom: Fix duplicate rbcpr clock name

2014-10-10 Thread Georgi Djakov
(MMCC) support) Signed-off-by: Georgi Djakov gdja...@mm-sol.com --- drivers/clk/qcom/mmcc-apq8084.c |2 +- include/dt-bindings/clock/qcom,mmcc-apq8084.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/mmcc-apq8084.c b/drivers/clk/qcom

[PATCH] ARM: multi_v7_defconfig: Enable clocks for APQ8084 boards

2014-10-10 Thread Georgi Djakov
Enable the clocks for the Qualcomm APQ8084 platforms to allow booting with multi_v7_defconfig. Signed-off-by: Georgi Djakov gdja...@mm-sol.com --- arch/arm/configs/multi_v7_defconfig |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs

Re: [PATCH v2 3/3] ARM: dts: qcom: Add SDHC nodes for APQ8084 platform

2014-10-14 Thread Georgi Djakov
On 10/10/2014 08:14 PM, Bjorn Andersson wrote: On Tue, Sep 2, 2014 at 8:40 AM, Georgi Djakov gdja...@mm-sol.com wrote: Enable support for the two SD host controllers on the APQ8084 platform by adding the required nodes to the DT files. On the IFC6540 board, the first controller is connected

Re: [PATCH] clk: qcom: Fix duplicate rbcpr clock name

2014-11-17 Thread Georgi Djakov
On 10/11/2014 03:16 AM, Stephen Boyd wrote: On 10/10, Georgi Djakov wrote: There is a duplication in a clock name for apq8084 platform that causes the following warning: RBCPR_CLK_SRC redefined Resolve this by adding a MMSS_ prefix to this clock and making its name coherent with msm8974

[PATCH v1] clk: qcom: Add MSM8916 Global Clock Controller support

2015-02-06 Thread Georgi Djakov
This is preliminary and not fully tested patch which adds support for the global clock controller found on the MSM8916 based devices. It allows the various device drivers to probe and control their clocks and resets. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- .../devicetree

[PATCH v1 6/9] clk: qcom: Convert msm8974 to parent_map tables

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8974.c | 33 + drivers/clk/qcom/mmcc-msm8974.c | 142 +-- 2 files changed, 95 insertions(+), 80 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8974.c b/drivers/clk

[PATCH v1 8/9] clk: qcom: Convert ipq806x to parent_map tables

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-ipq806x.c | 51 +++- drivers/clk/qcom/lcc-ipq806x.c | 13 ++ 2 files changed, 37 insertions(+), 27 deletions(-) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk

[PATCH v1 4/9] clk: qcom: Make RCGs use the parent_map struct

2015-03-18 Thread Georgi Djakov
Switch RCG functions to use of the newly introduced parent_map struct. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.c | 13 - drivers/clk/qcom/clk-rcg.h |4 ++-- drivers/clk/qcom/clk-rcg2.c | 11 +++ 3 files changed, 17

[PATCH v1 3/9] clk: qcom: Introduce parent_map tables

2015-03-18 Thread Georgi Djakov
Define a parent_map struct to describe the relations between PLL source index and register configuration value. Add a qcom_find_src_index() function for finding the index of a clock matching the specific PLL configuration Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom

[PATCH v1 7/9] clk: qcom: Convert msm8960 to parent_map tables

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8960.c | 35 +++--- drivers/clk/qcom/lcc-msm8960.c | 13 ++ drivers/clk/qcom/mmcc-msm8960.c | 53 +-- 3 files changed, 57 insertions(+), 44

[PATCH v1 9/9] clk: qcom: Convert msm8660 to parent_map tables

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8660.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8660.c b/drivers/clk/qcom/gcc-msm8660.c index f366e68f7316..e9fc9389f977 100644

[PATCH v1 0/9] clk: qcom: Introduce parent_map tables

2015-03-18 Thread Georgi Djakov
This patchset introduces the parent_map index tables, which solve the issue discussed here [1]. While doing this, fix also some of the code around (patches 1 and 2) [1] https://lkml.org/lkml/2015/3/5/682 Patchset based on clk-next. Georgi Djakov (9): clk: qcom: Fix clk_get_parent function

[PATCH v1 5/9] clk: qcom: Convert apq8084 to parent_map tables

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-apq8084.c | 70 --- drivers/clk/qcom/mmcc-apq8084.c | 178 +-- 2 files changed, 134 insertions(+), 114 deletions(-) diff --git a/drivers/clk/qcom/gcc-apq8084.c b

[PATCH v1 1/9] clk: qcom: Fix clk_get_parent function return value

2015-03-18 Thread Georgi Djakov
According to the common clock framework API, the clk_get_parent() function should return u8. Currently we are returning negative values on error. Fix this and use the default parent in case of an error. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.c | 26

[PATCH v1 2/9] clk: qcom: Do some error handling in configure_bank()

2015-03-18 Thread Georgi Djakov
Currently configure_bank() returns void. Add some error checking on the regmap calls and propagate if there is any error. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.c | 62 +--- 1 file changed, 41 insertions(+), 21

[PATCH v3 2/2] clk: qcom: Add MSM8916 Global Clock Controller support

2015-03-18 Thread Georgi Djakov
This patch adds support for the global clock controller found on the MSM8916 based devices. It allows the various device drivers to probe and control their clocks and resets. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/Kconfig |8 + drivers/clk/qcom

[PATCH v3 0/2] clk: qcom: Add MSM8916 Global Clock Controller support

2015-03-18 Thread Georgi Djakov
Boyd, reworked driver to use index tables for clock parents. * Split into two patches - DT binding and driver. Changes since v1: * Addressed comments from Stephen Boyd and Archit Taneja * Fixed some incorrect offsets, parents etc. * Driver is tested on MSM8916-MTP device. Georgi Djakov (2

[PATCH v3 1/2] dt-bindings: Add #defines for MSM8916 clocks and resets

2015-03-18 Thread Georgi Djakov
Add clocks/resets defines for the global clock controller found on Qualcomm MSM8916 SoCs. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- .../devicetree/bindings/clock/qcom,gcc.txt |1 + include/dt-bindings/clock/qcom,gcc-msm8916.h | 156 include

[PATCH v2 0/3] clk: qcom: Introduce parent_map tables

2015-03-19 Thread Georgi Djakov
this bisectable. Georgi Djakov (3): clk: qcom: Fix clk_get_parent function return value clk: qcom: Do some error handling in configure_bank() clk: qcom: Introduce parent_map tables drivers/clk/qcom/clk-rcg.c | 99 +++--- drivers/clk/qcom/clk-rcg.h | 15 +++- drivers/clk

[PATCH v2 2/3] clk: qcom: Do some error handling in configure_bank()

2015-03-19 Thread Georgi Djakov
Currently configure_bank() returns void. Add some error checking on the regmap calls and propagate if there is any error. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.c | 62 +--- 1 file changed, 41 insertions(+), 21

[PATCH v2 1/3] clk: qcom: Fix clk_get_parent function return value

2015-03-19 Thread Georgi Djakov
According to the common clock framework API, the clk_get_parent() function should return u8. Currently we are returning negative values on error. Fix this and use the default parent in case of an error. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.c | 26

[PATCH] mmc: sdhci-msm: Add support for vendor capabilities registers

2015-03-19 Thread Georgi Djakov
Some versions of this controller do not advertise their 3.0v and 8bit bus-width support capabilities. It is required to explicitly set these capabilities for the specific controller versions. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Tested on msm8916-mtp board. drivers/mmc/host

Re: [PATCH] mmc: sdhci-msm: Add support for vendor capabilities registers

2015-03-20 Thread Georgi Djakov
On 03/19/2015 07:55 PM, Bjorn Andersson wrote: On Thu, Mar 19, 2015 at 9:21 AM, Georgi Djakov georgi.dja...@linaro.org wrote: [..] Does the 8916 board you have work without bumping the regulator_set_load() (previously regulator_set_optimum_mode())? None of my 8974 boards work reliably

[PATCH v2] mmc: sdhci-msm: Add support for vendor capabilities registers

2015-03-21 Thread Georgi Djakov
Some versions of this controller do not advertise their 3.0v and 8bit bus-width support capabilities. It is required to explicitly set these capabilities for the specific controller versions. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Changes since v1: * Converted to separate read

[PATCH v3 0/3] clk: qcom: Introduce parent_map tables

2015-03-20 Thread Georgi Djakov
of using NULL terminated entries. * Moved call to qcom_find_src_index() at the top. Changes since v1: * Squash the last patches to make this bisectable. Georgi Djakov (3): clk: qcom: Fix clk_get_parent function return value clk: qcom: Do some error handling in configure_bank() clk: qcom

[PATCH v3 3/3] clk: qcom: Introduce parent_map tables

2015-03-20 Thread Georgi Djakov
for finding the index of a clock matching the specific PLL configuration. - Update the {set,get}_parent RCG functions use the newly introduced parent_map struct. - Convert all existing drivers to the new parent_map tables. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk

[PATCH v3 1/3] clk: qcom: Fix clk_get_parent function return value

2015-03-20 Thread Georgi Djakov
According to the common clock framework API, the clk_get_parent() function should return u8. Currently we are returning negative values on error. Fix this and use the default parent in case of an error. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.c | 26

Re: [PATCH v2] clk: qcom: Add MSM8916 Global Clock Controller support

2015-03-09 Thread Georgi Djakov
Hi Stephen, Thanks for looking into this. On 03/05/2015 09:58 PM, Stephen Boyd wrote: On 02/25, Georgi Djakov wrote: diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drivers/clk/qcom/gcc-msm8916.c new file mode 100644 index ..810c38004520 --- /dev/null +++ b/drivers/clk/qcom/gcc

[PATCH v2] clk: qcom: Add MSM8916 Global Clock Controller support

2015-02-25 Thread Georgi Djakov
This patch adds support for the global clock controller found on the MSM8916 based devices. It allows the various device drivers to probe and control their clocks and resets. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Changes since v1: * Addressed comments from Stephen Boyd

Re: [PATCH v1] clk: qcom: Add MSM8916 Global Clock Controller support

2015-02-24 Thread Georgi Djakov
On 02/24/2015 06:49 AM, Archit Taneja wrote: Hi, [..] + +static struct freq_tbl ftbl_gcc_mdss_pclk[] = { +{ .src = P_DSI0_PHYPLL_DSI }, +{ } +}; + +static struct clk_rcg2 pclk0_clk_src = { +.cmd_rcgr = 0x4d084, This should be 0x4d000. Same reason as above. +

Re: [PATCH v1] clk: qcom: Add MSM8916 Global Clock Controller support

2015-02-24 Thread Georgi Djakov
On 02/24/2015 12:46 AM, Stephen Boyd wrote: On 02/06/15 10:58, Georgi Djakov wrote: [...] [..] + +/* Vote for GPLL0 to turn on */ +regmap_read(regmap, 0x45000, val); +val |= BIT(0); +regmap_write(regmap, 0x45000, val); Hm.. I guess this is for the CPU to stay

Re: [PATCH] mmc: sdhci-msm: Add support for vendor capabilities registers

2015-03-19 Thread Georgi Djakov
Hi Bjorn, Thanks for taking a look. On 03/19/2015 05:36 PM, Bjorn Andersson wrote: On Thu, Mar 19, 2015 at 5:55 AM, Georgi Djakov georgi.dja...@linaro.org wrote: [..] @@ -516,6 +527,22 @@ static int sdhci_msm_probe(struct platform_device *pdev) host_version, ((host_version

[PATCH v3] mmc: sdhci-msm: Add support for vendor capabilities registers

2015-03-23 Thread Georgi Djakov
Some versions of this controller do not advertise their 3.0v and 8bit bus-width support capabilities. It is required to explicitly set these capabilities for the specific controller versions. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Changes since v2: * Use the generic sdhci

[PATCH 2/2] clk: qcom: Fix MSM8916 gfx3d_clk_src configuration

2015-04-29 Thread Georgi Djakov
The gfx3d_clk_src parents configuration is incorrect. Fix it. Fixes: 3966fab8b6ab clk: qcom: Add MSM8916 Global Clock Controller support Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8916.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2] clk: qcom: Fix parent_map translations

2015-04-07 Thread Georgi Djakov
When we introduced the parent_map tables, we missed to update some of the functions where mapping is translated. Fix this. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Changes since v1: * Pass parent map to _freq_tbl_determine_rate() drivers/clk/qcom/clk-rcg.c | 26

[PATCH] clk: qcom: Fix parent_map translations

2015-04-03 Thread Georgi Djakov
When we introduced the parent_map tables, we missed to update some of the functions where mapping is translated. Fix this. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.c | 13 ++--- drivers/clk/qcom/clk-rcg2.c | 20 +++- 2 files

[PATCH v2 3/5] clk: qcom: Add support for RCGs with shared branches

2015-06-05 Thread Georgi Djakov
Some root clock generators may have child branches that are controlled by different CPUs. These RCGs require special operations. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.h |1 + drivers/clk/qcom/clk-rcg2.c | 64

[PATCH v2 5/5] clk: qcom: Add MSM8916 audio clocks

2015-06-05 Thread Georgi Djakov
Add support for the msm8916 audio clocks. This includes core bus, low-power audio and codec clocks. They are required for audio playback. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8916.c | 388 ++ include/dt-bindings

[PATCH v2 4/5] clk: qcom: Add MSM8916 gpu clocks

2015-06-05 Thread Georgi Djakov
Add support for the msm8916 bimc clocks that are needed for GPU. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8916.c | 59 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2 files changed, 62 insertions

[PATCH v2 1/5] clk: qcom: Add support for read-only rcg2 ops

2015-06-05 Thread Georgi Djakov
-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.h |1 + drivers/clk/qcom/clk-rcg2.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/clk/qcom/clk-rcg.h b/drivers/clk/qcom/clk-rcg.h index 56028bb31d87..706a55b34b81 100644 --- a/drivers/clk/qcom/clk

[PATCH v2 2/5] clk: qcom: Add MSM8916 iommu clocks

2015-06-05 Thread Georgi Djakov
Add support for the msm8916 TCU clocks that are needed for IOMMU. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8916.c | 48 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2 files changed, 51 insertions

[PATCH v2 0/5] Add support for more MSM8916 clocks

2015-06-05 Thread Georgi Djakov
This patchset adds support for the iommu, gpu and audio clocks on the MSM8916 platforms. Changes since v1: * Added a set of ops for read-only RCGs and RCGs with shared branches. Patchset based on clk-next. Georgi Djakov (5): clk: qcom: Add support for read-only rcg2 ops clk: qcom: Add

Re: [PATCH] mmc: sdhci: msm: Boost controller core clock

2015-06-26 Thread Georgi Djakov
On 06/26/2015 02:16 PM, Ivan T. Ivanov wrote: Ensure SDCC is working with maximum clock otherwise card detection could be extremely slow, up to 7 seconds. Signed-off-by: Ivan T. Ivanov ivan.iva...@linaro.org --- drivers/mmc/host/sdhci-msm.c | 5 + 1 file changed, 5 insertions(+)

[PATCH 3/5] clk: qcom: Add support for regmap mux-div clocks

2015-06-12 Thread Georgi Djakov
Add support for hardware that support switching both parent clocks and the divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov georgi.dja

[PATCH 4/5] clk: qcom: Add A53 clock driver

2015-06-12 Thread Georgi Djakov
Add a driver for the A53 subsystem PLL, so that we can provide higher frequency clocks for use by the system. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Documentation/devicetree/bindings/clock/qcom,a53cc | 22 +++ drivers/clk/qcom/Kconfig |8

[PATCH 5/5] arm64: dts: qcom: msm8916: Add A53 DT node

2015-06-12 Thread Georgi Djakov
Add nodes for the A53 clocks and apcs, so that the driver can probe and register the clocks. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi

[PATCH 2/5] clk: Add safe switch hook

2015-06-12 Thread Georgi Djakov
[georgi: updated patch to support safe frequency] Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/clk.c| 76 +- include/linux/clk-provider.h |2 ++ 2 files changed, 70 insertions(+), 8 deletions(-) diff --git

[PATCH] clk: qcom: Constify the parent names arrays

2015-07-06 Thread Georgi Djakov
Make const both the array and the strings, so they can be moved to .rodata section. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Patch based on v4.2-rc1 drivers/clk/qcom/gcc-apq8084.c | 12 ++-- drivers/clk/qcom/gcc-ipq806x.c | 10 +- drivers/clk/qcom/gcc

[PATCH v3 4/4] clk: qcom: Add MSM8916 audio clocks

2015-08-13 Thread Georgi Djakov
Add support for the msm8916 audio clocks. This includes core bus, low-power audio and codec clocks. They are required for audio playback. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8916.c | 388 ++ include/dt-bindings

[PATCH v3 1/4] clk: qcom: Add MSM8916 iommu clocks

2015-08-13 Thread Georgi Djakov
Add support for the msm8916 TCU (Translation Control Unit) clocks that are needed for IOMMU. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8916.c | 48 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2 files

[PATCH v3 0/5] Add support for more MSM8916 clocks

2015-08-13 Thread Georgi Djakov
. * Rebased on clk-next. Changes since v1 * Added a set of ops for read-only RCGs and RCGs with shared branches. Georgi Djakov (4): clk: qcom: Add MSM8916 iommu clocks clk: qcom: Add support for RCGs with shared branches clk: qcom: Add MSM8916 gpu clocks clk: qcom: Add MSM8916 audio clocks

[PATCH v3 2/4] clk: qcom: Add support for RCGs with shared branches

2015-08-13 Thread Georgi Djakov
, the mux is set to the safe source; Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/clk-rcg.h |4 ++- drivers/clk/qcom/clk-rcg2.c | 77 +++ 2 files changed, 80 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clk

[PATCH v3 3/4] clk: qcom: Add MSM8916 gpu clocks

2015-08-13 Thread Georgi Djakov
Add support for the msm8916 BIMC (Bus Integrated Memory Controller) clocks that are needed for GPU. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8916.c | 61 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2

[PATCH v2 2/2] clk: qcom: Add MSM8916 RPM clock driver

2015-08-03 Thread Georgi Djakov
Add support for clocks that are controlled by the RPM processor on Qualcomm msm8916 based platforms. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 35 drivers/clk/qcom/Kconfig |1 + drivers/clk

[PATCH v2 1/2] clk: qcom: Add support for RPM Clocks

2015-08-03 Thread Georgi Djakov
shared memory and accepts clock requests, aggregates the requests and turns the clocks on/off or scales them on demand. This driver is based on the codeaurora.org driver: https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c Signed-off-by: Georgi Djakov georgi.dja

[PATCH v2 0/2] Add initial support for RPM clocks

2015-08-03 Thread Georgi Djakov
by Srini and Bjorn. * More detailed binding example. * Minor changes. Georgi Djakov (2): clk: qcom: Add support for RPM Clocks clk: qcom: Add MSM8916 RPM clock driver .../devicetree/bindings/clock/qcom,rpmcc.txt | 35 drivers/clk/qcom/Kconfig |4

[PATCH v3 2/3] clk: qcom: Add support for regmap mux-div clocks

2015-08-12 Thread Georgi Djakov
Add support for hardware that support switching both parent clocks and the divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov georgi.dja

[PATCH v3 3/3] clk: qcom: Add A53 clock driver

2015-08-12 Thread Georgi Djakov
Add a driver for the A53 subsystem PLL, so that we can provide higher frequency clocks for use by the system. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Documentation/devicetree/bindings/clock/qcom,a53cc | 25 +++ drivers/clk/qcom/Kconfig |8

[PATCH v3 1/3] clk: Add safe switch hook

2015-08-12 Thread Georgi Djakov
Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/clk.c| 73 +++--- include/linux/clk-provider.h |2 ++ 2 files changed, 70 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 128ad748b682

[PATCH v3 0/3] Add support for Qualcomm A53 CPU clock

2015-08-12 Thread Georgi Djakov
://lkml.org/lkml/2015/6/12/193) * Drop SR2 PLL patch, as it is already applied. * Add gpll0_vote rate propagation patch. * Update/rebase patches to the current clk-next. Georgi Djakov (2): clk: qcom: Add support for regmap mux-div clocks clk: qcom: Add A53 clock driver Stephen Boyd (1): clk

[PATCH v2 4/5] clk: qcom: Add A53 clock driver

2015-07-24 Thread Georgi Djakov
Add a driver for the A53 subsystem PLL, so that we can provide higher frequency clocks for use by the system. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Documentation/devicetree/bindings/clock/qcom,a53cc | 25 +++ drivers/clk/qcom/Kconfig |8

[PATCH v2 3/5] clk: qcom: Add support for regmap mux-div clocks

2015-07-24 Thread Georgi Djakov
Add support for hardware that support switching both parent clocks and the divider at the same time. This avoids generating intermediate frequencies from either the old parent clock and new divider or new parent clock and old divider combinations. Signed-off-by: Georgi Djakov georgi.dja

[PATCH v2 2/5] clk: Add safe switch hook

2015-07-24 Thread Georgi Djakov
Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/clk.c| 73 +++--- include/linux/clk-provider.h |2 ++ 2 files changed, 70 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 67f778bd093b

[PATCH v2 1/5] clk: qcom: Enable gpll0_vote rate propagation on MSM8916

2015-07-24 Thread Georgi Djakov
Currently we are missing the SET_RATE_PARENT flag on gpll0_vote and as a result of that, when it has a child with SET_RATE_PARENT flag, the rate of the child is not propagated up to the gpll0. Fix that by adding the SET_RATE_PARENT flag to gpll0_vote. Signed-off-by: Georgi Djakov georgi.dja

[PATCH v2 0/5] Add support for Qualcomm A53 CPU clock

2015-07-24 Thread Georgi Djakov
to the current clk-next. Georgi Djakov (4): clk: qcom: Enable gpll0_vote rate propagation on MSM8916 clk: qcom: Add support for regmap mux-div clocks clk: qcom: Add A53 clock driver arm64: dts: qcom: msm8916: Add A53 DT node Stephen Boyd (1): clk: Add safe switch hook Documentation/devicetree

[PATCH v2 5/5] arm64: dts: qcom: msm8916: Add A53 DT node

2015-07-24 Thread Georgi Djakov
Add nodes for the A53 clocks and apcs, so that the driver can probe and register the clocks. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi

Re: [PATCH v2 1/5] clk: qcom: Enable gpll0_vote rate propagation on MSM8916

2015-07-24 Thread Georgi Djakov
On 24.07.15 20:25, Stephen Boyd wrote: On 07/24/2015 09:58 AM, Georgi Djakov wrote: Currently we are missing the SET_RATE_PARENT flag on gpll0_vote and as a result of that, when it has a child with SET_RATE_PARENT flag, the rate of the child is not propagated up to the gpll0. Fix

Re: [PATCH v2 04/11] soc: qcom: Add Shared Memory Driver

2015-07-21 Thread Georgi Djakov
On 07/14/2015 01:27 AM, Bjorn Andersson wrote: On Tue 07 Jul 06:45 PDT 2015, Georgi Djakov wrote: Hi Bjorn, Thank you for this patchset! Some nits and a question below. Thank you! On 06/27/2015 12:50 AM, bj...@kryo.se wrote: From: Bjorn Andersson bjorn.anders...@sonymobile.com

Re: [PATCH v2 1/2] clk: qcom: common: Add API to register board clocks backwards compatibly

2015-10-28 Thread Georgi Djakov
On 10/28/2015 03:06 AM, Stephen Boyd wrote: > On 10/27, Stephen Boyd wrote: >> + >> +int qcom_cc_register_board_clk(struct device *dev, const char *path, >> + const char *name, unsigned long rate) >> +{ >> +return _qcom_cc_register_board_clk(dev, path, name, rate, >>

Re: [PATCH v2] mmc: sdhci-msm: Boost controller core clock

2015-11-09 Thread Georgi Djakov
-off-by: Ivan T. Ivanov <ivan.iva...@linaro.org> >> Reviewed-by: Georgi Djakov <georgi.dja...@linaro.org> >> Acked-by: Stephen Boyd <sb...@codeaurora.org> >> --- >> >> Changes since v0: >> - s/falied/failed in warning message. >> >> driver

Re: [PATCH 2/2] usb: host: ehci-msm: Use posted data writes on AHB

2015-11-06 Thread Georgi Djakov
10c board. Tested-by: Georgi Djakov <georgi.dja...@linaro.org> > --- > drivers/usb/host/ehci-msm.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c > index c4f84c8..c23e285 100644 > ---

Re: [PATCH] soc: qcom: smd-rpm: Correct the active vs sleep state flagging

2015-10-14 Thread Georgi Djakov
On 10/13/2015 11:57 PM, Bjorn Andersson wrote: > The BIT() was incorrectly inherited from family A and should not be used > on family B where the state is denoted by an enum. > > Reported-by: Georgi Djakov <georgi.dja...@linaro.org> > Signed-off-by: Bjorn Andersson <bjorn.

[PATCH v3 0/8] Add initial support for RPM clocks

2015-10-20 Thread Georgi Djakov
by Srini and Bjorn. * More detailed binding example. * Minor changes. Georgi Djakov (8): arm64: dts: qcom: 8x16: Add fixed rate on-board oscillator clk: qcom: msm8916: Set the parent of xo to xo_board clk: qcom: msm8916: Ignore sleep_clk_src registration errors arm64: dts: qcom: 8x16: Add fixed

[PATCH v3 1/8] arm64: dts: qcom: 8x16: Add fixed rate on-board oscillator

2015-10-20 Thread Georgi Djakov
-by: Georgi Djakov <georgi.dja...@linaro.org> --- arch/arm64/boot/dts/qcom/msm8916.dtsi |9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 8748fcca70f4..355a2acea796 100644 --- a/arch/arm64/boot/dt

[PATCH v3 7/8] clk: qcom: msm8916: Use RPMCC if it is enabled

2015-10-20 Thread Georgi Djakov
The RPM clock controller driver takes care of registering the xo clock. Do not register it in this driver if RPM is enabled. Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- drivers/clk/qcom/gcc-msm8916.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-)

[PATCH v3 6/8] clk: qcom: Add RPM clock controller driver

2015-10-20 Thread Georgi Djakov
Add support for clocks that are controlled by the RPM processor on Qualcomm msm8916 based platforms. Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 35 drivers/clk/qcom/Kconfig |8 + d

[PATCH v3 5/8] clk: qcom: Add support for RPM Clocks

2015-10-20 Thread Georgi Djakov
shared memory and accepts clock requests, aggregates the requests and turns the clocks on/off or scales them on demand. This driver is based on the codeaurora.org driver: https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c Signed-off-by: Georgi Djakov <georgi.

[PATCH v3 8/8] clk: qcom: msm8916: Remove hard-coded sleep_clk_src

2015-10-20 Thread Georgi Djakov
The sleep_clk_src has been moved to DT, so we do not need to register it in the GCC driver anymore. Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- drivers/clk/qcom/gcc-msm8916.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8916.c b/drive

[PATCH v3 2/8] clk: qcom: msm8916: Set the parent of xo to xo_board

2015-10-20 Thread Georgi Djakov
Remove the hard-coded clock rate from the driver and set the XO parent to the on-board XO oscillator that is defined in the DT. Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- drivers/clk/qcom/gcc-msm8916.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v3 3/8] clk: qcom: msm8916: Ignore sleep_clk_src registration errors

2015-10-20 Thread Georgi Djakov
We are moving the sleep clock to the DT. While all patches are merged, we will ignore sleep_clk_src registration errors. By ignoring this error, the msm8916 boards will continue booting during this transition period, otherwise the clock controller initialization will fail. Signed-off-by: Georgi

Re: [PATCH 1/2] clk: qcom: Add support for RPM Clocks

2015-07-09 Thread Georgi Djakov
Hi Srini, On 07/09/2015 03:27 PM, Srinivas Kandagatla wrote: On 09/07/15 13:18, Georgi Djakov wrote: This patch adds initial support for clocks controlled by the RPM (Resource Power Manager) processor found on some Qualcomm SoCs. The RPM is a dedicated hardware engine for managing

Re: [PATCH v2 04/11] soc: qcom: Add Shared Memory Driver

2015-07-07 Thread Georgi Djakov
Hi Bjorn, Thank you for this patchset! Some nits and a question below. On 06/27/2015 12:50 AM, bj...@kryo.se wrote: From: Bjorn Andersson bjorn.anders...@sonymobile.com This adds the Qualcomm Shared Memory Driver (SMD) providing communication channels to remote processors, ontop of SMEM.

[PATCH 0/2] Add initial support for RPM clocks

2015-07-09 Thread Georgi Djakov
requests to the RPM processor. The second patch adds the support of RPM clocks on the MSM8916 platform. [1] https://lkml.org/lkml/2015/6/26/577 Georgi Djakov (2): clk: qcom: Add support for RPM Clocks clk: qcom: Add MSM8916 RPM clock driver .../devicetree/bindings/clock/qcom,rpmcc.txt

[PATCH 1/2] clk: qcom: Add support for RPM Clocks

2015-07-09 Thread Georgi Djakov
via shared memory and accepts clock requests, aggregates the requests and turns the clocks on/off or scales them on demand. This work is based on the codeaurora.org driver: https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c Signed-off-by: Georgi Djakov

Re: [PATCH v2 1/2] clk: qcom: Add support for RPM Clocks

2015-09-03 Thread Georgi Djakov
Hi Stephen, On 09/02/2015 11:31 PM, Stephen Boyd wrote: > On 08/03, Georgi Djakov wrote: >> diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c >> new file mode 100644 >> index ..e564673ec3a5 >> --- /dev/null >> +++

Re: [PATCH v2 0/2] Add initial support for RPM clocks

2015-09-02 Thread Georgi Djakov
On 08/03/2015 07:48 PM, Georgi Djakov wrote: > This patchset adds initial support for the clocks controlled by > the RPM (Resource Power Manager) processor on Qualcomm platforms. > It depends on Bjorn's Qualcomm SMD & RPM patches, that are now in > linux-next: https://lkml.org/lkm

[PATCH] clk: qcom: Fix MSM8916 prng clock enable bit

2015-08-25 Thread Georgi Djakov
Fix the enable bit of the pseudorandom number generator clock. Reported-by: Stanimir Varbanov stanimir.varba...@linaro.org Fixes: 3966fab8b6ab clk: qcom: Add MSM8916 Global Clock Controller support Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- drivers/clk/qcom/gcc-msm8916.c |2

Re: [PATCH v3 1/3] clk: Add safe switch hook

2015-09-10 Thread Georgi Djakov
On 09/10/2015 01:52 AM, Stephen Boyd wrote: > On 08/12, Georgi Djakov wrote: >> From: Stephen Boyd <sb...@codeaurora.org> >> >> Sometimes clocks can't accept their parent source turning off >> while the source is reprogrammed to a different rate. Most >> not

Re: [PATCH v3 2/4] clk: qcom: Add support for RCGs with shared branches

2015-09-10 Thread Georgi Djakov
On 09/10/2015 01:46 AM, Stephen Boyd wrote: > On 08/13, Georgi Djakov wrote: [..] >> diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c >> index 9aec1761fd29..681faf2dcdc5 100644 >> --- a/drivers/clk/qcom/clk-rcg2.c >> +++ b/drivers/clk/qcom/clk

[PATCH v4 2/4] clk: qcom: Add support for RCGs with shared branches

2015-09-16 Thread Georgi Djakov
, the mux is set to the safe source; Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- drivers/clk/qcom/clk-rcg.h |4 ++- drivers/clk/qcom/clk-rcg2.c | 78 +++ 2 files changed, 81 insertions(+), 1 deletion(-) diff --git a/drivers/cl

[PATCH v4 0/4] Add support for more MSM8916 clocks

2015-09-16 Thread Georgi Djakov
/lkml/2015/6/5/324) * Dropped patch for read-only RCGs as it is not needed. * Updated RCGs with shared branches patch and addressed various issues pointed by Stephen. * Rebased on clk-next. Changes since v1 * Added a set of ops for read-only RCGs and RCGs with shared branches. Georgi Djakov (4

[PATCH v4 1/4] clk: qcom: Add MSM8916 iommu clocks

2015-09-16 Thread Georgi Djakov
Add support for the msm8916 TCU (Translation Control Unit) clocks that are needed for IOMMU. Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- drivers/clk/qcom/gcc-msm8916.c | 48 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2

[PATCH v4 4/4] clk: qcom: Add MSM8916 audio clocks

2015-09-16 Thread Georgi Djakov
Add support for the msm8916 audio clocks. This includes core bus, low-power audio and codec clocks. They are required for audio playback. Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- drivers/clk/qcom/gcc-msm8916.c | 388 ++ incl

[PATCH v4 3/4] clk: qcom: Add MSM8916 gpu clocks

2015-09-16 Thread Georgi Djakov
Add support for the msm8916 BIMC (Bus Integrated Memory Controller) clocks that are needed for GPU. Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- drivers/clk/qcom/gcc-msm8916.c | 61 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h

[PATCH v5 3/4] clk: qcom: Add MSM8916 gpu clocks

2015-09-17 Thread Georgi Djakov
Add support for the msm8916 BIMC (Bus Integrated Memory Controller) clocks that are needed for GPU. Signed-off-by: Georgi Djakov <georgi.dja...@linaro.org> --- drivers/clk/qcom/gcc-msm8916.c | 61 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h

<    1   2   3   >