[PATCH 2/5] ASoC: codecs/jz4770: Reset interrupt flags in bias PREPARE

2020-12-07 Thread Paul Cercueil
From: Christophe Branchereau In case a poll for RUP times out, we might be left with some IRQ flags that should be cleared before the next power on. Signed-off-by: Christophe Branchereau Signed-off-by: Paul Cercueil --- sound/soc/codecs/jz4770.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 1/5] ASoC: codecs/jz47xx: Use regmap_{set,clear}_bits

2020-12-07 Thread Paul Cercueil
Use regmap_{set,clear}_bits instead of regmap_update_bits, when applicable. Signed-off-by: Paul Cercueil --- sound/soc/codecs/jz4725b.c | 26 ++-- sound/soc/codecs/jz4740.c | 20 +++-- sound/soc/codecs/jz4770.c | 85 +- 3 files changed, 55

[PATCH 3/5] ASoC: codecs/jz4770: Adjust timeouts for cap-coupled outputs

2020-12-07 Thread Paul Cercueil
From: Christophe Branchereau When using cap-coupled outputs, the RUP/RDO can take much longer than the 100ms timeout we used to have. Increase that timeout to one second. Signed-off-by: Christophe Branchereau Signed-off-by: Paul Cercueil --- sound/soc/codecs/jz4770.c | 8 1 file

Re: [PATCH] mmc: mediatek: mark PM functions as __maybe_unused

2020-12-07 Thread Paul Cercueil
Hi Arnd, Le ven. 4 déc. 2020 à 15:14, Arnd Bergmann a écrit : On Fri, Dec 4, 2020 at 11:02 AM Ulf Hansson wrote: On Thu, 3 Dec 2020 at 23:29, Arnd Bergmann wrote: > -#ifdef CONFIG_PM > static void msdc_save_reg(struct msdc_host *host) Shouldn't msdc_save|restore_reg() be turned

Re: [PATCH] mmc: mediatek: mark PM functions as __maybe_unused

2020-12-04 Thread Paul Cercueil
Hi, Le ven. 4 déc. 2020 à 15:14, Arnd Bergmann a écrit : On Fri, Dec 4, 2020 at 11:02 AM Ulf Hansson wrote: On Thu, 3 Dec 2020 at 23:29, Arnd Bergmann wrote: > -#ifdef CONFIG_PM > static void msdc_save_reg(struct msdc_host *host) Shouldn't msdc_save|restore_reg() be turned into

Re: [PATCH] memory: jz4780_nemc: Fix potential NULL dereference in jz4780_nemc_probe()

2020-12-04 Thread Paul Cercueil
off-by: Zhang Changzhong Acked-by: Paul Cercueil Cheers, -Paul --- drivers/memory/jz4780-nemc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/memory/jz4780-nemc.c b/drivers/memory/jz4780-nemc.c index 3ec5cb0..465ea92 100644 --- a/drivers/memory/jz4780-nemc.c +++ b/drivers/

Re: [PATCH 2/2] drm/ingenic: depend on COMMON_CLK to fix compile tests

2020-12-04 Thread Paul Cercueil
Hi Krzysztof, Le ven. 4 déc. 2020 à 10:18, Krzysztof Kozlowski a écrit : On Mon, Nov 16, 2020 at 07:54:03PM +, Paul Cercueil wrote: Hi Krzysztof, Le lun. 16 nov. 2020 à 18:53, Krzysztof Kozlowski a écrit : > The Ingenic DRM uses Common Clock Framework thus it cannot be bu

Re: [PATCH] ASoC: jz4740-i2s: add missed checks for clk_get()

2020-12-03 Thread Paul Cercueil
y: Chuhong Yuan Acked-by: Paul Cercueil Cheers, -Paul --- sound/soc/jz4740/jz4740-i2s.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/soc/jz4740/jz4740-i2s.c b/sound/soc/jz4740/jz4740-i2s.c index c7bd20104b20..0793e284d0e7 100644 --- a/sound/soc/jz4740/jz4740-i2s.c +++ b

Re: [PATCH 1/4] clk: JZ4780: Add function for disable the second core.

2020-12-02 Thread Paul Cercueil
Hi, Le jeu. 26 nov. 2020 à 1:26, 周琰杰 (Zhou Yanjie) a écrit : Add "jz4780_core1_disable()" for disable the second core of JZ4780, prepare for later commits. Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil Stephen: this patch can be merged independently of the other

Re: [PATCH 2/4] dt-bindings: clock: Add missing clocks for Ingenic SoCs.

2020-12-02 Thread Paul Cercueil
Hi, Le jeu. 26 nov. 2020 à 1:26, 周琰杰 (Zhou Yanjie) a écrit : Add CIM, AIC, DMIC clocks bindings for the X1000 SoC, and CIM, AIC, DMIC, I2S clocks for the X1830 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) Reviewed-by: Paul Cercueil Cheers, -Paul --- include/dt-bindings/clock

Re: [PATCH 3/4] clk: Ingenic: Add missing clocks for Ingenic SoCs.

2020-12-02 Thread Paul Cercueil
Hi Zhou, Le jeu. 26 nov. 2020 à 1:26, 周琰杰 (Zhou Yanjie) a écrit : Add CIM, AIC, DMIC clocks for the X1000 SoC, and CIM, AIC, DMIC, I2S clocks for the X1830 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- drivers/clk/ingenic/x1000-cgu.c | 19 drivers/clk/ingenic/x1830-cgu.c |

Re: [PATCH 4/4] clk: Ingenic: Fill unused bits in parents and reformat code.

2020-12-02 Thread Paul Cercueil
Hi Zhou, Le jeu. 26 nov. 2020 à 1:26, 周琰杰 (Zhou Yanjie) a écrit : 1.Fill unused bits in parents in jz4780-cgu.c, x1000-cgu.c, and x1830-cgu.c, these bits should be filled with -1. 2.Reformat code, add missing blank lines, remove unnecessary tabs, and align code. Signed-off-by: 周琰杰 (Zhou

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

2020-11-30 Thread Paul Cercueil
Le lun. 30 nov. 2020 à 13:18, Rob Herring a écrit : On Mon, Nov 30, 2020 at 12:39 PM Paul Cercueil wrote: Hi Rob, Le lun. 30 nov. 2020 à 7:32, Rob Herring a écrit : > On Mon, Nov 2, 2020 at 3:19 AM Paul Cercueil > wrote: >> >> >> >> Le

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

2020-11-30 Thread Paul Cercueil
Hi Rob, Le lun. 30 nov. 2020 à 7:32, Rob Herring a écrit : On Mon, Nov 2, 2020 at 3:19 AM Paul Cercueil wrote: Le dim. 1 nov. 2020 à 13:29, Sam Ravnborg a écrit : > On Sun, Nov 01, 2020 at 09:31:48AM +0000, Paul Cercueil wrote: >> The Asia Better Technology (ABT) Y030XX0

[PATCH] drm/ingenic: Add basic PM support

2020-11-28 Thread Paul Cercueil
Call drm_mode_config_helper_suspend() and drm_mode_config_helper_resume() on suspend and resume, respectively. This makes sure that the display stack is properly disabled when the hardware is put to sleep. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 20

Re: [PATCH] drm/ingenic: Add basic PM support

2020-11-28 Thread Paul Cercueil
Le sam. 28 nov. 2020 à 19:58, Sam Ravnborg a écrit : Hi Paul. On Sat, Nov 28, 2020 at 05:16:06PM +, Paul Cercueil wrote: Call drm_mode_config_helper_suspend() and drm_mode_config_helper_resume() on suspend and resume, respectively. This makes sure that the display stack

Re: [PATCH] clocksource/drivers/ingenic: Fix section mismatch

2020-11-25 Thread Paul Cercueil
for the ingenic_tcu_get_clock() function. One 'ta' too many ;) Fixes: f19d838d08fc (clocksource/drivers/ingenic: Add high resolution timer support for SMP/SMT) Reported-by: kernel test robot Signed-off-by: Daniel Lezcano With the above fixed: Reviewed-by: Paul Cercueil Cheers, -Paul

Re: [PATCH] remoteproc: Add module parameter 'auto_boot'

2020-11-21 Thread Paul Cercueil
Hi Suman, Le ven. 20 nov. 2020 à 17:06, Suman Anna a écrit : Hi Paul, On 11/20/20 4:37 PM, Mathieu Poirier wrote: Hi Paul, On Sun, Nov 15, 2020 at 11:50:56AM +, Paul Cercueil wrote: Until now the remoteproc core would always default to trying to boot the remote processor

Re: [PATCH] remoteproc: Add module parameter 'auto_boot'

2020-11-21 Thread Paul Cercueil
Hi Mathieu, Le ven. 20 nov. 2020 à 15:37, Mathieu Poirier a écrit : Hi Paul, On Sun, Nov 15, 2020 at 11:50:56AM +, Paul Cercueil wrote: Until now the remoteproc core would always default to trying to boot the remote processor at startup. The various remoteproc drivers could however

[PATCH 3/3] drm/ingenic: Add support for serial 8-bit delta-RGB panels

2020-11-19 Thread Paul Cercueil
Add support for 24-bit panels that are connected through a 8-bit bus and use delta-RGB, which means a RGB pixel ordering on odd lines, and a GBR pixel ordering on even lines. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 ++- drivers/gpu/drm/ingenic/ingenic

[PATCH 0/3] drm/ingenic: Add support for delta-RGB panels

2020-11-19 Thread Paul Cercueil
-280M and RG-280V handheld gaming consoles. Cheers, -Paul Paul Cercueil (3): drm/ingenic: Compute timings according to adjusted_mode->crtc_* drm/ingenic: Properly compute timings when using a 3x8-bit panel drm/ingenic: Add support for serial 8-bit delta-RGB panels drivers/gpu/drm/inge

[PATCH 2/3] drm/ingenic: Properly compute timings when using a 3x8-bit panel

2020-11-19 Thread Paul Cercueil
The LCD controller expects timing values in dot-clock ticks, which is 3x the timing values in pixels when using a 3x8-bit display; but it will count the display area size in pixels either way. Go figure. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 15

[PATCH 1/3] drm/ingenic: Compute timings according to adjusted_mode->crtc_*

2020-11-19 Thread Paul Cercueil
The adjusted_mode->crtc_* fields contain the values adjusted for the hardware, and are the ones that should be written to the registers. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) d

Re: [PATCH RESEND 0/2] Add dmaengine bindings for the JZ4775 and the X2000 SoCs.

2020-11-18 Thread Paul Cercueil
Le mer. 18 nov. 2020 à 16:25, Vinod Koul a écrit : On 10-11-20, 08:54, Paul Cercueil wrote: Hi Zhou, Le sam. 7 nov. 2020 à 20:20, 周琰杰 (Zhou Yanjie) a écrit : > Add the dmaengine bindings for the JZ4775 SoC and the X2000 SoC from > Ingenic. > > 周琰杰 (Zhou Yanjie)

Re: [PATCH 2/2] drm/ingenic: depend on COMMON_CLK to fix compile tests

2020-11-16 Thread Paul Cercueil
Acked-by: Paul Cercueil Cheers, -Paul --- drivers/gpu/drm/ingenic/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/ingenic/Kconfig b/drivers/gpu/drm/ingenic/Kconfig index 477d5387e43e..3b57f8be007c 100644 --- a/drivers/gpu/drm/ingenic/Kconfig +++ b/drivers/gpu

[PATCH] remoteproc: Add module parameter 'auto_boot'

2020-11-15 Thread Paul Cercueil
to load. Add a 'auto_boot' module parameter that instructs the remoteproc whether or not it should auto-boot the remote processor, which will default to "true" to respect the previous behaviour. Signed-off-by: Paul Cercueil --- drivers/remoteproc/remoteproc_core.c | 7 ++- 1 file

Re: [PATCH 1/2] MIPS: Ingenic: Add missing nodes for Ingenic SoCs and boards.

2020-11-13 Thread Paul Cercueil
Hi Zhou, Le mar. 10 nov. 2020 à 14:31, Zhou Yanjie a écrit : Hi Paul, On 2020/11/10 上午7:37, Paul Cercueil wrote: Le sam. 7 nov. 2020 à 19:52, 周琰杰 (Zhou Yanjie)  a écrit : 1.Add OTG/OTG PHY/RNG nodes for JZ4780, CGU/OTG nodes for CI20. 2.Add OTG/OTG PHY/RNG/OST nodes for X1000, SSI/CGU

Re: [PATCH] drm/ingenic: ipu: Search for scaling coefs up to 102% of?? the screen

2020-11-10 Thread Paul Cercueil
Le mar. 10 nov. 2020 à 9:56, Sam Ravnborg a écrit : Hi Paul, On Tue, Nov 10, 2020 at 08:50:22AM +, Paul Cercueil wrote: Hi, Le sam. 7 nov. 2020 à 20:33, Sam Ravnborg a écrit : > Hi Paul. > > On Thu, Nov 05, 2020 at 08:39:05AM +0000, Paul Cercueil wrote: >

Re: [PATCH RESEND 0/2] Add dmaengine bindings for the JZ4775 and the X2000 SoCs.

2020-11-10 Thread Paul Cercueil
Hi Zhou, Le sam. 7 nov. 2020 à 20:20, 周琰杰 (Zhou Yanjie) a écrit : Add the dmaengine bindings for the JZ4775 SoC and the X2000 SoC from Ingenic. 周琰杰 (Zhou Yanjie) (2): dt-bindings: dmaengine: Add JZ4775 bindings. dt-bindings: dmaengine: Add X2000 bindings.

Re: [PATCH] drm/ingenic: ipu: Search for scaling coefs up to 102% of the screen

2020-11-10 Thread Paul Cercueil
Hi, Le sam. 7 nov. 2020 à 20:33, Sam Ravnborg a écrit : Hi Paul. On Thu, Nov 05, 2020 at 08:39:05AM +, Paul Cercueil wrote: Increase the scaled image's theorical width/height until we find a configuration that has valid scaling coefficients, up to 102% of the screen's resolution

Re: [PATCH] mtd: rawnand: ingenic: remove redundant get_device() in ingenic_ecc_get()

2020-11-10 Thread Paul Cercueil
level and SoC specific code") Signed-off-by: Yu Kuai Acked-by: Paul Cercueil Thanks, -Paul --- drivers/mtd/nand/raw/ingenic/ingenic_ecc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mtd/nand/raw/ingenic/ingenic_ecc.c b/drivers/mtd/nand/raw/ingenic/ingenic_ecc.c index 8e

Re: [PATCH 1/2] MIPS: Ingenic: Add missing nodes for Ingenic SoCs and boards.

2020-11-09 Thread Paul Cercueil
Le sam. 7 nov. 2020 à 19:52, 周琰杰 (Zhou Yanjie) a écrit : 1.Add OTG/OTG PHY/RNG nodes for JZ4780, CGU/OTG nodes for CI20. 2.Add OTG/OTG PHY/RNG/OST nodes for X1000, SSI/CGU/OST/OTG/SC16IS752 nodes for CU1000-Neo. 3.Add OTG/OTG PHY/DTRNG/OST nodes for X1830, SSI/CGU/OST/OTG/SC16IS752

Re: [PATCH 1/2] MIPS: Ingenic: Add missing nodes for Ingenic SoCs and boards.

2020-11-09 Thread Paul Cercueil
Hi Zhou, Le sam. 7 nov. 2020 à 19:52, 周琰杰 (Zhou Yanjie) a écrit : 1.Add OTG/OTG PHY/RNG nodes for JZ4780, CGU/OTG nodes for CI20. 2.Add OTG/OTG PHY/RNG/OST nodes for X1000, SSI/CGU/OST/OTG/SC16IS752 nodes for CU1000-Neo. 3.Add OTG/OTG PHY/DTRNG/OST nodes for X1830, SSI/CGU/OST/OTG/SC16IS752

Re: [PATCH 1/2] remoteproc: ingenic: Constify ingenic_rproc_ops

2020-11-09 Thread Paul Cercueil
Hi, Le dim. 8 nov. 2020 à 0:36, Rikard Falkeborn a écrit : The only usage of ingenic_rproc_ops is to pass its address to devm_rproc_alloc(), which accepts a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn Acked-by: Paul

[PATCH] drm/ingenic: ipu: Search for scaling coefs up to 102% of the screen

2020-11-05 Thread Paul Cercueil
are not modified. This algorithm was already in place but would not try to go above the screen's resolution, and as a result would only work if the CRTC_W / CRTC_H were smaller than the screen resolution. It will now try until it reaches 102% of the screen's resolution. Signed-off-by: Paul Cercueil

Re: [PATCH] iio/adc: ingenic: Fix battery VREF for JZ4770 SoC

2020-11-04 Thread Paul Cercueil
Hi Artur, Le mer. 4 nov. 2020 à 23:29, Artur Rojek a écrit : Hi Paul, On 2020-11-04 20:28, Paul Cercueil wrote: The reference voltage for the battery is clearly marked as 1.2V in the programming manual. With this fixed, the battery channel now returns correct values. Fixes: a515d6488505

[PATCH] iio/adc: ingenic: Fix battery VREF for JZ4770 SoC

2020-11-04 Thread Paul Cercueil
The reference voltage for the battery is clearly marked as 1.2V in the programming manual. With this fixed, the battery channel now returns correct values. Fixes: a515d6488505 ("IIO: Ingenic JZ47xx: Add support for JZ4770 SoC ADC.") Cc: Signed-off-by: Paul Cercueil --- drivers/iio/a

Re: [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb)

2020-11-04 Thread Paul Cercueil
f-extracting targets scenarios mips: boot: add support for self-extracting FIT images (vmlinuz.itb) It doesn't break anything on my end, so: Acked-by: Paul Cercueil for the series. Why vmlinuz.itb and not vmlinuz.fit or vmlinuz.uhi? Is the .itb suffix already a thing? Cheers, -Paul

Re: [PATCH] power: supply: ingenic: remove unneeded semicolon

2020-11-04 Thread Paul Cercueil
Hi, Le dim. 1 nov. 2020 à 6:09, t...@redhat.com a écrit : From: Tom Rix A semicolon is not needed after a switch statement. Signed-off-by: Tom Rix Acked-by: Paul Cercueil Cheers, -Paul --- drivers/power/supply/ingenic-battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] clk: ingenic/TCU: Remove NULL pointer check before clk_enable/disable

2020-11-04 Thread Paul Cercueil
Hi, Le mer. 4 nov. 2020 à 7:11, Xu Wang a écrit : Because clk_enable and clk_disable already checked NULL clock parameter, so the additional checks are unnecessary, just remove them. Signed-off-by: Xu Wang Reviewed-by: Paul Cercueil Cheers, -Paul --- drivers/clk/ingenic/tcu.c | 6

[PATCH] iio/adc: ingenic: Fix AUX/VBAT readings when touchscreen is used

2020-11-03 Thread Paul Cercueil
. Fixes: b96952f498db ("IIO: Ingenic JZ47xx: Add touchscreen mode.") Cc: Signed-off-by: Paul Cercueil --- drivers/iio/adc/ingenic-adc.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/drivers/iio/adc/ingenic-adc.c b/drivers/iio/adc/ing

Re: [PATCH 3/5] drm: Add and export function drm_gem_cma_mmap_noncoherent

2020-11-03 Thread Paul Cercueil
Hi Christoph, Le mar. 3 nov. 2020 à 18:50, Christoph Hellwig a écrit : On Mon, Nov 02, 2020 at 10:06:49PM +, Paul Cercueil wrote: This function can be used by drivers that need to mmap dumb buffers created with non-coherent backing memory. Signed-off-by: Paul Cercueil --- drivers

Re: [PATCH 5/5] drm/ingenic: Add option to alloc cached GEM buffers

2020-11-03 Thread Paul Cercueil
Hi Daniel, Le mar. 3 nov. 2020 à 11:17, Daniel Vetter a écrit : On Mon, Nov 02, 2020 at 10:06:51PM +, Paul Cercueil wrote: With the module parameter ingenic-drm.cached_gem_buffers, it is possible to specify that we want GEM buffers backed by non-coherent memory. This dramatically

[PATCH 5/5] drm/ingenic: Add option to alloc cached GEM buffers

2020-11-02 Thread Paul Cercueil
). Leave it disabled by default, since it is specific to one use-case (software rendering). Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 58 +-- drivers/gpu/drm/ingenic/ingenic-drm.h | 4 ++ drivers/gpu/drm/ingenic/ingenic-ipu.c | 12

[PATCH 0/5] Add option to mmap GEM buffers cached, try 2

2020-11-02 Thread Paul Cercueil
rt for non-coherent GEM buffers to the ingenic-drm driver. The functionality is enabled through a module parameter, and is disabled by default. Cheers, -Paul Paul Cercueil (5): drm: Add and export function drm_gem_cma_create_noncoherent drm: Add and export function drm_gem_cma_dumb_create_noncoherent

[PATCH 4/5] drm: Add and export function drm_gem_cma_sync_data

2020-11-02 Thread Paul Cercueil
This function can be used by drivers that use damage clips and have CMA GEM objects backed by non-coherent memory. Calling this function in a plane's .atomic_update ensures that all the data in the backing memory have been written to RAM. Signed-off-by: Paul Cercueil --- drivers/gpu/drm

[PATCH 2/5] drm: Add and export function drm_gem_cma_dumb_create_noncoherent

2020-11-02 Thread Paul Cercueil
This function can be used by drivers to create dumb buffers with non-coherent backing memory. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/drm_gem_cma_helper.c | 37 +--- include/drm/drm_gem_cma_helper.h | 4 +++ 2 files changed, 37 insertions(+), 4 deletions

[PATCH 1/5] drm: Add and export function drm_gem_cma_create_noncoherent

2020-11-02 Thread Paul Cercueil
This function can be used by drivers that need to create a GEM object with non-coherent backing memory. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/drm_gem_cma_helper.c | 71 +--- include/drm/drm_gem_cma_helper.h | 2 + 2 files changed, 56 insertions(+), 17

[PATCH 3/5] drm: Add and export function drm_gem_cma_mmap_noncoherent

2020-11-02 Thread Paul Cercueil
This function can be used by drivers that need to mmap dumb buffers created with non-coherent backing memory. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/drm_gem_cma_helper.c | 39 include/drm/drm_gem_cma_helper.h | 2 ++ 2 files changed, 41 insertions

Re: [PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

2020-11-02 Thread Paul Cercueil
Le dim. 1 nov. 2020 à 13:29, Sam Ravnborg a écrit : On Sun, Nov 01, 2020 at 09:31:48AM +, Paul Cercueil wrote: The Asia Better Technology (ABT) Y030XX067A panel is a 3.0" 320x480 24-bit IPS LCD panel. Its particularity is that it has non-square pixels (as it is 4:3 for a resol

[PATCH 1/4] dt-bindings: vendor-prefixes: Add abt vendor prefix

2020-11-01 Thread Paul Cercueil
Add prefix for ShenZhen Asia Better Technology Ltd. Signed-off-by: Paul Cercueil --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor

[PATCH 3/4] media: uapi: Add MEDIA_BUS_FMT_RGB888_3X8_DELTA media bus format

2020-11-01 Thread Paul Cercueil
Add media bus format for 24-bit panels that expect their pixel data to be sent serially on a 8-bit bus, in RGB ordering on odd lines, and in GBR ordering on even lines (aka delta-RGB). Signed-off-by: Paul Cercueil --- include/uapi/linux/media-bus-format.h | 3 ++- 1 file changed, 2 insertions

[PATCH 2/4] dt-bindings: display: Add ABT Y030XX067A panel bindings

2020-11-01 Thread Paul Cercueil
d-off-by: Paul Cercueil --- .../display/panel/abt,y030xx067a.yaml | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml diff --git a/Documentation/devicetree/bindings/display/panel/abt,y030xx067a

[PATCH 0/3] drm/panel: ABT Y030XX067A panel support

2020-11-01 Thread Paul Cercueil
, GRB on even lines). Patch #1 adds the abt,* vendor prefix. Patch #2 adds the abt,y030xx067a panel binding documentation. Patch #3 adds the MEDIA_BUS_FMT_RGB888_3X8_DELTA media bus format. Patch #4 adds the driver itself. Cheers, -Paul Paul Cercueil (4): dt-bindings: vendor-prefixes: Add abt vendor p

[PATCH 4/4] drm/panel: Add ABT Y030XX067A 3.0" 320x480 panel

2020-11-01 Thread Paul Cercueil
Add support for the ShenZhen Asia Better Technology Ltd. Y030XX067A 3.0" 320x480 IPS panel. This panel can be found in the YLM RG-280M, RG-300 and RG-99 handheld gaming consoles. While being 320x480, it is actually a horizontal 4:3 panel with non-square pixels. Signed-off-by: Paul Cer

[PATCH 2/2] pinctrl: ingenic: Add lcd-8bit group for JZ4770

2020-11-01 Thread Paul Cercueil
tforms. However, we can't do that without breaking Device Tree ABI, so in that case we have no choice but to have two groups containing the same pins. Signed-off-by: Paul Cercueil --- drivers/pinctrl/pinctrl-ingenic.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH 0/2] pinctrl: ingenic: Cleanup & add lcd-8bit group

2020-11-01 Thread Paul Cercueil
Hi Linus, A cleanup patch to get rid of a lot of const data, and a patch to add the lcd-8bit group for JZ4770 SoCs. Based on your latest for-next branch, since there are already some commits on pinctrl-ingenic.c there that aren't on v5.10-rc1. Cheers, -Paul Paul Cercueil (2): pinctrl

[PATCH 1/2] pinctrl: ingenic: Get rid of repetitive data

2020-11-01 Thread Paul Cercueil
ces the number of pin function tables needed, and drops .data usage by about 2 KiB. Additionally, the few pin function tables that are still around now contain u8 instead of int, since the largest number that will be stored is 3. Signed-off-by: Paul Cercueil --- drivers/pinctrl/pinctrl-ingenic.c | 1

[RESEND PATCH 1/4] usb: musb: Fix runtime PM race in musb_queue_resume_work

2020-10-27 Thread Paul Cercueil
r hdrc glue") Cc: sta...@vger.kernel.org # v4.9 Signed-off-by: Paul Cercueil Reviewed-by: Tony Lindgren Tested-by: Tony Lindgren --- drivers/usb/musb/musb_core.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/usb/musb/musb_core

[RESEND PATCH 3/4] usb: musb: dma: Remove unused variable

2020-10-27 Thread Paul Cercueil
Remove unused-but-set devctl variable. Signed-off-by: Paul Cercueil --- drivers/usb/musb/musbhsdma.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c index 0aacfc8be5a1..7acd1635850d 100644 --- a/drivers/usb/musb/musbhsdma.c

[RESEND PATCH 2/4] usb: musb: Fix NULL check on struct musb_request field

2020-10-27 Thread Paul Cercueil
-check on the 'req' pointer instead. Signed-off-by: Paul Cercueil Suggested-by: Maarten ter Huurne --- drivers/usb/musb/musb_gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index f62ffaede1ab..ef374d4dd94a

[RESEND PATCH 0/4] MUSB and jz4740-musb fixes

2020-10-27 Thread Paul Cercueil
Hi Bin, The first two patches of this series have already been sent before but were never merged, hence the RESEND. This is not really a V2 as nothing changed there. Patches 3/4 are new. Cheers, -Paul Paul Cercueil (4): usb: musb: Fix runtime PM race in musb_queue_resume_work usb: musb

[RESEND PATCH 4/4] musb: jz4740: Add missing CR to error strings

2020-10-27 Thread Paul Cercueil
If you pass a string that is not terminated with a carriage return to dev_err(), it will eventually be printed with a carriage return, but not right away, since the kernel will wait for a pr_cont(). Signed-off-by: Paul Cercueil --- drivers/usb/musb/jz4740.c | 14 +++--- 1 file changed

Re: [PATCH 18/20] arch: dts: Fix EHCI/OHCI DT nodes name

2020-10-14 Thread Paul Cercueil
s/boot/dts/ingenic/jz4740.dtsi | 2 +- arch/mips/boot/dts/ingenic/jz4770.dtsi | 2 +- For jz4740.dtsi and jz4770.dtsi: Acked-by: Paul Cercueil Cheers, -Paul arch/mips/boot/dts/mti/sead3.dts | 2 +- arch/mips/boot/dts/ralink/mt7628a.dtsi | 2 +- arch/powerp

Re: linux-next: build failure after merge of the drm-misc tree

2020-10-13 Thread Paul Cercueil
Hi Stephen, Le lun. 12 oct. 2020 à 15:24, Stephen Rothwell a écrit : Hi all, On Thu, 8 Oct 2020 15:42:02 +1100 Stephen Rothwell wrote: On Thu, 8 Oct 2020 14:09:03 +1100 Stephen Rothwell wrote: > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig)

[PATCH] MIPS: ingenic: Remove CPU_SUPPORTS_HUGEPAGES

2020-10-12 Thread Paul Cercueil
pport for Ingenic SoCs") Signed-off-by: Paul Cercueil --- arch/mips/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index f52fa211a4cf..29bad5bd3e70 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -103,7 +103,6 @@ config MACH_INGENIC

Re: [PATCH] drm/ingenic: Fix bad revert

2020-10-12 Thread Paul Cercueil
Le lun. 12 oct. 2020 à 16:10, Daniel Vetter a écrit : On Mon, Oct 12, 2020 at 12:25:09PM +0200, Paul Cercueil wrote: Fix a badly reverted commit. The revert commit was cherry-picked from drm-misc-next to drm-misc-next-fixes, and in the process some unrelated code was added. Fixes

Re: [PATCH v3 11/15] MIPS: generic: Add support for Ingenic SoCs

2020-10-12 Thread Paul Cercueil
Hi Guenter, Le lun. 12 oct. 2020 à 7:33, Guenter Roeck a écrit : On Sun, Sep 06, 2020 at 09:29:31PM +0200, Paul Cercueil wrote: Add support for Ingenic SoCs in arch/mips/generic/. The Kconfig changes are here to ensure that it is possible to compile either a generic kernel that supports

[PATCH] drm/ingenic: Fix bad revert

2020-10-12 Thread Paul Cercueil
Fix a badly reverted commit. The revert commit was cherry-picked from drm-misc-next to drm-misc-next-fixes, and in the process some unrelated code was added. Fixes: a3fb64c00d44 "Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"" Signed-off-by: Paul Cercueil

Re: linux-next: build failure after merge of the drm-misc tree

2020-10-12 Thread Paul Cercueil
Hi Stephen, Le lun. 12 oct. 2020 à 15:24, Stephen Rothwell a écrit : Hi all, On Thu, 8 Oct 2020 15:42:02 +1100 Stephen Rothwell wrote: On Thu, 8 Oct 2020 14:09:03 +1100 Stephen Rothwell wrote: > > After merging the drm-misc tree, today's linux-next build (x86_64 > allmodconfig)

Re: [PATCH v4 0/3] pinctrl: Ingenic: Add support for SSI and I2S pins.

2020-10-10 Thread Paul Cercueil
Hi Linus, Zhou, The first patch is bogus. Half of the SSI pins are wrong (GPIO chip D/E start at 0x60/0x80 respectively). Sorry for not catching that before. -Paul Le mar. 29 sept. 2020 à 14:48, Linus Walleij a écrit : On Sun, Sep 13, 2020 at 8:59 AM 周琰杰 (Zhou Yanjie) wrote: 1.Add

[PATCH] pinctrl: ingenic: Fix invalid SSI pins

2020-10-10 Thread Paul Cercueil
The values for the SSI pins on GPIO chips D and E were off by 0x20. Fixes: d3ef8c6b2286 ("pinctrl: Ingenic: Add SSI pins support for JZ4770 and JZ4780.") Signed-off-by: Paul Cercueil Reported-by: Artur Rojek --- drivers/pinctrl/pinctrl-ingenic.c | 72 +++--

Re: [PATCH] Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"

2020-10-05 Thread Paul Cercueil
Hi, Le lun. 5 oct. 2020 à 16:05, Daniel Vetter a écrit : On Mon, Oct 05, 2020 at 11:01:50PM +1100, Stephen Rothwell wrote: Hi Paul, On Sun, 04 Oct 2020 22:11:23 +0200 Paul Cercueil wrote: > > Pushed to drm-misc-next with the changelog fix, thanks. > > Stephen: > Now

Re: [PATCH] MIPS: cevt-r4k: Enable intimer for Loongson64 CPUs with extimer

2020-10-04 Thread Paul Cercueil
Hi, Le mer. 23 sept. 2020 à 19:02, Jiaxun Yang a écrit : Loongson64C and Loongson64G have extimer feature, which is a timer sharing Cause.TI with cevt-r4k (named intimer). To ensure the cevt-r4k's usability, we need to add a callback for clock device to switch intimer. Signed-off-by: Jiaxun

Re: [PATCH] Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"

2020-10-04 Thread Paul Cercueil
Hi, Le dim. 4 oct. 2020 à 21:59, Sam Ravnborg a écrit : Hi Paul. On Sun, Oct 04, 2020 at 04:17:58PM +0200, Paul Cercueil wrote: This reverts commit 37054fc81443cc6a8c3a38395f384412b8373d82. In the changelog please refer to commits like this: 37054fc81443 ("gpu/drm: ingenic: Add o

[PATCH] Revert "gpu/drm: ingenic: Add option to mmap GEM buffers cached"

2020-10-04 Thread Paul Cercueil
. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 114 +- drivers/gpu/drm/ingenic/ingenic-drm.h | 4 - drivers/gpu/drm/ingenic/ingenic-ipu.c | 12 +-- 3 files changed, 4 insertions(+), 126 deletions(-) diff --git a/drivers/gpu/drm/ingenic

[PATCH] dma: dma-jz4780: Fix race in jz4780_dma_tx_status

2020-10-04 Thread Paul Cercueil
el.org # v4.0 Signed-off-by: Paul Cercueil Reported-by: Artur Rojek Tested-by: Artur Rojek --- drivers/dma/dma-jz4780.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index 8beed91428bd..a608efaa435f 100644 --- a/dr

[PATCH 3/3] drm/ingenic: Alloc cached GEM buffers with dma_alloc_noncoherent

2020-09-30 Thread Paul Cercueil
dma_alloc_noncoherent() if non-coherent memory is what we want. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 48 ++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm

[PATCH 1/3] drm: Add and export function drm_gem_cma_create_noalloc

2020-09-30 Thread Paul Cercueil
Add and export the function drm_gem_cma_create_noalloc(), which is just __drm_gem_cma_create() renamed. This function can be used by drivers that need to create a GEM object without allocating the backing memory. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/drm_gem_cma_helper.c | 11

[PATCH 2/3] drm/ingenic: Update code to mmap GEM buffers cached

2020-09-30 Thread Paul Cercueil
The DMA API changed at the same time commit 37054fc81443 ("gpu/drm: ingenic: Add option to mmap GEM buffers cached") was added. Rework the code to work with the new DMA API. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 24 +++ 1 fi

Re: linux-next: build failure after merge of the drm tree

2020-09-30 Thread Paul Cercueil
Le mer. 30 sept. 2020 à 18:40, Christoph Hellwig a écrit : On Wed, Sep 30, 2020 at 06:39:18PM +0200, Paul Cercueil wrote: dma_alloc_pages gives you cached memory, so you can't just use an uncached protection for the userspace mmap here. If you want uncached memory you need to use

Re: linux-next: build failure after merge of the drm tree

2020-09-30 Thread Paul Cercueil
Le mer. 30 sept. 2020 à 18:11, Christoph Hellwig a écrit : On Wed, Sep 30, 2020 at 03:33:13PM +0200, Paul Cercueil wrote: One thing missing for remap_pfn_range(), I have no alternative for this: vma->vm_page_prot = dma_pgprot(dev, vma->vm_page_prot, DMA_ATTR_NON_CONSISTENT);

Re: linux-next: build failure after merge of the drm tree

2020-09-30 Thread Paul Cercueil
Hi Christoph, Le mer. 30 sept. 2020 à 11:02, Christoph Hellwig a écrit : On Mon, Sep 28, 2020 at 03:31:28PM +0200, Paul Cercueil wrote: It's allocated with dma_alloc_wc, but then it's only accessed as non-coherent. Anyway, for the time being I guess you could revert 37054fc81443. But I

[PATCH] cma: decrease CMA_ALIGNMENT lower limit to 2

2020-09-30 Thread Paul Cercueil
-off-by: Paul Cercueil --- kernel/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dma/Kconfig b/kernel/dma/Kconfig index 847a9d1fa634..f15e782e19ca 100644 --- a/kernel/dma/Kconfig +++ b/kernel/dma/Kconfig @@ -162,7 +162,7 @@ endchoice config CMA_ALIGNMENT

Re: linux-next: build failure after merge of the drm tree

2020-09-28 Thread Paul Cercueil
Le lun. 28 sept. 2020 à 14:10, Christoph Hellwig a écrit : On Mon, Sep 28, 2020 at 01:46:55PM +0200, Paul Cercueil wrote: dma_mmap_attrs can only be used on allocations from dma_mmap_attrs with the same attrs. As there is no allocation using DMA_ATTR_NON_CONSISTENT in the drm core

Re: linux-next: build failure after merge of the drm tree

2020-09-28 Thread Paul Cercueil
Le lun. 28 sept. 2020 à 13:34, Christoph Hellwig a écrit : On Mon, Sep 28, 2020 at 12:15:56PM +0200, Paul Cercueil wrote: Hi Christoph, Le lun. 28 sept. 2020 à 8:04, Christoph Hellwig a écrit : On Mon, Sep 28, 2020 at 01:54:05PM +1000, Stephen Rothwell wrote: Hi all, After

Re: linux-next: build failure after merge of the drm tree

2020-09-28 Thread Paul Cercueil
Hi Christoph, Le lun. 28 sept. 2020 à 8:04, Christoph Hellwig a écrit : On Mon, Sep 28, 2020 at 01:54:05PM +1000, Stephen Rothwell wrote: Hi all, After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this: The driver needs to switch do

Re: [PATCH] usb: musb: Fix runtime PM race in musb_queue_resume_work

2020-09-27 Thread Paul Cercueil
Hi, Le lun. 17 août 2020 à 13:59, Tony Lindgren a écrit : * Paul Cercueil [200809 12:54]: musb_queue_resume_work() would call the provided callback if the runtime PM status was 'active'. Otherwise, it would enqueue the request if the hardware was still suspended (musb

Re: [PATCH v3 1/1] drm/ingenic: Add support for paletted 8bpp

2020-09-27 Thread Paul Cercueil
Le dim. 27 sept. 2020 à 22:27, Sam Ravnborg a écrit : On Sun, Sep 27, 2020 at 09:36:45PM +0200, Paul Cercueil wrote: On JZ4725B and newer, the F0 plane supports paletted 8bpp with a 256-entry palette. Add support for it. v3: Only accept a full 256-entry palette. Signed-off-by: Paul

[PATCH v3 1/1] drm/ingenic: Add support for paletted 8bpp

2020-09-27 Thread Paul Cercueil
On JZ4725B and newer, the F0 plane supports paletted 8bpp with a 256-entry palette. Add support for it. v3: Only accept a full 256-entry palette. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 66 +-- 1 file changed, 62 insertions(+), 4

[PATCH v3 0/1] 8bpp support for Ingenic-drm

2020-09-27 Thread Paul Cercueil
mplete 256-entry palette is accepted. Cheers, -Paul Paul Cercueil (1): drm/ingenic: Add support for paletted 8bpp drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 66 +-- 1 file changed, 62 insertions(+), 4 deletions(-) -- 2.28.0

Re: [PATCH v2 0/7] Ingenic-drm improvements + new pixel formats

2020-09-26 Thread Paul Cercueil
Hi, Le sam. 26 sept. 2020 à 20:25, Sam Ravnborg a écrit : Hi Paul. On Sat, Sep 26, 2020 at 07:04:54PM +0200, Paul Cercueil wrote: Hi, This is a V2 of my small patchset "Small improvements to ingenic-drm" that I sent about two weeks ago. In that time, I worked on new improv

[PATCH v2 4/7] drm/ingenic: Support handling different pixel formats in F0/F1 planes

2020-09-26 Thread Paul Cercueil
in JZ4725B, 30bpp was added in JZ4770. Prepare the inclusion of paletted 8bpp, 24bpp and 30bpp support by having separate pixel format lists for F0 and F1 planes. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 57 +++ 1 file changed, 47

[PATCH v2 6/7] drm/ingenic: Add support for 30-bit modes

2020-09-26 Thread Paul Cercueil
Starting from the JZ4760 SoC, the primary and overlay planes support 30-bit pixel modes (10 bits per color component). Add support for these in the ingenic-drm driver. Signed-off-by: Paul Cercueil Acked-by: Sam Ravnborg --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 8 drivers/gpu

[PATCH v2 5/7] drm/ingenic: Add support for paletted 8bpp

2020-09-26 Thread Paul Cercueil
On JZ4725B and newer, the F0 plane supports paletted 8bpp with a 256-entry palette. Add support for it. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 60 +-- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/ingenic

[PATCH v2 7/7] drm/ingenic: Add support for 24-bit modes

2020-09-26 Thread Paul Cercueil
Starting from the JZ4725B SoC, the primary and overlay planes support 24-bit pixel modes (8 bits per color component, without dummy byte). Add support for these in the ingenic-drm driver. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 8 drivers/gpu/drm

[PATCH v2 2/7] drm/ingenic: Add support for reserved memory

2020-09-26 Thread Paul Cercueil
fine provided the kernel configuration is sane. Signed-off-by: Paul Cercueil Acked-by: Sam Ravnborg --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic

[PATCH v2 3/7] drm/ingenic: Alloc F0 and F1 DMA descriptors at once

2020-09-26 Thread Paul Cercueil
, for an unknown reason. Signed-off-by: Paul Cercueil --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 51 +-- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c index d34e76f5f57d

[PATCH v2 0/7] Ingenic-drm improvements + new pixel formats

2020-09-26 Thread Paul Cercueil
ed, I kept your acked-by on them, please tell me if that's OK. Cheers, -Paul Paul Cercueil (7): drm/ingenic: Reset pixclock rate when parent clock rate changes drm/ingenic: Add support for reserved memory drm/ingenic: Alloc F0 and F1 DMA descriptors at once drm/ingenic: Support handling diffe

[PATCH v2 1/7] drm/ingenic: Reset pixclock rate when parent clock rate changes

2020-09-26 Thread Paul Cercueil
Signed-off-by: Paul Cercueil Acked-by: Sam Ravnborg --- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 61 ++- 1 file changed, 60 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c index 937d080f5d06

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