[PATCH v2 4/6] pwm: jz4740: Drop dependency on MACH_INGENIC

2019-06-07 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 --- Notes: v2: Rebase on v5.2-rc3 drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] rtc: jz4740: Make probe function __init_or_module

2019-06-07 Thread Paul Cercueil
This allows the probe function to be dropped after the kernel finished its initialization, in the case where the driver was not compiled as a module. Signed-off-by: Paul Cercueil --- drivers/rtc/rtc-jz4740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc

[PATCH v2 1/6] dt-bindings: Remove unused compatible strings

2019-06-07 Thread Paul Cercueil
Right now none of the Ingenic-based boards probe this driver from devicetree. This driver defined three compatible strings for the exact same behaviour. Before these strings are used, we can remove two of them. Signed-off-by: Paul Cercueil --- Notes: v2: Rebase on v5.2-rc3 Documentation

[PATCH] MIPS: lb60: Fix pin mappings

2019-06-04 Thread Paul Cercueil
60: Add pinctrl configuration for several drivers") Cc: Signed-off-by: Paul Cercueil --- arch/mips/jz4740/board-qi_lb60.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c index 071e9d94eea7..daed4

[RE-RESEND PATCH v3 3/4] memory: jz4780-nemc: Reduce size of const array

2019-06-04 Thread Paul Cercueil
The maximum value found in that array is 15, there's no need to store these values as uint32_t, a uint8_t is enough. Signed-off-by: Paul Cercueil --- Notes: v2: Remove casts to uint32_t v3: No change drivers/memory/jz4780-nemc.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[RE-RESEND PATCH v3 1/4] dt-bindings: memory: jz4780: Add compatible string for JZ4740 SoC

2019-06-04 Thread Paul Cercueil
Add a compatible string to support the memory controller built into the JZ4740 SoC from Ingenic. Signed-off-by: Paul Cercueil Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- Notes: v2: No change v3: Change compatible string for jz4740 instead of j4725b .../bindings

[RE-RESEND PATCH v3 2/4] memory: Kconfig: Drop dependency on MACH_JZ4780 for jz4780

2019-06-04 Thread Paul Cercueil
Depending on MACH_JZ4780 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: Boris Brezillon --- Notes: v2: No change v3: No change drivers/memory/Kconfig | 2 +- 1

[RE-RESEND PATCH v3 4/4] memory: jz4780_nemc: Add support for the JZ4740

2019-06-04 Thread Paul Cercueil
Add support for the JZ4740 SoC from Ingenic. Signed-off-by: Paul Cercueil Reviewed-by: Boris Brezillon --- Notes: v2: No change v3: Support the JZ4740 instead of the JZ4725B (exact same functionality but JZ4740 is already fully upstream) drivers/memory/jz4780-nemc.c | 24

[PATCH] i2c: jz4780: Drop dependency on MACH_JZ4780

2019-05-22 Thread Paul Cercueil
Depending on MACH_JZ4780 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/i2c/busses/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c

[PATCH] pinctrl: ingenic: Handle PIN_CONFIG_OUTPUT config

2019-05-22 Thread Paul Cercueil
This enables devicetree bindings to specify that a given GPIO should be driven low or high. Signed-off-by: Paul Cercueil --- drivers/pinctrl/pinctrl-ingenic.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-ingenic.c b/drivers

[PATCH 2/4] watchdog: jz4740: Avoid starting watchdog in set_timeout

2019-05-21 Thread Paul Cercueil
Previously the jz4740_wdt_set_timeout() function was starting the timer unconditionally, even if it was stopped when that function was entered. Now, the timer will be restarted only if it was already running before this function is called. Signed-off-by: Paul Cercueil --- drivers/watchdog

[PATCH 1/4] watchdog: jz4740: Use register names from

2019-05-21 Thread Paul Cercueil
Use the macros from instead of declaring our own. Signed-off-by: Paul Cercueil --- drivers/watchdog/jz4740_wdt.c | 39 ++- 1 file changed, 16 insertions(+), 23 deletions(-) diff --git a/drivers/watchdog/jz4740_wdt.c b/drivers/watchdog/jz4740_wdt.c index

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

2019-05-21 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 --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog

[PATCH 4/4] watchdog: jz4740: Switch to SPDX license identifier

2019-05-21 Thread Paul Cercueil
Use a SPDX license identifier instead of a wall of text. Signed-off-by: Paul Cercueil --- drivers/watchdog/jz4740_wdt.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/watchdog/jz4740_wdt.c b/drivers/watchdog/jz4740_wdt.c index f970a7a53084..c5b369152e70

[PATCH 3/5] pwm: jz4740: Apply configuration atomically

2019-05-21 Thread Paul Cercueil
This is cleaner, more future-proof, and incidentally it also fixes the PWM resetting its config when stopped/started several times. Signed-off-by: Paul Cercueil --- drivers/pwm/pwm-jz4740.c | 37 - 1 file changed, 12 insertions(+), 25 deletions(-) diff --git

[PATCH 5/5] pwm: jz4740: Switch to SPDX license identifier

2019-05-21 Thread Paul Cercueil
Use a SPDX license identifier instead of a wall of text. Signed-off-by: Paul Cercueil --- drivers/pwm/pwm-jz4740.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/drivers/pwm/pwm-jz4740.c b/drivers/pwm/pwm-jz4740.c index e73ee72df09d..138b4f596525 100644 --- a

[PATCH 4/5] pwm: jz4740: Drop dependency on MACH_INGENIC

2019-05-21 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 1/5] dt-bindings: Remove unused compatible strings

2019-05-21 Thread Paul Cercueil
Right now none of the Ingenic-based boards probe this driver from devicetree. This driver defined three compatible strings for the exact same behaviour. Before these strings are used, we can remove two of them. Signed-off-by: Paul Cercueil --- Documentation/devicetree/bindings/pwm/ingenic

[PATCH 2/5] pwm: jz4740: Remove unused devicetree compatible strings

2019-05-21 Thread Paul Cercueil
Right now none of the Ingenic-based boards probe this driver from devicetree. This driver defined three compatible strings for the exact same behaviour. Before these strings are used, we can remove two of them. Signed-off-by: Paul Cercueil --- drivers/pwm/pwm-jz4740.c | 2 -- 1 file changed, 2

[PATCH v12 11/13] MIPS: CI20: Reduce system timer and clocksource to 3 MHz

2019-05-21 Thread Paul Cercueil
The default clock (48 MHz) is too fast for the system timer. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: Set also the rate for the clocksource channel's clock v7: No change v8: No change v9: Don't configure clock timer1, as the O

[PATCH v12 13/13] MIPS: jz4740: Drop obsolete code

2019-05-21 Thread Paul Cercueil
The old clocksource/timer platform code is now obsoleted by the newly introduced TCU drivers. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6-v11: No change v12: Only remove clocksource code. The rest will eventually be removed in a future patchset when

Re: [PATCH] irqchip: ingenic: Drop dependency on MACH_INGENIC, use COMPILE_TEST

2019-05-11 Thread Paul Cercueil
My bad, I'm stupid. I tested CONFIG_COMPILE_TEST on MIPS... The driver does depend on arch-specific includes so COMPILE_TEST cannot be used; I'll send a V2. -Paul Le sam. 11 mai 2019 à 19:09, Paul Cercueil a écrit : Depending on MACH_INGENIC prevent us from creating a generic ke

[PATCH] irqchip: ingenic: Drop dependency on MACH_INGENIC, use COMPILE_TEST

2019-05-11 Thread Paul Cercueil
. Signed-off-by: Paul Cercueil --- drivers/irqchip/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig index 5438abb1baba..864dc38782e8 100644 --- a/drivers/irqchip/Kconfig +++ b/drivers/irqchip/Kconfig @@ -286,9 +286,9

[PATCH 2/2] MIPS: Decode config3 register on Ingenic SoCs

2019-05-07 Thread Paul Cercueil
XBurst misses a config2 register, so config3 decode was skipped in decode_configs(). Signed-off-by: Paul Cercueil --- arch/mips/kernel/cpu-probe.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index fdb73c1b0cd7

[PATCH 1/2] MIPS: Rename JZRISC to XBURST

2019-05-07 Thread Paul Cercueil
The real name of the CPU present in the JZ line of SoCs from Ingenic is XBurst, not JZRISC. Signed-off-by: Paul Cercueil --- arch/mips/include/asm/cpu-type.h | 2 +- arch/mips/include/asm/cpu.h | 4 ++-- arch/mips/kernel/cpu-probe.c | 8 arch/mips/kernel/idle.c | 2

[PATCH v2] MIPS: Fix Ingenic SoCs sometimes reporting wrong ISA

2019-05-07 Thread Paul Cercueil
The config0 register in the Xburst CPUs with a processor ID of PRID_COMP_INGENIC_D0 report themselves as MIPS32r2 compatible, but they don't actually support this ISA. Signed-off-by: Paul Cercueil --- Notes: v2: Apply fix according to the PRID arch/mips/kernel/cpu-probe.c | 8 ++

Re: [PATCH] MIPS: jz4740: Fix Ingenic SoCs sometimes reporting wrong ISA

2019-05-07 Thread Paul Cercueil
Le mar. 7 mai 2019 à 23:15, Paul Burton a écrit : Hi Paul, On Tue, May 07, 2019 at 09:41:01PM +0200, Paul Cercueil wrote: The config0 register in the Xburst always reports a MIPS32r2 ISA, but not all of them support it. Signed-off-by: Paul Cercueil --- arch/mips/jz4740/setup.c

[PATCH 5/5] MIPS: Remove dead code

2019-05-07 Thread Paul Cercueil
Remove the unused include. Signed-off-by: Paul Cercueil --- arch/mips/include/asm/mach-jz4740/clock.h | 31 --- arch/mips/jz4740/board-qi_lb60.c | 2 -- arch/mips/jz4740/platform.c | 2 -- arch/mips/jz4740/time.c | 3 --- 4 files

[PATCH 2/5] clk: ingenic: Handle setting the Low-Power Mode bit

2019-05-07 Thread Paul Cercueil
The Low-Power Mode, when enabled, will make the "wait" MIPS instruction suspend the system. This is not really clock-related, but this bit happens to be in the register set of the CGU. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/Makefile | 2 +- drivers/clk/ingenic/jz4

[PATCH 3/5] MIPS: jz4740: PM: Let CGU driver suspend clocks and set sleep mode

2019-05-07 Thread Paul Cercueil
Instead of forcing the jz4740 clocks to suspend here, we let the CGU driver handle it. We also let the CGU driver set the "sleep mode" bit. This has the added benefit that now it is possible to build a kernel on SoCs newer than the JZ4740 with CONFIG_PM. Signed-off-by: Paul Cercueil

[PATCH 4/5] clk: ingenic: Remove unused functions

2019-05-07 Thread Paul Cercueil
These functions are not called anywhere anymore, they can safely be removed. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/jz4740-cgu.c | 73 1 file changed, 73 deletions(-) diff --git a/drivers/clk/ingenic/jz4740-cgu.c b/drivers/clk/ingenic/jz4740-cgu.c

[PATCH] MIPS: jz4740: Fix Ingenic SoCs sometimes reporting wrong ISA

2019-05-07 Thread Paul Cercueil
The config0 register in the Xburst always reports a MIPS32r2 ISA, but not all of them support it. Signed-off-by: Paul Cercueil --- arch/mips/jz4740/setup.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/mips/jz4740/setup.c b/arch/mips/jz4740/setup.c index 7e63c54eb8d2

[PATCH 1/5] clk: ingenic: Add missing header in cgu.h

2019-05-07 Thread Paul Cercueil
The cgu.h has structures that contain 'clk_onecell_data' and 'clk_hw' structures (no pointers), so the header should be included. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.h | 1 + drivers/clk/ingenic/jz4725b-cgu.c | 1 - drivers/clk/ingenic/jz4740-c

[PATCH] dmaengine: jz4780: Fix transfers being ACKed too soon

2019-05-04 Thread Paul Cercueil
rrupted DMA transfer will simply be resumed. Signed-off-by: Paul Cercueil --- drivers/dma/dma-jz4780.c | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index 02075417c69f..5c34d23bdea4 100644 -

[PATCH] dmaengine: jz4780: Use SPDX license notifier

2019-05-04 Thread Paul Cercueil
Use SPDX license notifier instead of plain text in the header. Signed-off-by: Paul Cercueil --- drivers/dma/dma-jz4780.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index 9ce0a386225b..02075417c69f 100644 --- a

[PATCH 4/5] clk: ingenic/jz4725b: Fix incorrect dividers for main clocks

2019-05-02 Thread Paul Cercueil
The main clocks (cclk, hclk, pclk, mclk, ipu) were using incorrect dividers, and thus reported an incorrect rate. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/jz4725b-cgu.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/clk

[PATCH 1/5] clk: ingenic: Add support for divider tables

2019-05-02 Thread Paul Cercueil
that allows to specify the divider table. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 41 +-- drivers/clk/ingenic/cgu.h | 3 +++ 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/drivers/clk/ingenic/cgu.c b/drivers/clk/ingenic/cgu.c

[PATCH 2/5] clk: ingenic/jz4740: Fix incorrect dividers for main clocks

2019-05-02 Thread Paul Cercueil
The main clocks (cclk, hclk, pclk, mclk, lcd) were using incorrect dividers, and thus reported an incorrect rate. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/jz4740-cgu.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/drivers/clk

[PATCH 5/5] clk: ingenic/jz4725b: Fix "pll half" divider not read/written properly

2019-05-02 Thread Paul Cercueil
vider is 1. Restore the correct behaviour using the newly introduced .div_table field. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/jz4725b-cgu.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/clk/ingenic/jz4725b-cgu.c b/drivers/clk/ingenic/jz4725b-c

[PATCH 3/5] clk: ingenic/jz4770: Fix incorrect dividers for main clocks

2019-05-02 Thread Paul Cercueil
The main clocks (cclk, h0clk, h1clk, h2clk, c1clk, pclk) were using incorrect dividers, and thus reported an incorrect rate. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/jz4770-cgu.c | 34 ++-- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a

Re: [PATCH] clk: ingenic/jz4725b: Fix parent of pixel clock

2019-04-29 Thread Paul Cercueil
Hi Stephen, Le jeu. 18 avril 2019 à 23:58, Stephen Boyd a écrit : Quoting Paul Cercueil (2019-04-17 04:24:20) The pixel clock is directly connected to the output of the PLL, and not to the /2 divider. Cc: sta...@vger.kernel.org Fixes: 226dfa4726eb ("clk: Add Ingenic jz4725b CGU d

[PATCH v2 1/2] ASoC: simple-card-utils: add asoc_simple_parse_pin_switches()

2019-04-25 Thread Paul Cercueil
This function is a helper that permits to create pin switch controls for a list of widgets whose names are listed in the PREFIX "pin-switches" devicetree property. Signed-off-by: Paul Cercueil --- Notes: v2: - Rebase on top of for-next - Rename to asoc_simple_parse_pi

[PATCH v2 2/2] ASoC: simple-card: Read pin switches conf from devicetree

2019-04-25 Thread Paul Cercueil
When the routing path between a widget (e.g. "Speaker") and the codec goes through an external amplifier, having a pin switch for this widget allows the amplifier to be disabled when the widget is not to be used (e.g. when using headphones). Signed-off-by: Paul Cercueil --- Not

[PATCH v3 2/3] drm: Add bus flag for Sharp-specific signals

2019-04-25 Thread Paul Cercueil
Add the DRM_BUS_FLAG_SHARP_SIGNALS to the drm_bus_flags enum. This flags can be used when the display must be driven with the Sharp-specific signals SPL, CLS, REV, PS. Signed-off-by: Paul Cercueil --- Notes: v3: New patch include/drm/drm_connector.h | 3 +++ 1 file changed, 3 insertions

[PATCH v3 3/3] drm/panel: simple: Add GiantPlus GPM940B0 panel support

2019-04-22 Thread Paul Cercueil
The GiantPlus GPM940B0 is a simple 3.0" 320x240 24-bit TFT panel. Signed-off-by: Paul Cercueil Tested-by: Artur Rojek --- Notes: v2: Change bus format to MEDIA_BUS_FMT_RGB888_3X8_BE v3: No change drivers/gpu/drm/panel/panel-simple.c | 28 1

[PATCH 3/3] ASoC: simple-card: Read pin switches conf from devicetree

2019-04-20 Thread Paul Cercueil
When the routing path between a widget (e.g. "Speaker") and the codec goes through an external amplifier, having a pin switch for this widget allows the amplifier to be disabled when the widget is not to be used (e.g. when using headphones). Signed-off-by: Paul Cercueil --- sound/s

[PATCH 2/3] ASoC: simple-card-utils: add asoc_simple_card_of_parse_pin_switches()

2019-04-20 Thread Paul Cercueil
This function is a helper that permits to create pin switch controls for a list of widgets whose names are listed in the PREFIX "pin-switches" devicetree property. Signed-off-by: Paul Cercueil --- include/sound/simple_card_utils.h | 2 + sound/soc/generic/simple-card-ut

[PATCH 1/3] ASoC: doc: simple-card: Add pin-switches property

2019-04-20 Thread Paul Cercueil
The simple-audio-card,pin-switches property can contain the list of widget names for which pin switches must be created. Signed-off-by: Paul Cercueil --- Documentation/devicetree/bindings/sound/simple-card.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree

Re: [PATCH] clk: ingenic/jz4725b: Fix parent of pixel clock

2019-04-17 Thread Paul Cercueil
Hi Stephen, Le jeu. 18 avril 2019 à 1:48, Stephen Boyd a écrit : Quoting Paul Cercueil (2019-04-17 04:24:20) The pixel clock is directly connected to the output of the PLL, and not to the /2 divider. Cc: sta...@vger.kernel.org Fixes: 226dfa4726eb ("clk: Add Ingenic jz4725b CGU d

[PATCH] clk: ingenic/jz4725b: Fix parent of pixel clock

2019-04-17 Thread Paul Cercueil
The pixel clock is directly connected to the output of the PLL, and not to the /2 divider. Cc: sta...@vger.kernel.org Fixes: 226dfa4726eb ("clk: Add Ingenic jz4725b CGU driver") Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/jz4725b-cgu.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v3 RESEND 4/4] memory: jz4780_nemc: Add support for the JZ4740

2019-04-14 Thread Paul Cercueil
Add support for the JZ4740 SoC from Ingenic. Signed-off-by: Paul Cercueil Reviewed-by: Boris Brezillon --- v2: No change v3: Support the JZ4740 instead of the JZ4725B (exact same functionality but JZ4740 is already fully upstream) drivers/memory/jz4780-nemc.c | 24

[PATCH v3 RESEND 1/4] dt-bindings: memory: jz4780: Add compatible string for JZ4740 SoC

2019-04-14 Thread Paul Cercueil
Add a compatible string to support the memory controller built into the JZ4740 SoC from Ingenic. Signed-off-by: Paul Cercueil Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- v2: No change v3: Change compatible string for jz4740 instead of j4725b .../devicetree/bindings/memory

[PATCH v3 RESEND 3/4] memory: jz4780-nemc: Reduce size of const array

2019-04-14 Thread Paul Cercueil
The maximum value found in that array is 15, there's no need to store these values as uint32_t, a uint8_t is enough. Signed-off-by: Paul Cercueil --- v2: Remove casts to uint32_t v3: No change drivers/memory/jz4780-nemc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH v3 RESEND 2/4] memory: Kconfig: Drop dependency on MACH_JZ4780 for jz4780

2019-04-14 Thread Paul Cercueil
Depending on MACH_JZ4780 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: Boris Brezillon --- v2: No change v3: No change drivers/memory/Kconfig | 2 +- 1 file changed, 1

Re: [PATCH v2 4/4] power: supply: add Ingenic JZ47xx battery driver.

2019-04-08 Thread Paul Cercueil
Le lun. 8 avril 2019 à 11:38, Sebastian Reichel a écrit : Hi Paul, On Sun, Apr 07, 2019 at 09:07:57PM +0200, Paul Cercueil wrote: Hi Sebastian, Le dim. 7 avril 2019 à 18:52, Sebastian Reichel a écrit : > Hi, > > On Sun, Mar 24, 2019 at 03:31:37PM +, Jonathan Came

Re: [PATCH v2 4/4] power: supply: add Ingenic JZ47xx battery driver.

2019-04-07 Thread Paul Cercueil
Hi Sebastian, Le dim. 7 avril 2019 à 18:52, Sebastian Reichel a écrit : Hi, On Sun, Mar 24, 2019 at 03:31:37PM +, Jonathan Cameron wrote: On Sat, 23 Mar 2019 18:28:09 +0100 Artur Rojek wrote: > Add a driver for battery present on Ingenic JZ47xx SoCs. > > Signed-off-by: Artur Rojek

[PATCH v2 3/3] usb: musb: jz4740: obtain USB PHY from devicetree

2019-04-04 Thread Paul Cercueil
Fall back to devm_usb_get_phy() if devicetree is not available. Signed-off-by: Paul Cercueil --- Notes: v2: Change "usb-phy" DT property to "phys" drivers/usb/musb/jz4740.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers

[PATCH] usb: musb: Disable pullup in gadget setup

2019-04-04 Thread Paul Cercueil
The pullup may be already enabled before the driver is initialized. It has to be disabled at init time, as we cannot guarantee that a gadget driver will be bound to the UDC. Signed-off-by: Paul Cercueil --- drivers/usb/musb/musb_gadget.c | 1 + 1 file changed, 1 insertion(+) diff --git a

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

2019-04-02 Thread Paul Cercueil
Hi Miquel, Le mar. 2 avril 2019 à 13:56, Miquel Raynal a écrit : Hi Paul, Paul Cercueil wrote on Tue, 02 Apr 2019 01:31:52 +0200: Hi Stephen, Le mar. 2 avril 2019 à 1:14, Stephen Rothwell a écrit : > Hi all, > > After merging the nand tree, today's linux-next

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

2019-04-01 Thread Paul Cercueil
Hi Stephen, Le mar. 2 avril 2019 à 1:14, Stephen Rothwell a écrit : Hi all, After merging the nand tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/mtd/nand/raw/ingenic/ingenic_ecc.c:26:5: error: redefinition of 'ingenic_ecc_calculate' int ingenic_ecc_calcula

Re: Applied "ASoC: es8316: Add support for inverted jack detect" to the asoc tree

2019-04-01 Thread Paul Cercueil
they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 0bbcedd6bb41b82b77115fc001441ff34e7c4ea7 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date

Re: [PATCH] usb: musb: Force-disable pullup on shutdown

2019-04-01 Thread Paul Cercueil
Le lun. 1 avril 2019 à 19:17, Bin Liu a écrit : On Thu, Mar 21, 2019 at 03:42:46PM +0100, Paul Cercueil wrote: When the musb is shutdown, for instance when the driver is unloaded, force-disable the pullup. Otherwise, the host will still see the gadget device even after the shutdown

[PATCH 2/3] ASoC: Intel: bytcht_es8316: Add quirk for inverted jack detect

2019-03-29 Thread Paul Cercueil
Add a quirk to support boards whose jack detection mechanism is inverted. It will set the 'everest,jack-detect-inverted' boolean device property for the es8316 codec driver. Signed-off-by: Paul Cercueil --- sound/soc/intel/boards/bytcht_es8316.c | 17 + 1 file c

[PATCH 3/3] ASoC: Intel: bytcht_es8316: Add quirk for the Teclast X98+ II

2019-03-29 Thread Paul Cercueil
The Teclast X98+ II is a Cherrytrail tablet, which require two quirks: - it has stereo speakers, - its jack detection mechanism is inverted. Signed-off-by: Paul Cercueil --- sound/soc/intel/boards/bytcht_es8316.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff

[PATCH 1/3] ASoC: es8316: Add support for inverted jack detect

2019-03-29 Thread Paul Cercueil
etect-inverted' boolean device property. Signed-off-by: Paul Cercueil --- sound/soc/codecs/es8316.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c index 6d4a323f786b..ec2770b3f77d 100644 --- a/sound/soc/codecs/es8316.c +

[PATCH v6 02/13] dt-bindings: mtd: ingenic: Change 'BCH' to 'ECC' in documentation

2019-03-19 Thread Paul Cercueil
The JZ4740 ECC hardware is not BCH but Reed-Solomon, so it makes more sense to use the more generic ECC term. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v3: New patch v4: No change v5: No change v6: No change .../devicetree/bindings/mtd

[PATCH v6 06/13] mtd: rawnand: ingenic: Rename jz4780_nand driver to ingenic_nand

2019-03-19 Thread Paul Cercueil
The jz4780_nand driver will be modified to handle all the Ingenic JZ47xx SoCs that the upstream Linux kernel supports (JZ4740, JZ4725B, JZ4770, JZ4780), so it makes sense to rename it. Signed-off-by: Paul Cercueil --- Notes: v3: New patch v4: No changes v5: No changes

[PATCH v6 07/13] mtd: rawnand: ingenic: Rename jz4780_bch_init to jz4780_bch_reset

2019-03-19 Thread Paul Cercueil
The jz4780_bch_init name was confusing, as it suggested that its content should be executed once at init time, whereas what the function really does is reset the hardware for a new ECC operation. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: No change drivers/mtd/nand

[PATCH v6 05/13] mtd: rawnand: ingenic: Use SPDX license notifiers

2019-03-19 Thread Paul Cercueil
Use SPDX license notifiers instead of GPLv2 license text in the headers. Signed-off-by: Paul Cercueil Reviewed-by: Boris Brezillon --- Notes: v2: No changes v3: No changes v4: No changes v5: No changes v6: No change drivers/mtd/nand/raw/ingenic

[PATCH v6 00/13] Ingenic NAND patchset v6

2019-03-19 Thread Paul Cercueil
Hi, Changes from V5 include just a typo correction in patch 09/13, and the introduction of the patch 13/13 which is new. The rest is untouched. Thanks, -Paul

[PATCH v6 11/13] mtd: rawnand: ingenic: Add support for the JZ4725B

2019-03-19 Thread Paul Cercueil
The boot ROM of the JZ4725B SoC expects a specific OOB layout on the NAND, so we use it unconditionally in the ingenic-nand driver. Also add the jz4725b-bch driver to support the JZ4725B-specific BCH hardware. Signed-off-by: Paul Cercueil --- Notes: v2: Instead of forcing the OOB layout

[PATCH v6 08/13] mtd: rawnand: ingenic: Separate top-level and SoC specific code

2019-03-19 Thread Paul Cercueil
The ingenic-nand driver uses an API provided by the jz4780-bch driver. This makes it difficult to support other SoCs in the jz4780-bch driver. To work around this, we separate the API functions from the SoC-specific code, so that these API functions are SoC-agnostic. Signed-off-by: Paul Cercueil

[PATCH v6 12/13] mtd: rawnand: ingenic: Add ooblayout for the Qi Ben Nanonote

2019-03-19 Thread Paul Cercueil
The Ben Nanonote from Qi Hardware expects a specific OOB layout on its NAND. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: Use the qi,lb60 layout unconditionally if we detect that we're running on that board. v4: No change v5: No c

[PATCH v6 09/13] mtd: rawnand: ingenic: Make use of ecc-engine property

2019-03-19 Thread Paul Cercueil
Use the 'ecc-engine' standard property instead of the custom 'ingenic,bch-controller' custom property, which is now deprecated. Signed-off-by: Paul Cercueil --- Notes: v5: New patch v6: Fix 'a ecc-engine' -> 'an ecc-engine' typo driv

[PATCH v6 13/13] mtd: rawnand: ingenic: Move BBTs out of ECC area

2019-03-19 Thread Paul Cercueil
The generic layout for BBT markers will most likely overlap with our ECC bytes in the OOB, so move the BBT markers outside the OOB area. Signed-off-by: Paul Cercueil --- Notes: v6: New patch drivers/mtd/nand/raw/ingenic/ingenic_nand.c | 7 +++ 1 file changed, 7 insertions(+) diff

[PATCH v6 10/13] mtd: rawnand: ingenic: Add support for the JZ4740

2019-03-19 Thread Paul Cercueil
Add support for probing the ingenic-nand driver on the JZ4740 SoC from Ingenic, and the jz4740-ecc driver to support the JZ4740-specific ECC hardware. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: Also add support for the hardware ECC of the JZ4740 in this patch

[PATCH v6 01/13] dt-bindings: mtd: ingenic: Add compatible strings for JZ4740 and JZ4725B

2019-03-19 Thread Paul Cercueil
Add compatible strings to probe the jz4780-nand and jz4780-bch drivers from devicetree on the JZ4725B and JZ4740 SoCs from Ingenic. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: - Change 'ingenic,jz4725b-nand' compatible string to 'ingenic,

[PATCH v6 04/13] mtd: rawnand: Move drivers for Ingenic SoCs to subfolder

2019-03-19 Thread Paul Cercueil
Before adding support for more SoCs and seeing the number of files for these drivers grow, we move them to their own subfolder to keep it tidy. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: No change v4: No change v5: No change v6: No change

[PATCH v6 03/13] dt-bindings: mtd: ingenic: Use standard ecc-engine property

2019-03-19 Thread Paul Cercueil
The 'ingenic,bch-controller' property is now deprecated and the 'ecc-engine' property should be used instead. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v5: New patch v6: No change Documentation/devicetree/bindings/mtd/ingenic,jz4780-

[PATCH 2/2] clk: ingenic: jz4725b: Add UDC PHY clock

2019-03-19 Thread Paul Cercueil
Add clock for the USB Device Controller PHY. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/jz4725b-cgu.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/ingenic/jz4725b-cgu.c b/drivers/clk/ingenic/jz4725b-cgu.c index 584ff4ff81c7..8901ea0295b7 100644 --- a/drivers

[PATCH 1/2] dt-bindings: clock: jz4725b-cgu: Add UDC PHY clock

2019-03-19 Thread Paul Cercueil
Add macro for the UDC PHY clock of the JZ4725B. Signed-off-by: Paul Cercueil --- include/dt-bindings/clock/jz4725b-cgu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/jz4725b-cgu.h b/include/dt-bindings/clock/jz4725b-cgu.h index 460bbeff6ab8..31f1ab0fe42c 100644

[PATCH] ASoC: jz4740: Depend on MIPS instead of MACH_JZ4740

2019-03-19 Thread Paul Cercueil
Depending on MACH_JZ4740 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 --- sound/soc/jz4740/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/jz4740

Re: [PATCH v3 4/4] memory: jz4780_nemc: Add support for the JZ4740

2019-03-19 Thread Paul Cercueil
Hi, Any feedback on this patchset? Should I resend? Thanks, -Paul Le mar. 5 févr. 2019 à 4:52, Paul Cercueil a écrit : Add support for the JZ4740 SoC from Ingenic. Signed-off-by: Paul Cercueil Reviewed-by: Boris Brezillon --- v2: No change v3: Support the JZ4740 instead of the JZ4725B

Re: [PATCH v5 09/12] mtd: rawnand: ingenic: Make use of ecc-engine property

2019-03-18 Thread Paul Cercueil
Hi, Le ven. 15 mars 2019 à 15:37, Paul Cercueil a écrit : Hi, Le ven. 15 mars 2019 à 9:40, Miquel Raynal a écrit : Hi Paul, Paul Cercueil wrote on Wed, 13 Mar 2019 23:22:56 +0100: Use the 'ecc-engine' standard property instead of the custom 'ingenic,bch-con

Re: [PATCH v5 09/12] mtd: rawnand: ingenic: Make use of ecc-engine property

2019-03-15 Thread Paul Cercueil
Hi, Le ven. 15 mars 2019 à 9:40, Miquel Raynal a écrit : Hi Paul, Paul Cercueil wrote on Wed, 13 Mar 2019 23:22:56 +0100: Use the 'ecc-engine' standard property instead of the custom 'ingenic,bch-controller' custom property, which is now deprecated. Signed-o

[PATCH v5 05/12] mtd: rawnand: ingenic: Use SPDX license notifiers

2019-03-13 Thread Paul Cercueil
Use SPDX license notifiers instead of GPLv2 license text in the headers. Signed-off-by: Paul Cercueil Reviewed-by: Boris Brezillon --- Notes: v2: No changes v3: No changes v4: No changes v5: No changes drivers/mtd/nand/raw/ingenic/jz4780_bch.c | 5

[PATCH v5 07/12] mtd: rawnand: ingenic: Rename jz4780_bch_init to jz4780_bch_reset

2019-03-13 Thread Paul Cercueil
The jz4780_bch_init name was confusing, as it suggested that its content should be executed once at init time, whereas what the function really does is reset the hardware for a new ECC operation. Signed-off-by: Paul Cercueil --- Notes: v5: New patch drivers/mtd/nand/raw/ingenic

[PATCH v5 03/12] dt-bindings: mtd: ingenic: Use standard ecc-engine property

2019-03-13 Thread Paul Cercueil
The 'ingenic,bch-controller' property is now deprecated and the 'ecc-engine' property should be used instead. Signed-off-by: Paul Cercueil --- Notes: v5: New patch Documentation/devicetree/bindings/mtd/ingenic,jz4780-nand.txt | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH v5 12/12] mtd: rawnand: ingenic: Add ooblayout for the Qi Ben Nanonote

2019-03-13 Thread Paul Cercueil
The Ben Nanonote from Qi Hardware expects a specific OOB layout on its NAND. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: Use the qi,lb60 layout unconditionally if we detect that we're running on that board. v4: No change v5: No c

[PATCH v5 11/12] mtd: rawnand: ingenic: Add support for the JZ4725B

2019-03-13 Thread Paul Cercueil
The boot ROM of the JZ4725B SoC expects a specific OOB layout on the NAND, so we use it unconditionally in the ingenic-nand driver. Also add the jz4725b-bch driver to support the JZ4725B-specific BCH hardware. Signed-off-by: Paul Cercueil --- Notes: v2: Instead of forcing the OOB layout

[PATCH v5 10/12] mtd: rawnand: ingenic: Add support for the JZ4740

2019-03-13 Thread Paul Cercueil
Add support for probing the ingenic-nand driver on the JZ4740 SoC from Ingenic, and the jz4740-ecc driver to support the JZ4740-specific ECC hardware. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: Also add support for the hardware ECC of the JZ4740 in this patch

[PATCH v5 06/12] mtd: rawnand: ingenic: Rename jz4780_nand driver to ingenic_nand

2019-03-13 Thread Paul Cercueil
The jz4780_nand driver will be modified to handle all the Ingenic JZ47xx SoCs that the upstream Linux kernel supports (JZ4740, JZ4725B, JZ4770, JZ4780), so it makes sense to rename it. Signed-off-by: Paul Cercueil --- Notes: v3: New patch v4: No changes v5: No changes

[PATCH v5 02/12] dt-bindings: mtd: ingenic: Change 'BCH' to 'ECC' in documentation

2019-03-13 Thread Paul Cercueil
The JZ4740 ECC hardware is not BCH but Reed-Solomon, so it makes more sense to use the more generic ECC term. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v3: New patch v4: No change v5: No change .../devicetree/bindings/mtd/ingenic,jz4780-nand.txt

[PATCH v5 08/12] mtd: rawnand: ingenic: Separate top-level and SoC specific code

2019-03-13 Thread Paul Cercueil
The ingenic-nand driver uses an API provided by the jz4780-bch driver. This makes it difficult to support other SoCs in the jz4780-bch driver. To work around this, we separate the API functions from the SoC-specific code, so that these API functions are SoC-agnostic. Signed-off-by: Paul Cercueil

[PATCH v5 09/12] mtd: rawnand: ingenic: Make use of ecc-engine property

2019-03-13 Thread Paul Cercueil
Use the 'ecc-engine' standard property instead of the custom 'ingenic,bch-controller' custom property, which is now deprecated. Signed-off-by: Paul Cercueil --- Notes: v5: New patch drivers/mtd/nand/raw/ingenic/ingenic_ecc.c | 13 ++--- 1 file changed,

[PATCH v5 04/12] mtd: rawnand: Move drivers for Ingenic SoCs to subfolder

2019-03-13 Thread Paul Cercueil
Before adding support for more SoCs and seeing the number of files for these drivers grow, we move them to their own subfolder to keep it tidy. Signed-off-by: Paul Cercueil --- Notes: v2: New patch v3: No change v4: No change v5: No change drivers/mtd/nand/raw

[PATCH v5 01/12] dt-bindings: mtd: ingenic: Add compatible strings for JZ4740 and JZ4725B

2019-03-13 Thread Paul Cercueil
Add compatible strings to probe the jz4780-nand and jz4780-bch drivers from devicetree on the JZ4725B and JZ4740 SoCs from Ingenic. Signed-off-by: Paul Cercueil Reviewed-by: Rob Herring --- Notes: v2: - Change 'ingenic,jz4725b-nand' compatible string to 'ingenic,

Re: [PATCH v4 2/9] dt-bindings: mtd: ingenic: Change 'BCH' to 'ECC' in documentation

2019-03-13 Thread Paul Cercueil
Le lun. 4 mars 2019 à 15:58, Miquel Raynal a écrit : Hi Paul, Paul Cercueil wrote on Mon, 04 Mar 2019 19:23:50 +0100: On Mon, Mar 4, 2019 at 10:50 AM, Miquel Raynal wrote: > Hi Paul, > > Paul Cercueil <mailto:p...@crapouillou.net>> > wrote on Sat, 9 Feb 20

Re: [PATCH v4 1/9] dt-bindings: mtd: ingenic: Add compatible strings for JZ4740 and JZ4725B

2019-03-13 Thread Paul Cercueil
Hi, Le lun. 4 mars 2019 à 15:51, Miquel Raynal a écrit : Hi Paul, >> --- a/Documentation/devicetree/bindings/mtd/ingenic,jz4780-nand.txt >> +++ b/Documentation/devicetree/bindings/mtd/ingenic,jz4780-nand.txt >> @@ -6,7 +6,10 @@ memory-controllers/ingenic,jz4780-nemc.txt), and >> thus

Re: [PATCH v4 8/9] mtd: rawnand: ingenic: Add support for the JZ4725B

2019-03-13 Thread Paul Cercueil
Hi Miquel, Le lun. 4 mars 2019 à 16:09, Miquel Raynal a écrit : Hi Paul, Paul Cercueil wrote on Mon, 04 Mar 2019 19:30:04 +0100: On Mon, Mar 4, 2019 at 11:35 AM, Miquel Raynal wrote: > Hi Paul, > > Paul Cercueil <mailto:p...@crapouillou.net>> > wrote on Sat,

<    4   5   6   7   8   9   10   11   12   13   >