[PATCH 05/11] ARM: dts: r8a7778: Use R-Car SDHI Gen1 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen1 fallback compat string in the DT of the r8a7778 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7778.dtsi | 9

[PATCH 10/11] ARM: dts: r8a7793: Use R-Car SDHI Gen2 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen2 fallback compat string in the DT of the r8a7793 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7793.dtsi | 9

[PATCH 11/11] ARM: dts: r8a7794: Use R-Car SDHI Gen2 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen2 fallback compat string in the DT of the r8a7794 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7794.dtsi | 9

[PATCH 08/11] ARM: dts: r8a7791: Use R-Car SDHI Gen2 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen2 fallback compat string in the DT of the r8a7791 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7791.dtsi | 9

[PATCH 06/11] ARM: dts: r8a7779: Use R-Car SDHI Gen1 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen1 fallback compat string in the DT of the r8a7779 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7779.dtsi | 12 +++

[PATCH 00/11] arm64: dts: renesas: Use R-Car SDHI Gen[123] fallback compat strings

2017-10-16 Thread Simon Horman
Use recently posted R-Car SDHI Gen 1, 2 and 3 fallback compat strings in the DT of Renesas ARM and arm64 based SoCs. Based on renesas-devel-20171016-v4.14-rc5 Has a binding documentation but no run-time dependency on "[PATCH v3 0/3] mmc: renesas_sdhi: add R-Car Gen[123] fallback compatib

[PATCH 07/11] ARM: dts: r8a7790: Use R-Car SDHI Gen2 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen2 fallback compat string in the DT of the r8a7790 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7790.dtsi | 12 +++

[PATCH 09/11] ARM: dts: r8a7792: Use R-Car SDHI Gen2 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen2 fallback compat string in the DT of the r8a7792 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7792.dtsi | 3 ++-

[PATCH 04/11] ARM: dts: r8a7745: Use R-Car SDHI Gen2 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen2 fallback compat string in the DT of the r8a7745 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7745.dtsi | 9

[PATCH 01/11] arm64: dts: renesas: r8a7795: Use R-Car SDHI Gen3 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen3 fallback compat string in the DT of the r8a7795 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a7795.dts

[PATCH 03/11] ARM: dts: r8a7743: Use R-Car SDHI Gen2 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen2 fallback compat string in the DT of the r8a7743 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm/boot/dts/r8a7743.dtsi | 9

[PATCH 02/11] arm64: dts: renesas: r8a7796: Use R-Car SDHI Gen3 fallback compat string

2017-10-16 Thread Simon Horman
Use newly added R-Car SDHI Gen3 fallback compat string in the DT of the r8a7796 SoC. This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string. Signed-off-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a7796.dts

RE: mainline 4.14-rc4: renesas_sdhi_internal_dmac ee100000.sd: swiotlb buffer is full?

2017-10-16 Thread Yoshihiro Shimoda
Hi Dirk-san, > From: Dirk Behme, Sent: Tuesday, October 17, 2017 2:08 PM > > Limiting the thread to Renesas only, again, to discuss the other issue: > > On 17.10.2017 06:51, Yoshihiro Shimoda wrote: > > Hi Linus-san, > > > >> From: Linus Walleij, Sent: Monday, October 16, 2017 9:22 PM > >> > >>

[PATCH v3 1/3] dt-bindings: mmc: renesas_sdhi: provide example in bindings documentation

2017-10-16 Thread Simon Horman
Provide an example of the usage of the DT bindings for TMIO in their documentation. The example given is for the r8a7790 (R-Car H2). Signed-off-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- v3 * Updated example to newer upstream DTS which uses newer CPG/MSSR bindings. v2 * Correct descri

[PATCH v3 2/3] dt-bindings: mmc: renesas_sdhi: add R-Car Gen[123] fallback compatibility strings

2017-10-16 Thread Simon Horman
Add fallback compatibility strings for R-Car Gen 1, 2 and 3. In the case of Renesas R-Car hardware we know that there are generations of SoCs, f.e. Gen 1 and 2. But beyond that its not clear what the relationship between IP blocks might be. For example, I believe that r8a7790 is older than r8a7791

[PATCH v3 0/3] mmc: renesas_sdhi: add R-Car Gen[123] fallback compatibility strings

2017-10-16 Thread Simon Horman
Add fallback compatibility strings for R-Car Gen 1, 2 and 3 to the SDHI bindings and driver. In the case of Renesas R-Car hardware we know that there are generations of SoCs, f.e. Gen 1 and 2. But beyond that its not clear what the relationship between IP blocks might be. For example, I believe th

[PATCH v3 3/3] mmc: renesas_sdhi: implement R-Car Gen[123] fallback compatibility strings

2017-10-16 Thread Simon Horman
Implement fallback compatibility strings for R-Car Gen 1, 2 and 3. In the case of Renesas R-Car hardware we know that there are generations of SoCs, f.e. Gen 1 and 2. But beyond that its not clear what the relationship between IP blocks might be. For example, I believe that r8a7790 is older than r

Re: mainline 4.14-rc4: renesas_sdhi_internal_dmac ee100000.sd: swiotlb buffer is full?

2017-10-16 Thread Dirk Behme
Limiting the thread to Renesas only, again, to discuss the other issue: On 17.10.2017 06:51, Yoshihiro Shimoda wrote: Hi Linus-san, From: Linus Walleij, Sent: Monday, October 16, 2017 9:22 PM On Mon, Oct 16, 2017 at 2:07 PM, Geert Uytterhoeven wrote: On Mon, Oct 16, 2017 at 1:41 PM, Linus

RE: mainline 4.14-rc4: renesas_sdhi_internal_dmac ee100000.sd: swiotlb buffer is full?

2017-10-16 Thread Yoshihiro Shimoda
Hi Linus-san, > From: Linus Walleij, Sent: Monday, October 16, 2017 9:22 PM > > On Mon, Oct 16, 2017 at 2:07 PM, Geert Uytterhoeven > wrote: > > On Mon, Oct 16, 2017 at 1:41 PM, Linus Walleij > > wrote: > >> On Mon, Oct 16, 2017 at 11:02 AM, Geert Uytterhoeven > >> wrote: > IIUC, >

RE: [PATCH 2/2] ARM: dts: r8a7743: Add xhci support to SoC dtsi

2017-10-16 Thread Yoshihiro Shimoda
Hi Biju-san, IIUC, when we submitted a patch for dts[i] file, we don't need to submit such a patch to usb maintainers. > From: Biju Das, Sent: Monday, October 16, 2017 7:13 PM > > From: Fabrizio Castro > > Add node for xhci. Boards DT files will enable it if needed. > > Signed-off-by: Fabrizi

RE: [PATCH 1/2] dt-bindings: usb-xhci: Document r8a7743 support

2017-10-16 Thread Yoshihiro Shimoda
Hi Biju-san, (and added Mathias-san of the XHCI maintainer as TO) Thank you for the patch! > From: Biju Das, Sent: Monday, October 16, 2017 7:13 PM > > From: Fabrizio Castro > > Document r8a7743 xhci support. The driver will use the fallback > compatible string "renesas,rcar-gen2-xhci", theref

Re: [PATCH 1/3] dt-bindings: mmc: renesas_sdhi: provide example in bindings documentation

2017-10-16 Thread Wolfram Sang
On Fri, Oct 13, 2017 at 02:35:28PM +0200, Simon Horman wrote: > On Fri, Oct 13, 2017 at 01:19:20PM +0200, Geert Uytterhoeven wrote: > > Hi Simon, > > > > On Fri, Oct 13, 2017 at 12:38 PM, Simon Horman > > wrote: > > > Provide an example of the usage of the DT bindings for TMIO > > > in their docu

Re: [PATCH 2/3] dt-bindings: mmc: renesas_sdhi: add R-Car Gen[123] fallback compatibility strings

2017-10-16 Thread Wolfram Sang
> + When compatible with the generic version nodes must list comma after "version"? I had to read it multiple times until I got it :) > + the SoC-specific version corresponding to the platform > + first followed by the generic version. signature.asc Descript

Re: [PATCH v2] thermal: rcar_gen3_thermal: fix initialization sequence for H3 ES2.0

2017-10-16 Thread Wolfram Sang
On Mon, Oct 16, 2017 at 04:52:59PM +0200, Niklas Söderlund wrote: > The initialization sequence for H3 (r8a7795) ES1.x and ES2.0 is > different. H3 ES2.0 and later uses the same sequence as M3 (r8a7796) > ES1.0. Fix this by not looking at compatible strings and instead > defaulting to the r8a7796 i

Re: [PATCH 09/10] [RFC] ravb: Remove obsolete explicit clock handling for WoL

2017-10-16 Thread Sergei Shtylyov
On 10/16/2017 04:55 PM, Geert Uytterhoeven wrote: Currently, if Wake-on-LAN is enabled, the EtherAVB device's module clock is manually kept running during system suspend, to make sure the device stays active. Since "soc: renesas: rcar-sysc: Keep wakeup sources active during system suspend", thi

Re: [PATCH 10/10] [RFC] sh_eth: Remove obsolete explicit clock handling for WoL

2017-10-16 Thread Sergei Shtylyov
Hello! On 10/16/2017 04:55 PM, Geert Uytterhoeven wrote: Currently, if Wake-on-LAN is enabled, the SH-ETH device's module clock It's called Ether (or GEther) in all the manuals I have. Never saw SH-ETH, I think it's Nobuhiro's invention... :-) is manually kept running during system sus

[PATCH v3] i2c: riic: remove fixed clock restriction

2017-10-16 Thread Chris Brandt
Most systems with this i2c are going to have a clock of either 33.33MHz or 32MHz. That 4% difference is not reason enough to warrant that the driver to completely fail. Signed-off-by: Chris Brandt --- v3: * now check a range of safe frequencies v2: * simplified error message. --- --- drivers/i

RE: [PATCH v2] i2c: riic: remove fixed clock restriction

2017-10-16 Thread Chris Brandt
Hi Wolfram, On Friday, October 13, 2017, Wolfram Sang wrote: > > Technically, to do it right, to calculate the ACTUAL I2C baud rate, you > > have to take into effect the load resistance and capacitance of the > > lines in order to factor in the rise and fall times correctly. Of course > > We have

Re: [PATCH v2] thermal: rcar_gen3_thermal: fix initialization sequence for H3 ES2.0

2017-10-16 Thread Geert Uytterhoeven
Hi Niklas, On Mon, Oct 16, 2017 at 4:52 PM, Niklas Söderlund wrote: > The initialization sequence for H3 (r8a7795) ES1.x and ES2.0 is > different. H3 ES2.0 and later uses the same sequence as M3 (r8a7796) > ES1.0. Fix this by not looking at compatible strings and instead > defaulting to the r8a77

Re: [PATCH v2] thermal: rcar_gen3_thermal: fix initialization sequence for H3 ES2.0

2017-10-16 Thread Niklas Söderlund
Hi, I forgot the changes from v1, sorry about that. On 2017-10-16 16:52:59 +0200, Niklas Söderlund wrote: > The initialization sequence for H3 (r8a7795) ES1.x and ES2.0 is > different. H3 ES2.0 and later uses the same sequence as M3 (r8a7796) > ES1.0. Fix this by not looking at compatible strings

[PATCH v2 09/14] pinctrl: sh-pfc: Remove obsolete sh_pfc_pin_to_bias_info()

2017-10-16 Thread Geert Uytterhoeven
All users of sh_pfc_pin_to_bias_info() and the related data structures have been converted to sh_pfc_pin_to_bias_reg(), so those can be removed. Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart --- v2: - Add Reviewed-by. --- drivers/pinctrl/sh-pfc/core.c | 15 ---

[PATCH v2 11/14] pinctrl: sh-pfc: r8a7795-es1: Use generic IOCTRL register description

2017-10-16 Thread Geert Uytterhoeven
Move R-Car H3 ES1.x I/O voltage support over to the generic way to describe IOCTRL registers, which will be needed for suspend/resume support. Signed-off-by: Geert Uytterhoeven --- v2: - Add a sentinel comment, to make it more explicit that a last zero entry is required. --- drivers/pinctr

[PATCH v2 12/14] pinctrl: sh-pfc: r8a7795: Use generic IOCTRL register description

2017-10-16 Thread Geert Uytterhoeven
Move R-Car H3 ES2.0 I/O voltage support over to the generic way to describe IOCTRL registers, which will be needed for suspend/resume support. Signed-off-by: Geert Uytterhoeven --- v2: - Add a sentinel comment, to make it more explicit that a last zero entry is required. --- drivers/pinctr

[PATCH v2 07/14] pinctrl: sh-pfc: r8a7796: Use generic bias register description

2017-10-16 Thread Geert Uytterhoeven
Move R-Car M3-W bias support over to the generic way to describe bias registers, which will be needed for suspend/resume support. As the new description is more compact, this decreases kernel size by ca. 304 bytes. Signed-off-by: Geert Uytterhoeven --- v2: - Add a sentinel comment, to make it

[PATCH v2 14/14] pinctrl: sh-pfc: Save/restore registers for PSCI system suspend

2017-10-16 Thread Geert Uytterhoeven
During PSCI system suspend, R-Car Gen3 SoCs are powered down, and their pinctrl register state is lost. Note that as the boot loader skips most initialization after system resume, pinctrl register state differs from the state encountered during normal system boot, too. To fix this, save all GPIO

[PATCH v2 10/14] pinctrl: sh-pfc: Add generic IOCTRL register description

2017-10-16 Thread Geert Uytterhoeven
Add a generic way to describe IOCTRL registers (for e.g. SD I/O voltage and time delay control), like is already done for config, drive, and bias registers. This makes the sh-pfc core code aware of these registers, which will ease introducing suspend/resume support later. Signed-off-by: Geert Uyt

[PATCH v2 01/14] pinctrl: sh-pfc: Remove matching on plain sh-pfc platform device

2017-10-16 Thread Geert Uytterhoeven
As of commit 8682b3c522c639f3 ("sh-pfc: Remove platform device registration"), plain "sh-pfc" platform devices are no longer created. Hence remove their match entry, and the now obsolete checks for missing device IDs and driver data. Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart

[PATCH v2 00/14] pinctrl: sh-pfc: Add suspend/resume support

2017-10-16 Thread Geert Uytterhoeven
Hi all, During PSCI system suspend, R-Car Gen3 SoCs are powered down, and their pinctrl register state is lost. Note that as the boot loader skips most initialization after system resume, pinctrl register state differs from the state encountered during normal system boot, too. To fix thi

[PATCH v2 03/14] pinctrl: sh-pfc: Add generic bias register description

2017-10-16 Thread Geert Uytterhoeven
Add a generic way to describe bias registers (for pull-up/down control), like is already done for config and drive registers. This makes the sh-pfc core code aware of these registers, which will ease introducing suspend/resume support later. Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent

[PATCH v2 05/14] pinctrl: sh-pfc: r8a7795-es1: Use generic bias register description

2017-10-16 Thread Geert Uytterhoeven
Move R-Car H3 ES1.x bias support over to the generic way to describe bias registers, which will be needed for suspend/resume support. As the new description is more compact, this decreases kernel size by ca. 304 bytes. Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart --- v2: -

[PATCH v2 06/14] pinctrl: sh-pfc: r8a7795: Use generic bias register description

2017-10-16 Thread Geert Uytterhoeven
Move R-Car H3 ES2.0 bias support over to the generic way to describe bias registers, which will be needed for suspend/resume support. As the new description is more compact, this decreases kernel size by ca. 308 bytes. Signed-off-by: Geert Uytterhoeven --- v2: - Add a sentinel comment, to make

[PATCH v2 08/14] pinctrl: sh-pfc: r8a7778: Use generic bias register description

2017-10-16 Thread Geert Uytterhoeven
Move R-Car M1A bias support over to the generic way to describe bias registers. As the new description is more compact, this decreases kernel size by ca. 148 bytes. Signed-off-by: Geert Uytterhoeven --- Untested due to lack of hardware. v2: - Add a sentinel comment, to make it more explicit t

[PATCH v2 02/14] pinctrl: sh-pfc: Drop width parameter of sh_pfc_{read,write}_reg()

2017-10-16 Thread Geert Uytterhoeven
On modern Renesas SoCs, all PFC registers are 32-bit, and all callers of sh_pfc_{read,write}_reg() already operate on 32-bit registers only. Hence make the 32-bit width implicit, and rename the functions to sh_pfc_{read,write}() to shorten lines. All accesses to 8-bit or 16-bit registers are still

[PATCH v2 13/14] pinctrl: sh-pfc: r8a7796: Use generic IOCTRL register description

2017-10-16 Thread Geert Uytterhoeven
Move R-Car M3-W I/O voltage support over to the generic way to describe IOCTRL registers, which will be needed for suspend/resume support. Signed-off-by: Geert Uytterhoeven --- v2: - Add a sentinel comment, to make it more explicit that a last zero entry is required. --- drivers/pinctrl/sh

[PATCH v2 04/14] pinctrl: sh-pfc: Add sh_pfc_pin_to_bias_reg() helper

2017-10-16 Thread Geert Uytterhoeven
Add a helper to look up bias registers and bit number for a specific pin, using the generic bias register description. Signed-off-by: Geert Uytterhoeven --- v2: - Use ARRAY_SIZE() instead of hardcoded constant 32, - Add curly braces to nested for statements. --- drivers/pinctrl/sh-pfc/core.c

Re: [PATCH 10/10] [RFC] sh_eth: Remove obsolete explicit clock handling for WoL

2017-10-16 Thread Niklas Söderlund
Hi Geert, On 2017-10-16 15:55:16 +0200, Geert Uytterhoeven wrote: > Currently, if Wake-on-LAN is enabled, the SH-ETH device's module clock > is manually kept running during system suspend, to make sure the device > stays active. > > Since "soc: renesas: rcar-sysc: Keep wakeup sources active durin

Re: [PATCH 09/10] [RFC] ravb: Remove obsolete explicit clock handling for WoL

2017-10-16 Thread Niklas Söderlund
Hi Geert, On 2017-10-16 15:55:15 +0200, Geert Uytterhoeven wrote: > Currently, if Wake-on-LAN is enabled, the EtherAVB device's module clock > is manually kept running during system suspend, to make sure the device > stays active. > > Since "soc: renesas: rcar-sysc: Keep wakeup sources active dur

[PATCH v2] thermal: rcar_gen3_thermal: fix initialization sequence for H3 ES2.0

2017-10-16 Thread Niklas Söderlund
The initialization sequence for H3 (r8a7795) ES1.x and ES2.0 is different. H3 ES2.0 and later uses the same sequence as M3 (r8a7796) ES1.0. Fix this by not looking at compatible strings and instead defaulting to the r8a7796 initialization sequence and use soc_device_match() to check for H3 ES1.x.

Re: [PATCH] pinctrl: sh-pfc: r8a7745: Implement voltage switching for SDHI

2017-10-16 Thread Geert Uytterhoeven
On Fri, Oct 13, 2017 at 4:49 PM, Biju Das wrote: > Voltage switching is the same as on the r8a7794. > > Signed-off-by: Biju Das Reviewed-by: Geert Uytterhoeven i.e. will queue in sh-pfc-for-v4.15. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux

[PATCH 05/10] [RFC] ARM: shmobile: pm-rmobile: Use GENPD_FLAG_ACTIVE_WAKEUP

2017-10-16 Thread Geert Uytterhoeven
Set the newly introduced GENPD_FLAG_ACTIVE_WAKEUP, which allows to remove the driver's own "always true" callback. Signed-off-by: Geert Uytterhoeven --- This must not be applied before "PM / Domain: Enable genpd users to specify default active wakeup behavior" has landed upstream, hence the "RFC"

[PATCH 00/10] PM / Domain: renesas: Fix active wakeup behavior

2017-10-16 Thread Geert Uytterhoeven
Hi all, If a device in a Renesas ARM SoC is part of a Clock Domain, and it is used as a wakeup source, it must be kept active during system suspend. Currently this is handled in device-specific drivers by explicitly increasing the use count of the module clock when the device is

[PATCH 07/10] [RFC] clk: renesas: cpg-mssr: Use GENPD_FLAG_ACTIVE_WAKEUP

2017-10-16 Thread Geert Uytterhoeven
Set the newly introduced GENPD_FLAG_ACTIVE_WAKEUP, which allows to remove the driver's own "always true" callback. Signed-off-by: Geert Uytterhoeven --- This must not be applied before "PM / Domain: Enable genpd users to specify default active wakeup behavior" has landed upstream, hence the "RFC"

[PATCH 02/10] clk: renesas: cpg-mssr: Keep wakeup sources active during system suspend

2017-10-16 Thread Geert Uytterhoeven
If a device is part of the CPG/MSSR Clock Domain and to be used as a wakeup source, it must be kept active during system suspend. Currently this is handled in device-specific drivers by explicitly increasing the use count of the module clock when the device is configured as a wakeup source. Howev

[PATCH 06/10] [RFC] clk: renesas: mstp: Use GENPD_FLAG_ACTIVE_WAKEUP

2017-10-16 Thread Geert Uytterhoeven
Set the newly introduced GENPD_FLAG_ACTIVE_WAKEUP, which allows to remove the driver's own "always true" callback. Signed-off-by: Geert Uytterhoeven --- This must not be applied before "PM / Domain: Enable genpd users to specify default active wakeup behavior" has landed upstream, hence the "RFC"

[PATCH 10/10] [RFC] sh_eth: Remove obsolete explicit clock handling for WoL

2017-10-16 Thread Geert Uytterhoeven
Currently, if Wake-on-LAN is enabled, the SH-ETH device's module clock is manually kept running during system suspend, to make sure the device stays active. Since "soc: renesas: rcar-sysc: Keep wakeup sources active during system suspend" and "clk: renesas: mstp: Keep wakeup sources active during

[PATCH 04/10] PM / Domain: Allow genpd users to specify default active wakeup behavior

2017-10-16 Thread Geert Uytterhoeven
It is quite common for PM Domains to require slave devices to be kept active during system suspend if they are to be used as wakeup sources. To enable this, currently each PM Domain or driver has to provide its own gpd_dev_ops.active_wakeup() callback. Introduce a new flag GENPD_FLAG_ACTIVE_WAKEUP

[PATCH 03/10] soc: renesas: rcar-sysc: Keep wakeup sources active during system suspend

2017-10-16 Thread Geert Uytterhoeven
If an R-Car SYSC slave device is part of the CPG/MSTP or CPG/MSSR Clock Domain and to be used as a wakeup source, it must be kept active during system suspend. Currently this is handled in device-specific drivers by explicitly increasing the use count of the module clock when the device is configu

[PATCH 01/10] clk: renesas: mstp: Keep wakeup sources active during system suspend

2017-10-16 Thread Geert Uytterhoeven
If a device is part of the CPG/MSTP Clock Domain and to be used as a wakeup source, it must be kept active during system suspend. Currently this is handled in device-specific drivers by explicitly increasing the use count of the module clock when the device is configured as a wakeup source. Howev

[PATCH 08/10] [RFC] soc: renesas: rcar-sysc: Use GENPD_FLAG_ACTIVE_WAKEUP

2017-10-16 Thread Geert Uytterhoeven
Set the newly introduced GENPD_FLAG_ACTIVE_WAKEUP, which allows to remove the driver's own "always true" callback. Signed-off-by: Geert Uytterhoeven --- This must not be applied before "PM / Domain: Enable genpd users to specify default active wakeup behavior" has landed upstream, hence the "RFC"

[PATCH 09/10] [RFC] ravb: Remove obsolete explicit clock handling for WoL

2017-10-16 Thread Geert Uytterhoeven
Currently, if Wake-on-LAN is enabled, the EtherAVB device's module clock is manually kept running during system suspend, to make sure the device stays active. Since "soc: renesas: rcar-sysc: Keep wakeup sources active during system suspend", this workaround is no longer needed. Hence remove all e

Re: [PATCH v4 02/09] iommu/ipmmu-vmsa: Add optional root device feature

2017-10-16 Thread Magnus Damm
Hi Robin, On Tue, Jun 20, 2017 at 2:19 AM, Robin Murphy wrote: > On 19/06/17 10:14, Magnus Damm wrote: >> From: Magnus Damm >> >> Add root device handling to the IPMMU driver by allowing certain >> DT compat strings to enable has_cache_leaf_nodes that in turn will >> support both root devices wi

Re: [PATCH 4/4] drm: rcar-du: Add R8A7745 support

2017-10-16 Thread Laurent Pinchart
Hi Fabrizio, Thank you for the patch. On Friday, 13 October 2017 18:22:22 EEST Fabrizio Castro wrote: > Add support for the R8A7745 DU (which is very similar to the R8A7794 DU); > it has 2 RGB outputs. > > Signed-off-by: Fabrizio Castro > Reviewed-by: Biju Das Reviewed-by: Laurent Pinchart

Re: [PATCH 2/4] drm: rcar-du: Add R8A7743 support

2017-10-16 Thread Laurent Pinchart
Hi Fabrizio, Thank you for the patch. On Friday, 13 October 2017 18:22:20 EEST Fabrizio Castro wrote: > Add support for the R8A7743 DU (which is very similar to the R8A7791 DU); > it has 1 DPAD (RGB) output and 1 LVDS output. > > Signed-off-by: Fabrizio Castro > Reviewed-by: Biju Das Reviewed

[PATCH v5 05/09] iommu/ipmmu-vmsa: IPMMU device is 40-bit bus master

2017-10-16 Thread Magnus Damm
From: Magnus Damm The r8a7795 IPMMU supports 40-bit bus mastering. Both the coherent DMA mask and the streaming DMA mask are set to unlock the 40-bit address space for coherent allocations and streaming operations. Signed-off-by: Magnus Damm --- Changes since V4: - None Changes since V3:

[PATCH v5 08/09] iommu/ipmmu-vmsa: Allow two bit SL0

2017-10-16 Thread Magnus Damm
From: Magnus Damm Introduce support for two bit SL0 bitfield in IMTTBCR by using a separate feature flag. Signed-off-by: Magnus Damm --- Changes since V4: - Use leaf node mmu instead of root Changes since V3: - None Changes since V2: - None Changes since V1: - None drivers/iommu/i

[PATCH v5 04/09] iommu/ipmmu-vmsa: Make use of IOMMU_OF_DECLARE()

2017-10-16 Thread Magnus Damm
From: Magnus Damm Hook up IOMMU_OF_DECLARE() support in case CONFIG_IOMMU_DMA is enabled. The only current supported case for 32-bit ARM is disabled, however for 64-bit ARM usage of OF is required. Signed-off-by: Magnus Damm --- Changes since V4: - Use ipmmu_is_root() instead of now removed

[PATCH v5 06/09] iommu/ipmmu-vmsa: Write IMCTR twice

2017-10-16 Thread Magnus Damm
From: Magnus Damm Write IMCTR both in the root device and the leaf node. To allow access of IMCTR introduce the following function: - ipmmu_ctx_write_all() While at it also rename context functions: - ipmmu_ctx_read() -> ipmmu_ctx_read_root() - ipmmu_ctx_write() -> ipmmu_ctx_write_root() Si

[PATCH v5 03/09] iommu/ipmmu-vmsa: Enable multi context support

2017-10-16 Thread Magnus Damm
From: Magnus Damm Add support for up to 8 contexts. Each context is mapped to one domain. One domain is assigned one or more slave devices. Contexts are allocated dynamically and slave devices are grouped together based on which IPMMU device they are connected to. This makes slave devices tied to

[PATCH v5 09/09] iommu/ipmmu-vmsa: Hook up r8a7795 DT matching code

2017-10-16 Thread Magnus Damm
From: Magnus Damm Tie in r8a7795 features and update the IOMMU_OF_DECLARE compat string to include the updated compat string. Signed-off-by: Magnus Damm --- Changes since V4: - Got rid of root device availability check in ->xlate() -> deferred probing is used to make sure the root is alwa

[PATCH v5 07/09] iommu/ipmmu-vmsa: Make IMBUSCTR setup optional

2017-10-16 Thread Magnus Damm
From: Magnus Damm Introduce a feature to allow opt-out of setting up IMBUSCR. The default case is unchanged. Signed-off-by: Magnus Damm --- Changes since V4: - Use leaf node mmu instead of root Changes since V3: - None Changes since V2: - None Changes since V1: - Updated the commit

[PATCH v5 01/09] iommu/ipmmu-vmsa: Introduce features, break out alias

2017-10-16 Thread Magnus Damm
From: Magnus Damm Introduce struct ipmmu_features to track various hardware and software implementation changes inside the driver for different kinds of IPMMU hardware. Add use_ns_alias_offset as a first example of a feature to control if the secure register bank offset should be used or not. Si

[PATCH v5 02/09] iommu/ipmmu-vmsa: Add optional root device feature

2017-10-16 Thread Magnus Damm
From: Magnus Damm Add root device handling to the IPMMU driver by allowing certain DT compat strings to enable has_cache_leaf_nodes that in turn will support both root devices with interrupts and leaf devices that face the actual IPMMU consumer devices. Signed-off-by: Magnus Damm --- Changes

[PATCH v5 00/09] iommu/ipmmu-vmsa: r8a7795 support V5

2017-10-16 Thread Magnus Damm
iommu/ipmmu-vmsa: r8a7795 support V5 [PATCH v5 01/09] iommu/ipmmu-vmsa: Introduce features, break out alias [PATCH v5 02/09] iommu/ipmmu-vmsa: Add optional root device feature [PATCH v5 03/09] iommu/ipmmu-vmsa: Enable multi context support [PATCH v5 04/09] iommu/ipmmu-vmsa: Make use of IOMMU_OF_DE

Re: [PATCH] ARM: head-common.S: Clear lr before jumping to start_kernel()

2017-10-16 Thread Russell King - ARM Linux
On Sun, Oct 15, 2017 at 10:04:16AM +0200, Geert Uytterhoeven wrote: > On Sat, Oct 14, 2017 at 4:14 PM, Russell King - ARM Linux > wrote: > > Thanks, it would've been good to have known that ahead of time. > > > > It's why the patch system has the KernelVersion: tag: > > > > 6. Kernel version. > >

Re: mainline 4.14-rc4: renesas_sdhi_internal_dmac ee100000.sd: swiotlb buffer is full?

2017-10-16 Thread Linus Walleij
On Mon, Oct 16, 2017 at 2:07 PM, Geert Uytterhoeven wrote: > On Mon, Oct 16, 2017 at 1:41 PM, Linus Walleij > wrote: >> On Mon, Oct 16, 2017 at 11:02 AM, Geert Uytterhoeven >> wrote: IIUC, - Since the MMC_BOUNCE disappeared in v4.14-rc1, the MMC core will request a command with

Re: mainline 4.14-rc4: renesas_sdhi_internal_dmac ee100000.sd: swiotlb buffer is full?

2017-10-16 Thread Geert Uytterhoeven
Hi Linus, On Mon, Oct 16, 2017 at 1:41 PM, Linus Walleij wrote: > On Mon, Oct 16, 2017 at 11:02 AM, Geert Uytterhoeven > wrote: >>> IIUC, >>> - Since the MMC_BOUNCE disappeared in v4.14-rc1, the MMC core will request >>> a command with 64kbyte+ size. >>> - So, swiotlb will got request 64kbyte+

Re: mainline 4.14-rc4: renesas_sdhi_internal_dmac ee100000.sd: swiotlb buffer is full?

2017-10-16 Thread Linus Walleij
On Mon, Oct 16, 2017 at 11:02 AM, Geert Uytterhoeven wrote: >> IIUC, >> - Since the MMC_BOUNCE disappeared in v4.14-rc1, the MMC core will request a >> command with 64kbyte+ size. >> - So, swiotlb will got request 64kbyte+ size. This is different with >> previous version. Other people reporte

RE: [PATCH RESEND] phy: rcar-gen2: Add r8a7743/5 support

2017-10-16 Thread Chris Paterson
Hello Kishon, > From: Biju Das [mailto:biju@bp.renesas.com] > Sent: 09 October 2017 11:22 > > Add USB PHY support for r8a7743/5 SoC. Renesas RZ/G1[ME] (R8A7743/5) > USB PHY is identical to the R-Car Gen2 family. > > Signed-off-by: Biju Das > Acked-by: Simon Horman > Acked-by: Rob Herring

[PATCH 0/2] Add XHCI support

2017-10-16 Thread Biju Das
Hello, This series aims to add USB XHCI support for iWave RZ/G1M (R8A7743) board. This series has been tested against renesas-dev tag 20171013-v4.14-rc4. Regards, Fabrizio Castro (2): dt-bindings: usb-xhci: Document r8a7743 support ARM: dts: r8a7743: Add xhci support to SoC dtsi Documentat

[PATCH 1/2] dt-bindings: usb-xhci: Document r8a7743 support

2017-10-16 Thread Biju Das
From: Fabrizio Castro Document r8a7743 xhci support. The driver will use the fallback compatible string "renesas,rcar-gen2-xhci", therefore no driver change is needed. Signed-off-by: Fabrizio Castro --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 4 +++- 1 file changed, 3 insertions(+

[PATCH 2/2] ARM: dts: r8a7743: Add xhci support to SoC dtsi

2017-10-16 Thread Biju Das
From: Fabrizio Castro Add node for xhci. Boards DT files will enable it if needed. Signed-off-by: Fabrizio Castro --- arch/arm/boot/dts/r8a7743.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/r8a7743.dtsi b/arch/arm/boot/dts/r8a7743.dtsi index 6

Re: [PATCH 00/13] ARM: dts: renesas: Add missing clocks for ARM CPU cores

2017-10-16 Thread Simon Horman
On Thu, Oct 12, 2017 at 11:35:03AM +0200, Geert Uytterhoeven wrote: > Hi Simon, Magnus, > > This series improves DT hardware descriptions for Renesas arm32 SoCs by > adding missing clocks properties to the device nodes corresponding to > ARM CPU cores. > > Notes: > - This series should ha

Re: [PATCH 08/13] ARM: dts: r8a7790: Add clocks for CA7 CPU cores

2017-10-16 Thread Simon Horman
On Thu, Oct 12, 2017 at 11:35:11AM +0200, Geert Uytterhoeven wrote: > Currently only the CPU cores in the CA15 cluster have clocks properties. > Add the missing clocks properties for the CPU cores in the CA7 cluster > to fix this. > > Signed-off-by: Geert Uytterhoeven Tested-by: Simon Horman

Re: [PATCH 07/13] ARM: dts: r8a7790: Add missing clocks for secondary CA15 CPU cores

2017-10-16 Thread Simon Horman
On Thu, Oct 12, 2017 at 11:35:10AM +0200, Geert Uytterhoeven wrote: > Currently only the primary CPU in the CA15 cluster has a clocks > property, while the secondary CPU cores are driven by the same clock. > Add the missing clocks properties to fix this. > > Signed-off-by: Geert Uytterhoeven Tes

Re: [PATCH 1/4] dt-bindings: display: rcar-du: Document R8A774[35] DU

2017-10-16 Thread Laurent Pinchart
Hi Fabrizio, Thank you for the patch. On Friday, 13 October 2017 18:22:19 EEST Fabrizio Castro wrote: > Add device tree bindings for r8a7743 and r8a7745 DUs. > r8a7743 DU is similar to the one from r8a7791, r8a7745 DU is similar > to the one from r8a7794. > > Signed-off-by: Fabrizio Castro > Re

Re: [PATCH v2 1/3] dt-bindings: mmc: renesas_sdhi: provide example in bindings documentation

2017-10-16 Thread Geert Uytterhoeven
Hi Simon, On Mon, Oct 16, 2017 at 9:58 AM, Simon Horman wrote: > Provide an example of the usage of the DT bindings for TMIO > in their documentation. The example given is for the r8a7790 (R-Car H2). > > Signed-off-by: Simon Horman > --- > v2 > * Correct description of example, it is for the r8a

[PATCH v3 1/5] clk: renesas: cpg-mssr: Restore module clocks during resume

2017-10-16 Thread Geert Uytterhoeven
During PSCI system suspend, R-Car Gen3 SoCs are powered down, and their clock register state is lost. Note that as the boot loader skips most initialization after system resume, clock register state differs from the state encountered during normal system boot, too. Hence after s2ram, some operati

[PATCH v3 2/5] clk: renesas: cpg-mssr: Add support to restore core clocks during resume

2017-10-16 Thread Geert Uytterhoeven
On R-Car Gen3 systems, PSCI system suspend powers down the SoC, possibly losing clock configuration. Hence add a notifier chain that can be used by core clocks to save/restore clock state during system suspend/resume. The implementation of the actual clock state save/restore operations is clock-s

[PATCH v3 3/5] clk: renesas: div6: Restore clock state during resume

2017-10-16 Thread Geert Uytterhoeven
On R-Car Gen3 systems, PSCI system suspend powers down the SoC, losing clock configuration. Register an (optional) notifier to restore the DIV6 clock state during system resume. As DIV6 clocks can be picky w.r.t. modifying multiple register fields at once, restore is not implemented by blindly re

[PATCH v3 0/5] clk: renesas: rcar-gen3: Restore clocks during resume

2017-10-16 Thread Geert Uytterhoeven
Hi Mike, Stephen, During PSCI system suspend, R-Car Gen3 SoCs are powered down, and their clock register state is lost. Note that as the boot loader skips most initialization after resume, clock register state differs from the state encountered during normal system boot, too. Hence after

[PATCH v3 4/5] clk: renesas: rcar-gen3: Restore SDHI clocks during resume

2017-10-16 Thread Geert Uytterhoeven
On R-Car Gen3 systems, PSCI system suspend powers down the SoC, losing clock configuration. Register a notifier to save/restore SDHI clock registers during system suspend/resume. This is implemented using the cpg_simple_notifier abstraction, which can be reused for others clocks that just need to

[PATCH LOCAL v2] arm64: defconfig: Add renesas_defconfig

2017-10-16 Thread Geert Uytterhoeven
Add a defconfig for Renesas R-Car Gen3 boards. Signed-off-by: Geert Uytterhoeven --- Against renesas-devel-20171013-v4.14-rc4. Not intended for upstream merge. Loosely based on arm64 defconfig, with support for non-Renesas SoCs and boards removed, and missing support added. Simon, if you includ

[PATCH v3 5/5] clk: renesas: rcar-gen3: Restore R clock during resume

2017-10-16 Thread Geert Uytterhoeven
On R-Car Gen3 systems, PSCI system suspend powers down the SoC, losing clock configuration. Register a notifier to save/restore the RCKCR register during system suspend/resume. Signed-off-by: Geert Uytterhoeven Tested-by: Niklas Söderlund --- v3: - Drop RFC state, - Add Tested-by, v2: -

Re: mainline 4.14-rc4: renesas_sdhi_internal_dmac ee100000.sd: swiotlb buffer is full?

2017-10-16 Thread Geert Uytterhoeven
CC LinusW, Ulf, linux-mmc On Mon, Oct 16, 2017 at 10:36 AM, Yoshihiro Shimoda wrote: >> From: Dirk Behme, Sent: Thursday, October 12, 2017 6:13 PM >> On 12.10.2017 10:20, Dirk Behme wrote: >> > On 11.10.2017 15:20, Geert Uytterhoeven wrote: >> >> On Wed, Oct 11, 2017 at 2:57 PM, Dirk Behme >> >>

RE: mainline 4.14-rc4: renesas_sdhi_internal_dmac ee100000.sd: swiotlb buffer is full?

2017-10-16 Thread Yoshihiro Shimoda
Hi Dirk-san, > From: Dirk Behme, Sent: Thursday, October 12, 2017 6:13 PM > > On 12.10.2017 10:20, Dirk Behme wrote: > > On 11.10.2017 15:20, Geert Uytterhoeven wrote: > >> Hi Dirk, > >> > >> On Wed, Oct 11, 2017 at 2:57 PM, Dirk Behme > >> wrote: > >>> On 11.10.2017 14:42, Geert Uytterhoeven wr

RE: [PATCH 1/4] ARM: dts: iwg22d: Use /dev/ttySC3 as debug console

2017-10-16 Thread Biju Das
Hi, Looks like the chosen node "stdout-path = "serial0:115200n8";" is not updated with this patch. So either drop the patch or fix the chosen node. Regards, Biju > -Original Message- > From: Fabrizio Castro [mailto:fabrizio.cas...@bp.renesas.com] > Sent: 13 October 2017 14:03 > To: Rob

[PATCH v2 0/3] mmc: renesas_sdhi: add R-Car Gen[123] fallback compatibility strings

2017-10-16 Thread Simon Horman
Add fallback compatibility strings for R-Car Gen 1, 2 and 3 to the SDHI bindings and driver. In the case of Renesas R-Car hardware we know that there are generations of SoCs, f.e. Gen 1 and 2. But beyond that its not clear what the relationship between IP blocks might be. For example, I believe th

[PATCH v2 2/3] dt-bindings: mmc: renesas_sdhi: add R-Car Gen[123] fallback compatibility strings

2017-10-16 Thread Simon Horman
Add fallback compatibility strings for R-Car Gen 1, 2 and 3. In the case of Renesas R-Car hardware we know that there are generations of SoCs, f.e. Gen 1 and 2. But beyond that its not clear what the relationship between IP blocks might be. For example, I believe that r8a7790 is older than r8a7791

[PATCH v2 3/3] mmc: renesas_sdhi: implement R-Car Gen[123] fallback compatibility strings

2017-10-16 Thread Simon Horman
Implement fallback compatibility strings for R-Car Gen 1, 2 and 3. In the case of Renesas R-Car hardware we know that there are generations of SoCs, f.e. Gen 1 and 2. But beyond that its not clear what the relationship between IP blocks might be. For example, I believe that r8a7790 is older than r

[PATCH v2 1/3] dt-bindings: mmc: renesas_sdhi: provide example in bindings documentation

2017-10-16 Thread Simon Horman
Provide an example of the usage of the DT bindings for TMIO in their documentation. The example given is for the r8a7790 (R-Car H2). Signed-off-by: Simon Horman --- v2 * Correct description of example, it is for the r8a7790 (R-Car H2) rather than the r8a7779 (R-Car H1) --- Documentation/device

  1   2   >