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

2018-06-19 Thread Sricharan R
m-kernel/2015-March/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 ope

[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' regi

[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 --- drivers/clk/qcom/

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

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

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

[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: Signed-off

[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 .../devicetree/bi

[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 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 12/14] clk: qcom: Add safe switch hook for krait mux clocks

2018-06-19 Thread Sricharan R
itching 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-

[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 .../devicetr

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

[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 +++ drivers/clk/qcom/

[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 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 2/5] remoteproc: q6v5: Extract common resource handling

2018-05-31 Thread Sricharan R
urn ret; > + } > + > + q6v5->state = qcom_smem_state_get(&pdev->dev, "stop", &q6v5->stop_bit); > + if (IS_ERR(q6v5->state)) { > + dev_err(&pdev->dev, "failed to acquire stop state\n"); > + return

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

2018-05-31 Thread Sricharan R
adsp->ready_irq = ret; > - > - ret = adsp_request_irq(adsp, pdev, "handover", adsp_handover_interrupt); > - if (ret < 0) > - goto free_rproc; > - adsp->handover_irq = ret; > - > - ret = adsp_request_irq(adsp, pdev, "stop-a

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

2018-05-31 Thread Sricharan R
gt; > - disable_irq(qproc->handover_irq); > - > - if (!qproc->proxy_unvoted) { > + ret = qcom_q6v5_unprepare(&qproc->q6v5); > + if (ret) { > q6v5_clk_disable(qproc->dev, qproc->proxy_clks, >qproc-&

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 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 Hexagon V

[PATCH V7 05/12] ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file

2018-05-18 Thread Sricharan R
Reviewed-by: Abhishek Sahu Tested-by: Varadarajan Narayanan Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 19 +++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm/boot/dts

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

2018-05-18 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 Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 12 --- arch/arm64/boot/dts/qcom/ipq8074.dtsi

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

2018-05-18 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 V7 11/12] ARM: dts: ipq8074: Add pcie nodes

2018-05-18 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 V7 07/12] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data

2018-05-18 Thread Sricharan R
Add the common data for all dk07 based boards. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi diff

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

2018-05-18 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 V7 08/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-05-18 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 V7 06/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file

2018-05-18 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.dk04.1-c3.dts | 9 + 2 files changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts diff --git a

[PATCH V7 04/12] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi

2018-05-18 Thread Sricharan R
Add the common parts for the dk04 boards. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 111 ++ arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 2 files changed, 112 insertions(+), 1 deletion(-) create

[PATCH V7 02/12] ARM: dts: ipq4019: Add a few peripheral nodes

2018-05-18 Thread Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 2 +- arch/arm/boot/dts/qcom

[PATCH V7 03/12] ARM: dts: ipq4019: Change the max opp frequency

2018-05-18 Thread Sricharan R
The max opp frequency is 716MHZ. So update that. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index

[PATCH V7 01/12] ARM: dts: ipq4019: Add a default chosen node

2018-05-18 Thread Sricharan R
Add a 'chosen' node to select the serial console. This is needed when bootloaders do not pass the 'console=' bootargs. Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 8 arch/arm/boot/dts/qcom-ipq4019.dtsi

[PATCH V7 00/12] ARM: dts: ipq: updates to enable a few peripherals

2018-05-18 Thread Sricharan R
dressed all comments from Abhishek * Removed dk01-c2 and dk04-c5 spinand based boards as support for spinand is not complete * Based all patches on top of Andy's for-next branch [V1] * https://www.spinics.net/lists/arm-kernel/msg631318.html Sricharan R (12): ARM: dts: ipq4

Re: [PATCH v12 13/14] cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs

2018-08-20 Thread Sricharan R
Hi Rob, On 8/17/2018 8:39 PM, Rob Herring wrote: > Hi, this email is from Rob's (experimental) review bot. I found a couple > of common problems with your patch. Please see below. > > On Tue, 14 Aug 2018 17:42:32 +0530, Sricharan R wrote: >> The kryo cpufreq driver reads

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

2018-10-23 Thread Sricharan R
Hi Niklas, On 10/22/2018 9:00 PM, Niklas Cassel wrote: > On Mon, Oct 22, 2018 at 09:39:03AM +0530, Sricharan R wrote: >> Hi Stephen, >> >> On 10/18/2018 1:46 AM, Stephen Boyd wrote: >>> Quoting Stephen Boyd (2018-10-17 08:44:12) >>>> Quoting Sricharan R

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

2018-10-21 Thread Sricharan R
Hi Stephen, On 10/18/2018 1:46 AM, Stephen Boyd wrote: > Quoting Stephen Boyd (2018-10-17 08:44:12) >> Quoting Sricharan R (2018-09-20 06:03:31) >>> >>> >>> On 9/20/2018 1:54 AM, Craig wrote: >>>> Yup, this patch seems to have fixed the hi

[PATCH V2 0/6] i2c: qup: Add support for v2 tags and bam dma

2015-04-06 Thread Sricharan R
agon board eeprom client on i2c bus1 [V2] Addressed comments from Ivan T. Ivanov, Andy Gross [v1] Initial Version Andy Gross (1): i2c: qup: Add V2 tags support Sricharan R (5): i2c: qup: Change qup_wait_writeready function to use for all timeouts i2c: qup: Add bam dma capabilities i2c: qup

[PATCH V2 1/6] i2c: qup: Change qup_wait_writeready function to use for all timeouts

2015-04-06 Thread Sricharan R
qup_wait_writeready waits only on a output fifo empty event. Change the same function to accept the event and data length to wait as parameters. This way the same function can be used for timeouts in otherplaces as well. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 30

[PATCH V2 3/6] i2c: qup: Add bam dma capabilities

2015-04-06 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R --- [v2] Addressed comments from Ivan T. Ivanov drivers/i2c/busses/i2c-qup.c | 371 ++- 1 file changed, 366 insertions(+), 5 deletion

[PATCH V2 5/6] dts: msm8974: Add blsp2_bam dma node

2015-04-06 Thread Sricharan R
Signed-off-by: Sricharan R --- [v2] Used macros for interrupts property. arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 2d11641..c2e8711 100644

[PATCH V2 6/6] dts: msm8974: Add dma channels for blsp2_i2c1 node

2015-04-06 Thread Sricharan R
Signed-off-by: Sricharan R --- [v2] Changed dma channel names as per comments. arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index c2e8711..5cb0772 100644 --- a/arch/arm/boot

[PATCH V2 2/6] i2c: qup: Add V2 tags support

2015-04-06 Thread Sricharan R
upport for the same. For each block a data_write/read tag and data_len tag is added to the output fifo. For the final block of data write_stop/read_stop tag is used. Signed-off-by: Andy Gross Signed-off-by: Sricharan R --- [v2] Addressed comments from Ivan T. Ivanov drivers/i2c/busses/i2c-q

[PATCH V2 4/6] i2c: qup: Transfer every i2c_msg in i2c_msgs without stop

2015-04-06 Thread Sricharan R
port for the same. This is required for some clients like touchscreen which keeps incrementing counts across individual transfers and 'STOP' bit inbetween resets the counter, which is not required. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 199 +

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-14 Thread Sricharan R
Hi Ivan, On 04/14/2015 08:46 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Sat, 2015-04-11 at 12:39 +0530, Sricharan R wrote: From: Andy Gross QUP from version 2.1.1 onwards, supports a new format of i2c command tags. Tag codes instructs the controller to perform a operation like read/write

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-15 Thread Sricharan R
Hi Ivan, On 04/15/2015 02:19 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Wed, 2015-04-15 at 12:09 +0530, Sricharan R wrote: +/* frequency definitions for high speed and max speed */ +#define I2C_QUP_CLK_FAST_FREQ 100 This is fast mode, if I am not mistaken. ya, up to 1MHZ

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-15 Thread Sricharan R
Hi Ivan, Sorry resending again, because wrapping seemed to be somehow wrong in my previous response. On 04/15/2015 02:19 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Wed, 2015-04-15 at 12:09 +0530, Sricharan R wrote: +/* frequency definitions for high speed and max speed */ +#define

Re: [PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-16 Thread Sricharan R
Hi Ivan, On 04/16/2015 02:06 PM, Ivan T. Ivanov wrote: Hi Sricharan, On Wed, 2015-04-15 at 20:14 +0530, Sricharan R wrote: +#define QUP_I2C_MX_CONFIG_DURING_RUN BIT(31) Could you explain what is this for? This is a new feature in the V2 version of the controller, to

[PATCH V3 0/6] i2c: qup: Add support for v2 tags and bam dma

2015-04-11 Thread Sricharan R
agon board eeprom client on i2c bus1 [V3] Added support to coalesce each i2c_msg in i2c_msgs for fifo and block mode in Patch 2. Also addressed further code comments. [V2] Addressed comments from Ivan T. Ivanov, Andy Gross [v1] Initial Version Andy Gross (1): i2c: qup: Add V2 tags support Sric

[PATCH V3 1/6] i2c: qup: Change qup_wait_writeready function to use for all timeouts

2015-04-11 Thread Sricharan R
qup_wait_writeready waits only on a output fifo empty event. Change the same function to accept the event and data length to wait as parameters. This way the same function can be used for timeouts in otherplaces as well. Signed-off-by: Sricharan R --- [v3] Addressed comments from Andy Gross

[PATCH V3 6/6] dts: msm8974: Add dma channels for blsp2_i2c1 node

2015-04-11 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 2c26151..d741856 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom

[PATCH V3 5/6] dts: msm8974: Add blsp2_bam dma node

2015-04-11 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index e265ec1..2c26151 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi

[PATCH V3 2/6] i2c: qup: Add V2 tags support

2015-04-11 Thread Sricharan R
upport for the same. For each block a data_write/read tag and data_len tag is added to the output fifo. For the final block of data write_stop/read_stop tag is used. Signed-off-by: Andy Gross Signed-off-by: Sricharan R --- [V3] Addressed comments from Andy Gross to coalesce each i2c_msg i

[PATCH V3 4/6] i2c: qup: Transfer every i2c_msg in i2c_msgs without stop

2015-04-11 Thread Sricharan R
port for the same. This is required for some clients like touchscreen which keeps incrementing counts across individual transfers and 'STOP' bit inbetween resets the counter, which is not required. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 200 +

[PATCH V3 3/6] i2c: qup: Add bam dma capabilities

2015-04-11 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R --- [V3] Addressed comments from Andy Gross to use macros for qup_i2c_wait_ready function. drivers/i2c/busses/i2c-qup.c | 415 +

Re: [PATCH V3 5/6] dts: msm8974: Add blsp2_bam dma node

2015-04-12 Thread Sricharan R
Hi, On 04/12/2015 03:42 AM, Sergei Shtylyov wrote: Hello. On 04/11/2015 10:09 AM, Sricharan R wrote: Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b

[PATCH] iommu/arm-smmu: Fix bug in ARM_SMMU_FEAT_TRANS_OPS condition check

2015-06-23 Thread Sricharan R
Patch 'fix ARM_SMMU_FEAT_TRANS_OPS condition' changed the check for ARM_SMMU_FEAT_TRANS_OPS to be based on presence of stage1 check, but used (id & ID0_ATOSNS) instead of !(id & ID0_ATOSNS). Fix it here. Signed-off-by: Sricharan R --- drivers/iommu/arm-smmu.c | 2 +- 1 file ch

Re: [PATCH V6 3/5] remoteproc: qcom: Split the head and tail of the q5v5-pil rproc reset function

2018-05-22 Thread Sricharan R
Hi Vinod, Thanks for the review. On 5/18/2018 5:52 PM, Vinod wrote: > On 14-05-18, 16:16, Sricharan R wrote: > >> +static int q6v5_reset(struct q6v5 *qproc) >> +{ >> +u32 ret; >> +int val, i; >> + >> +/* Assert resets, stop c

Re: [PATCH V6 5/5] remoteproc: qcom: Add q6v5-wcss rproc ops

2018-05-22 Thread Sricharan R
Hi, On 5/18/2018 5:59 PM, Vinod wrote: > On 14-05-18, 16:16, Sricharan R wrote: > >> +static int q6v5_wcss_start(struct rproc *rproc) >> +{ >> +struct q6v5 *qproc = rproc->priv; >> +int ret = 0; > > Superfluous initialization > ok. >

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

2018-05-23 Thread Sricharan R
operations ended >> up being line wrapped and harder to read using some modify(reg, mask, >> val) helper. That said, the function isn't very pretty in it's current >> state either... > > Agreed :) and i thought modify make help it make better > >> One

Re: [PATCH v8 14/15] cpufreq: Add module to register cpufreq on Krait CPUs

2018-02-27 Thread Sricharan R
Hi Gregory, On 2/27/2018 8:28 PM, Gregory CLEMENT wrote: > Hi Sricharan, > > On mar., févr. 27 2018, Sricharan R wrote: > >> From: Stephen Boyd >> >> Register a cpufreq-generic device whenever we detect that a >> "qcom,krait" compatible CPU

Re: [PATCH v4 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-04-03 Thread Sricharan R
Hi Viresh, On 4/3/2018 9:53 AM, Viresh Kumar wrote: > On 03-04-18, 08:11, Sricharan R wrote: >> Right, i was adding a similar one for krait cores [1]. There is code common >> in the >> init sequence across both (little). Do you suggest to make them common ? > >

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] 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: [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 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/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 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 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
is m 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

[PATCH V6 01/12] ARM: dts: ipq4019: Add a default chosen node

2018-05-16 Thread Sricharan R
Add a 'chosen' node to select the serial console. This is needed when bootloaders do not pass the 'console=' bootargs. Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 8 arch/arm/boot/dts/qcom-ipq4019.dtsi

[PATCH V6 02/12] ARM: dts: ipq4019: Add a few peripheral nodes

2018-05-16 Thread Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 2 +- arch/arm/boot/dts/qcom

[PATCH V6 00/12] ARM: dts: ipq: updates to enable a few peripherals

2018-05-16 Thread Sricharan R
dk01-c2 and dk04-c5 spinand based boards as support for spinand is not complete * Based all patches on top of Andy's for-next branch [V1] * https://www.spinics.net/lists/arm-kernel/msg631318.html Sricharan R (12): ARM: dts: ipq4019: Add a default chosen node ARM: dts: ipq4

[PATCH V6 04/12] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi

2018-05-16 Thread Sricharan R
Add the common parts for the dk04 boards. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 111 ++ arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 2 files changed, 112 insertions(+), 1 deletion(-) create

[PATCH V6 06/12] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file

2018-05-16 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.dk04.1-c3.dts | 9 + 2 files changed, 10 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts diff --git a

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

2018-05-16 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 Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 156 +- 1 file changed

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

2018-05-16 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 V6 12/12] ARM: dts: ipq8074: Enable few peripherals for hk01 board

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

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

2018-05-16 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 V6 07/12] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data

2018-05-16 Thread Sricharan R
Add the common data for all dk07 based boards. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi diff

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

2018-05-16 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 V6 05/12] ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file

2018-05-16 Thread Sricharan R
Reviewed-by: Abhishek Sahu Tested-by: Varadarajan Narayanan Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 19 +++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm/boot/dts

[PATCH V6 03/12] ARM: dts: ipq4019: Change the max opp frequency

2018-05-16 Thread Sricharan R
The max opp frequency is 716MHZ. So update that. Reviewed-by: Abhishek Sahu Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index

Re: [RFC PATCH 2/9] cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs

2019-04-08 Thread Sricharan R
Hi Niklas, On 4/4/2019 10:39 AM, Niklas Cassel wrote: > From: Sricharan R > > The kryo cpufreq driver reads the nvmem cell and uses that data to > populate the opps. There are other qcom cpufreq socs like krait which > does similar thing. Except for the interpretation of the re

Re: [PATCH V5 2/4] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP

2014-02-25 Thread Sricharan R
Hi Tony, On Wednesday 05 February 2014 07:41 PM, Sricharan R wrote: > Tony, > > On Wednesday 05 February 2014 06:41 PM, Sricharan R wrote: >> On Tuesday 04 February 2014 09:44 PM, Thomas Gleixner wrote: >>> On Mon, 3 Feb 2014, Sricharan R wrote: >>>>> I al

[PATCH V3 3/7] ARM: DTS: DRA: Add crossbar device binding

2013-11-05 Thread Sricharan R
only one controller's input line. The crossbar device is used to map a peripheral input to a free mpu's interrupt controller line. Cc: Benoit Cousson Cc: Santosh Shilimkar Cc: Rajendra Nayak Cc: Tony Lindgren Signed-off-by: Sricharan R --- arch/arm/boot/dts/dra7.dtsi |8

[PATCH V3 0/7] DRIVERS: IRQCHIP: Add support for crossbar IP

2013-11-05 Thread Sricharan R
x-omap/msg99540.html Sricharan R (7): DRIVERS: IRQCHIP: IRQ-GIC: Add support for routable irqs DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP ARM: DTS: DRA: Add crossbar device binding ARM: DTS: DRA: Replace peripheral interrupt numbers with crossbar inputs ARM: DTS: DRA

[PATCH V3 7/7] ARM: DRA: Enable Crossbar IP support for DRA7XX

2013-11-05 Thread Sricharan R
Enable the crossbar IP support for DRA7xx soc. Cc: Santosh Shilimkar Cc: Rajendra Nayak Cc: Tony Lindgren Signed-off-by: Sricharan R --- arch/arm/mach-omap2/Kconfig|1 + arch/arm/mach-omap2/omap4-common.c |4 2 files changed, 5 insertions(+) diff --git a/arch/arm/mach

[PATCH V3 2/7] DRIVERS: IRQCHIP: CROSSBAR: Add support for Crossbar IP

2013-11-05 Thread Sricharan R
t, so that it is setup to handle the irqchip callbacks. Cc: Thomas Gleixner Cc: Linus Walleij Cc: Santosh Shilimkar Cc: Russell King Cc: Tony Lindgren Cc: Rajendra Nayak Cc: Marc Zyngier Cc: Grant Likely Cc: Rob Herring Signed-off-by: Sricharan R Acked-by: Kumar Gala (for DT binding po

[PATCH V3 6/7] ARM: OMAP4+: Correct Wakeup-gen code to use physical irq number

2013-11-05 Thread Sricharan R
and wakeup gen code cannot rely on these numbers to access the irq registers. Instead use the hwirq element of the irq_data which represent the physical irq number. Cc: Santosh Shilimkar Cc: Rajendra Nayak Cc: Tony Lindgren Signed-off-by: Sricharan R --- arch/arm/mach-omap2/omap-wakeupgen.c

[PATCH V3 5/7] ARM: DTS: DRA7: Add routable-irqs property for gic node

2013-11-05 Thread Sricharan R
r Cc: Rajendra Nayak Cc: Tony Lindgren Signed-off-by: Sricharan R --- arch/arm/boot/dts/dra7.dtsi |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index 8b93b7a..fd58a09 100644 --- a/arch/arm/boot/dts/dra7.dtsi +++ b/arch/arm/boot/dts

[PATCH V3 4/7] ARM: DTS: DRA: Replace peripheral interrupt numbers with crossbar inputs

2013-11-05 Thread Sricharan R
Cousson Cc: Santosh Shilimkar Cc: Rajendra Nayak Cc: Tony Lindgren Signed-off-by: Sricharan R --- arch/arm/boot/dts/dra7.dtsi | 86 +-- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7

[PATCH V3 1/7] DRIVERS: IRQCHIP: IRQ-GIC: Add support for routable irqs

2013-11-05 Thread Sricharan R
hould be implemented to get a free irq and to configure the IP to route it. Cc: Thomas Gleixner Cc: Linus Walleij Cc: Santosh Shilimkar Cc: Russell King Cc: Tony Lindgren Cc: Rajendra Nayak Cc: Marc Zyngier Cc: Grant Likely Cc: Rob Herring Signed-off-by: Sricharan R --- [V2] Added de

Re: [RESEND Patch 0/9] dts pending patches for TI omap

2014-03-05 Thread Sricharan R
5c3b0740fda4684dae4: >> >> ARM: DTS: DRA7: Add routable-irqs property for gic node (2014-03-03 >> 19:53:25 +0530) > > Thanks applying all except for the crossbar ones into > omap-for-v3.15/dt. > > Please resend the last three patches once the dependencies > are merged

Re: [patch] irqchip/irq-crossbar: not allocating enough memory

2014-04-03 Thread Sricharan R
sizeof(struct cb_device *), GFP_KERNEL); > + cb = kzalloc(sizeof(*cb), GFP_KERNEL); > > if (!cb) > return -ENOMEM; Yes. correct. Thanks for the catch. Acked-by: Sricharan R Regards, Sricharan -- To unsubscribe from this list: send the line "unsubs

Re: [PATCH V5 0/4] DRIVERS: IRQCHIP: Add support for crossbar IP

2014-01-08 Thread Sricharan R
Hi Tony, On Wednesday 08 January 2014 05:25 AM, Tony Lindgren wrote: > * Tony Lindgren [140107 15:10]: >> * Sricharan R [131229 22:30]: >>> On Friday 27 December 2013 07:19 PM, Sricharan R wrote: >>>> On Thursday 26 December 2013 11:14 PM, Santosh Shilimkar wrote:

Re: [PATCH V3 7/7] ARM: DRA: Enable Crossbar IP support for DRA7XX

2013-11-11 Thread Sricharan R
Hi Rajendra, On Tuesday 12 November 2013 11:11 AM, Rajendra Nayak wrote: > On Tuesday 05 November 2013 06:44 PM, Sricharan R wrote: >> Enable the crossbar IP support for DRA7xx soc. >> >> Cc: Santosh Shilimkar >> Cc: Rajendra Nayak >> Cc: Tony Lindgr

Re: [RFC PATCH 0/6] DRIVERS: IRQCHIP: Add support for crossbar IP

2013-10-15 Thread Sricharan R
Hi Thomas, On Tuesday 01 October 2013 08:37 PM, Santosh Shilimkar wrote: > On Tuesday 01 October 2013 10:53 AM, Rob Herring wrote: >> On 10/01/2013 08:57 AM, Santosh Shilimkar wrote: >>> On Tuesday 01 October 2013 09:48 AM, Rob Herring wrote: >>>> On 10/01/20

[PATCH V2 0/7] DRIVERS: IRQCHIP: Add support for crossbar IP

2013-10-30 Thread Sricharan R
it updating the DRA7.dtsi file for adding the routable-irqs property in to a separate patch Previous discussions that led to this is at https://lkml.org/lkml/2013/9/18/540 The V1 post of these patches is at https://lkml.org/lkml/2013/9/30/283 Sricharan R (7): DRIVERS: IRQCHIP:

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