[PATCH 03/14] clk: qcom: Add HFPLL driver

2018-08-13 Thread Sricharan R
From: Stephen Boyd On some devices (MSM8974 for example), the HFPLLs are instantiated within the Krait processor subsystem as separate register regions. Add a driver for these PLLs so that we can provide HFPLL clocks for use by the system. Cc: Signed-off-by: Stephen Boyd ---

[PATCH 01/14] ARM: Add Krait L2 register accessor functions

2018-08-13 Thread Sricharan R
From: Stephen Boyd Krait CPUs have a handful of L2 cache controller registers that live behind a cp15 based indirection register. First you program the indirection register (l2cpselr) to point the L2 'window' register (l2cpdr) at what you want to read/write. Then you read/write the 'window'

[PATCH 02/14] clk: qcom: Add support for High-Frequency PLLs (HFPLLs)

2018-08-13 Thread Sricharan R
From: Stephen Boyd HFPLLs are the main frequency source for Krait CPU clocks. Add support for changing the rate of these PLLs. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-hfpll.c | 244 +++

[PATCH 01/14] ARM: Add Krait L2 register accessor functions

2018-08-13 Thread Sricharan R
From: Stephen Boyd Krait CPUs have a handful of L2 cache controller registers that live behind a cp15 based indirection register. First you program the indirection register (l2cpselr) to point the L2 'window' register (l2cpdr) at what you want to read/write. Then you read/write the 'window'

[PATCH 02/14] clk: qcom: Add support for High-Frequency PLLs (HFPLLs)

2018-08-13 Thread Sricharan R
From: Stephen Boyd HFPLLs are the main frequency source for Krait CPU clocks. Add support for changing the rate of these PLLs. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-hfpll.c | 244 +++

[PATCH V11 00/14] Krait clocks + Krait CPUfreq

2018-08-13 Thread Sricharan R
32608.html [4] https://lwn.net/Articles/740994/ [5] https://lkml.org/lkml/2017/12/19/537 Sricharan R (3): clk: qcom: Add safe switch hook for krait mux clocks cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs cpufreq: qcom: Add support for krait based so

[PATCH V11 00/14] Krait clocks + Krait CPUfreq

2018-08-13 Thread Sricharan R
32608.html [4] https://lwn.net/Articles/740994/ [5] https://lkml.org/lkml/2017/12/19/537 Sricharan R (3): clk: qcom: Add safe switch hook for krait mux clocks cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs cpufreq: qcom: Add support for krait based so

Re: [PATCH 4/5] arm: dts: qcom: Add ipq8064-ap161.dts

2018-08-06 Thread Sricharan R
Hi Rob, On 8/7/2018 2:05 AM, Rob Herring wrote: > On Fri, Aug 3, 2018 at 8:10 AM Sricharan R wrote: >> >> Add a new board dts for ipq8064-ap161. >> >> Signed-off-by: Sricharan R >> --- >> Documentation/devicetree/bindings/arm/qcom.tx

Re: [PATCH 4/5] arm: dts: qcom: Add ipq8064-ap161.dts

2018-08-06 Thread Sricharan R
Hi Rob, On 8/7/2018 2:05 AM, Rob Herring wrote: > On Fri, Aug 3, 2018 at 8:10 AM Sricharan R wrote: >> >> Add a new board dts for ipq8064-ap161. >> >> Signed-off-by: Sricharan R >> --- >> Documentation/devicetree/bindings/arm/qcom.tx

[PATCH 4/5] arm: dts: qcom: Add ipq8064-ap161.dts

2018-08-03 Thread Sricharan R
Add a new board dts for ipq8064-ap161. Signed-off-by: Sricharan R --- Documentation/devicetree/bindings/arm/qcom.txt | 2 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq8064-ap161.dts | 7 +++ 3 files changed, 10 insertions(+) create mode 100644

[PATCH 3/5] arm: dts: qcom: Move common nodes to ipq8064-v.1.0.dtsi

2018-08-03 Thread Sricharan R
The nodes in ipq8064-ap148.dts currently are common with boards that we will add next. So move the common data to ipq8064-v.1.0.dtsi. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 83 ++-- arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi | 65

[PATCH 4/5] arm: dts: qcom: Add ipq8064-ap161.dts

2018-08-03 Thread Sricharan R
Add a new board dts for ipq8064-ap161. Signed-off-by: Sricharan R --- Documentation/devicetree/bindings/arm/qcom.txt | 2 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq8064-ap161.dts | 7 +++ 3 files changed, 10 insertions(+) create mode 100644

[PATCH 3/5] arm: dts: qcom: Move common nodes to ipq8064-v.1.0.dtsi

2018-08-03 Thread Sricharan R
The nodes in ipq8064-ap148.dts currently are common with boards that we will add next. So move the common data to ipq8064-v.1.0.dtsi. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 83 ++-- arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi | 65

[PATCH 5/5] arm: dts: qcom: Add led and gpio-button nodes to ipq8064 boards

2018-08-03 Thread Sricharan R
Add the dt nodes for enabling the leds and gpio-buttons. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 8 + arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi | 60 arch/arm/boot/dts/qcom-ipq8064.dtsi | 19 ++ 3 files changed

[PATCH 0/5] arm: dts: qcom: Few updates for ipq8064

2018-08-03 Thread Sricharan R
Adding pcie,sdcc nodes and a new board file ipq8064-ap161 Sricharan R (5): arm: dts: qcom: Add pcie nodes for ipq8064 arm: dts: qcom: Add sdcc nodes for ipq8064 arm: dts: qcom: Move common nodes to ipq8064-v.1.0.dtsi arm: dts: qcom: Add ipq8064-ap161.dts arm: dts: qcom: Add led and gpio

[PATCH 5/5] arm: dts: qcom: Add led and gpio-button nodes to ipq8064 boards

2018-08-03 Thread Sricharan R
Add the dt nodes for enabling the leds and gpio-buttons. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 8 + arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi | 60 arch/arm/boot/dts/qcom-ipq8064.dtsi | 19 ++ 3 files changed

[PATCH 0/5] arm: dts: qcom: Few updates for ipq8064

2018-08-03 Thread Sricharan R
Adding pcie,sdcc nodes and a new board file ipq8064-ap161 Sricharan R (5): arm: dts: qcom: Add pcie nodes for ipq8064 arm: dts: qcom: Add sdcc nodes for ipq8064 arm: dts: qcom: Move common nodes to ipq8064-v.1.0.dtsi arm: dts: qcom: Add ipq8064-ap161.dts arm: dts: qcom: Add led and gpio

[PATCH 2/5] arm: dts: qcom: Add sdcc nodes for ipq8064

2018-08-03 Thread Sricharan R
The relevant data for sdcc. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 76 + 1 file changed, 76 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index e02d588..e78618e 100644

[PATCH 1/5] arm: dts: qcom: Add pcie nodes for ipq8064

2018-08-03 Thread Sricharan R
Adding the pcie nodes and pins. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 182 1 file changed, 182 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 70790ac..e02d588 100644

[PATCH 2/5] arm: dts: qcom: Add sdcc nodes for ipq8064

2018-08-03 Thread Sricharan R
The relevant data for sdcc. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 76 + 1 file changed, 76 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index e02d588..e78618e 100644

[PATCH 1/5] arm: dts: qcom: Add pcie nodes for ipq8064

2018-08-03 Thread Sricharan R
Adding the pcie nodes and pins. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 182 1 file changed, 182 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index 70790ac..e02d588 100644

Re: [PATCH] remoteproc: qcom: fix Q6V5_WCSS dependencies

2018-07-19 Thread Sricharan R
xes: 3a3d4163e0bf ("remoteproc: qcom: Introduce Hexagon V5 based WCSS > driver") > Signed-off-by: Arnd Bergmann Oops, missed it. Sorry. Acked-by: Sricharan R Regards, Sricharan > --- > drivers/remoteproc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --gi

Re: [PATCH] remoteproc: qcom: fix Q6V5_WCSS dependencies

2018-07-19 Thread Sricharan R
xes: 3a3d4163e0bf ("remoteproc: qcom: Introduce Hexagon V5 based WCSS > driver") > Signed-off-by: Arnd Bergmann Oops, missed it. Sorry. Acked-by: Sricharan R Regards, Sricharan > --- > drivers/remoteproc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --gi

Re: [PATCH v10 00/14] Krait clocks + Krait CPUfreq

2018-06-27 Thread Sricharan R
Hi Thierry, On 6/27/2018 3:01 PM, Thierry Escande wrote: > Hi Sricharan, > > On 19/06/2018 15:45, Sricharan R wrote: >> Sricharan R (2): >>    clk: qcom: Add safe switch hook for krait mux clocks >>    dt-bindings: cpufreq: Document operating-points-v2-krait

Re: [PATCH v10 00/14] Krait clocks + Krait CPUfreq

2018-06-27 Thread Sricharan R
Hi Thierry, On 6/27/2018 3:01 PM, Thierry Escande wrote: > Hi Sricharan, > > On 19/06/2018 15:45, Sricharan R wrote: >> Sricharan R (2): >>    clk: qcom: Add safe switch hook for krait mux clocks >>    dt-bindings: cpufreq: Document operating-points-v2-krait

[PATCH] arm: dts: qcom: Fix 'interrupts = <>' property to use proper macros

2018-06-20 Thread Sricharan R
Fix all nodes to use proper GIC_* macros for the interrupt type and the interrupt trigger settings to avoid the boot warnings. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 41 ++--- 1 file changed, 24 insertions(+), 17 deletions(-) diff

[PATCH] arm: dts: qcom: Fix 'interrupts = <>' property to use proper macros

2018-06-20 Thread Sricharan R
Fix all nodes to use proper GIC_* macros for the interrupt type and the interrupt trigger settings to avoid the boot warnings. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 41 ++--- 1 file changed, 24 insertions(+), 17 deletions(-) diff

Re: [PATCH v10 13/14] cpufreq: Add module to register cpufreq on Krait CPUs

2018-06-20 Thread sricharan
er as well by Viresh. Now that kryo is merged, i will check once and see if they can be nicely merged. Regards, Sricharan

Re: [PATCH v10 13/14] cpufreq: Add module to register cpufreq on Krait CPUs

2018-06-20 Thread sricharan
er as well by Viresh. Now that kryo is merged, i will check once and see if they can be nicely merged. Regards, Sricharan

Re: [PATCH v10 13/14] cpufreq: Add module to register cpufreq on Krait CPUs

2018-06-20 Thread sricharan
with the hfpll driver that runs on 8974. I will try to test on that hardware. That said, just realized that i missed a minor comment from Bjorn. Will anyway update it. Regards, Sricharan On Tue, Jun 19, 2018 at 07:15:24PM +0530, Sricharan R wrote: From: Stephen Boyd Register

Re: [PATCH v10 13/14] cpufreq: Add module to register cpufreq on Krait CPUs

2018-06-20 Thread sricharan
with the hfpll driver that runs on 8974. I will try to test on that hardware. That said, just realized that i missed a minor comment from Bjorn. Will anyway update it. Regards, Sricharan On Tue, Jun 19, 2018 at 07:15:24PM +0530, Sricharan R wrote: From: Stephen Boyd Register

[PATCH v10 02/14] clk: qcom: Add support for High-Frequency PLLs (HFPLLs)

2018-06-19 Thread Sricharan R
From: Stephen Boyd HFPLLs are the main frequency source for Krait CPU clocks. Add support for changing the rate of these PLLs. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-hfpll.c | 244 +++

[PATCH v10 02/14] clk: qcom: Add support for High-Frequency PLLs (HFPLLs)

2018-06-19 Thread Sricharan R
From: Stephen Boyd HFPLLs are the main frequency source for Krait CPU clocks. Add support for changing the rate of these PLLs. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-hfpll.c | 244 +++

[PATCH v10 06/14] clk: qcom: Add IPQ806X's HFPLLs

2018-06-19 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on IPQ806X devices. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-ipq806x.c | 82 ++ 1 file changed, 82 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c

[PATCH v10 06/14] clk: qcom: Add IPQ806X's HFPLLs

2018-06-19 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on IPQ806X devices. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-ipq806x.c | 82 ++ 1 file changed, 82 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c

[PATCH v10 08/14] clk: qcom: Add KPSS ACC/GCC driver

2018-06-19 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. For CPUfreq purposes probe these devices and expose a mux clock that chooses between PXO and PLL8. Cc: Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Kconfig

[PATCH v10 08/14] clk: qcom: Add KPSS ACC/GCC driver

2018-06-19 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. For CPUfreq purposes probe these devices and expose a mux clock that chooses between PXO and PLL8. Cc: Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Kconfig

[PATCH v10 09/14] dt-bindings: arm: Document qcom,kpss-gcc

2018-06-19 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. Documenting the bindings here. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- [v10] Updated to add clocks and clock-names property newly

[PATCH v10 09/14] dt-bindings: arm: Document qcom,kpss-gcc

2018-06-19 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. Documenting the bindings here. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- [v10] Updated to add clocks and clock-names property newly

[PATCH v10 12/14] clk: qcom: Add safe switch hook for krait mux clocks

2018-06-19 Thread Sricharan R
to the safe parent in the PRE_RATE_CHANGE notifier and back to the original parent in the POST_RATE_CHANGE notifier. Signed-off-by: Sricharan R --- drivers/clk/qcom/clk-krait.c | 2 ++ drivers/clk/qcom/clk-krait.h | 3 +++ drivers/clk/qcom/krait-cc.c | 56

[PATCH v10 12/14] clk: qcom: Add safe switch hook for krait mux clocks

2018-06-19 Thread Sricharan R
to the safe parent in the PRE_RATE_CHANGE notifier and back to the original parent in the POST_RATE_CHANGE notifier. Signed-off-by: Sricharan R --- drivers/clk/qcom/clk-krait.c | 2 ++ drivers/clk/qcom/clk-krait.h | 3 +++ drivers/clk/qcom/krait-cc.c | 56

[PATCH v10 13/14] cpufreq: Add module to register cpufreq on Krait CPUs

2018-06-19 Thread Sricharan R
From: Stephen Boyd Register a cpufreq-generic device whenever we detect that a "qcom,krait" compatible CPU is present in DT. Acked-by: Viresh Kumar [Sricharan: updated to use dev_pm_opp_set_prop_name and nvmem apis] Signed-off-by: Sricharan R [Thierry Escande: upd

[PATCH v10 13/14] cpufreq: Add module to register cpufreq on Krait CPUs

2018-06-19 Thread Sricharan R
From: Stephen Boyd Register a cpufreq-generic device whenever we detect that a "qcom,krait" compatible CPU is present in DT. Acked-by: Viresh Kumar [Sricharan: updated to use dev_pm_opp_set_prop_name and nvmem apis] Signed-off-by: Sricharan R [Thierry Escande: upd

[PATCH v10 14/14] dt-bindings: cpufreq: Document operating-points-v2-krait-cpu

2018-06-19 Thread Sricharan R
-cpufreq driver reads the efuse value from the SoC to provide the required information that is used to determine the voltage and current value for each OPP of operating-points-v2 table when it is parsed by the OPP framework. Reviewed-by: Rob Herring Acked-by: Viresh Kumar Signed-off-by: Sricharan

[PATCH v10 14/14] dt-bindings: cpufreq: Document operating-points-v2-krait-cpu

2018-06-19 Thread Sricharan R
-cpufreq driver reads the efuse value from the SoC to provide the required information that is used to determine the voltage and current value for each OPP of operating-points-v2 table when it is parsed by the OPP framework. Reviewed-by: Rob Herring Acked-by: Viresh Kumar Signed-off-by: Sricharan

[PATCH v10 11/14] dt-bindings: clock: Document qcom,krait-cc

2018-06-19 Thread Sricharan R
From: Stephen Boyd The Krait clock controller controls the krait CPU and the L2 clocks consisting a primary mux and secondary mux. Add document for that. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- [v10] updated to include clocks and clock-names property newly

[PATCH v10 10/14] clk: qcom: Add Krait clock controller driver

2018-06-19 Thread Sricharan R
From: Stephen Boyd The Krait CPU clocks are made up of a primary mux and secondary mux for each CPU and the L2, controlled via cp15 accessors. For Kraits within KPSSv1 each secondary mux accepts a different aux source, but on KPSSv2 each secondary mux accepts the same aux source. Cc:

[PATCH v10 10/14] clk: qcom: Add Krait clock controller driver

2018-06-19 Thread Sricharan R
From: Stephen Boyd The Krait CPU clocks are made up of a primary mux and secondary mux for each CPU and the L2, controlled via cp15 accessors. For Kraits within KPSSv1 each secondary mux accepts a different aux source, but on KPSSv2 each secondary mux accepts the same aux source. Cc:

[PATCH v10 11/14] dt-bindings: clock: Document qcom,krait-cc

2018-06-19 Thread Sricharan R
From: Stephen Boyd The Krait clock controller controls the krait CPU and the L2 clocks consisting a primary mux and secondary mux. Add document for that. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- [v10] updated to include clocks and clock-names property newly

[PATCH v10 07/14] clk: qcom: Add support for Krait clocks

2018-06-19 Thread Sricharan R
From: Stephen Boyd The Krait clocks are made up of a series of muxes and a divider that choose between a fixed rate clock and dedicated HFPLLs for each CPU. Instead of using mmio accesses to remux parents, the Krait implementation exposes the remux control via cp15 registers. Support these

[PATCH v10 07/14] clk: qcom: Add support for Krait clocks

2018-06-19 Thread Sricharan R
From: Stephen Boyd The Krait clocks are made up of a series of muxes and a divider that choose between a fixed rate clock and dedicated HFPLLs for each CPU. Instead of using mmio accesses to remux parents, the Krait implementation exposes the remux control via cp15 registers. Support these

[PATCH v10 04/14] dt-bindings: clock: Document qcom,hfpll

2018-06-19 Thread Sricharan R
From: Stephen Boyd Adds bindings document for qcom,hfpll instantiated within the Krait processor subsystem as separate register region. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- [v10] Updated to add clocks and clock-names properties newly

[PATCH v10 05/14] clk: qcom: Add MSM8960/APQ8064's HFPLLs

2018-06-19 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on MSM8960 and APQ8064 devices. Acked-by: Rob Herring (bindings) Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-msm8960.c | 172 +++ include/dt-bindings/clock/qcom,gcc-msm8960.h | 2 + 2 files

[PATCH v10 04/14] dt-bindings: clock: Document qcom,hfpll

2018-06-19 Thread Sricharan R
From: Stephen Boyd Adds bindings document for qcom,hfpll instantiated within the Krait processor subsystem as separate register region. Reviewed-by: Rob Herring Signed-off-by: Stephen Boyd --- [v10] Updated to add clocks and clock-names properties newly

[PATCH v10 05/14] clk: qcom: Add MSM8960/APQ8064's HFPLLs

2018-06-19 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on MSM8960 and APQ8064 devices. Acked-by: Rob Herring (bindings) Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-msm8960.c | 172 +++ include/dt-bindings/clock/qcom,gcc-msm8960.h | 2 + 2 files

[PATCH v10 03/14] clk: qcom: Add HFPLL driver

2018-06-19 Thread Sricharan R
From: Stephen Boyd On some devices (MSM8974 for example), the HFPLLs are instantiated within the Krait processor subsystem as separate register regions. Add a driver for these PLLs so that we can provide HFPLL clocks for use by the system. Cc: Signed-off-by: Stephen Boyd ---

[PATCH v10 03/14] clk: qcom: Add HFPLL driver

2018-06-19 Thread Sricharan R
From: Stephen Boyd On some devices (MSM8974 for example), the HFPLLs are instantiated within the Krait processor subsystem as separate register regions. Add a driver for these PLLs so that we can provide HFPLL clocks for use by the system. Cc: Signed-off-by: Stephen Boyd ---

[PATCH v10 01/14] ARM: Add Krait L2 register accessor functions

2018-06-19 Thread Sricharan R
From: Stephen Boyd Krait CPUs have a handful of L2 cache controller registers that live behind a cp15 based indirection register. First you program the indirection register (l2cpselr) to point the L2 'window' register (l2cpdr) at what you want to read/write. Then you read/write the 'window'

[PATCH v10 01/14] ARM: Add Krait L2 register accessor functions

2018-06-19 Thread Sricharan R
From: Stephen Boyd Krait CPUs have a handful of L2 cache controller registers that live behind a cp15 based indirection register. First you program the indirection register (l2cpselr) to point the L2 'window' register (l2cpdr) at what you want to read/write. Then you read/write the 'window'

[PATCH v10 00/14] Krait clocks + Krait CPUfreq

2018-06-19 Thread Sricharan R
332615.html [3] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/332608.html [4] https://lwn.net/Articles/740994/ [5] https://lkml.org/lkml/2017/12/19/537 Sricharan R (2): clk: qcom: Add safe switch hook for krait mux clocks dt-bindings: cpufreq: Document operating-points-v2-kra

[PATCH v10 00/14] Krait clocks + Krait CPUfreq

2018-06-19 Thread Sricharan R
332615.html [3] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/332608.html [4] https://lwn.net/Articles/740994/ [5] https://lkml.org/lkml/2017/12/19/537 Sricharan R (2): clk: qcom: Add safe switch hook for krait mux clocks dt-bindings: cpufreq: Document operating-points-v2-kra

[PATCH V2] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-07 Thread Sricharan R
) Signed-off-by: Sricharan R [bjorn: Rewrote as a separate driver, intead of extending q6v5_pil.c] Signed-off-by: Bjorn Andersson --- [v2] Fixed Kconfig to remove SMD dependency and addressed Vinod's comments. .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 7 +- drivers/remoteproc

[PATCH V2] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-07 Thread Sricharan R
) Signed-off-by: Sricharan R [bjorn: Rewrote as a separate driver, intead of extending q6v5_pil.c] Signed-off-by: Bjorn Andersson --- [v2] Fixed Kconfig to remove SMD dependency and addressed Vinod's comments. .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 7 +- drivers/remoteproc

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-07 Thread Sricharan R
and wcss > is y. Why don't we see link fail for glink being n? Yes I understand that > platform uses wcss but am curious how that works out :) For glink being n, the stub functions gets linked, and not for glink=m. Regards, Sricharan -- "QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-07 Thread Sricharan R
and wcss > is y. Why don't we see link fail for glink being n? Yes I understand that > platform uses wcss but am curious how that works out :) For glink being n, the stub functions gets linked, and not for glink=m. Regards, Sricharan -- "QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-07 Thread Sricharan R
Hi Bjorn, On 6/7/2018 11:18 AM, Bjorn Andersson wrote: > On Wed 06 Jun 22:29 PDT 2018, Sricharan R wrote: > >> Hi Bjorn, >> >> On 6/7/2018 9:54 AM, Bjorn Andersson wrote: >>> On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: >>> >>>> On 06-06-18, 0

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-07 Thread Sricharan R
Hi Bjorn, On 6/7/2018 11:18 AM, Bjorn Andersson wrote: > On Wed 06 Jun 22:29 PDT 2018, Sricharan R wrote: > >> Hi Bjorn, >> >> On 6/7/2018 9:54 AM, Bjorn Andersson wrote: >>> On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: >>> >>>> On 06-06-18, 0

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Sricharan R
Hi Bjorn, On 6/7/2018 9:54 AM, Bjorn Andersson wrote: > On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: > >> On 06-06-18, 09:17, Bjorn Andersson wrote: >>> On Tue 05 Jun 05:56 PDT 2018, Sricharan R wrote: >>> >>>> Hi Vinod, >>>> >>&g

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Sricharan R
Hi Bjorn, On 6/7/2018 9:54 AM, Bjorn Andersson wrote: > On Wed 06 Jun 21:11 PDT 2018, Vinod wrote: > >> On 06-06-18, 09:17, Bjorn Andersson wrote: >>> On Tue 05 Jun 05:56 PDT 2018, Sricharan R wrote: >>> >>>> Hi Vinod, >>>> >>&g

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Sricharan R
Hi Vinod, On 6/6/2018 12:19 PM, Vinod wrote: > Hi Sricharan, > > On 06-06-18, 12:09, Sricharan R wrote: > >>>>>> +config QCOM_Q6V5_WCSS >>>>>> +tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader" >>>>>&

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Sricharan R
Hi Vinod, On 6/6/2018 12:19 PM, Vinod wrote: > Hi Sricharan, > > On 06-06-18, 12:09, Sricharan R wrote: > >>>>>> +config QCOM_Q6V5_WCSS >>>>>> +tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader" >>>>>&

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Sricharan R
Hi Vinod, On 6/5/2018 10:10 PM, Vinod Koul wrote: > On 05-06-18, 18:26, Sricharan R wrote: >> Hi Vinod, >> >> On 6/5/2018 11:49 AM, Vinod wrote: >>> On 05-06-18, 11:12, Sricharan R wrote: >>> >>>> +config QCOM_Q6V5_WCSS >>>> +

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-06 Thread Sricharan R
Hi Vinod, On 6/5/2018 10:10 PM, Vinod Koul wrote: > On 05-06-18, 18:26, Sricharan R wrote: >> Hi Vinod, >> >> On 6/5/2018 11:49 AM, Vinod wrote: >>> On 05-06-18, 11:12, Sricharan R wrote: >>> >>>> +config QCOM_Q6V5_WCSS >>>> +

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-05 Thread Sricharan R
Hi Vinod, On 6/5/2018 11:49 AM, Vinod wrote: > On 05-06-18, 11:12, Sricharan R wrote: > >> +config QCOM_Q6V5_WCSS >> +tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader" >> +depends on OF && ARCH_QCOM >> +depend

Re: [PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-05 Thread Sricharan R
Hi Vinod, On 6/5/2018 11:49 AM, Vinod wrote: > On 05-06-18, 11:12, Sricharan R wrote: > >> +config QCOM_Q6V5_WCSS >> +tristate "Qualcomm Hexagon based WCSS Peripheral Image Loader" >> +depends on OF && ARCH_QCOM >> +depend

[PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-04 Thread Sricharan R
) Signed-off-by: Sricharan R [bjorn: Rewrote as a separate driver, intead of extending q6v5_pil.c] Signed-off-by: Bjorn Andersson --- Fixed review comments from Vinod. Retained the reg read/update/write sequence instead of modify for readability In q6v5_wcss_powerdown SSCAON_CONFIG bits

[PATCH] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-04 Thread Sricharan R
) Signed-off-by: Sricharan R [bjorn: Rewrote as a separate driver, intead of extending q6v5_pil.c] Signed-off-by: Bjorn Andersson --- Fixed review comments from Vinod. Retained the reg read/update/write sequence instead of modify for readability In q6v5_wcss_powerdown SSCAON_CONFIG bits

Re: [RFC PATCH 2/5] remoteproc: q6v5: Extract common resource handling

2018-06-01 Thread Sricharan R
Hi Sibi, On 6/1/2018 8:48 PM, Sibi S wrote: > Hi Sricharan, > > On 06/01/2018 11:46 AM, Sricharan R wrote: >> Hi Bjorn, >>    Thanks for this much needed consolidation. >> >> On 5/23/2018 10:50 AM, Bjorn Andersson wrote: >>> Shared between all He

Re: [RFC PATCH 2/5] remoteproc: q6v5: Extract common resource handling

2018-06-01 Thread Sricharan R
Hi Sibi, On 6/1/2018 8:48 PM, Sibi S wrote: > Hi Sricharan, > > On 06/01/2018 11:46 AM, Sricharan R wrote: >> Hi Bjorn, >>    Thanks for this much needed consolidation. >> >> On 5/23/2018 10:50 AM, Bjorn Andersson wrote: >>> Shared between all He

Re: [PATCH v9 01/15] ARM: Add Krait L2 register accessor functions

2018-06-01 Thread Sricharan R
Hi Stephen, On 5/31/2018 1:11 PM, Stephen Boyd wrote: > Quoting Sricharan R (2018-05-30 21:57:20) >> Hi Stephen, >> >> On 5/30/2018 9:25 PM, Stephen Boyd wrote: >>> Quoting Sricharan R (2018-05-24 22:40:11) >>>> Hi Bjorn, >>>> >>>>

Re: [PATCH v9 01/15] ARM: Add Krait L2 register accessor functions

2018-06-01 Thread Sricharan R
Hi Stephen, On 5/31/2018 1:11 PM, Stephen Boyd wrote: > Quoting Sricharan R (2018-05-30 21:57:20) >> Hi Stephen, >> >> On 5/30/2018 9:25 PM, Stephen Boyd wrote: >>> Quoting Sricharan R (2018-05-24 22:40:11) >>>> Hi Bjorn, >>>> >>>>

Re: [RFC PATCH 4/5] remoteproc: qcom: q6v5-pil: Use common q6v5 helpers

2018-06-01 Thread Sricharan R
disable_irq(qproc->handover_irq); > - > - if (!qproc->proxy_unvoted) { > + ret = qcom_q6v5_unprepare(>q6v5); > + if (ret) { > q6v5_clk_disable(qproc->dev, qproc->proxy_clks, > qproc->proxy_clk_count); >

Re: [RFC PATCH 4/5] remoteproc: qcom: q6v5-pil: Use common q6v5 helpers

2018-06-01 Thread Sricharan R
disable_irq(qproc->handover_irq); > - > - if (!qproc->proxy_unvoted) { > + ret = qcom_q6v5_unprepare(>q6v5); > + if (ret) { > q6v5_clk_disable(qproc->dev, qproc->proxy_clks, > qproc->proxy_clk_count); >

Re: [RFC PATCH 3/5] remoteproc: qcom: adsp: Use common q6v5 helpers

2018-06-01 Thread Sricharan R
ret = adsp_request_irq(adsp, pdev, "ready", adsp_ready_interrupt); > - if (ret < 0) > - goto free_rproc; > - adsp->ready_irq = ret; > - > - ret = adsp_request_irq(adsp, pdev, "handover", adsp_handover_interrupt); > - if (ret < 0)

Re: [RFC PATCH 3/5] remoteproc: qcom: adsp: Use common q6v5 helpers

2018-06-01 Thread Sricharan R
ret = adsp_request_irq(adsp, pdev, "ready", adsp_ready_interrupt); > - if (ret < 0) > - goto free_rproc; > - adsp->ready_irq = ret; > - > - ret = adsp_request_irq(adsp, pdev, "handover", adsp_handover_interrupt); > - if (ret < 0)

Re: [RFC PATCH 2/5] remoteproc: q6v5: Extract common resource handling

2018-06-01 Thread Sricharan R
top state\n"); > + return PTR_ERR(q6v5->state); > + } > + > + return 0; > +} > diff --git a/drivers/remoteproc/qcom_q6v5.h b/drivers/remoteproc/qcom_q6v5.h > new file mode 100644 > index ..7ac92c1e0f49 > --- /dev/null > +++

Re: [RFC PATCH 2/5] remoteproc: q6v5: Extract common resource handling

2018-06-01 Thread Sricharan R
top state\n"); > + return PTR_ERR(q6v5->state); > + } > + > + return 0; > +} > diff --git a/drivers/remoteproc/qcom_q6v5.h b/drivers/remoteproc/qcom_q6v5.h > new file mode 100644 > index ..7ac92c1e0f49 > --- /dev/null > +++

Re: [PATCH v9 01/15] ARM: Add Krait L2 register accessor functions

2018-05-30 Thread Sricharan R
Hi Stephen, On 5/30/2018 9:25 PM, Stephen Boyd wrote: > Quoting Sricharan R (2018-05-24 22:40:11) >> Hi Bjorn, >> >> On 5/24/2018 11:09 PM, Bjorn Andersson wrote: >>> On Tue 06 Mar 06:38 PST 2018, Sricharan R wrote: >>> >>>> From: Stephen Bo

Re: [PATCH v9 01/15] ARM: Add Krait L2 register accessor functions

2018-05-30 Thread Sricharan R
Hi Stephen, On 5/30/2018 9:25 PM, Stephen Boyd wrote: > Quoting Sricharan R (2018-05-24 22:40:11) >> Hi Bjorn, >> >> On 5/24/2018 11:09 PM, Bjorn Andersson wrote: >>> On Tue 06 Mar 06:38 PST 2018, Sricharan R wrote: >>> >>>> From: Stephen Bo

Re: [RFC PATCH 5/5] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-05-29 Thread Sricharan R
Hi Bjorn, On 5/29/2018 9:37 AM, Bjorn Andersson wrote: > On Wed 23 May 07:48 PDT 2018, Sricharan R wrote: >> On 5/23/2018 1:07 PM, Vinod wrote: >>> On 22-05-18, 23:58, Bjorn Andersson wrote: >>>> On Tue 22 May 23:05 PDT 2018, Vinod wrote: >>>>&

Re: [RFC PATCH 5/5] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-05-29 Thread Sricharan R
Hi Bjorn, On 5/29/2018 9:37 AM, Bjorn Andersson wrote: > On Wed 23 May 07:48 PDT 2018, Sricharan R wrote: >> On 5/23/2018 1:07 PM, Vinod wrote: >>> On 22-05-18, 23:58, Bjorn Andersson wrote: >>>> On Tue 22 May 23:05 PDT 2018, Vinod wrote: >>>>&

[PATCH v8 11/12] ARM: dts: ipq8074: Add pcie nodes

2018-05-25 Thread Sricharan R
The driver/phy support for ipq8074 is available now. So enabling the nodes in DT. Reviewed-by: Abhishek Sahu <abs...@codeaurora.org> Acked-by: Bjorn Andersson <bjorn.anders...@linaro.org> Signed-off-by: Sricharan R <sricha...@codeaurora.org> --- arch/arm64/boot/dts/qcom/

[PATCH v8 08/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-05-25 Thread Sricharan R
Reviewed-by: Abhishek Sahu <abs...@codeaurora.org> Signed-off-by: Sricharan R <sricha...@codeaurora.org> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 64 + 2 files changed, 65 insertions(+)

[PATCH v8 11/12] ARM: dts: ipq8074: Add pcie nodes

2018-05-25 Thread Sricharan R
The driver/phy support for ipq8074 is available now. So enabling the nodes in DT. Reviewed-by: Abhishek Sahu Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 157 +- 1 file changed, 156 insertions(+), 1 deletion

[PATCH v8 08/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-05-25 Thread Sricharan R
Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 64 + 2 files changed, 65 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts

[PATCH v8 12/12] ARM: dts: ipq8074: Enable few peripherals for hk01 board

2018-05-25 Thread Sricharan R
Reviewed-by: Abhishek Sahu <abs...@codeaurora.org> Acked-by: Bjorn Andersson <bjorn.anders...@linaro.org> Signed-off-by: Sricharan R <sricha...@codeaurora.org> --- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 54 +++ 1 file changed, 54 insertions(+)

[PATCH v8 09/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file

2018-05-25 Thread Sricharan R
Reviewed-by: Abhishek Sahu <abs...@codeaurora.org> Acked-by: Bjorn Andersson <bjorn.anders...@linaro.org> Signed-off-by: Sricharan R <sricha...@codeaurora.org> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.

[PATCH v8 12/12] ARM: dts: ipq8074: Enable few peripherals for hk01 board

2018-05-25 Thread Sricharan R
Reviewed-by: Abhishek Sahu Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 54 +++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts b/arch/arm64/boot/dts/qcom/ipq8074-hk01

[PATCH v8 09/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file

2018-05-25 Thread Sricharan R
Reviewed-by: Abhishek Sahu Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts | 25 + 2 files changed, 26 insertions(+) create mode 100644 arch/arm/boot/dts

[PATCH v8 10/12] ARM: dts: ipq8074: Add peripheral nodes

2018-05-25 Thread Sricharan R
Add serial, i2c, bam, spi, qpic peripheral nodes. While here, fix the PMU node's irq trigger to avoid the boot warnings from GIC. Reviewed-by: Abhishek Sahu <abs...@codeaurora.org> Signed-off-by: Sricharan R <sricha...@codeaurora.org> --- arch/arm64/boot/dts/qcom/ipq8074-hk

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