Re: [PATCH v2 3/3] media: Add support for Cadence CSI2RX 2.1

2019-09-09 Thread Jan Kotas
Hello Sakari, Thanks for the review. > On 6 Sep 2019, at 10:01, Sakari Ailus wrote: > > Hi Jan, > > On Thu, Sep 05, 2019 at 11:56:01AM +0100, Jan Kotas wrote: >> This patch adds support for CSI2RX v2.1 version of the controller. >> >> Signed-off-by: J

Re: [PATCH v2 2/3] media: Add lane checks for Cadence CSI2RX

2019-09-09 Thread Jan Kotas
> On 9 Sep 2019, at 09:51, Sakari Ailus wrote: > > > On Mon, Sep 09, 2019 at 07:41:21AM +0000, Jan Kotas wrote: >> >> >> Hello Sakari, >> >> Thanks for your reply. >>> On 6 Sep 2019, at 09:54, Sakari Ailus wrote: >>> >>&

Re: [PATCH v2 2/3] media: Add lane checks for Cadence CSI2RX

2019-09-09 Thread Jan Kotas
Hello Sakari, Thanks for your reply. > On 6 Sep 2019, at 09:54, Sakari Ailus wrote: > > Hi Jan, > > Thanks for the patchset. > > On Thu, Sep 05, 2019 at 11:56:00AM +0100, Jan Kotas wrote: >> /* >> * Driver for Cadence MIPI-CSI2 RX Controller v1.3 >&g

[PATCH v2 1/3] media: dt-bindings: Update bindings for Cadence CSI2RX

2019-09-05 Thread Jan Kotas
This patch adds a DT bindings documentation for Cadence CSI2RX v1.3 and v2.1 controllers. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/media/cdns,csi2rx.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/cdns

[PATCH v2 0/3] media: Add support for Cadence CSI2RX version 2.1

2019-09-05 Thread Jan Kotas
This patchset adds support for Cadence CSI2RX controller version 2.1. It currently limits maximum amount of data lanes to 4. Existing compatibility with v1.3 is maintained. Jan Kotas (3): media: dt-bindings: Update bindings for Cadence CSI2RX media: Add lane checks for Cadence CSI2RX media

[PATCH v2 2/3] media: Add lane checks for Cadence CSI2RX

2019-09-05 Thread Jan Kotas
This patch adds lane checks for CSI2RX, to prevent clock lane being used as a data lane. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2rx.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b

[PATCH v2 3/3] media: Add support for Cadence CSI2RX 2.1

2019-09-05 Thread Jan Kotas
This patch adds support for CSI2RX v2.1 version of the controller. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2rx.c | 139 ++- 1 file changed, 116 insertions(+), 23 deletions(-) diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b

Re: [PATCH 1/3] media: dt-bindings: Update bindings for Cadence CSI2RX version 2.1

2019-08-19 Thread Jan Kotas
> On 16 Aug 2019, at 23:18, Rob Herring wrote: > > > On Thu, Jul 25, 2019 at 11:26:46AM +0100, Jan Kotas wrote: >> This patch adds a DT bindings documentation for >> Cadence CSI2RX v2.1 controller. > > And 1.3? OK, I’ll update the commit descr

Re: [PATCH 0/3] media: Add support for Cadence CSI2RX version 2.1

2019-08-01 Thread Jan Kotas
> On 25 Jul 2019, at 12:26, Jan Kotas wrote: > > This patchset adds support for Cadence CSI2RX controller version 2.1. > It currently limits maximum amount of data lanes to 4. > Existing compatibility with v1.3 is maintained. > > Jan Kotas (3): > media: dt-b

Re: [alsa-devel] [RFC PATCH 17/40] soundwire: bus: use runtime_pm_get_sync/pm when enabled

2019-07-26 Thread Jan Kotas
> On 26 Jul 2019, at 10:22, Guennadi Liakhovetski > wrote: > > EXTERNAL MAIL > > > Hi Jan, > > On Fri, Jul 26, 2019 at 07:47:04AM +, Jan Kotas wrote: >> Hello, >> >> I while back I proposed a patch for this, but it went nowhere. >>

Re: [alsa-devel] [RFC PATCH 17/40] soundwire: bus: use runtime_pm_get_sync/pm when enabled

2019-07-26 Thread Jan Kotas
Hello, I while back I proposed a patch for this, but it went nowhere. https://patchwork.kernel.org/patch/10887405/ Maybe something similar can be implemented? Jan > On 26 Jul 2019, at 09:39, Guennadi Liakhovetski > wrote: > > EXTERNAL MAIL > > > Hi Pierre, > > I might be wrong but this

[PATCH 0/3] media: Add support for Cadence CSI2RX version 2.1

2019-07-25 Thread Jan Kotas
This patchset adds support for Cadence CSI2RX controller version 2.1. It currently limits maximum amount of data lanes to 4. Existing compatibility with v1.3 is maintained. Jan Kotas (3): media: dt-bindings: Update bindings for Cadence CSI2RX version 2.1 media: Add lane checks for Cadence

[PATCH 2/3] media: Add lane checks for Cadence CSI2RX

2019-07-25 Thread Jan Kotas
This patch adds lane checks for CSI2RX, to prevent clock lane being used as a data lane. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2rx.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b

[PATCH 1/3] media: dt-bindings: Update bindings for Cadence CSI2RX version 2.1

2019-07-25 Thread Jan Kotas
This patch adds a DT bindings documentation for Cadence CSI2RX v2.1 controller. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/media/cdns,csi2rx.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/cdns,csi2rx.txt b

[PATCH 3/3] media: Add support for Cadence CSI2RX 2.1

2019-07-25 Thread Jan Kotas
This patch adds support for CSI2RX v2.1 version of the controller. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2rx.c | 137 ++- 1 file changed, 115 insertions(+), 22 deletions(-) diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b

[PATCH v2 2/4] media: Add lane checks for Cadence CSI2TX

2019-07-22 Thread Jan Kotas
This patch adds lane checks for CSI2TX, to prevent clock lane being used as a data lane. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2tx.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/cadence/cdns-csi2tx.c b

[PATCH v2 0/4] media: Add support for Cadence CSI2TX version 2.1

2019-07-22 Thread Jan Kotas
This patchset adds support for Cadence CSI2TX controller version 2.1. Existing compatibility with v1.3 is updated and maintained. Jan Kotas (4): media: dt-bindings: Update bindings for Cadence CSI2TX version 2.1 media: Add lane checks for Cadence CSI2TX media: Fix Lane mapping in Cadence

[PATCH v2 4/4] media: Add support for Cadence CSI2TX 2.1

2019-07-22 Thread Jan Kotas
This patch adds support for CSI2TX v2.1 version of the controller. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2tx.c | 140 +-- 1 file changed, 111 insertions(+), 29 deletions(-) diff --git a/drivers/media/platform/cadence/cdns-csi2tx.c b

[PATCH v2 3/4] media: Fix Lane mapping in Cadence CSI2TX

2019-07-22 Thread Jan Kotas
This patch fixes mapping of lanes in DPHY_CFG register of the controller. In the register, bit 0 means first data lane. In Linux we currently assume lane 0 is clock. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2tx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2 1/4] media: dt-bindings: Update bindings for Cadence CSI2TX version 2.1

2019-07-22 Thread Jan Kotas
This patch adds a DT bindings documentation for Cadence CSI2TX v2.1 controller. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/media/cdns,csi2tx.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/cdns,csi2tx.txt b

Re: [PATCH 3/3] media: Add support for Cadence CSI2TX 2.1

2019-07-22 Thread Jan Kotas
> On 20 Jul 2019, at 10:25, Maxime Ripard wrote: > > Hi, > > On Thu, Jul 18, 2019 at 12:15:09PM +0100, Jan Kotas wrote: >> /* Put our lanes (clock and data) out of reset */ >> reg = CSI2TX_DPHY_CFG_CLK_RESET | CSI2TX_DPHY_CFG_MODE_LPDT; >> for

Re: [PATCH 2/3] media: Add lane checks for Cadence CSI2TX

2019-07-18 Thread Jan Kotas
> On 18 Jul 2019, at 13:52, Marc Gonzalez wrote: > > EXTERNAL MAIL > > > On 18/07/2019 13:15, Jan Kotas wrote: > >> This patch adds line checks for CSI2TX, to prevent >> clock lane being used as a data lane. > > "line checks" or "lane

[PATCH 1/3] media: dt-bindings: Update bindings for Cadence CSI2TX version 2.1

2019-07-18 Thread Jan Kotas
This patch adds a DT bindings documentation for Cadence CSI2TX v2.1 controller. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/media/cdns,csi2tx.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/cdns,csi2tx.txt b

[PATCH 3/3] media: Add support for Cadence CSI2TX 2.1

2019-07-18 Thread Jan Kotas
This patch adds support for CSI2TX v2.1 version of the controller. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2tx.c | 142 +-- 1 file changed, 112 insertions(+), 30 deletions(-) diff --git a/drivers/media/platform/cadence/cdns-csi2tx.c b

[PATCH 0/3] media: Add support for Cadence CSI2TX version 2.1

2019-07-18 Thread Jan Kotas
This patchset adds support for Cadence CSI2TX controller version 2.1. Existing compatibility with v1.3 is maintained. Jan Kotas (3): media: dt-bindings: Update bindings for Cadence CSI2TX version 2.1 media: Add lane checks for Cadence CSI2TX media: Add support for Cadence CSI2TX 2.1

[PATCH 2/3] media: Add lane checks for Cadence CSI2TX

2019-07-18 Thread Jan Kotas
This patch adds line checks for CSI2TX, to prevent clock lane being used as a data lane. Signed-off-by: Jan Kotas --- drivers/media/platform/cadence/cdns-csi2tx.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/cadence/cdns-csi2tx.c b

Re: [alsa-devel] [PATCH] soundwire: cdns: Fix compilation error on arm64

2019-05-09 Thread Jan Kotas
Hello, Is there a reason for not accepting this patch? Do you want me to change anything in v2? Regards, Jan > On 16 Apr 2019, at 10:43, Jan Kotas wrote: > >> On 14 Apr 2019, at 11:44, Vinod Koul wrote: >> >> >> On 04-04-19, 09:12, Jan Kotas wrote: >>

Re: [alsa-devel] [PATCH] soundwire: cdns: Fix compilation error on arm64

2019-04-16 Thread Jan Kotas
> On 14 Apr 2019, at 11:44, Vinod Koul wrote: > > > On 04-04-19, 09:12, Jan Kotas wrote: >> On arm64 the cadence_master.c file doesn't compile. >> >> readl and writel are undefined. >> This patch fixes that by including io.h. > > And I cant verify tha

Re: [PATCH] soundwire: fix pm_runtime_get_sync return code checks

2019-04-08 Thread Jan Kotas
> On 5 Apr 2019, at 17:04, Pierre-Louis Bossart > wrote: > > On 4/5/19 2:26 AM, Jan Kotas wrote: >> >> >> ret = pm_runtime_get_sync(slave->bus->dev); >> -if (ret < 0) >> +if (ret < 0 && ret != -EACCES) >&g

[PATCH] soundwire: fix pm_runtime_get_sync return code checks

2019-04-05 Thread Jan Kotas
When PM is disabled it returns -EACCES, which is currently threated as an error, and prevents accessing the slave's registers. This patch ignores the -EACCES return value from pm_runtime_get_sync() to let the SoundWire work in systems without runtime PM. Signed-off-by: Jan Kotas --- drivers

[PATCH] soundwire: cdns: Fix compilation error on arm64

2019-04-04 Thread Jan Kotas
On arm64 the cadence_master.c file doesn't compile. readl and writel are undefined. This patch fixes that by including io.h. Signed-off-by: Jan Kotas --- drivers/soundwire/cadence_master.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soundwire/cadence_master.c b/drivers

[PATCH 1/1] gpio: mmio: Fix bgpio_get_set & bgpio_get_set_multiple

2019-04-01 Thread Jan Kotas
ch fixes that by removing the unnecessary inversion. Signed-off-by: Jan Kotas --- drivers/gpio/gpio-mmio.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/drivers/gpio/gpio-mmio.c b/drivers/gpio/gpio-mmio.c index f172b4382d..04be18b954 100644 --- a/drivers/gpio/

[PATCH 1/2] dt-bindings: scsi: ufs-cdns: Update Cadence UFS compatibility list

2019-03-27 Thread Jan Kotas
This patch adds a new compatible string description for CDNS UFS HCD + M31 16nm PHY. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/ufs/cdns,ufshc.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt b

[PATCH 2/2] scsi: ufs-cdns: Add support for UFSHCI with M31 PHY

2019-03-27 Thread Jan Kotas
This patch adds an additional PHY initialization, required for M31 PHY when used with Cadence UFS HC. A new compatible string has been added for this purpose. Signed-off-by: Jan Kotas --- drivers/scsi/ufs/cdns-pltfrm.c | 77 -- 1 file changed, 67

[PATCH v3 1/2] dt-bindings: rtc: Add bindings for Cadence RTC

2019-01-22 Thread Jan Kotas
This patch adds a DT binding documentation for Cadence RTC controller. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/rtc/cdns,rtc.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/cdns,rtc.txt diff --git

[PATCH v3 2/2] rtc: Add Cadence RTC driver

2019-01-22 Thread Jan Kotas
This patch adds a driver for Cadence RTC controller. It can be enabled with RTC_DRV_CADENCE Kconfig option. It supports waking system from sleep modes. Signed-off-by: Jan Kotas --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-cadence.c | 423

[PATCH v3 0/2] rtc: Add a driver for Cadence RTC

2019-01-22 Thread Jan Kotas
Return -EINVAL for read_time() if RTC is disabled Fixed some typos Jan Kotas (2): dt-bindings: rtc: Add bindings for Cadence RTC rtc: Add Cadence RTC driver Jan Kotas (2): dt-bindings: rtc: Add bindings for Cadence RTC rtc: Add Cadence RTC driver Documentation/devicetree

Re: [PATCH v2 1/2] dt-bindings: rtc: Add bindings for Cadence RTC

2019-01-17 Thread Jan Kotas
> On 16 Jan 2019, at 22:08, Rob Herring wrote: > > > On Fri, Jan 11, 2019 at 03:14:00PM +0000, Jan Kotas wrote: >> This patch adds a DT binding documentation for >> Cadence RTC controller. >> +Required properties: >> +- compatible: Should be "cdns,rtc-r

[PATCH v2 2/2] rtc: Add Cadence RTC driver

2019-01-11 Thread Jan Kotas
This patch adds a driver for Cadence RTC controller. It can be enabled with RTC_DRV_CADENCE Kconfig option. It supports waking system from sleep modes. Signed-off-by: Jan Kotas --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-cadence.c | 423

[PATCH v2 0/2] rtc: Add a driver for Cadence RTC

2019-01-11 Thread Jan Kotas
Fixed some typos Jan Kotas (2): dt-bindings: rtc: Add bindings for Cadence RTC rtc: Add Cadence RTC driver Documentation/devicetree/bindings/rtc/cdns,rtc.txt | 25 ++ drivers/rtc/Kconfig| 10 + drivers/rtc/Makefile | 1 + drivers

[PATCH v2 1/2] dt-bindings: rtc: Add bindings for Cadence RTC

2019-01-11 Thread Jan Kotas
This patch adds a DT binding documentation for Cadence RTC controller. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/rtc/cdns,rtc.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/cdns,rtc.txt diff --git

[PATCH 2/2] rtc: Add Cadence RTC driver

2019-01-08 Thread Jan Kotas
This patch adds a driver for Cadence RTC controller. It can be enabled with RTC_DRV_CADENCE Kconfig option. It supports waking system from sleep modes. Signed-off-by: Jan Kotas --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-cadence.c | 404

[PATCH 1/2] dt-bindings: rtc: Add bindings for Cadence RTC

2019-01-08 Thread Jan Kotas
This patch adds a DT binding documentation for Cadence RTC controller. Signed-off-by: Jan Kotas --- Documentation/devicetree/bindings/rtc/cdns,rtc.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/cdns,rtc.txt diff --git

[PATCH 0/2] rtc: Add a driver for Cadence RTC

2019-01-08 Thread Jan Kotas
This patchset adds a driver support for Cadence RTC IP. It supports time, date and wakeups from sleep. Jan Kotas (2): dt-bindings: rtc: Add bindings for Cadence RTC rtc: Add Cadence RTC driver Documentation/devicetree/bindings/rtc/cdns,rtc.txt | 25 ++ drivers/rtc/Kconfig

[PATCH v3 0/2] gpio: Add a driver for Cadence GPIO controller

2018-12-18 Thread Jan Kotas
settings at unexport/remove. Jan Kotas (2): dt-bindings: gpio: Add bindings for Cadence GPIO gpio: Add Cadence GPIO driver .../devicetree/bindings/gpio/cdns,gpio.txt | 44 drivers/gpio/Kconfig | 8 + drivers/gpio/Makefile

[PATCH v3 1/2] dt-bindings: gpio: Add bindings for Cadence GPIO

2018-12-18 Thread Jan Kotas
This patch adds a DT binding documentation for Cadence GPIO controller. Signed-off-by: Jan Kotas --- .../devicetree/bindings/gpio/cdns,gpio.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/cdns,gpio.txt diff

[PATCH v3 2/2] gpio: Add Cadence GPIO driver

2018-12-18 Thread Jan Kotas
This patch adds a driver for Cadence GPIO controller. It can be enabled with GPIO_CADENCE Kconfig option. It uses generic GPIO infrastructure and works as an interrupt controller. At the moment it only supports level sensitive irqs. Signed-off-by: Jan Kotas --- drivers/gpio/Kconfig

[PATCH v2 0/2] gpio: Add a driver for Cadence GPIO controller

2018-12-17 Thread Jan Kotas
sources. Changes since V1: Switched to generic GPIO infrastructure. Redesigned interrupts, now uses chained irqchip. Drop support for edge-sensitive interrupts. Restore bypass settings at unexport/remove. Jan Kotas (2): dt-bindings: gpio: Add bindings for Cadence

[PATCH v2 2/2] gpio: Add Cadence GPIO driver

2018-12-17 Thread Jan Kotas
This patch adds a driver for Cadence GPIO controller. It can be enabled with GPIO_CADENCE Kconfig option. It uses generic GPIO infrastructure and works as an interrupt controller. At the moment it only supports level sensitive irqs. Signed-off-by: Jan Kotas --- drivers/gpio/Kconfig

[PATCH v2 1/2] dt-bindings: gpio: Add bindings for Cadence GPIO

2018-12-17 Thread Jan Kotas
This patch adds a DT binding documentation for Cadence GPIO controller. Signed-off-by: Jan Kotas --- .../devicetree/bindings/gpio/cdns,gpio.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/cdns,gpio.txt diff

[PATCH v2 0/2] clk: Add driver and bindings for Fixed MMIO clock

2018-12-13 Thread Jan Kotas
on finished, complete SoCs. Changes since V1: Added platform driver support. Removed unnecessary messages. Jan Kotas (2): dt-bindings: clk: Add bindings for Fixed MMIO clock clk: Add Fixed MMIO clock driver .../devicetree/bindings/clock/fixed-mmio-clock.txt | 24

[PATCH v2 2/2] clk: Add Fixed MMIO clock driver

2018-12-13 Thread Jan Kotas
This patch adds a driver for Fixed MMIO clock. The driver reads a clock frequency value from a single 32-bit memory mapped register and registers it as a fixed rate clock. It can be enabled with COMMON_CLK_FIXED_MMIO Kconfig option. Signed-off-by: Jan Kotas --- drivers/clk/Kconfig

[PATCH v2 1/2] dt-bindings: clk: Add bindings for Fixed MMIO clock

2018-12-13 Thread Jan Kotas
This patch adds a DT binding documentation for Fixed Memory Mapped IO clocks. Signed-off-by: Jan Kotas --- .../devicetree/bindings/clock/fixed-mmio-clock.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/fixed-mmio

[PATCH] i2c: cadence: Allow Cadence I2C to be selected for Cadence Xtensa CPUs

2016-12-08 Thread Jan Kotas
This patch allows Cadence I2C controller to be selected in systems using Cadence Xtensa processors. Signed-off-by: Jan Kotas <j...@cadence.com> --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/

[PATCH] i2c: cadence: Allow Cadence I2C to be selected for Cadence Xtensa CPUs

2016-12-08 Thread Jan Kotas
This patch allows Cadence I2C controller to be selected in systems using Cadence Xtensa processors. Signed-off-by: Jan Kotas --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index d252276