[PATCH v3 4/4] pinctrl: qcom: Make the target processor value configurable

2014-09-02 Thread Georgi Djakov
use the current value, and only for APQ8084 we use the new value. Suggested-by: Bjorn Andersson Signed-off-by: Georgi Djakov --- drivers/pinctrl/qcom/pinctrl-apq8064.c |2 ++ drivers/pinctrl/qcom/pinctrl-apq8084.c |2 ++ drivers/pinctrl/qcom/pinctrl-ipq8064.c |2 ++ drivers/pinctrl

[PATCH v3 2/4] dt: Document Qualcomm APQ8084 pinctrl binding

2014-09-02 Thread Georgi Djakov
Define a new binding for the Qualcomm TLMM (Top-Level Mode Mux) based pin controller inside the APQ8084. Acked-by: Bjorn Andersson Signed-off-by: Georgi Djakov --- .../bindings/pinctrl/qcom,apq8084-pinctrl.txt | 179 1 file changed, 179 insertions(+) create mode

[PATCH v3 1/4] pinctrl: qcom: Add APQ8084 pinctrl support

2014-09-02 Thread Georgi Djakov
This patchset adds pinctrl support for the Qualcomm APQ8084 platform. Reviewed-by: Andy Gross Signed-off-by: Georgi Djakov --- drivers/pinctrl/qcom/Kconfig |8 + drivers/pinctrl/qcom/Makefile |1 + drivers/pinctrl/qcom/pinctrl-apq8084.c | 1243

[PATCH v3 3/4] ARM: dts: qcom: Add TLMM DT node for APQ8084

2014-09-02 Thread Georgi Djakov
This patch adds the TLMM node for the APQ8084 platform. Reviewed-by: Bjorn Andersson Signed-off-by: Georgi Djakov --- arch/arm/boot/dts/qcom-apq8084.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8084.dtsi b/arch/arm/boot/dts/qcom-apq8084.dtsi

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

2014-09-02 Thread Georgi Djakov
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 to the onboard eMMC and the second is connected to a micro-SD card slot. Signed-off-by: Georgi Djakov --- arch/arm/boot

[PATCH v2 1/3] ARM: dts: qcom: Add initial IFC6540 board device tree

2014-09-02 Thread Georgi Djakov
Add initial device tree for the IFC6540 Snapdragon 805 pico-itx single-board computer. Signed-off-by: Georgi Djakov --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/qcom-apq8084-ifc6540.dts |6 ++ 2 files changed, 7 insertions(+) create mode 100644 arch/arm

[PATCH v2 0/3] ARM: dts: qcom: Add initial IFC6540 board support

2014-09-02 Thread Georgi Djakov
: - This time add linux-arm-msm list to the CC. - Include a third patch for enabling the eMMC. Georgi Djakov (3): ARM: dts: qcom: Add initial IFC6540 board device tree ARM: dts: qcom: Enable serial port on IFC6540 boards ARM: dts: qcom: Add SDHC nodes for APQ8084 platform arch/arm/boot/dts

[PATCH v2 2/3] ARM: dts: qcom: Enable serial port on IFC6540 boards

2014-09-02 Thread Georgi Djakov
Enable the serial port on the IFC6540 boards. Signed-off-by: Georgi Djakov --- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8084-ifc6540.dts b/arch/arm/boot/dts/qcom-apq8084-ifc6540.dts index 4603e91..e41cb8a

Re: [PATCH] mmc: sdhci-msm: Make tuning block table endian agnostic

2014-09-03 Thread Georgi Djakov
o be an array of bytes instead of 32-bit words > so we can use memcmp() without needing to byte-swap every word > depending on the endianess of the CPU. > > Cc: Asutosh Das > Cc: Venkat Gopalakrishnan > Cc: Georgi Djakov > Fixes: 415b5a75da43 "mmc: sdhci-msm: Add platform_e

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 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 controlle

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. >>

[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 --- Documentation/devicetree/bindings/clock/qcom,a53cc | 25 +++ drivers/clk/qcom/Kconfig |8 + drivers/clk/qcom/Makefile

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

2015-07-24 Thread Georgi Djakov
to the PLL with the new rate once they're done. Add a hook that drivers can implement allowing them to return a 'safe parent' and 'safe frequency' that they can switch their parent to while the upstream source is reprogrammed to support this. Signed-off-by: Stephen

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

2015-07-24 Thread Georgi Djakov
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 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 --- drivers/clk

[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 --- drivers

[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 --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts

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

2015-07-09 Thread Georgi Djakov
emory for sending 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,

[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

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

2015-07-09 Thread Georgi Djakov
Add support for clocks that are controlled by the RPM processor on Qualcomm msm8916 based platforms. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 20 +++ drivers/clk/qcom/Makefile |1 + drivers/clk/qcom/gcc-msm8916.c

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

[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 Fixes: 3966fab8b6ab "clk: qcom: Add MSM8916 Global Clock Controller support" Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c |2 +- 1 file changed, 1 insertion(+),

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 t

[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 --- drivers/clk/qcom/gcc-msm8916.c | 388 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h

[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 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 --- drivers/clk/qcom/gcc-msm8916.c | 61 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2 files changed, 64

[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 --- 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-rcg.h b/drivers/clk

[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 --- drivers/clk/qcom/gcc-msm8916.c | 48 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2 files changed, 51 insertions

[PATCH v8 3/3] arm64: dts: qcom: msm8916: Use fixed factor xo clock

2016-04-14 Thread Georgi Djakov
, use fixed clocks registration until we have some support to deal with the this issue. Removing the generic rpmcc compatible is enough to switch back to fixed factor XO clock. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi |2 +- 1 file changed, 1 insertion(+), 1

[PATCH v8 1/3] clk: qcom: Add support for SMD-RPM Clocks

2016-04-14 Thread Georgi Djakov
/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 36 ++ drivers/clk/qcom/Kconfig | 16 + drivers/clk/qcom/Makefile |1 + drivers/clk/qcom

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

2016-04-14 Thread Georgi Djakov
This adds initial support for clocks controlled by the Resource Power Manager (RPM) processor on some Qualcomm SoCs, which use the qcom_rpm driver to communicate with RPM. Such platforms are apq8064 and msm8960. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt

[PATCH v8 0/3] Add initial support for RPM clocks

2016-04-14 Thread Georgi Djakov
clk-smd-rpm, also build it only when it is needed - suggested by Srini and Bjorn. * More detailed binding example. * Minor changes. Georgi Djakov (3): clk: qcom: Add support for SMD-RPM Clocks clk: qcom: Add support for RPM Clocks arm64: dts: qcom: msm8916: Use fixed factor xo clock

Re: [PATCH v5 1/6] clk: qcom: Add support for SMD-RPM Clocks

2015-12-07 Thread Georgi Djakov
On 3.12.15 г. 16:02, Georgi Djakov wrote: > This adds initial support for clocks controlled by the Resource > Power Manager (RPM) processor on some Qualcomm SoCs, which use > the qcom_smd_rpm driver to communicate with RPM. > Such platforms are msm8916, apq8084 and msm8974. >

[PATCH v4 3/5] clk: qcom: Add support for RPM Clocks

2015-11-19 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

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

2015-11-19 Thread Georgi Djakov
Add the RPM Clock Controller DT node and include the necessary header file for clocks. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916

[PATCH v4 1/5] clk: qcom: msm8916: Move xo and sleep clocks into DT

2015-11-19 Thread Georgi Djakov
Move the xo and sleep clocks to device-tree, instead of hard-coding them in the driver. This allows us to insert the RPM clocks (if they are enabled) in between the on-board oscillators and the actual clock. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 16

[PATCH v4 4/5] clk: qcom: Add RPM clock controller driver

2015-11-19 Thread Georgi Djakov
Add support for clocks that are controlled by the RPM processor on Qualcomm msm8916 based platforms. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 35 drivers/clk/qcom/Kconfig |8 + drivers/clk/qcom/Makefile

[PATCH v4 0/5] Add initial support for RPM clocks

2015-11-19 Thread Georgi Djakov
. * More detailed binding example. * Minor changes. Georgi Djakov (5): clk: qcom: msm8916: Move xo and sleep clocks into DT arm64: dts: qcom: msm8916: Add fixed rate on-board oscillator clk: qcom: Add support for RPM Clocks clk: qcom: Add RPM clock controller driver arm64: dts: qcom

[PATCH v4 2/5] arm64: dts: qcom: msm8916: Add fixed rate on-board oscillator

2015-11-19 Thread Georgi Djakov
Currently the rates of the xo and sleep clocks are hard-coded in the GCC driver, but this is a board layout description that actually should be in the DT. Moving them into DT also allows us to insert the RPM controlled clocks between the DT and GCC clocks. Signed-off-by: Georgi Djakov --- arch

[PATCH v5 0/6] Add initial support for RPM clocks

2015-12-03 Thread Georgi Djakov
- suggested by Srini and Bjorn. * More detailed binding example. * Minor changes. Georgi Djakov (6): clk: qcom: Add support for SMD-RPM Clocks arm64: dts: qcom: msm8916: Add fixed rate on-board oscillators arm64: dts: qcom: msm8916: Add RPMCC DT node clk: qcom: Add support for RPM Clocks arm: dts

[PATCH v5 2/6] arm64: dts: qcom: msm8916: Add fixed rate on-board oscillators

2015-12-03 Thread Georgi Djakov
Currently the rates of the xo and sleep clocks are hard-coded in the GCC driver, but this is a board layout description that actually should be in the DT. Moving them into DT also allows us to insert the RPM controlled clocks between the DT and GCC clocks. Signed-off-by: Georgi Djakov --- arch

[PATCH v5 6/6] arm: dts: qcom: apq8064: Add RPMCC DT node

2015-12-03 Thread Georgi Djakov
Add the RPM Clock Controller DT node. Signed-off-by: Georgi Djakov --- arch/arm/boot/dts/qcom-apq8064.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi index eb929f2693b2..0860fff6e4a7 100644 --- a/arch

[PATCH v5 4/6] clk: qcom: Add support for RPM Clocks

2015-12-03 Thread Georgi Djakov
This adds initial support for clocks controlled by the Resource Power Manager (RPM) processor on some Qualcomm SoCs, which use the qcom_rpm driver to communicate with RPM. Such platforms are apq8064 and msm8960. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt

[PATCH v5 5/6] arm: dts: qcom: apq8064: Add fixed rate on-board oscillators

2015-12-03 Thread Georgi Djakov
Currently the rates of the xo and sleep clocks are hard-coded in the GCC driver, but this is a board layout description that actually should be in the DT. Moving them into DT also allows us to insert the RPM controlled clocks between the DT and GCC clocks. Signed-off-by: Georgi Djakov --- arch

[PATCH v5 3/6] arm64: dts: qcom: msm8916: Add RPMCC DT node

2015-12-03 Thread Georgi Djakov
Add the RPM Clock Controller DT node and include the necessary header file for clocks. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916

[PATCH v5 1/6] clk: qcom: Add support for SMD-RPM Clocks

2015-12-03 Thread Georgi Djakov
/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 36 ++ drivers/clk/qcom/Kconfig | 11 + drivers/clk/qcom/Makefile |1 + drivers/clk/qcom

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

2015-12-14 Thread Georgi Djakov
/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 (3): clk: qcom: Add A53 PLL support clk: qcom: Add regmap mux-div clocks support clk: qcom: Add A53 clock driver

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

2015-12-14 Thread Georgi Djakov
CPU frequency scaling on platforms like MSM8916. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,a53cc.txt | 23 +++ drivers/clk/qcom/Kconfig |8 + drivers/clk/qcom/Makefile |1 + drivers/clk/qcom/a53cc.c

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

2015-12-14 Thread Georgi Djakov
Add support for hardware that can switch both parent clocks and 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 --- drivers/clk/qcom/Makefile

[PATCH v4 1/3] clk: qcom: Add A53 PLL support

2015-12-14 Thread Georgi Djakov
Add support for the PLL, which generates the higher range of CPU frequencies on MSM8916 platforms. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,a53-pll.txt | 18 drivers/clk/qcom/Kconfig |9 ++ drivers/clk/qcom/Makefile

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

2015-12-15 Thread Georgi Djakov
-rpm, also build it only when it is needed - suggested by Srini and Bjorn. * More detailed binding example. * Minor changes. Georgi Djakov (2): clk: qcom: Add support for SMD-RPM Clocks clk: qcom: Add support for RPM Clocks .../devicetree/bindings/clock/qcom,rpmcc.txt | 37

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

2015-12-15 Thread Georgi Djakov
This adds initial support for clocks controlled by the Resource Power Manager (RPM) processor on some Qualcomm SoCs, which use the qcom_rpm driver to communicate with RPM. Such platforms are apq8064 and msm8960. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt

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

2015-12-15 Thread Georgi Djakov
/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 36 ++ drivers/clk/qcom/Kconfig | 16 + drivers/clk/qcom/Makefile |1 + drivers/clk/qcom

Re: [PATCH] clk:gcc-msm8916: add missing mss_q6_bimc_axi clock

2015-12-15 Thread Georgi Djakov
Hi Srini, Thanks for the patch. On 12/12/2015 05:39 PM, Srinivas Kandagatla wrote: > This clock is required for loading the qdsp firmware. > > Signed-off-by: Srinivas Kandagatla > --- > drivers/clk/qcom/gcc-msm8916.c | 18 ++ > include/dt-bindings/clock/qcom,gcc-ms

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 >> >> Sometimes clocks can't accept their parent source turning off >> while the source is reprogrammed to a different rate. Most >> notably CPU clocks require

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

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 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: >>&

[PATCH v4] regulator: qcom-saw: Add support for SAW regulators

2016-02-09 Thread Georgi Djakov
The SAW (Subsystem Power Manager and Adaptive Voltage Scaling Wrapper) is part of the SPM subsystem. It is a hardware block in the Qualcomm chipsets that regulates the power to the CPU cores on platform such as apq8064, msm8974, apq8084 and others. Signed-off-by: Georgi Djakov --- Changes since

Re: [PATCH v4] regulator: qcom-saw: Add support for SAW regulators

2016-02-10 Thread Georgi Djakov
Hi Lina, Thanks for reviewing. On 02/10/2016 12:21 AM, Lina Iyer wrote: > On Tue, Feb 09 2016 at 06:13 -0700, Georgi Djakov wrote: [..] >> +#defineSPM_REG_STS_10x10 >> +#defineSPM_REG_VCTL0x14 >> +#defineSPM_REG_PMIC_DATA_0

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

2016-02-26 Thread Georgi Djakov
On 02/24/2016 09:15 PM, Stephen Boyd wrote: > On 02/24, Srinivas Kandagatla wrote: >> >> >> On 23/02/16 16:13, Georgi Djakov wrote: >>> +/* msm8916 */ >>> +#define RPM_XO_CLK_SRC 0 >>> +#define RPM_XO_A_CLK_SR

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

2016-02-23 Thread Georgi Djakov
/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt | 36 ++ drivers/clk/qcom/Kconfig | 16 + drivers/clk/qcom/Makefile |1 + drivers/clk/qcom

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

2016-02-23 Thread Georgi Djakov
This adds initial support for clocks controlled by the Resource Power Manager (RPM) processor on some Qualcomm SoCs, which use the qcom_rpm driver to communicate with RPM. Such platforms are apq8064 and msm8960. Signed-off-by: Georgi Djakov --- .../devicetree/bindings/clock/qcom,rpmcc.txt

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

2016-02-23 Thread Georgi Djakov
order to support other SMD RPM based platforms. Changes since v1 (https://lkml.org/lkml/2015/7/9/257): * Changed the driver name to clk-smd-rpm, also build it only when it is needed - suggested by Srini and Bjorn. * More detailed binding example. * Minor changes. Georgi Djakov (2): clk: qcom

[PATCH] arm64: dts: msm8916: Move smem below hwlock

2016-02-23 Thread Georgi Djakov
serial console as the RPM clocks are not registered yet.. Signed-off-by: Georgi Djakov --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi

Re: [PATCH] arm64: dts: msm8916: Move smem below hwlock

2016-02-23 Thread Georgi Djakov
On 23.02.16 г. 19:29, Srinivas Kandagatla wrote: > > > On 23/02/16 17:21, Georgi Djakov wrote: >> When the SMEM is probed it defers as it depends on the hardware lock, which >> is not available yet. But the SMD bus and RPM regulators and clocks depend >> on SMEM and

Re: [PATCH] arm64: dts: msm8916: Move smem below hwlock

2016-02-23 Thread Georgi Djakov
On 23.02.16 г. 21:28, Srinivas Kandagatla wrote: > > > On 23/02/16 18:47, Georgi Djakov wrote: >> On 23.02.16 г. 19:29, Srinivas Kandagatla wrote: >>> >>> >>> On 23/02/16 17:21, Georgi Djakov wrote: >>>> When the SMEM is probed it defers

Re: [PATCH] arm64: dts: msm8916: Move smem below hwlock

2016-02-24 Thread Georgi Djakov
On 02/23/2016 09:03 PM, Andy Gross wrote: > On Tue, Feb 23, 2016 at 08:47:56PM +0200, Georgi Djakov wrote: >> On 23.02.16 г. 19:29, Srinivas Kandagatla wrote: >>> >>> >>> On 23/02/16 17:21, Georgi Djakov wrote: >>>> When the SMEM is probed it

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

[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 --- arch/arm/configs/qcom_defconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion

[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 --- arch/arm/configs/multi_v7_defconfig |3 ++- 1 file changed, 2 insertions(+), 1 deletion

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

2014-10-10 Thread Georgi Djakov
ultimedia Clock Controller (MMCC) support") Signed-off-by: Georgi Djakov --- 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

[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 --- 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/multi_v7_defconfig

Re: [PATCH 1/3] clk: qcom: Add MSM8916 iommu clocks

2015-05-13 Thread Georgi Djakov
On 05/13/2015 10:36 AM, Stephen Boyd wrote: > On 05/12, Georgi Djakov wrote: >> Add support for the msm8916 TCU clocks that are needed for IOMMU. >> >> Signed-off-by: Georgi Djakov >> --- > > Applied to clk-next > Hi Stephen, Just got a report that this patc

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

2015-05-12 Thread Georgi Djakov
Add support for the msm8916 bimc clocks that are needed for GPU. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 58 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |3 ++ 2 files changed, 61 insertions(+) diff --git a/drivers/clk

[PATCH 3/3] clk: qcom: Add MSM8916 audio clocks

2015-05-12 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 --- drivers/clk/qcom/gcc-msm8916.c | 388 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h

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

2015-05-12 Thread Georgi Djakov
Add support for the msm8916 TCU clocks that are needed for IOMMU. Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c | 78 ++ include/dt-bindings/clock/qcom,gcc-msm8916.h |4 ++ 2 files changed, 82 insertions(+) diff --git a/drivers/clk

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

[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 --- Changes since v1: * Addressed comments from Stephen Boyd and Archit Taneja * Fixed

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 >> --- /de

[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 --- Changes since v2: * Use the generic sdhci bitfield defines, as the

[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 --- drivers/clk/qcom/clk-rcg.h | 11

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

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov --- 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/drivers/clk/qcom/gcc

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

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov --- 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 --- a/drivers/clk/qcom/gcc

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

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov --- 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/qcom/gcc-ipq806x.c

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

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov --- 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/qcom/gcc-msm8974.c

[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 --- 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 insertions(+), 11 deletions

[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 --- drivers/clk/qcom/clk-rcg.c | 62 +--- 1 file changed, 41 insertions(+), 21 deletions(-) diff

[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 7/9] clk: qcom: Convert msm8960 to parent_map tables

2015-03-18 Thread Georgi Djakov
Signed-off-by: Georgi Djakov --- 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 deletions(-) diff --git a

[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 --- drivers/clk/qcom/clk-rcg.c | 26

[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 --- .../devicetree/bindings/clock/qcom,gcc.txt |1 + include/dt-bindings/clock/qcom,gcc-msm8916.h | 156 include/dt-bindings/reset/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 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 --- drivers/clk/qcom/Kconfig |8 + drivers/clk/qcom/Makefile |1

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

2015-03-19 Thread Georgi Djakov
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 3/3] clk: qcom: Introduce parent_map tables

2015-03-19 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 --- drivers/clk/qcom/clk-rcg.c | 13

[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 --- drivers/clk/qcom/clk-rcg.c | 26

[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 --- drivers/clk/qcom/clk-rcg.c | 62 +--- 1 file changed, 41 insertions(+), 21 deletions(-) diff

[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 --- .../devicetree/bindings/clock/qcom,gcc.txt

<    1   2   3   4   5   6   7   8   9   10   >