[PATCH v2 4/4] clk: renesas: r8a77980-cpg-mssr: add RPC clocks

2018-12-04 Thread Sergei Shtylyov
Describe the RPCSRC internal clock and the RPC[D2] clocks derived from it, as well as the RPC-IF module clock, in the R-Car V3H (R8A77980) CPG/MSSR driver. Signed-off-by: Sergei Shtylyov --- Changes in version 2: - moved the RPCSRC clock support to the R-Car gen3 CPG patch adding the RPC

[PATCH v2 3/4] clk: renesas: rcar-gen3-cpg: add RPC clocks

2018-12-04 Thread Sergei Shtylyov
, we can add the RPC[D2] clocks derived from it and controlled by the RPCCKCR register on all the R-Car gen3 SoCs except V3M (R8A77970); the composite clock driver seems handy for this task, using the spinlock added in the previous patch... Signed-off-by: Sergei Shtylyov --- Changes in version 2

[PATCH v2 2/4] clk: renesas: rcar-gen3-cpg: add spinlock

2018-12-04 Thread Sergei Shtylyov
Protect the CPG register read-modify-write sequence with a spinlock. Signed-off-by: Sergei Shtylyov --- Changes in version 2: - new patch. drivers/clk/renesas/rcar-gen3-cpg.c |8 1 file changed, 8 insertions(+) Index: renesas-drivers/drivers/clk/renesas/rcar-gen3-cpg.c

[PATCH v2 1/4] clk: renesas: rcar-gen3-cpg: factor out cpg_reg_modify()

2018-12-04 Thread Sergei Shtylyov
There's quite often repeated sequence of a CPG register read-modify-write, so it seems worth factoring it out into a function -- this saves 68 bytes of the object code (AArch64 gcc 4.8.5) and simplifies protecting all such sequences with a spinlock in the next patch... Signed-off-by: Sergei

[PATCH v2 0/4] Renesas R8A77980 CPG/MSSR RPC clock support

2018-12-04 Thread Sergei Shtylyov
Hello! Here's the set of 4 patches against the 'clk-renesas' branch of Geert Uytterhoeven's 'renesas-drivers.git' repo. We're adding support for the R8A77980 CPG/MSSR RPC clocks... [1/4] clk: renesas: rcar-gen3-cpg: factor out cpg_reg_modify() [2/4] clk: renesas: rcar-gen3-cpg: add spinlock

Re: [PATCH] clk: renesas: rcar-gen3: set state when registering SD clocks

2018-11-29 Thread Sergei Shtylyov
Hello! On 11/29/2018 03:15 AM, Niklas Söderlund wrote: > The driver tries to figure out which state a SD clock is in when the > clock is register instead of setting a known state. This can be Registered? > problematic for two reasons. > > 1. If the clock driver can't figure out the state

Re: [PATCH 4/4] clk: renesas: r8a77980-cpg-mssr: add RPC clocks

2018-11-27 Thread Sergei Shtylyov
ent parent > clock :-( Indeed... >> Add the RPC[D2] clocks (derived from this internal clock) and the RPC-IF >> module clock as well... >> >> Signed-off-by: Sergei Shtylyov > >> --- renesas-drivers.orig/drivers/clk/renesas/r8a77980-cpg-

Re: [PATCH 2/4] clk: renesas: rcar-gen3-cpg: add RPC clock

2018-11-27 Thread Sergei Shtylyov
On 11/23/2018 03:55 PM, Geert Uytterhoeven wrote: >> Add the RPC clock for the R-Car gen3 SoCs -- this clock is controlled by >> the RPCCKCR register on all the R-Car gen3 SoCs except V3M (R8A77970). >> >> Signed-off-by: Sergei Shtylyov > > Thanks for your patch!

Re: [PATCH 06/22] ARM: dts: r8a7744-iwg20m: Enable SDHI10 controller

2018-11-27 Thread Sergei Shtylyov
Hello! On 11/27/2018 02:56 PM, Biju Das wrote: > Enable the SDHI0 controller on iWave RZ/G1N Qseven System On Module. Why your subject has SDHI10? > Signed-off-by: Biju Das [...] MBR, Sergei

[PATCH] sata_rcar: fix deferred probing

2018-11-24 Thread Sergei Shtylyov
o IRQ" (thus polling) anyway... Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq") Signed-off-by: Sergei Shtylyov --- This patch is against the 'master' branch of Jens Axboe's 'linux-block.git' repo. drivers/ata/sata_rcar.c |4 +++- 1 file changed, 3 inser

[PATCH 4/4] clk: renesas: r8a77980-cpg-mssr: add RPC clocks

2018-11-22 Thread Sergei Shtylyov
... Signed-off-by: Sergei Shtylyov --- drivers/clk/renesas/r8a77980-cpg-mssr.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) Index: renesas-drivers/drivers/clk/renesas/r8a77980-cpg-mssr.c

[PATCH 3/4] clk: renesas: rcar-gen3-cpg: add RPCD2 clock

2018-11-22 Thread Sergei Shtylyov
Add the RPCD2 clock for the R-Car gen3 SoCs -- this clock is en/disabled via the RPCCKCR register on all the R-Car gen3 SoCs except V3M (R8A77970) and has a fixed divisor of 2 (applied to the RPC clock). Signed-off-by: Sergei Shtylyov --- drivers/clk/renesas/rcar-gen3-cpg.c | 87

[PATCH 2/4] clk: renesas: rcar-gen3-cpg: add RPC clock

2018-11-22 Thread Sergei Shtylyov
Add the RPC clock for the R-Car gen3 SoCs -- this clock is controlled by the RPCCKCR register on all the R-Car gen3 SoCs except V3M (R8A77970). Signed-off-by: Sergei Shtylyov --- drivers/clk/renesas/rcar-gen3-cpg.c | 118 drivers/clk/renesas/rcar-gen3

[PATCH 1/4] clk: renesas: rcar-gen3-cpg: factor out cpg_reg_modify()

2018-11-22 Thread Sergei Shtylyov
There's quite often repeated sequence of a CPG register read-modify-write, so it seems worth factoring it out into a function -- this saves 68 bytes of the object code already (AArch64 gcc 4.8.5) and will save more with the next patches... Signed-off-by: Sergei Shtylyov --- drivers/clk/renesas

[PATCH 0/4] Renesas R8A77980 CPG/MSSR RPC clock support

2018-11-22 Thread Sergei Shtylyov
Hello! Here's the set of 4 patches against the 'clk-renesas' branch of Geert Uytterhoeven's 'renesas-drivers.git' repo. We're adding support for the RPC clocks... [1/4] clk: renesas: rcar-gen3-cpg: factor out cpg_reg_modify() [2/4] clk: renesas: rcar-gen3-cpg: add RPC clock [3/4] clk: renesas:

[PATCH] pinctrl: sh-pfc: r8a77980: add QSPI pins, groups, and functions

2018-11-19 Thread Sergei Shtylyov
, renamed the patch.] Signed-off-by: Dmitry Shifrin Signed-off-by: Sergei Shtylyov --- The patch is against the 'sh-pfc' branch of Geert's 'renesas-drivers.git' repo. drivers/pinctrl/sh-pfc/pfc-r8a77980.c | 70 ++ 1 file changed, 70 insertions(+) Index

Re: [PATCH] mmc: tmio: introduce mask for 'always 1' bits

2018-11-19 Thread Sergei Shtylyov
Hello! On 11/19/2018 04:13 PM, Wolfram Sang wrote: > Some variants (namely Renesas SDHI) have bits in the STATS and IRQ_MASK > registers which are 'always 1' and should be written as such. Introduce > a seperate mask for this and apply it whenever such a register is Separate. :-) > written.

[PATCH] pinctrl: sh-pfc: r8a77970: add QSPI pins, groups, and functions

2018-11-06 Thread Sergei Shtylyov
, renamed the patch.] Signed-off-by: Dmitry Shifrin Signed-off-by: Sergei Shtylyov --- The patch is against the 'sh-pfc' branch of Geert's 'renesas-drivers.git' repo. drivers/pinctrl/sh-pfc/pfc-r8a77970.c | 70 ++ 1 file changed, 70 insertions(+) Index

Re: [PATCH] clk: renesas: r8a77970: add RPC clock

2018-11-04 Thread Sergei Shtylyov
Oops, the subject should have "clocks", not "clock".

[PATCH] clk: renesas: r8a77970: add RPC clock

2018-11-02 Thread Sergei Shtylyov
On R-Car V3M (R8A77970), the RPC/RPCD2 clocks are output by the common divider. Describe them, as well as the RPC-IF module clock. Signed-off-by: Sergei Shtylyov --- This patch is against the 'clk-renesas' branch of Geert Uytterhoeven's 'renesas-drivers.git' repo. drivers/clk/renesas/r8a77970

Re: [PATCH 2/2] clk: renesas: rcar-gen3: add HS400 quirk for SD clock

2018-11-02 Thread Sergei Shtylyov
Hello! On 11/01/2018 02:25 AM, Niklas Söderlund wrote: > From: Niklas Söderlund > > On H3 (ES1.0,ES2.0) and M3-W (ES1.0,ES1.1) the clock setting for HS400 > needs a quirk to function properly. The reason for the quirk is that > there are two settings which produces same divider vale for the

Re: [PATCH] arm64: dts: renesas: condor: switch from EtherAVB to GEther

2018-10-31 Thread Sergei Shtylyov
rd still can't mount NFS (unless an EtherAVB PHY extension board is plugged in). Switch from EtherAVB to GEther at last! Fixes: 8091788f3d38 ("arm64: dts: renesas: condor: add EtherAVB support") Signed-off-by: Sergei Shtylyov Thanks, applied for v4.21. Wait, this was intended as a fix for 4.20... MBR, Sergei

Re: [PATCH] thermal: rcar_gen3_thermal: Fix does not have interrupts counting

2018-10-30 Thread Sergei Shtylyov
Hello! On 10/30/2018 12:10 PM, Nguyen An Hoan wrote: > From: Hoan Nguyen An > > This patch fixes thermal interrupts that did not happen when temprature > changed. Temperature. > Add the function rcar_gen3_thermal_update_threshold(), this function is used > to > calculate the value

Re: [PATCH] drm: rcar-du: Re-update the DSYSR register value for start/stop

2018-10-22 Thread Sergei Shtylyov
Hello! On 22.10.2018 9:30, Nguyen An Hoan wrote: From: Hoan Nguyen An From previous commit 0521ccb "drm: rcar-du: Cache DSYSR value to ensure known initial value" When you cite an commit, at least 12 digits of SHA1 are needed, and the summary needs to enclosed in (""), no just "".

Re: [PATCH 03/03] arm: dts: Include SoC name in DTSI for sh73a0

2018-10-22 Thread Sergei Shtylyov
Hello! 2 patches with the same name? On 21.10.2018 21:21, Magnus Damm wrote: From: Magnus Damm Update the Emma Mobile EV2 DTSI to include product name. Shouldn't this be in the subject instead of sh73a0? Signed-off-by: Magnus Damm [...] MBR, Sergei

[PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add MSIOF support

2018-10-19 Thread Sergei Shtylyov
Describe MSIOF in the R8A779{7|8}0 device trees. The DMA props are omitted for R8A77980 as the RT-DMAC isn't supported (yet?)... Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against

Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TMU support

2018-10-18 Thread Sergei Shtylyov
Hello! On 09/24/2018 11:13 PM, Sergei Shtylyov wrote: > Describe TMUs in the R8A779{7|8}0 device trees. > > Based on the original (and large) patches by Vladimir Barinov. > > Signed-off-by: Vladimir Barinov > Signed-off-by: Sergei Shtylyov > > --- > This patch is

[PATCH] arm64: dts: renesas: condor: switch from EtherAVB to GEther

2018-10-18 Thread Sergei Shtylyov
PHY extension board is plugged in). Switch from EtherAVB to GEther at last! Fixes: 8091788f3d38 ("arm64: dts: renesas: condor: add EtherAVB support") Signed-off-by: Sergei Shtylyov --- The patch is against Linus' 'linux.git' repo -- coulan't find a fitting brancxh in Simon Horman's 'ren

[PATCH] arm64: dts: renesas: r8a779{7|8}0: add MSIOF support

2018-10-16 Thread Sergei Shtylyov
Describe MSIOF in the R8A779{7|8}0 device trees. The DMA props are deliberately omitted as the MSIOF DMA doesn't work on R8A77970 (due to IPMMU issue) and the RT-DMAC isn't supported on R8A77980. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20181015-v4.19-rc8

[PATCH] dt-bindings: spi: sh-msiof: document R8A779{7|8}0 bindings

2018-10-16 Thread Sergei Shtylyov
Document the R-Car V3{M|H} (R8A779{7|8}0) SoCs in the Renesas MSIOF bindings. Signed-off-by: Sergei Shtylyov --- The patch is against the 'for-next' branch of Mark Brown's 'spi.git' repo. Documentation/devicetree/bindings/spi/sh-msiof.txt |2 ++ 1 file changed, 2 insertions(+) Index: spi

[PATCH] spi: sh-msiof: fix deferred probing

2018-10-12 Thread Sergei Shtylyov
rm_get_irq() and remove the bogus "platform" from the error message, while at it... Fixes: 9ec36cafe43b ("of/irq: do irq resolution in platform_get_irq") Signed-off-by: Sergei Shtylyov --- The patch is against the 'for-linus' branch of Mark Brown's 'spi.git' repo. drivers/spi

Re: [PATCH v2] arm64: dts: renesas: r8a77970: add thermal support

2018-10-12 Thread Sergei Shtylyov
On 10/12/2018 02:21 PM, Simon Horman wrote: >>> Describe THS/CIVM in the R8A77970 device tree. >>> >>> Based on the original (and large) patches by Vladimir Barinov. >>> >>> Signed-off-by: Vladimir Barinov >>> Signed-off-by: Sergei Shtyly

[PATCH v2] arm64: dts: renesas: r8a77980: add thermal support

2018-10-10 Thread Sergei Shtylyov
Describe THS/CIVM in the R8A77980 device trees. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo. Changes in version 2: - renamed the thermal device node label; - renamed the thermal zone nodes; - added

Re: [PATCH v2 2/3] mmc: renesas_sdhi_internal_dmac: Add R7S9210 support

2018-10-10 Thread Sergei Shtylyov
Hello! On 10/10/2018 03:37 PM, Chris Brandt wrote: > The SDHI/MMC controller in the RZ/A2 is almost the same as R-Car gen3, but > with some minor differences. > > Signed-off-by: Chris Brandt > --- > v2: > * Made comment clearer > --- > drivers/mmc/host/Kconfig | 5 +++--

Re: [PATCH] arm64: dts: renesas: r8a77980: add thermal support

2018-10-10 Thread Sergei Shtylyov
On 10/10/2018 01:57 PM, Niklas Söderlund wrote: >> Describe THS/CIVM in the R8A77980 device trees. >> >> Signed-off-by: Sergei Shtylyov >> >> --- >> This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon >> Horman's 'renesas.git' repo.

Re: [PATCH] arm64: dts: renesas: r8a77980: add thermal support

2018-10-10 Thread Sergei Shtylyov
On 10/10/2018 11:36 AM, Simon Horman wrote: >> Describe THS/CIVM in the R8A77980 device trees. >> >> Signed-off-by: Sergei Shtylyov >> >> --- >> This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon >> Horman's 'renesas.git' repo.

[PATCH v2] arm64: dts: renesas: r8a77970: add thermal support

2018-10-09 Thread Sergei Shtylyov
Describe THS/CIVM in the R8A77970 device tree. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo. Changed

[PATCH] arm64: dts: renesas: r8a77980: add thermal support

2018-10-09 Thread Sergei Shtylyov
Describe THS/CIVM in the R8A77980 device trees. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo. The thermal driver/bindings patches have been just posted... arch/arm64/boot/dts/renesas/r8a77980.dtsi

[PATCH 2/2] thermal: rcar_gen3_thermal: add R8A77980 support

2018-10-09 Thread Sergei Shtylyov
Add the R-Car V3H (R8A77980) SoC support to the R-Car gen3 thermal driver. Signed-off-by: Sergei Shtylyov --- drivers/thermal/rcar_gen3_thermal.c |1 + 1 file changed, 1 insertion(+) Index: linux-soc-thermal/drivers/thermal/rcar_gen3_thermal.c

[PATCH 1/2] dt-bindings: thermal: rcar-gen3-thermal: document R8A77980 bindings

2018-10-09 Thread Sergei Shtylyov
Document the R-Car V3H (R8A77980) SoC in the Renesas R-Car gen3 thermal bindings. Signed-off-by: Sergei Shtylyov --- Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.txt |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: linux-soc-thermal/Documentation/devicetree

[PATCH 0/2] Add R8A77980 support to the Renesas R-Car gen3 thermal driver

2018-10-09 Thread Sergei Shtylyov
Hello! Here's the set of 2 patches against the 'next' branch of Eduardo Valentin's 'linux-soc-thermal.git' repo. We're adding support for the R8A77980 thermal sensor controller to the R-Car gen3 thermal driver. [1/2] dt-bindings: thermal: rcar-gen3-thermal: document R8A77980 bindings [2/2]

Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support

2018-10-08 Thread Sergei Shtylyov
Hello! On 10/08/2018 07:40 PM, Geert Uytterhoeven wrote: >>>> Describe THS/CIVM in the R8A77970 device trees. >>>> Based on the original (and large) patches by Vladimir Barinov. >>>> >>>> Signed-off-by: Vladimir Barinov >>>> S

Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support

2018-10-08 Thread Sergei Shtylyov
On 10/08/2018 11:12 AM, Geert Uytterhoeven wrote: >> Describe THS/CIVM in the R8A77970 device trees. >> >> Based on the original (and large) patches by Vladimir Barinov. >> >> Signed-off-by: Vladimir Barinov >> Signed-off-by: Sergei Shtylyov >> >>

Re: [PATCH] arm64: dts: renesas: r8a77970: add thermal support

2018-10-05 Thread Sergei Shtylyov
On 10/05/2018 10:25 PM, Sergei Shtylyov wrote: > Describe THS/CIVM in the R8A77970 device trees. Damn, should be singular "tree"! :-/ > Based on the original (and large) patches by Vladimir Barinov. > > Signed-off-by: Vladimir Barinov > Signed-off-by: Sergei Shtylyov [...] MBR, Sergei

[PATCH] arm64: dts: renesas: r8a77970: add thermal support

2018-10-05 Thread Sergei Shtylyov
Describe THS/CIVM in the R8A77970 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20181004-v4.19-rc6' tag of Simon Horman's 'renesas.git' repo. The thermal

[PATCH 2/2] thermal: rcar_thermal: add R8A77970 support

2018-10-04 Thread Sergei Shtylyov
Add the R-Car V3M (R8A77970) SoC support to the R-Car gen2 thermal driver. The hardware is the same as in the R-Car D3 (R8A77995) plus the CIVM status register (we don't use). Signed-off-by: Sergei Shtylyov --- drivers/thermal/rcar_thermal.c |4 1 file changed, 4 insertions(+) Index

[PATCH 1/2] dt-bindings: thermal: rcar-thermal: document R8A77970 bindings

2018-10-04 Thread Sergei Shtylyov
Document the R-Car V3M (R8A77970) SoC in the Renesas R-Car gen2 thermal bindings. The hardware is the same as in the R-Car D3 (R8A77995) plus an extra status register. Signed-off-by: Sergei Shtylyov --- Documentation/devicetree/bindings/thermal/rcar-thermal.txt |5 +++-- 1 file changed

[PATCH 0/2] Add R8A77970 support to the Renesas R-Car thermal driver

2018-10-04 Thread Sergei Shtylyov
Hello! Here's the set of 2 patches against the 'next' branch of Eduardo Valentin's 'linux-soc-thermal.git' repo. We're adding support for the R8A77970 thermal sensor controller to the R-Car thermal driver. [1/2] dt-bindings: thermal: rcar-thermal: document R8A77970 bindings [2/2] thermal:

[PATCH] thermal: rcar_thermal: fix duplicate IRQ request

2018-10-03 Thread Sergei Shtylyov
The driver on R8A77995 requests the same IRQ twice since platform_get_resource() is always called for the 1st IRQ resource. Fixes: 1969d9dc2079 ("thermal: rcar_thermal: add r8a77995 support") Signed-off-by: Sergei Shtylyov --- This patch is against the 'master' branch of Zhang Rui's

[PATCH] arm64: dts: renesas: r8a779{7|8}0: add PWM support

2018-10-01 Thread Sergei Shtylyov
Describe PWMs in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20181001-v4.19-rc6' branch of Simon Horman's 'renesas.git' repo. arch

[PATCH] dt-bindings: pwm: renesas: pwm-rcar: document R8A779{7|8}0 bindings

2018-10-01 Thread Sergei Shtylyov
Document the R-Car V3{M|H} (R8A779{7|8}0) SoC in the Renesas R-Car PWM bindings. R8A77970's hardware is a generic R-Car gen3 PWM, while R8A77980 has an extra error injection register... Signed-off-by: Sergei Shtylyov --- This patch is against the 'for-next' branch of Thierry Reding's 'linux

Re: [PATCH v3 2/4] arm64: dts: renesas: r8a77995: Add LVDS support

2018-09-26 Thread Sergei Shtylyov
On 9/26/2018 12:13 PM, Simon Horman wrote: From: Kieran Bingham The r8a77995 D3 platform has 2 LVDS channels connected to the DU. Signed-off-by: Kieran Bingham [uli: moved lvds* into the soc node, added PM domains, resets] Signed-off-by: Ulrich Hecht Reviewed-by: Laurent Pinchart

Re: [PATCH v3 2/4] arm64: dts: renesas: r8a77995: Add LVDS support

2018-09-26 Thread Sergei Shtylyov
On 9/25/2018 7:33 PM, Laurent Pinchart wrote: From: Kieran Bingham The r8a77995 D3 platform has 2 LVDS channels connected to the DU. Signed-off-by: Kieran Bingham [uli: moved lvds* into the soc node, added PM domains, resets] Signed-off-by: Ulrich Hecht Reviewed-by: Laurent Pinchart

[PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TMU support

2018-09-24 Thread Sergei Shtylyov
Describe TMUs in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20180924-v4.19-rc5' branch of Simon Horman's 'renesas.git' repo. Changes

[PATCH v3] arm64: dts: renesas: r8a779{7|8}0: add TPU support

2018-09-24 Thread Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20180924-v4.19-rc5' branch of Simon Horman's 'renesas.git' repo. Changes

Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TPU support

2018-09-24 Thread Sergei Shtylyov
On 09/24/2018 02:29 PM, Geert Uytterhoeven wrote: >> Describe TPU in the R8A779{7|8}0 device trees. >> >> Based on the original (and large) patches by Vladimir Barinov. >> >> Signed-off-by: Vladimir Barinov >> Signed-off-by: Sergei Shtylyov

Re: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TPU support

2018-09-24 Thread Sergei Shtylyov
On 09/24/2018 12:07 PM, Simon Horman wrote: >> Describe TPU in the R8A779{7|8}0 device trees. >> >> Based on the original (and large) patches by Vladimir Barinov. >> >> Signed-off-by: Vladimir Barinov >> Signed-off-by: Sergei Shtylyov > > Thanks, this

[PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TPU support

2018-09-22 Thread Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20180921-v4.19-rc4' branch of Simon Horman's 'renesas.git' repo. Changes

[PATCH] dt-bindings: pwm: renesas: tpu: document R8A779{7|8}0 bindings

2018-09-22 Thread Sergei Shtylyov
Document the R-Car V3{M|H} (R8A779{7|8}0) SoC in the Renesas TPU bindings; the TPU hardware in those is the Renesas standard 4-channel timer pulse unit. Signed-off-by: Sergei Shtylyov --- This patch is against Linus' repo plus the bindings fix just reposted... Documentation/devicetree

[PATCH v2] dt-bindings: pwm: renesas: tpu: fix "compatible" prop description

2018-09-22 Thread Sergei Shtylyov
... Fixes: 382457e562bb ("pwm: renesas-tpu: Add DT support") Fixes: 3ba111a01822 ("dt-bindings: pwm: renesas-tpu: Document r8a774[35] support") Signed-off-by: Sergei Shtylyov --- This patch is against Linus' repo -- the 'fixes' branch in Thierry Reding's 'linux-pwm.git' rep

Re: [PATCH] dt-bindings: pwm: renesas: tpu: fix "compatible" prop description

2018-09-22 Thread Sergei Shtylyov
Hello! On 09/21/2018 11:45 PM, Sergei Shtylyov wrote: > The "compatible" property description contradicts even the example given: > it only says that there must be a single value while the example has the > fallback value too -- which makes much more sense. Moreover, the gener

[PATCH] dt-bindings: pwm: renesas: tpu: fix "compatible" prop description

2018-09-21 Thread Sergei Shtylyov
... Fixes: 382457e562bb ("pwm: renesas-tpu: Add DT support") Fixes: 3ba111a01822 ("dt-bindings: pwm: renesas-tpu: Document r8a774[35] support") Signed-off-by: Sergei Shtylyov --- This patch is against Linus' repo -- the 'fixes' branch in Thierry Reding's repo is very outdated

Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TPU support

2018-09-21 Thread Sergei Shtylyov
On 9/21/2018 10:35 AM, Simon Horman wrote: Describe TPU in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20180919-v4.19-rc4' branch

Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TPU support

2018-09-19 Thread Sergei Shtylyov
On 09/19/2018 11:02 PM, Sergei Shtylyov wrote: > Describe TPU in the R8A779{7|8}0 device trees. > > Based on the original (and large) patches by Vladimir Barinov. > > Signed-off-by: Vladimir Barinov > Signed-off-by: Sergei Shtylyov > > --- > This patch is against

[PATCH] arm64: dts: renesas: r8a779{7|8}0: add TPU support

2018-09-19 Thread Sergei Shtylyov
Describe TPU in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20180919-v4.19-rc4' branch of Simon Horman's 'renesas.git' repo. arch

[PATCH] clk: renesas: r8a77970: add TPU clock

2018-09-19 Thread Sergei Shtylyov
The TPU0 clock wasn't present in the original R8A77970 patch by Daisuke Matsushita, it was added in a later BSP version... Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'clk-renesas

Re: [PATCH] dt-bindings: timer: renesas: tmu: document R8A779{7|8}0 bindings

2018-09-14 Thread Sergei Shtylyov
On 09/11/2018 09:26 PM, Sergei Shtylyov wrote: >>> Document the R-Car V3{M|H} (R8A779{7|8}0) SoC in the Renesas TMU bindings; >>> the TMU hardware in those is the Renesas standard 3-channel timer unit. >>> >>> Signed-off-by: Sergei Shtylyov >> >&g

Re: [PATCH] dt-bindings: timer: renesas: tmu: document R8A779{7|8}0 bindings

2018-09-14 Thread Sergei Shtylyov
On 09/12/2018 03:23 PM, Geert Uytterhoeven wrote: >>>>> Document the R-Car V3{M|H} (R8A779{7|8}0) SoC in the Renesas TMU bindings; >>>>> the TMU hardware in those is the Renesas standard 3-channel timer unit. >>>>> >>>>> Sig

Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support

2018-09-13 Thread Sergei Shtylyov
On 09/12/2018 12:39 PM, Simon Horman wrote: >>>>>> Describe TMUs in the R8A779{7|8}0 device trees. >>>>>> >>>>>> Based on the original (and large) patches by Vladimir Barinov. >>>>>> >>>>>> Signed-off-by: Vl

Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support

2018-09-13 Thread Sergei Shtylyov
On 09/11/2018 09:35 PM, Sergei Shtylyov wrote: >>>>> Describe TMUs in the R8A779{7|8}0 device trees. >>>>> >>>>> Based on the original (and large) patches by Vladimir Barinov. >>>>> >>>>> Signed-off-by: Vladimir Bari

Re: [PATCH] clocksource: sh_cmt: fix clocksource width for 32-bit machines

2018-09-13 Thread Sergei Shtylyov
needlessly clamped down to 32-bits on the 32-bit machines... >> >> Reported-by: Geert Uytterhoeven >> Signed-off-by: Sergei Shtylyov >> >> --- >> This patch is against the 'tip.git' repo's 'timers/core' branch plus the >> fixup >> for the 64-b

[PATCH v2 2/3] dt-bindings: timer: renesas: cmt: document R-Car gen3 support

2018-09-12 Thread Sergei Shtylyov
Document support for the R-Car gen3 CMT types 0/1 bindings -- they seem to be the same CMT types 0/1 as in the R-Car gen2 SoCs. Also document R8A779{7|8}0 bindings as these are the R-Car gen3 SoCs for which the initial support was done. Signed-off-by: Sergei Shtylyov --- Changes in version 2

[PATCH v2 3/3] clocksource: sh_cmt: add R-Car gen3 support

2018-09-12 Thread Sergei Shtylyov
Add support for the R-Car gen3 CMT types 0/1 -- they seem to be the same CMT types 0/1 as in R-Car gen2 SoCs. Signed-off-by: Sergei Shtylyov --- Changes in version 2: - split the bindings update into a separate patch. drivers/clocksource/sh_cmt.c |8 1 file changed, 8 insertions

[PATCH v2 1/3] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer

2018-09-12 Thread Sergei Shtylyov
There's no good reason for the sh_cmt_of_table[] initializer to violate the 80-column limit, especially after the commit 8d50e9476bb4 ("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated") partially fixed it -- fix the R-Car gen2 related entries as well. S

[PATCH v2 0/3] Add R-Car gen3 SoC support to the CMT driver

2018-09-12 Thread Sergei Shtylyov
Hello! Here's the set of 3 patches against the 'tip.git' repo's 'timers/core' branch plus the CMT driver fixups for the 32/64-bit machines posted recently. We're adding support for the CMT types0/1 found in the R-Car gen3 SoCs. [1/3] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[]

Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support

2018-09-11 Thread Sergei Shtylyov
Hello! On 09/11/2018 04:36 PM, Simon Horman wrote: >>>> Describe TMUs in the R8A779{7|8}0 device trees. >>>> >>>> Based on the original (and large) patches by Vladimir Barinov. >>>> >>>> Signed-off-by: Vladimir Barinov >&g

Re: [PATCH] dt-bindings: timer: renesas: tmu: document R8A779{7|8}0 bindings

2018-09-11 Thread Sergei Shtylyov
On 09/10/2018 05:24 PM, Geert Uytterhoeven wrote: >> Document the R-Car V3{M|H} (R8A779{7|8}0) SoC in the Renesas TMU bindings; >> the TMU hardware in those is the Renesas standard 3-channel timer unit. >> >> Signed-off-by: Sergei Shtylyov > > Thanks for your pat

Re: [PATCH] clocksource: sh_cmt: fix clocksource width for 32-bit machines

2018-09-10 Thread Sergei Shtylyov
On 09/10/2018 11:22 PM, Sergei Shtylyov wrote: > The driver seems to abuse *unsigned long* not only for the (32-bit) > register values but also for the 'sh_cmt_channel::total_cycles' which > needs to always be 64-bit -- as a result, the clocksource's mask is > needlessly clamped dow

[PATCH] clocksource: sh_cmt: fix clocksource width for 32-bit machines

2018-09-10 Thread Sergei Shtylyov
Uytterhoeven Signed-off-by: Sergei Shtylyov --- This patch is against the 'tip.git' repo's 'timers/core' branch plus the fixup for the 64-bit machines reposted last Saturday... drivers/clocksource/sh_cmt.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: tip/drivers/clocksource

Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support

2018-09-10 Thread Sergei Shtylyov
On 09/10/2018 10:30 PM, Sergei Shtylyov wrote: >>> From: devicetree-ow...@vger.kernel.org >> ow...@vger.kernel.org> On Behalf Of Sergei Shtylyov >>> Sent: 05 September 2018 21:32 >>> >>> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they

Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support

2018-09-10 Thread Sergei Shtylyov
Hello! On 09/06/2018 11:06 AM, Chris Paterson wrote: >> From: devicetree-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Sergei Shtylyov >> Sent: 05 September 2018 21:32 >> >> Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be >

Re: [PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support

2018-09-10 Thread Sergei Shtylyov
Hello! On 09/06/2018 11:27 AM, Biju Das wrote: >> -Original Message- >> From: devicetree-ow...@vger.kernel.org > ow...@vger.kernel.org> On Behalf Of Sergei Shtylyov >> Sent: 05 September 2018 21:32 >> To: Daniel Lezcano ; Thomas Gleixner >> ; Rob Her

Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support

2018-09-10 Thread Sergei Shtylyov
Hello! On 09/10/2018 12:23 PM, Simon Horman wrote: >> Describe TMUs in the R8A779{7|8}0 device trees. >> >> Based on the original (and large) patches by Vladimir Barinov. >> >> Signed-off-by: Vladimir Barinov >> Signed-off-by: Sergei Shtylyov >> &g

[PATCH v3] clocksource: sh_cmt: fixup for 64-bit machines

2018-09-08 Thread Sergei Shtylyov
ead fixed 'max_delta_ns' and even fixed the switching an active clocksource to CMT (which caused the system to turn non-interactive before). Signed-off-by: Sergei Shtylyov --- This patch is against the 'tip.git' repo's 'timers/core' branch. The CMT driver wasn't ever used on SH64; on R-Car gen3 (ARM64)

Re: [PATCH v2] clocksource: sh_cmt: fixup for 64-bit machines

2018-09-08 Thread Sergei Shtylyov
so that the calculation of 'ch->max_match_value' >> in sh_cmt_setup_channel() used the worng branch. Using more proper 'u32' >> instead fixed 'max_delta_ns' and even fixed the switching an active >> clocksource to CMT (which caused the system to turn non-interactive >> before

[PATCH] arm64: dts: renesas: r8a779{7|8}0: add TMU support

2018-09-07 Thread Sergei Shtylyov
Describe TMUs in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo plus

[PATCH] dt-bindings: timer: renesas: tmu: document R8A779{7|8}0 bindings

2018-09-07 Thread Sergei Shtylyov
Document the R-Car V3{M|H} (R8A779{7|8}0) SoC in the Renesas TMU bindings; the TMU hardware in those is the Renesas standard 3-channel timer unit. Signed-off-by: Sergei Shtylyov --- The patch is against the 'tip.git' repo's 'timers/core' branch. Documentation/devicetree/bindings/timer/renesas

[PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add CMT support

2018-09-07 Thread Sergei Shtylyov
Describe CMTs in the R8A779{7|8}0 device trees. Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo

[PATCH] clk: renesas: r8a77970: add TMU clocks

2018-09-06 Thread Sergei Shtylyov
The TMU clocks weren't present in the original R8A77970 patch by Daisuke Matsushita, they were added in a later BSP version... Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'clk-renesas

Re: [PATCH] arm64: dts: renesas: r8a779{7|8}0: add CMT support

2018-09-06 Thread Sergei Shtylyov
On 09/06/2018 08:02 PM, Sergei Shtylyov wrote: > Describe CMTs in the R8A779{7|8}0 device trees. > > Signed-off-by: Sergei Shtylyov > > --- > This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of > Simon Horman's 'renesas.git' repo. > > The R8A779{7

[PATCH] arm64: dts: renesas: r8a779{7|8}0: add CMT support

2018-09-06 Thread Sergei Shtylyov
Describe CMTs in the R8A779{7|8}0 device trees. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo. The R8A779{7|8}0 CMT DT binding updates have been posted yesterday... arch/arm64/boot/dts/renesas

[PATCH 2/2] clocksource: sh_cmt: add R-Car gen3 support

2018-09-05 Thread Sergei Shtylyov
Add support for the R-Car gen3 CMT0 and CMT1 bindings -- they seem to be the same CMT0 and CMT1 as in R-Car gen2 SoCs. Also document R8A779{7|8} bindings as these are the R-Car gen3 SoCs for which the initial support was done. Signed-off-by: Sergei Shtylyov --- Documentation/devicetree

[PATCH 1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer

2018-09-05 Thread Sergei Shtylyov
There's no good reason for the sh_cmt_of_table[] initializer to violate the 80-column limit, especially after the commit 8d50e9476bb4 ("clocksource/drivers/sh_cmt: Mark "renesas,cmt-48-gen2" deprecated") partially fixed it -- fix the R-Car gen2 related entries as well. S

[PATCH 0/2] Add R-Car gen3 SoC support to the CMT driver

2018-09-05 Thread Sergei Shtylyov
Hello! Here's the set of 2 patches against the 'tip.git' repo's 'timers/core' branch plus the driver fixup for the 64-bit machines posted recently. We're adding support for the CMT0 and CMT1 found in the R-Car gen3 SoCs. [1/2] clocksource: sh_cmt: properly line-wrap sh_cmt_of_table[] initializer

[PATCH] clk: renesas: r8a77970: add CMT clocks

2018-09-05 Thread Sergei Shtylyov
Add the R8A77970 CMT module clocks. Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- drivers/clk/renesas/r8a77970-cpg-mssr.c |4 1 file changed, 4 insertions(+) Index: renesas/drivers/clk/renesas

[PATCH v2] clocksource: sh_cmt: fixup for 64-bit machines

2018-09-04 Thread Sergei Shtylyov
ead fixed 'max_delta_ns' and even fixed the switching an active clocksource to CMT (which caused the system to turn non-interactive before). Signed-off-by: Sergei Shtylyov --- This patch is against the 'tip.git' repo's 'timers/core' branch. The CMT driver wasn't ever used on SH64; on R-Car gen3 (ARM64)

[PATCH v2] clk: renesas: r8a77970: add SD0H/SD0 clocks for SDHI

2018-09-01 Thread Sergei Shtylyov
CLK_TYPE_GEN3_SOC_BASE at the end of 'enum rcar_gen3_clk_types', declare SD0H/SDH clocks in 'enum r8a77970_clk_types', and handle those clocks in the overridden cpg_clk_register() method; then, finally, add the SD-IF module clock (derived from the SD0 clock). Signed-off-by: Sergei Shtylyov

[PATCH] clk: renesas: r8a77980: add CMT clocks

2018-09-01 Thread Sergei Shtylyov
Now that RCLK has been added by Geert, we can add the CMT module clocks. Based on the original (and large) patch by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'clk-renesas' branch of Geert's 'renesas-drivers.git' repo

[PATCH] arm64: enable CMT/TMU support for Renesas SoC

2018-08-31 Thread Sergei Shtylyov
Renesas R-Car gen3 SoCs have both CMT and TMU timers, so we have to enable building them in Kconfig.platforms (as they don't normally have the prompts in Kconfig). Signed-off-by: Sergei Shtylyov --- The patch is against the ARM64 repo's 'for-next/core' branch. arch/arm64/Kconfig.platforms

[PATCH] clocksource: sh_cmt: fixup for 64-bit machines

2018-08-30 Thread Sergei Shtylyov
as a result. Using 1UL instead fixed the maximum delta and did even fix switching an active clocksource to a CMT channel (which caused the system to go non-interactive before). Signed-off-by: Sergei Shtylyov --- This patch is against the 'tip.git' repo's 'timers/core' branch. I am not sure

  1   2   3   4   5   6   7   8   9   10   >