RE: [PATCH 1/3] drm/db9000: Add Digital Blocks DB9000 LCD Controller

2020-05-13 Thread Gareth Williams
Hi Sam/Daniel, This is all very useful feedback, thank you. On Tue, Apr 28, 2020 at 19:24 PM Daniel Vetter wrote: > > On Tue, Apr 28, 2020 at 8:18 PM Sam Ravnborg wrote: > > > > Hi Gareth. > > > > On Mon, Apr 27, 2020 at 09:21:47AM +0100, Gareth Williams wrote:

RE: [PATCH v2 2/4] dt-bindings: snps,dw-apb-ssi: Add optional clock domain information

2019-10-01 Thread Gareth Williams
Hi Rob, On Tue, Oct 01, 2019 at 13:02:34AM +0100, Rob Herring wrote: > On Wed, Sep 18, 2019 at 09:04:34AM +0100, Gareth Williams wrote: > > Note in the bindings documentation that pclk should be renamed if a > > clock domain is used to enable the optional bus clock. > > >

RE: [PATCH v2 0/4] spi: dw: Add basic runtime PM support

2019-09-19 Thread Gareth Williams
Hi Mark, On Wed, Sep 19, 2019 at 14:31:32AM +0100, Mark Brown wrote: > On Wed, Sep 18, 2019 at 09:04:32AM +0100, Gareth Williams wrote: > > > Gareth Williams (1): > > dt-bindings: snps,dw-apb-ssi: Add optional clock domain information > > > > Phil Edworthy (3):

[PATCH v2 3/4] spi: dw: Add basic runtime PM support

2019-09-18 Thread Gareth Williams
From: Phil Edworthy Enable runtime PM so that the clock used to access the registers in the peripheral is turned on using a clock domain. Signed-off-by: Phil Edworthy Signed-off-by: Gareth Williams --- v2: - set spi_controller.auto_runtime_pm instead of using pm_runtime_get_sync. - Added

[PATCH v2 4/4] spi: dw: Add compatible string for Renesas RZ/N1 SPI Controller

2019-09-18 Thread Gareth Williams
use gpios for the CS signals. Signed-off-by: Gareth Williams Signed-off-by: Phil Edworthy --- v2: no changes --- drivers/spi/spi-dw-mmio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index edb3cf6..3640b01 100644 --- a/drivers/spi

[PATCH v2 2/4] dt-bindings: snps,dw-apb-ssi: Add optional clock domain information

2019-09-18 Thread Gareth Williams
Note in the bindings documentation that pclk should be renamed if a clock domain is used to enable the optional bus clock. Signed-off-by: Gareth Williams --- v2: Introduced this patch. --- Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v2 0/4] spi: dw: Add basic runtime PM support

2019-09-18 Thread Gareth Williams
domain in the bindings documentation. - Set spi_controller.auto_runtime_pm instead of using pm_runtime_get_sync. - Added pm_runtime_disable calls to dw_spi_remove_host and the error condition of dw_spi_add_host. Gareth Williams (1): dt-bindings: snps,dw-apb-ssi: Add optional clock domain

[PATCH v2 1/4] dt: spi: Add Renesas RZ/N1 binding documentation

2019-09-18 Thread Gareth Williams
also not needed as Linux can use gpios for the CS signals. Add a compatible string to handle any unforeseen issues that may arise, and pave the way for DMA support. Signed-off-by: Gareth Williams Signed-off-by: Phil Edworthy --- Note: All the other manufacturers detail their compatible strings

RE: [PATCH 2/3] spi: dw: Add basic runtime PM support

2019-09-17 Thread Gareth Williams
Hi Geert, > On Mon, Sep 17, 2019 at 07:36 PM Geert Uytterhoeven > wrote: > > Hi Gareth, > > On Mon, Sep 16, 2019 at 6:14 PM Gareth Williams > wrote: > > > On Mon, Sep 16, 2019 at 15:36 PM Geert Uytterhoeven > > > wrote: > > > On Fri, Sep

RE: [PATCH 2/3] spi: dw: Add basic runtime PM support

2019-09-16 Thread Gareth Williams
Hi Geert, I appreciate the feedback. > On Mon, Sep 16, 2019 at 15:36 PM Geert Uytterhoeven > wrote: > Hi Gareth, > > On Fri, Sep 13, 2019 at 2:13 PM Gareth Williams > wrote: > > From: Phil Edworthy > > > > Enable runtime PM so that the clock used to access

[PATCH 2/3] spi: dw: Add basic runtime PM support

2019-09-13 Thread Gareth Williams
From: Phil Edworthy Enable runtime PM so that the clock used to access the registers in the peripheral is turned on using a clock domain. Signed-off-by: Phil Edworthy Signed-off-by: Gareth Williams --- drivers/spi/spi-dw.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/spi

[PATCH 0/3] spi: dw: Add basic runtime PM support

2019-09-13 Thread Gareth Williams
The Renesas RZ/N1 SPI Controller is based on the Synopsys DW SSI. This series enables power mode in the driver so the clock domain will enable the bus clock, adds the compatible string and updates the associated bindings documentation. Phil Edworthy (3): dt: spi: Add Renesas RZ/N1 binding docume

[PATCH 1/3] dt: spi: Add Renesas RZ/N1 binding documentation

2019-09-13 Thread Gareth Williams
also not needed as Linux can use gpios for the CS signals. Add a compatible string to handle any unforeseen issues that may arise, and pave the way for DMA support. Signed-off-by: Gareth Williams Signed-off-by: Phil Edworthy --- Note: All the other manufacturers detail their compatible strings

[PATCH 3/3] spi: dw: Add compatible string for Renesas RZ/N1 SPI Controller

2019-09-13 Thread Gareth Williams
use gpios for the CS signals. Signed-off-by: Gareth Williams Signed-off-by: Phil Edworthy --- drivers/spi/spi-dw-mmio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index edb3cf6..3640b01 100644 --- a/drivers/spi/spi-dw-mmio.c +++ b

[PATCH v4 1/2] dt-bindings: clock: renesas,r9a06g032-sysctrl: Document power Domains

2019-05-28 Thread Gareth Williams
The driver is gaining power domain support, so add the new property to the DT binding and update the examples. Signed-off-by: Gareth Williams Reviewed-by: Geert Uytterhoeven --- v4: - Added missing HCLK to UART0 example to show the clock added to the driver. - Added Geert's Review

[PATCH v4 2/2] clk: renesas: r9a06g032: Add clock domain support

2019-05-28 Thread Gareth Williams
There are several clocks on the r9a06g032 which are currently not enabled in their drivers that can be delegated to clock domain system for power management. Therefore add support for clock domain functionality to the r9a06g032 clock driver. Signed-off-by: Gareth Williams --- v4: - Removed

[PATCH v4 0/2] clk: renesas: r9a06g032: Add clock domain support

2019-05-28 Thread Gareth Williams
e_add_module_clock. - changed r9a06g032_detach_dev to a static function. - Added new #power-domain-cells property to the required properties. - Added "#power-domain-cells" and "power-domains" lines to examples. v2: - Rebased onto kernel/git/geert/renesas-drivers.git Gareth Williams (2

[PATCH v3 2/2] clk: renesas: r9a06g032: Add clock domain support

2019-05-24 Thread Gareth Williams
There are several clocks on the r9ag032 which are currently not enabled in their drivers that can be delegated to clock domain system for power management. Therefore add support for clock domain functionality to the r9a06g032 clock driver. Signed-off-by: Gareth Williams --- drivers/clk/renesas

[PATCH v3 1/2] dt-bindings: clock: renesas,r9a06g032-sysctrl: Document power Domains

2019-05-24 Thread Gareth Williams
The driver is gaining power domain support, so add the new property to the DT binding and update the examples. Signed-off-by: Gareth Williams --- Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation

[PATCH v3 0/2] clk: renesas: r9a06g032: Add clock domain support

2019-05-24 Thread Gareth Williams
There are several clocks on the r9ag032 which are currently not enabled in their drivers that can be delegated to clock domain system for power management. Therefore add support for clock domain functionality to the r9a06g032 clock driver after updating the relevant dt-bindings file. Gareth

RE: [PATCH v2] clk: renesas: r9a06g032: Add clock domain support

2019-05-24 Thread Gareth Williams
Hi Geert, Thanks for the feedback. I added some additional information about the logic I used for the USB clocks inline below and will send V3 shortly. On Tue, May 22, 2019 at 1:02 PM Gareth Williams wrote: > Hi Gareth, > > On Tue, May 21, 2019 at 2:35 PM Gareth Williams > wrot

[PATCH v2] clk: renesas: r9a06g032: Add clock domain support

2019-05-21 Thread Gareth Williams
There are several clocks on the r9ag032 which are currently not enabled in their drivers that can be delegated to clock domain system for power management. Therefore add support for clock domain functionality to the r9a06g032 clock driver. Signed-off-by: Gareth Williams --- v2: - Rebased onto

[PATCH] clk: renesas: r9a06g032: Add clock domain support

2019-05-17 Thread Gareth Williams
There are several clocks on the r9ag032 which are currently not enabled in their drivers that can be delegated to clock domain system for power management. Therefore add support for clock domain functionality to the r9a06g032 clock driver. Signed-off-by: Gareth Williams --- drivers/clk/renesas

[PATCH v2 3/3] spi: dw: Add support for an optional interface clock

2019-03-19 Thread Gareth Williams
Signed-off-by: Gareth Williams --- v2: - Added dependancy information to patch notes. - Expanded on optional clock comment for clarity Depends on commit 60b8f0ddf1a ("clk: Add (devm_)clk_get_optional() functions") --- drivers/spi/spi-dw-mmio.c | 12 1 file changed, 12

[PATCH v2 2/3] dt-bindings: snps,dw-apb-ssi: Add optional clock bindings documentation

2019-03-19 Thread Gareth Williams
Add documentation to the Synopsys SPI dt-bindings to support an optional interface clock that may be used for register access. Signed-off-by: Phil Edworthy Signed-off-by: Gareth Williams --- v2: Created this separate patch to detail the optional interface clock property. This includes the

[PATCH v2 1/3] dt-bindings: snps,dw-apb-ssi: Add mandatory clock bindings documentation

2019-03-19 Thread Gareth Williams
From: Phil Edworthy The Synopsys SSI driver uses a mandatory clock that is not documented, so detail it in the device tree bindings. Also correct the spelling of "pins" in the "Optional Properties" section for the driver. Signed-off-by: Phil Edworthy Signed-off-by: Gar

[PATCH v2 0/3] spi: dw: Add support for an optional interface clock

2019-03-19 Thread Gareth Williams
expanded for clarity. Gareth Williams (1): dt-bindings: snps,dw-apb-ssi: Add optional clock bindings documentation Phil Edworthy (2): dt-bindings: snps,dw-apb-ssi: Add mandatory clock bindings documentation spi: dw: Add support for an optional interface clock Documentation/devicetree

RE: [PATCH 1/2] dt: snps,dw-apb-ssi: Add clock bindings documentation

2019-03-11 Thread Gareth Williams
> On Sat, Mar 03, 2019 at 23:32 +0100, Mark Brown wrote: > > On Thu, Feb 28, 2019 at 01:25:41PM +0000, Gareth Williams wrote: > > From: Phil Edworthy > > > > The driver requires a clock property, so detail it in the docs. > > Fix a typo, 'pis' to &

RE: [PATCH 2/2] spi: dw: Add support for an optional interface clock

2019-03-04 Thread Gareth Williams
Hi Mark, > On Mon, Mar 04, 2019 00:05:00, Mark Brown wrote: > > On Thu, Feb 28, 2019 at 01:25:42PM +0000, Gareth Williams wrote: > > From: Phil Edworthy > > > > The Synopsys SSI Controller has an interface clock, but most SoCs hide > > this away. However, o

[PATCH v5 2/2] i2c: designware: Add support for an interface clock

2019-02-28 Thread Gareth Williams
Signed-off-by: Gareth Williams Acked-by: Wolfram Sang --- v5: - Updated comments to reference "interface clock" instead of "peripheral clock". - Corrected spelling in commit message, changing "explicity" to "explicitly". v4: - Updated comments to re

[PATCH v5 0/2] i2c: designware: Add support for a bus clock

2019-02-28 Thread Gareth Williams
The Synopsys I2C Controller has an interface clock that some SoCs require to access the registers. This series also details the new clock property in the bindings documentation. v5: - Code comments and commit messages updated to reference "interface clock" instead of "peripheral clock". v4:

[PATCH 2/2] spi: dw: Add support for an optional interface clock

2019-02-28 Thread Gareth Williams
Signed-off-by: Gareth Williams --- drivers/spi/spi-dw-mmio.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index 4bd59a9..7cbc173 100644 --- a/drivers/spi/spi-dw-mmio.c +++ b/drivers/spi/spi-dw-mmio.c @@ -30,6 +30,7

[PATCH 1/2] dt: snps,dw-apb-ssi: Add clock bindings documentation

2019-02-28 Thread Gareth Williams
From: Phil Edworthy The driver requires a clock property, so detail it in the docs. Fix a typo, 'pis' to 'pins'. Add documentation for a separate, optional, interface clock. Signed-off-by: Phil Edworthy Signed-off-by: Gareth Williams --- Documentation/devicetree/bind

[PATCH 0/2] spi: dw: Add support for an optional interface clock

2019-02-28 Thread Gareth Williams
The Synopsys SSI Controller has an interface clock that must be explicitly enabled in order to access the registers. This patch series adds support for the interface clock and adds the associated bindings documentation. Phil Edworthy (2): dt: snps,dw-apb-ssi: Add clock bindings documentation

RE: [PATCH v4 0/2] i2c: designware: Add support for a bus clock

2019-02-25 Thread Gareth Williams
> On Sat, Feb 23, 2019 at 09:32 +0100, w...@the-dreams.de wrote: >> On Thu, Feb 21, 2019 at 04:10:57PM +0000, Gareth Williams wrote: >> The Synopsys I2C Controller has a peripheral clock that some SoCs >> require to access the registers. This series also details the new >

[PATCH v4 2/2] i2c: designware: Add support for a peripheral clock

2019-02-21 Thread Gareth Williams
-off-by: Gareth Williams Acked-by: Wolfram Sang --- v4: - Updated comments to reference "peripheral clock" instead of "bus clock". - Added Wolfram's Acked-by v3: - busclk renamed to pclk. - Added comment with dw_i2c_dev struct definition describing pclk. - Added

[PATCH v4 0/2] i2c: designware: Add support for a bus clock

2019-02-21 Thread Gareth Williams
The Synopsys I2C Controller has a peripheral clock that some SoCs require to access the registers. This series also details the new clock property in the bindings documentation. v4: - Code comments and commit messages updated to reference "peripheral clock" instead of "bus clock". - Rebased

[PATCH v3 2/2] i2c: designware: Add support for a bus clock

2019-02-20 Thread Gareth Williams
From: Phil Edworthy The Synopsys I2C Controller has a bus clock, but most SoCs hide this away. However, on some SoCs you need to explicity enable the bus clock in order to access the registers. Therefore, add support for an optional bus clock. Signed-off-by: Phil Edworthy Signed-off-by: Gareth

[PATCH v3 0/2] i2c: designware: Add support for a bus clock

2019-02-20 Thread Gareth Williams
The Synopsys I2C Controller has a bus clock that some SoCs require to access the registers. This series also details the new clock property in the bindings documentation. v3: - busclk renamed to pclk. - Added comment with dw_i2c_dev struct definition describing pclk. - Added enable rollback of

RE: [PATCH v3 0/2] i2c: designware: Add support for a bus clock

2019-02-20 Thread Gareth Williams
Sorry, the email below was sent prematurely and will be resent shortly. -Gareth > On 20 February 2019 13:26 Gareth Williams wrote: > The Synopsys I2C Controller has a bus clock that some SoCs require to access > the registers. This series also details the new clock property in the

[PATCH v3 0/2] i2c: designware: Add support for a bus clock

2019-02-20 Thread Gareth Williams
The Synopsys I2C Controller has a bus clock that some SoCs require to access the registers. This series also details the new clock property in the bindings documentation. v3: - busclk renamed to pclk. - Added comment with dw_i2c_dev struct definition describing pclk. - Added enable rollback of

[PATCH v2 2/2] i2c: designware: Add support for a bus clock

2019-02-19 Thread Gareth Williams
From: Phil Edworthy The Synopsys I2C Controller has a bus clock, but most SoCs hide this away. However, on some SoCs you need to explicity enable the bus clock in order to access the registers. Therefore, add support for an optional bus clock. Signed-off-by: Phil Edworthy Signed-off-by: Gareth

[PATCH v2 0/2] dt: i2c: Add support for bus clock

2019-02-19 Thread Gareth Williams
The Synopsys I2C Controller has a bus clock that some SoCs require to access the registers. This series also details the new clock property in the bindings documentation. v2: - Use new devm_clk_get_optional() function as it simplifies handling when the optional clock is not present. Phil Edwo