[PATCH v2 3/4] pwm: jz4740: Make PWM start with the active part

2020-05-25 Thread Paul Cercueil
. Since the duty was already inverted, and we invert it again, we now program the hardware for the requested duty, and simply invert the polarity when the PWM is enabled. Signed-off-by: Paul Cercueil --- Notes: v2: Add documentation about why we invert the polarity, and improve commit

Re: [PATCH 3/3] pwm: jz4740: Add support for the JZ4725B

2020-05-24 Thread Paul Cercueil
Hi Uwe, Le dim. 24 mai 2020 à 19:37, Uwe Kleine-König a écrit : On Mon, Apr 13, 2020 at 02:14:45PM +0200, Paul Cercueil wrote: The PWM hardware in the JZ4725B works the same as in the JZ4740, but has only six channels available. Signed-off-by: Paul Cercueil --- Notes: I did

Re: [PATCH 1/3] pwm: jz4740: Drop dependency on MACH_INGENIC

2020-05-24 Thread Paul Cercueil
Hi, Any feedback on this patchset? Cheers, -Paul Le lun. 13 avril 2020 à 14:14, Paul Cercueil a écrit : Depending on MACH_INGENIC prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. Signed-off-by: Paul Cercueil

[PATCH] ASoC: ingenic: Unconditionally depend on devicetree

2020-05-23 Thread Paul Cercueil
All boards with Ingenic SoCs probe with devicetree already, we have no use for a non-devicetree path. This solves some compilation warnings that were caused by unused variables in the case where CONFIG_OF was disabled. Signed-off-by: Paul Cercueil Reported-by: kbuild test robot --- sound/soc

Re: [PATCH v7 3/5] remoteproc: Add support for runtime PM

2020-05-22 Thread Paul Cercueil
Hi Suman, Le ven. 22 mai 2020 à 11:47, Suman Anna a écrit : Hi Paul, On 5/15/20 5:43 AM, Paul Cercueil wrote: Call pm_runtime_get_sync() before the firmware is loaded, and pm_runtime_put() after the remote processor has been stopped. Even though the remoteproc device has no PM callbacks

Re: [PATCH] usb: musb: jz4740: Prevent lockup when CONFIG_SMP is set

2020-05-21 Thread Paul Cercueil
Hi Bin, The patch it fixes was introduced in 5.7-rc1, is it possible to queue it for the next -rc? Otherwise I'll need to Cc it to linux-stable. -Paul Le jeu. 21 mai 2020 à 15:34, Bin Liu a écrit : On Wed, May 20, 2020 at 05:01:11PM +0200, Paul Cercueil wrote: The function

[PATCH] usb: musb: jz4740: Prevent lockup when CONFIG_SMP is set

2020-05-20 Thread Paul Cercueil
: Add support for DMA") Signed-off-by: Paul Cercueil --- drivers/usb/musb/jz4740.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c index 54e7b30acc69..42c1e8bfc4be 100644 --- a/drivers/usb/musb/jz4740.c +++ b/driver

Re: [PATCH v8 1/6] MIPS: JZ4780: Introduce SMP support.

2020-05-20 Thread Paul Cercueil
Hi Zhou, Le mer. 20 mai 2020 à 15:23, Zhou Yanjie a écrit : Hi Paul, On 2020年05月20日 03:41, Paul Cercueil wrote: Hi Zhou, Le mar. 19 mai 2020 à 22:35, 周琰杰 (Zhou Yanjie)  a écrit : Forward port smp support from kernel 3.18.3 of CI20_linux to upstream kernel 5.6. Tested-by: H. Nikolaus

[PATCH v2 1/3] dt-bindings: pinctrl: Convert ingenic,pinctrl.txt to YAML

2020-05-19 Thread Paul Cercueil
Convert the ingenic,pinctrl.txt doc file to ingenic,pinctrl.yaml. In the process, some compatible strings now require a fallback, as the corresponding SoCs are pin-compatible with their fallback variant. Signed-off-by: Paul Cercueil --- Notes: v2: - Use 'pinctrl' instead of 'pin-controller

[PATCH v2 3/3] dt-bindings: mtd: Convert ingenic,jz4780-nand.txt to YAML

2020-05-19 Thread Paul Cercueil
Convert the ingenic,jz4780-nand.txt doc file to ingenic,nand.yaml. Signed-off-by: Paul Cercueil --- Notes: v2: - Don't include ingenic,nemc-client.yaml which is gone - Use 'partitions' property instead of '^partitions$' pattern .../bindings/mtd/ingenic,jz4780-nand.txt | 92

[PATCH v2 2/3] dt-bindings: memory: Convert ingenic,jz4780-nemc.txt to YAML

2020-05-19 Thread Paul Cercueil
Convert the ingenic,jz4780-nemc.txt doc file to ingenic,nemc.yaml. The ingenic,jz4725b-nemc compatible string was added in the process, with a fallback to ingenic,jz4740-nemc. Signed-off-by: Paul Cercueil --- Notes: v2: - Inline content of ingenic,nemc-client.yaml inside ingenic,nemc.yaml

[PATCH] MIPS: ingenic: Add missing include

2020-05-19 Thread Paul Cercueil
Add missing include which adds the prototype to plat_time_init(). Fixes: f932449c11da ("MIPS: ingenic: Drop obsolete code, merge the rest in setup.c") Signed-off-by: Paul Cercueil Reported-by: kbuild test robot --- arch/mips/jz4740/setup.c | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH v7 7/7] input: joystick: Add ADC attached joystick driver.

2020-05-19 Thread Paul Cercueil
Hi Andy, Le mar. 19 mai 2020 à 23:43, Andy Shevchenko a écrit : On Sun, May 17, 2020 at 10:49 PM Artur Rojek wrote: Add a driver for joystick devices connected to ADC controllers supporting the Industrial I/O subsystem. ... +static int adc_joystick_handle(const void *data, void

[PATCH] clocksource: Ingenic: Add high resolution timer support for SMP.

2020-05-19 Thread Paul Cercueil
From: 周琰杰 (Zhou Yanjie) Enable clock event handling on per CPU core basis. Make sure that interrupts raised on the first core execute event handlers on the correct CPU core. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) Signed-off-by: Paul Cercueil

Re: [PATCH v8 1/6] MIPS: JZ4780: Introduce SMP support.

2020-05-19 Thread Paul Cercueil
Hi Zhou, Le mar. 19 mai 2020 à 22:35, 周琰杰 (Zhou Yanjie) a écrit : Forward port smp support from kernel 3.18.3 of CI20_linux to upstream kernel 5.6. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Jiaxun Yang --- Notes: v1->v2:

Re: [PATCH v8 3/6] clocksource: Ingenic: Add high resolution timer support for SMP.

2020-05-19 Thread Paul Cercueil
96 100644 --- a/drivers/clocksource/ingenic-timer.c +++ b/drivers/clocksource/ingenic-timer.c @@ -1,7 +1,8 @@ // SPDX-License-Identifier: GPL-2.0 /* - * JZ47xx SoCs TCU IRQ driver + * XBurst SoCs TCU IRQ driver If you want to get rid of the JZ47xx, then just write 'Ingenic SoCs TCU IRQ driver',

Re: [PATCH v8 1/6] MIPS: JZ4780: Introduce SMP support.

2020-05-19 Thread Paul Cercueil
Hi Zhou, Le mar. 19 mai 2020 à 22:35, 周琰杰 (Zhou Yanjie) a écrit : Forward port smp support from kernel 3.18.3 of CI20_linux to upstream kernel 5.6. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Jiaxun Yang --- Notes: v1->v2:

Re: [PATCH 11/12] gpu/drm: Ingenic: Add support for the IPU

2020-05-18 Thread Paul Cercueil
Hi Emil, Le lun. 18 mai 2020 à 11:48, Emil Velikov a écrit : Hi Paul, Disclaimer: I don't know much about the hardware :-P On Sun, 17 May 2020 at 00:31, Paul Cercueil wrote: Add support for the Image Processing Unit (IPU) found in all Ingenic SoCs. Since the IPU is present on all

Re: [PATCH 05/12] gpu/drm: Ingenic: Fix opaque pointer casted to wrong type

2020-05-17 Thread Paul Cercueil
Hi Sam, Le dim. 17 mai 2020 à 8:21, Sam Ravnborg a écrit : On Sat, May 16, 2020 at 11:50:50PM +0200, Paul Cercueil wrote: The opaque pointer passed to the IRQ handler is a pointer to the drm_device, not a pointer to our ingenic_drm structure. It still worked, because our ingenic_drm

Re: [PATCH 04/12] gpu/drm: ingenic: Fix bogus crtc_atomic_check callback

2020-05-17 Thread Paul Cercueil
Hi Sam, Le dim. 17 mai 2020 à 8:17, Sam Ravnborg a écrit : On Sat, May 16, 2020 at 11:50:49PM +0200, Paul Cercueil wrote: The code was comparing the SoC's maximum height with the mode's width, and vice-versa. D'oh. Cc: sta...@vger.kernel.org # v5.6 Fixes: a7c909b7c037 ("gpu/drm: in

Re: [PATCH 02/12] dt-bindings: display: Add ingenic,ipu.yaml

2020-05-17 Thread Paul Cercueil
Hi Sam, Le dim. 17 mai 2020 à 8:17, Sam Ravnborg a écrit : Hi Paul. On Sat, May 16, 2020 at 11:50:47PM +0200, Paul Cercueil wrote: Add documentation of the Device Tree bindings for the Image Processing Unit (IPU) found in most Ingenic SoCs. Signed-off-by: Paul Cercueil For me it fails

[PATCH 11/12] gpu/drm: Ingenic: Add support for the IPU

2020-05-16 Thread Paul Cercueil
is then a primary plane itself. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/Kconfig | 11 + drivers/gpu/drm/ingenic/Makefile | 1 + drivers/gpu/drm/ingenic/ingenic-drm.c | 67 +- drivers/gpu/drm/ingenic/ingenic-drm.h | 9 + drivers/gpu/drm/ingenic/ingenic-ipu.c | 861

[PATCH 12/12] gpu/drm: Ingenic: Support multiple panels/bridges

2020-05-16 Thread Paul Cercueil
Support multiple panels or bridges connected to the same DPI output of the SoC. This setup can be found for instance on the GCW Zero, where the same DPI output interfaces the internal 320x240 TFT panel, and the ITE IT6610 HDMI chip. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic

[PATCH 10/12] gpu/drm: Ingenic: Register driver as component master

2020-05-16 Thread Paul Cercueil
Register the ingenic-drm driver as a component master. This will later allow to plug optional components to the driver, for instance to add support for the IPU, or the SLCD module. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 61 +-- 1 file

[PATCH 09/12] gpu/drm: Ingenic: Add support for OSD mode

2020-05-16 Thread Paul Cercueil
All Ingenic SoCs starting from the JZ4725B support OSD mode. In this mode, two separate planes can be used. They can have different positions and sizes, and one can be overlayed on top of the other. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 275

[PATCH 07/12] gpu/drm: ingenic: Set DMA descriptor chain address in probe

2020-05-16 Thread Paul Cercueil
The address of the DMA descriptor never changes. It can therefore be set in the probe function. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu

[PATCH 08/12] gpu/drm: Ingenic: Move register definitions to ingenic-drm.h

2020-05-16 Thread Paul Cercueil
Move the register definitions to ingenic-drm.h, to keep ingenic-drm.c tidy. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 116 +-- drivers/gpu/drm/ingenic/ingenic-drm.h | 127 ++ 2 files changed, 129 insertions(+), 114

[PATCH 06/12] gpu/drm: Ingenic: Fix incorrect assumption about plane->index

2020-05-16 Thread Paul Cercueil
plane->index is NOT the index of the color plane in a YUV frame. Actually, a YUV frame is represented by a single drm_plane, even though it contains three Y, U, V planes. Cc: sta...@vger.kernel.org # v5.3 Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the Ingenic JZ47xx SoCs") Signed

[PATCH 04/12] gpu/drm: ingenic: Fix bogus crtc_atomic_check callback

2020-05-16 Thread Paul Cercueil
The code was comparing the SoC's maximum height with the mode's width, and vice-versa. D'oh. Cc: sta...@vger.kernel.org # v5.6 Fixes: a7c909b7c037 ("gpu/drm: ingenic: Check for display size in CRTC atomic check") Signed-off-by: Paul Cercueil --- Notes: This patch was previ

[PATCH 05/12] gpu/drm: Ingenic: Fix opaque pointer casted to wrong type

2020-05-16 Thread Paul Cercueil
. Cc: sta...@vger.kernel.org # v5.3 Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the Ingenic JZ47xx SoCs") Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c

[PATCH 03/12] component: Support binding with no matches

2020-05-16 Thread Paul Cercueil
Support binding the master even though no components have been registered. This permits to support cases where components are optional. Signed-off-by: Paul Cercueil --- drivers/base/component.c | 35 ++- 1 file changed, 26 insertions(+), 9 deletions(-) diff

[PATCH 01/12] dt-bindings: display: Convert ingenic,lcd.txt to YAML

2020-05-16 Thread Paul Cercueil
Convert the ingenic,lcd.txt to a new ingenic,lcd.yaml file. In the process, the new ingenic,jz4780-lcd compatible string has been added. Signed-off-by: Paul Cercueil --- Notes: This patch comes from a different patchset so it's effectively a V2. Changes were: - lcd_pclk

[PATCH 02/12] dt-bindings: display: Add ingenic,ipu.yaml

2020-05-16 Thread Paul Cercueil
Add documentation of the Device Tree bindings for the Image Processing Unit (IPU) found in most Ingenic SoCs. Signed-off-by: Paul Cercueil --- .../bindings/display/ingenic,ipu.yaml | 65 +++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v7 5/5] MAINTAINERS: Add myself as reviewer for Ingenic rproc driver

2020-05-15 Thread Paul Cercueil
Add myself as the reviewer for the Ingenic VPU remoteproc driver. Signed-off-by: Paul Cercueil --- Notes: v4: New patch v5-v7: No change MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 091ec22c1a23..5d864d785574 100644 --- a/MAINTAINERS

[PATCH v7 1/5] dt-bindings: Document JZ47xx VPU auxiliary processor

2020-05-15 Thread Paul Cercueil
Inside the Video Processing Unit (VPU) of the recent JZ47xx SoCs from Ingenic is a second Xburst MIPS CPU very similar to the main core. This document describes the devicetree bindings for this auxiliary processor. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: Update

[PATCH v7 2/5] remoteproc: Add device-managed variants of rproc_alloc/rproc_add

2020-05-15 Thread Paul Cercueil
Add API functions devm_rproc_alloc() and devm_rproc_add(), which behave like rproc_alloc() and rproc_add() respectively, but register their respective cleanup function to be called on driver detach. Signed-off-by: Paul Cercueil Reviewed-by: Bjorn Andersson --- Notes: v3: New patch v4

[PATCH v7 3/5] remoteproc: Add support for runtime PM

2020-05-15 Thread Paul Cercueil
Call pm_runtime_get_sync() before the firmware is loaded, and pm_runtime_put() after the remote processor has been stopped. Even though the remoteproc device has no PM callbacks, this allows the parent device's PM callbacks to be properly called. Signed-off-by: Paul Cercueil --- Notes: v2

[PATCH v7 4/5] remoteproc: ingenic: Added remoteproc driver

2020-05-15 Thread Paul Cercueil
This driver is used to boot, communicate with and load firmwares to the MIPS co-processor found in the VPU hardware of the JZ47xx SoCs from Ingenic. Signed-off-by: Paul Cercueil Acked-by: Mathieu Poirier --- Notes: v2: Remove exception for always-mapped memories v3: - Use clk_bulk API

Re: [PATCH] drm/etnaviv: fix perfmon domain interation

2020-05-15 Thread Paul Cercueil
with and invalid offset. This results in: Unable to handle kernel paging request at virtual address On such a device it is not possible to use the userspace driver at all. The fix for this off-by-one error is quite simple. Reported-by: Paul Cercueil Tested-by: Paul Cercueil Fixes

Re: DRM interaction problems on Ingenic CI20 / jz4780 with dw-hdmi and ingenic-drm

2020-05-09 Thread Paul Cercueil
Hi Paul, Le mar. 5 mai 2020 à 20:26, Paul Boddie a écrit : On Monday 4. May 2020 03.05.22 Paul Cercueil wrote: > Le sam. 11 avril 2020 à 16:14, H. Nikolaus Schaller a > écrit : >> >> So far we have identified two issues. >> >> The first is that H

[PATCH 5/7] rtc: ingenic: Remove unused fields from private structure

2020-05-05 Thread Paul Cercueil
The 'clk' and 'irq' fields were only ever used in the probe function. Therefore they can be moved to be simple local variables of the probe function. Signed-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions

[PATCH 4/7] rtc: ingenic: Set wakeup params in probe

2020-05-05 Thread Paul Cercueil
We can write the wakeup timing parameters as soon as the driver probes, there's no need to wait the very last moment. Signed-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 95 +++- 1 file changed, 44 insertions(+), 51 deletions(-) diff --git a/drivers

[PATCH 6/7] rtc: ingenic: Fix masking of error code

2020-05-05 Thread Paul Cercueil
The code was returning -ENOENT on any error of platform_get_irq(), even if it returned a different error. Signed-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c index

[PATCH 1/7] rtc: ingenic: Only support probing from devicetree

2020-05-05 Thread Paul Cercueil
With the recent work on supporting Device Tree on Ingenic SoCs, no driver ever probes from platform code anymore, so we can clean a bit this driver by removing the non-devicetree paths. Signed-off-by: Paul Cercueil --- drivers/rtc/Kconfig | 1 + drivers/rtc/rtc-jz4740.c | 20

[PATCH 7/7] rtc: ingenic: Reset regulator register in probe

2020-05-05 Thread Paul Cercueil
-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c index 65e130726fc6..9607e6b6e0b3 100644 --- a/drivers/rtc/rtc-jz4740.c +++ b/drivers/rtc/rtc-jz4740.c @@ -372,6 +372,9 @@ static int

[PATCH 3/7] rtc: ingenic: Enable clock in probe

2020-05-05 Thread Paul Cercueil
It makes no sense to request a clock and not enable it even though the hardware is being used. So the driver now enables the clock in the probe. Besides, now we can properly handle errors. Signed-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 19 +-- 1 file changed, 17

[PATCH 2/7] rtc: ingenic: Use local 'dev' variable in probe

2020-05-05 Thread Paul Cercueil
Clean a bit the probe function by adding a local struct device *dev variable. Signed-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/rtc/rtc-jz4740.c b/drivers/rtc/rtc-jz4740.c index

Re: [PATCH] drm: ingenic-drm: add MODULE_DEVICE_TABLE

2020-05-04 Thread Paul Cercueil
Hi Nikolaus, Le lun. 4 mai 2020 à 8:35, H. Nikolaus Schaller a écrit : so that the driver can load by matching the device tree if compiled as module. Cc: sta...@vger.kernel.org # v5.3+ Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the Ingenic JZ47xx SoCs") Signed-off-by: H. Nikolaus

Re: [RFC v3 2/8] drm: ingenic-drm: add MODULE_DEVICE_TABLE

2020-05-03 Thread Paul Cercueil
Hi Nikolaus, Le dim. 29 mars 2020 à 19:35, H. Nikolaus Schaller a écrit : so that the driver can load by matching the device tree if compiled as module. Signed-off-by: H. Nikolaus Schaller Please add: Cc: sta...@vger.kernel.org # v5.3+ Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the

Re: DRM interaction problems on Ingenic CI20 / jz4780 with dw-hdmi and ingenic-drm

2020-05-03 Thread Paul Cercueil
Hi Nikolaus, So I just wrote a HDMI driver for a different chip, I guess I can answer some of your questions now. Le lun. 13 avril 2020 à 13:25, Paul Cercueil a écrit : Hi Nikolaus, Le sam. 11 avril 2020 à 16:14, H. Nikolaus Schaller a écrit : Hi, we (Paul Boddie and me) are working

[PATCH] gpu/drm: ingenic: Fix bogus crtc_atomic_check callback

2020-05-03 Thread Paul Cercueil
The code was comparing the SoC's maximum height with the mode's width, and vice-versa. D'oh. Cc: sta...@vger.kernel.org # v5.6+ Fixes: a7c909b7c037 ("gpu/drm: ingenic: Check for display size in CRTC atomic check") Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic

[PATCH] pinctrl: ingenic: Add irq_{request,release}_resources callbacks

2020-05-03 Thread Paul Cercueil
. Signed-off-by: Paul Cercueil --- drivers/pinctrl/pinctrl-ingenic.c | 21 + 1 file changed, 21 insertions(+) diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers/pinctrl/pinctrl-ingenic.c index 96f04d121ebd..f2b95ee31ffe 100644 --- a/drivers/pinctrl/pinctrl-ingenic.c +++ b

Re: [PATCH v7 01/12] dt-bindings: add img,pvrsgx.yaml for Imagination GPUs

2020-05-03 Thread Paul Cercueil
Le dim. 3 mai 2020 à 15:31, H. Nikolaus Schaller a écrit : Hi Paul, Am 03.05.2020 um 14:52 schrieb Paul Cercueil : It's possible to forbid the presence of the 'clocks' property on some implementations, and require it on others. To be precise we have to specify the exact number

Re: [PATCH v7 01/12] dt-bindings: add img,pvrsgx.yaml for Imagination GPUs

2020-05-03 Thread Paul Cercueil
Hi Nikolaus, Le sam. 2 mai 2020 à 22:26, H. Nikolaus Schaller a écrit : Hi Paul, Am 26.04.2020 um 15:11 schrieb Paul Cercueil : Hi Nikolaus, Le ven. 24 avril 2020 à 22:34, H. Nikolaus Schaller a écrit : The Imagination PVR/SGX GPU is part of several SoC from multiple vendors, e.g

Re: [PATCH 07/13] MIPS: ingenic: DTS: Respect cell count of common properties

2020-04-30 Thread Paul Cercueil
Hi Thomas, Le mer. 29 avril 2020 à 23:04, Thomas Bogendoerfer a écrit : On Mon, Apr 13, 2020 at 05:26:27PM +0200, Paul Cercueil wrote: If N fields of X cells should be provided, then that's what the devicetree should represent, instead of having one single field of (N*X) cells. Signed

Re: [PATCH v7 08/12] arm: dts: s5pv210: Add node for SGX 540

2020-04-29 Thread Paul Cercueil
:56 a.m., Paul Cercueil wrote: Le ven. 24 avril 2020 à 22:34, H. Nikolaus Schaller a écrit : From: Jonathan Bakker All s5pv210 devices have a PowerVR SGX 540 (revision 120) attached. There is no external regulator for it so it can be enabled by default. Signed-off-by: Jonathan

Re: [PATCH 8/8] dt-bindings: display: Convert ingenic,lcd.txt to YAML

2020-04-29 Thread Paul Cercueil
This one patch will need a V2, I messed up with the clocks. -Paul Le dim. 26 avril 2020 à 20:58, Paul Cercueil a écrit : Convert the ingenic,lcd.txt to a new ingenic,lcd.yaml file. In the process, the new ingenic,jz4780-lcd compatible string has been added. Signed-off-by: Paul Cercueil

Re: [PATCH 2/8] dt-bindings: intc: Convert ingenic,intc.txt to YAML

2020-04-28 Thread Paul Cercueil
Hi Sergei, Le lun. 27 avril 2020 à 12:11, Sergei Shtylyov a écrit : Hello! On 26.04.2020 21:58, Paul Cercueil wrote: Convert the ingenic,intc.txt doc file to ingenic,intc.yaml. Some compatible strings now require a fallback, as the controller generally works the same across the SoCs

[PATCH v2 2/3] watchdog: jz4740: Use regmap provided by TCU driver

2019-10-23 Thread Paul Cercueil
Since we broke the ABI by changing the clock, the driver was also updated to use the regmap provided by the TCU driver. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek Acked-by: Guenter Roeck --- Notes: v2: Rebase on top of 5.4-rc4 drivers/watchdog

[PATCH v2 3/3] watchdog: jz4740: Drop dependency on MACH_JZ47xx

2019-10-23 Thread Paul Cercueil
Depending on MACH_JZ47xx prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. Signed-off-by: Paul Cercueil Acked-by: Guenter Roeck --- Notes: v2: Rebase on top of 5.4-rc4 drivers/watchdog/Kconfig | 2 +- 1 file

[PATCH v2 1/3] watchdog: jz4740: Use WDT clock provided by TCU driver

2019-10-23 Thread Paul Cercueil
ck. In this very specific case it is still okay, as every Ingenic JZ47xx-based board out there compile the devicetree within the kernel; so it's still time to push breaking changes, in order to get a clean devicetree that won't break once it musn't. Signed-off-by: Paul Cercueil Tested-by: Mathi

Re: [PATCH RESEND 2/2] dmaengine: JZ4780: Add support for the X1000.

2019-10-23 Thread Paul Cercueil
jz4780_dma_soc_data x1000_dma_soc_data = { + .nb_channels = 8, + .transfer_ord_max = 7, + .flags = JZ_SOC_DATA_ALLOW_LEGACY_DT | JZ_SOC_DATA_PROGRAMMABLE_DMA, Please don't use JZ_SOC_DATA_ALLOW_LEGACY_DT for new bindings. With that flag removed: Reviewed-by: Paul Cercueil

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-10-21 Thread Paul Cercueil
Hi, Le mer., août 14, 2019 at 19:32, Uwe Kleine-König a écrit : Hello Paul, On Wed, Aug 14, 2019 at 06:10:35PM +0200, Paul Cercueil wrote: Le mar. 13 août 2019 à 16:09, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : > On Tue, Aug 13, 2019 at 02:47:28PM +0200, Paul Cercueil wrote: >

Re: [PATCH 2/2] clk: Ingenic: Add CGU driver for X1000.

2019-10-21 Thread Paul Cercueil
Hi Zhou, Le sam., oct. 19, 2019 at 01:50, Zhou Yanjie a écrit : Add support for the clocks provided by the CGU in the Ingenic X1000 SoC, making use of the cgu code to do the heavy lifting. Signed-off-by: Zhou Yanjie --- drivers/clk/ingenic/Kconfig | 10 ++

Re: [PATCH 6/6 v2] MMC: JZ4740: Add support for LPM.

2019-10-18 Thread Paul Cercueil
Hi Uffe, Le ven., oct. 18, 2019 at 10:52, Ulf Hansson a écrit : On Sat, 12 Oct 2019 at 07:19, Zhou Yanjie wrote: add support for low power mode of Ingenic's MMC/SD Controller. Signed-off-by: Zhou Yanjie I couldn't find a proper coverletter for the series, please provide that next

Re: [PATCH] dmaengine: jz4780: Use devm_platform_ioremap_resource() in jz4780_dma_probe()

2019-10-14 Thread Paul Cercueil
Hi Vinod, Le lun., oct. 14, 2019 at 12:44, Vinod Koul a écrit : On 24-09-19, 21:32, Paul Cercueil wrote: Hi Markus, Le dim. 22 sept. 2019 à 11:25, Markus Elfring a écrit : > From: Markus Elfring > Date: Sun, 22 Sep 2019 11:18:27 +0200 > > Simplify this function im

Re: [PATCH 5/5 v5] irqchip: Ingenic: Add process for more than one irq at the same time.

2019-10-05 Thread Paul Cercueil
processing is completed. Signed-off-by: Zhou Yanjie Looks good to me. Reviewed-by: Paul Cercueil --- drivers/irqchip/irq-ingenic.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/irqchip/irq-ingenic.c b/drivers/irqchip/irq-ingenic.c index

Re: [PATCH 1/5 v5] irqchip: ingenic: Drop redundant irq_suspend / irq_resume functions

2019-10-05 Thread Paul Cercueil
Hi Zhou, Le mer., oct. 2, 2019 at 19:25, Zhou Yanjie a écrit : From: Paul Cercueil The same behaviour can be obtained by using the IRQCHIP_MASK_ON_SUSPEND flag on the IRQ chip. Signed-off-by: Paul Cercueil If you sumbit a patchset that contains someone else's patches you need to add

Re: [PATCH] dmaengine: jz4780: Use devm_platform_ioremap_resource() in jz4780_dma_probe()

2019-09-24 Thread Paul Cercueil
Elfring Looks good to me. Signed-off-by: Paul Cercueil --- drivers/dma/dma-jz4780.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index cafb1cc065bb..f42b3ef8e036 100644 --- a/drivers/dma/dma-jz4780.c +++ b

Re: [PATCH v2 1/3] dt-bindings: Document JZ47xx VPU auxiliary processor

2019-08-21 Thread Paul Cercueil
Hi Rob, Le mar. 20 août 2019 à 22:50, Rob Herring a écrit : On Mon, Jul 29, 2019 at 02:31:07PM -0400, Paul Cercueil wrote: Inside the Video Processing Unit (VPU) of the recent JZ47xx SoCs from Ingenic is a second Xburst MIPS CPU very similar to the main core. This document describes

Re: linux-next: Tree for Aug 19 (irqchip: irq-ingenic-tcu.c)

2019-08-19 Thread Paul Cercueil
Hi Randy, The fix was merged a couple of hours ago in mips-next. Cheers -Paul Le mar. 20 août 2019 à 0:06, Randy Dunlap a écrit : On 8/19/19 2:18 AM, Stephen Rothwell wrote: Hi all, Changes since 20190816: on i386: ld: drivers/irqchip/irq-ingenic-tcu.o: in function

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-14 Thread Paul Cercueil
Hi Uwe, Le mar. 13 août 2019 à 16:09, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : Hello Paul, On Tue, Aug 13, 2019 at 02:47:28PM +0200, Paul Cercueil wrote: Le mar. 13 août 2019 à 14:33, Uwe Kleine-König a écrit : > On Tue, Aug 13, 2019 at 01:01:06PM +0200, Paul Cercueil wr

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-13 Thread Paul Cercueil
Le mar. 13 août 2019 à 14:33, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : Hello Paul, On Tue, Aug 13, 2019 at 01:01:06PM +0200, Paul Cercueil wrote: Le mar. 13 août 2019 à 7:27, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : > [adding Stephen Boyd to Cc] > > On Tue, Aug

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-13 Thread Paul Cercueil
Le mar. 13 août 2019 à 7:27, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : Hello Paul, [adding Stephen Boyd to Cc] On Tue, Aug 13, 2019 at 12:16:23AM +0200, Paul Cercueil wrote: Le lun. 12 août 2019 à 23:48, Uwe Kleine-König a écrit : > On Mon, Aug 12, 2019 at 10:43:10PM +0200, P

Re: [PATCH 10/11] mfd: Drop obsolete JZ4740 driver

2019-08-13 Thread Paul Cercueil
Hi Philippe, Le mar. 13 août 2019 à 10:44, Philippe =?iso-8859-1?q?Mathieu-Daud=E9?= a écrit : Hi Lee, On 8/12/19 10:16 AM, Lee Jones wrote: On Thu, 25 Jul 2019, Paul Cercueil wrote: It has been replaced with the ingenic-iio driver for the ADC. Signed-off-by: Paul Cercueil Tested

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-12 Thread Paul Cercueil
[Re-send my message in plain text, as it was bounced by the lists - sorry about that] Le lun. 12 août 2019 à 23:48, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : Hello Paul, On Mon, Aug 12, 2019 at 10:43:10PM +0200, Paul Cercueil wrote: Le lun. 12 août 2019 à 8:15, Uwe =?iso-8859-1?q

Re: [PATCH 6/7] pwm: jz4740: Make PWM start with the active part

2019-08-12 Thread Paul Cercueil
Le lun. 12 août 2019 à 7:55, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : On Fri, Aug 09, 2019 at 07:33:24PM +0200, Paul Cercueil wrote: Le ven. 9 août 2019 à 19:10, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : > On Fri, Aug 09, 2019 at 02:30:30PM +0200, Paul Cercueil wr

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-12 Thread Paul Cercueil
Le lun. 12 août 2019 à 8:15, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : Hello Paul, On Fri, Aug 09, 2019 at 07:14:45PM +0200, Paul Cercueil wrote: Le ven. 9 août 2019 à 19:05, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : > On Fri, Aug 09, 2019 at 02:30:28PM +0200, Paul Cercu

[PATCH v2] clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro

2019-08-10 Thread Paul Cercueil
with "simple-mfd". Signed-off-by: Paul Cercueil --- Notes: v2: Rebased on v5.3-rc3 drivers/clk/ingenic/jz4725b-cgu.c | 2 +- drivers/clk/ingenic/jz4740-cgu.c | 2 +- drivers/clk/ingenic/jz4770-cgu.c | 2 +- drivers/clk/ingenic/jz4780-cgu.c | 2 +- 4 files changed, 4 insertions(+), 4

Re: [PATCH] clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro

2019-08-10 Thread Paul Cercueil
Le jeu. 8 août 2019 à 6:23, Stephen Boyd a écrit : Quoting Paul Cercueil (2019-07-16 10:08:00) By using CLK_OF_DECLARE_DRIVER instead of the CLK_OF_DECLARE macro, we allow the driver to probe also as a platform driver. While this driver does not have code to probe as a platform driver

[PATCH 1/2] mmc: jz4740: Code cleanup

2019-08-10 Thread Paul Cercueil
Fix wrong code indentation which made the code hard to read, and fix return with value in void function. Signed-off-by: Paul Cercueil --- drivers/mmc/host/jz4740_mmc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc

[PATCH 2/2] mmc: jz4740: Drop dependency on arch header

2019-08-10 Thread Paul Cercueil
We don't need to set the 'slave_id' anymore - that field is never read by the DMA driver. Signed-off-by: Paul Cercueil --- drivers/mmc/host/jz4740_mmc.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c index 59f81e8afcce

Re: [PATCH 3/7] pwm: jz4740: Drop dependency on MACH_INGENIC

2019-08-09 Thread Paul Cercueil
Le ven. 9 août 2019 à 18:41, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : On Fri, Aug 09, 2019 at 02:30:27PM +0200, Paul Cercueil wrote: Depending on MACH_INGENIC prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being

Re: [PATCH 0/3] watchdog: jz4740: Driver update

2019-08-09 Thread Paul Cercueil
Le ven. 9 août 2019 à 19:29, Guenter Roeck a écrit : On Fri, Aug 09, 2019 at 06:55:26PM +0200, Paul Cercueil wrote: Hi Guenter, Le ven. 9 août 2019 à 18:52, Guenter Roeck a écrit : >On Fri, Aug 09, 2019 at 01:59:27PM +0200, Paul Cercueil wrote: >> Hi, >> >>

Re: [PATCH 6/7] pwm: jz4740: Make PWM start with the active part

2019-08-09 Thread Paul Cercueil
Le ven. 9 août 2019 à 19:10, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : On Fri, Aug 09, 2019 at 02:30:30PM +0200, Paul Cercueil wrote: The PWM will always start with the inactive part. To counter that, when PWM is enabled we switch the configured polarity, and use 'period - duty + 1

Re: [PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-09 Thread Paul Cercueil
Le ven. 9 août 2019 à 19:05, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : On Fri, Aug 09, 2019 at 02:30:28PM +0200, Paul Cercueil wrote: The previous algorithm hardcoded details about how the TCU clocks work. The new algorithm will use clk_round_rate to find the perfect clock rate

Re: [PATCH 1/7] pwm: jz4740: Obtain regmap from parent node

2019-08-09 Thread Paul Cercueil
Hi Uwe, Le ven. 9 août 2019 à 18:51, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= a écrit : On Fri, Aug 09, 2019 at 02:30:25PM +0200, Paul Cercueil wrote: The TCU registers are shared between a handful of drivers, accessing them through the same regmap. While this driver is devicetree-compatible

Re: [PATCH 0/3] watchdog: jz4740: Driver update

2019-08-09 Thread Paul Cercueil
Hi Guenter, Le ven. 9 août 2019 à 18:52, Guenter Roeck a écrit : On Fri, Aug 09, 2019 at 01:59:27PM +0200, Paul Cercueil wrote: Hi, This patchset comes from a bigger patchset that was cut in smaller pieces for easier integration to mainline. (The patchset was https://lkml.org/lkml/2019

[PATCH] clocksource: Add driver for the Ingenic JZ47xx OST

2019-08-09 Thread Paul Cercueil
Huurne Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- Hi, This patch comes from a bigger patchset that was cut in smaller pieces for easier integration to mainline. (The patchset was https://lkml.org/lkml/2019/3/27/1837) The only change is the use

[PATCH 6/7] pwm: jz4740: Make PWM start with the active part

2019-08-09 Thread Paul Cercueil
The PWM will always start with the inactive part. To counter that, when PWM is enabled we switch the configured polarity, and use 'period - duty + 1' as the real duty. Signed-off-by: Paul Cercueil --- drivers/pwm/pwm-jz4740.c | 22 +- 1 file changed, 13 insertions(+), 9

[PATCH 7/7] pwm: jz4740: document known limitations

2019-08-09 Thread Paul Cercueil
From: Uwe Kleine-König The jz4740 PMW implementation doesn't fulfill the (up to now insufficiently documented) requirements of the PWM API. At least document them in the driver. Signed-off-by: Uwe Kleine-König Signed-off-by: Paul Cercueil --- drivers/pwm/pwm-jz4740.c | 4 1 file changed

[PATCH 3/7] pwm: jz4740: Drop dependency on MACH_INGENIC

2019-08-09 Thread Paul Cercueil
Depending on MACH_INGENIC prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. Signed-off-by: Paul Cercueil --- drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b

[PATCH 5/7] pwm: jz4740: Allow selection of PWM channels 0 and 1

2019-08-09 Thread Paul Cercueil
The TCU channels 0 and 1 were previously reserved for system tasks, and thus unavailable for PWM. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- drivers/pwm/pwm-jz4740.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff

[PATCH 2/7] pwm: jz4740: Use clocks from TCU driver

2019-08-09 Thread Paul Cercueil
hange does not introduce a ABI problem with current devicetree files. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- drivers/pwm/Kconfig | 1 + drivers/pwm/pwm-jz4740.c | 40 ++-- 2 files changed, 27 insertions(+), 14

[PATCH 4/7] pwm: jz4740: Improve algorithm of clock calculation

2019-08-09 Thread Paul Cercueil
The previous algorithm hardcoded details about how the TCU clocks work. The new algorithm will use clk_round_rate to find the perfect clock rate for the PWM channel. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- drivers/pwm/pwm-jz4740.c | 60

[PATCH 1/7] pwm: jz4740: Obtain regmap from parent node

2019-08-09 Thread Paul Cercueil
The TCU registers are shared between a handful of drivers, accessing them through the same regmap. While this driver is devicetree-compatible, it is never (as of now) probed from devicetree, so this change does not introduce a ABI problem with current devicetree files. Signed-off-by: Paul

[PATCH 0/7] pwm: jz4740: Driver update

2019-08-09 Thread Paul Cercueil
Hi, Patches 1-5 come from a bigger patchset that was cut in smaller pieces for easier integration to mainline. (The patchset was https://lkml.org/lkml/2019/3/27/1837) These patches are the exact same as the ones found in the patchset shown above, with the exception of patch [1/7] which now uses

[PATCH 1/3] watchdog: jz4740: Use WDT clock provided by TCU driver

2019-08-09 Thread Paul Cercueil
ck. In this very specific case it is still okay, as every Ingenic JZ47xx-based board out there compile the devicetree within the kernel; so it's still time to push breaking changes, in order to get a clean devicetree that won't break once it musn't. Signed-off-by: Paul Cercueil Reviewed-by: Gue

[PATCH 3/3] watchdog: jz4740: Drop dependency on MACH_JZ47xx

2019-08-09 Thread Paul Cercueil
Depending on MACH_JZ47xx prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2/3] watchdog: jz4740: Use regmap provided by TCU driver

2019-08-09 Thread Paul Cercueil
Since we broke the ABI by changing the clock, the driver was also updated to use the regmap provided by the TCU driver. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck Tested-by: Mathieu Malaterre Tested-by: Artur Rojek --- drivers/watchdog/Kconfig | 1 + drivers/watchdog

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