[BUGFIX PATCH] net: ethernet: cpsw: fix erroneous condition in error check

2013-03-21 Thread Lothar Waßmann
The error check in cpsw_probe_dt() has an '&&' where an '||' is meant to be. This causes a NULL pointer dereference when incomplet DT data is passed to the driver ('phy_id' property for cpsw_emac1 missing). Signed-off-by: Lothar Waßmann --- drivers/net

[BUGFIX PATCH] ARM: OMAP: fix type of return values in omap_device_get_by_hwmod_name()

2013-03-21 Thread Lothar Waßmann
mach-omap2/omap_device.c:821:3: warning: return makes pointer from integer without a cast arch/arm/mach-omap2/omap_device.c:826:3: warning: return makes pointer from integer without a cast Signed-off-by: Lothar Waßmann --- arch/arm/mach-omap2/omap_device.c |4 ++-- 1 files changed, 2 insert

Re: [PATCH|RFC] of: let of_match_device() always return best match

2013-10-07 Thread Lothar Waßmann
und has to be enabled in the driver. The mx28 has this > >> bug > >> fixed, so we don't need this quite costly workaround. > > > > What about defining in imx28.dtsi: > > compatible = "fsl,imx28-flexcan". > > It already works with changi

Re: dev->of_node overwrite can cause device loading with different driver

2013-09-18 Thread Lothar Waßmann
case, we could end up with similar issues. > This has already been fixed in commit: e98b44e9 usb: chipidea: prevent endless loop registering platform_devices when probe fails in linux-next Lothar Waßmann -- ___ Ka-Ro electronics GmbH | Pas

[BUGFIX PATCH] rtc: eliminate extra call of ida_simple_remove()

2012-12-05 Thread Lothar Waßmann
rtc_device_release(). Signed-off-by: Lothar Waßmann --- drivers/rtc/class.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index f8a0aab..5143629 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -244,7 +244,6 @@ void

[PATCH] pwm: i.MX: eliminate build warning

2012-12-05 Thread Lothar Waßmann
compiling the i.MX pwm driver produces the following warning: |drivers/pwm/pwm-imx.c: In function 'imx_pwm_probe': |drivers/pwm/pwm-imx.c:281:7: warning: assignment discards qualifiers from pointer target type Apply a 'const' attribute to the affected variable declaration. S

[PATCH 1/2] mtd: mxc_nand: fix unbalanced clk_disable() in error path

2012-12-05 Thread Lothar Waßmann
() Signed-off-by: Lothar Waßmann --- drivers/mtd/nand/mxc_nand.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index d316324..d965809 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c

[PATCH 2/2] mtd: mxc_nand: reorder part_probes to let cmdline override other sources

2012-12-05 Thread Lothar Waßmann
#x27; to 'const char const *' as advised by checkpatch.pl Signed-off-by: Lothar Waßmann --- drivers/mtd/nand/mxc_nand.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index d316324..fb98775 100644 -

[PATCH 3/3] staging: drm/imx: fix double free bug in error path

2012-12-25 Thread Lothar Waßmann
kfree(imx_drm_encoder) is already being called at the label 'err_register'. Signed-off-by: Lothar Waßmann --- drivers/staging/imx-drm/imx-drm-core.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/staging/imx-drm/imx-drm-core.c b/drivers/staging/imx-d

[PATCH 2/3] staging: drm/imx: several bug fixes

2012-12-25 Thread Lothar Waßmann
- convert bogus IS_ERR_OR_NULL() to IS_ERR() - fix copy/paste error - check return value of ipu_crtc_init() Signed-off-by: Lothar Waßmann --- drivers/staging/imx-drm/ipuv3-crtc.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/imx-drm/ipuv3-crtc.c

[PATCH 1/3] staging: drm/imx: check return value of ipu_reset()

2012-12-25 Thread Lothar Waßmann
ipu_reset() can fail with a timeout. Check the return value and act appropriately. Signed-off-by: Lothar Waßmann --- drivers/staging/imx-drm/ipu-v3/ipu-common.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-common.c b/drivers

[PATCH] rtc: rtc-stmp3xxx: provide timeout for potentially endless loop polling a HW bit

2013-07-31 Thread Lothar Waßmann
om getting stuck in this case. Signed-off-by: Lothar Waßmann --- drivers/rtc/rtc-stmp3xxx.c | 35 +-- 1 files changed, 25 insertions(+), 10 deletions(-) diff --git a/drivers/rtc/rtc-stmp3xxx.c b/drivers/rtc/rtc-stmp3xxx.c index 767fee2..2601953 100644 --- a/drive

[PATCH 07/25] dma: of: make error message more meaningful by adding the node name

2013-07-31 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- drivers/dma/of-dma.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c index 75334bd..0b88dd3 100644 --- a/drivers/dma/of-dma.c +++ b/drivers/dma/of-dma.c @@ -160,7 +160,8 @@ struct dma_chan

Re: [PATCH v2 3/3] dma: Add Freescale eDMA engine driver support

2013-08-05 Thread Lothar Waßmann
mamux->clk); > + > + clk_prepare_enable(fsl_edmamux->clk); > What, if this fails? > + > + ret = of_property_read_u32_index(phandle, "fsl,dmamux-id", 0, > + &fsl_edmamux->mux_id); > + if (ret) > +

[BUG linux-next] watchdog: build breakage for non-SMP builds

2013-08-07 Thread Lothar Waßmann
return 0; } return 1; } #else /* CONFIG_USE_GENERIC_SMP_HELPERS */ static int __try_remote_softirq(struct call_single_data *cp, int cpu, int softirq) { return 1; } #endif Lothar Waßmann -- ___ Ka-Ro electr

[PATCH] USB: chipidea: promote error code from ci_role_start() start instead of returning -ENODEV

2012-11-22 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- drivers/usb/chipidea/core.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index b726c49..bd6e7a4 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c

[PATCH] ASoC: mxs-saif: export mxs_saif_put_mclk,mxs_saif_get_mclk

2012-11-22 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- sound/soc/mxs/mxs-saif.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c index c294fbb..f1d1f9e 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c @@ -229,6 +229,7

[PATCH] ASoC: dmaengine_pcm: set MODULE_LICENSE

2012-11-22 Thread Lothar Waßmann
Signed-off-by: Lothar Waßmann --- sound/soc/soc-dmaengine-pcm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/sound/soc/soc-dmaengine-pcm.c b/sound/soc/soc-dmaengine-pcm.c index bbc1257..111b7d92 100644 --- a/sound/soc/soc-dmaengine-pcm.c +++ b/sound/soc/soc

[BUGFIX PATCH] USB: chipidea: fix use after free bug

2012-11-22 Thread Lothar Waßmann
The pointer to a platform_device struct must not be dereferenced after the device has been unregistered. This bug produces a crash when unloading the ci13xxx kernel module compiled with CONFIG_PAGE_POISONING enabled. Signed-off-by: Lothar Waßmann --- drivers/usb/chipidea/core.c |3 ++- 1

[BUGFIX PATCH] ASoC: imx-sgtl5000: prevent module from being unloaded when in use

2012-11-22 Thread Lothar Waßmann
set the 'onwer' field of the registered snd_soc_card object to prevent removal of the module when its resources are in use. Signed-off-by: Lothar Waßmann --- sound/soc/fsl/imx-sgtl5000.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sound/soc/fsl/imx-sg

[PATCH] ASoC: imx: add MODULE_LICENSE("GPL")

2012-11-22 Thread Lothar Waßmann
also set MODULE_AUTHOR and MODULE_DESCRIPTION Signed-off-by: Lothar Waßmann --- sound/soc/fsl/imx-pcm.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/sound/soc/fsl/imx-pcm.c b/sound/soc/fsl/imx-pcm.c index 93dc360..d5cd9ef 100644 --- a/sound/soc/fsl/imx-pcm.c +++ b

[BUGFIX PATCH] ASoC: fsl: fix miscompilation of snd-soc-imx-pcm

2012-11-22 Thread Lothar Waßmann
Due to a broken make rule, imx-pcm-dma.c or imx-pcm-fiq.c (whatever is selected via Kconfig) will not be compiled when building as module, resulting in a non-functional sound driver. Signed-off-by: Lothar Waßmann --- sound/soc/fsl/Makefile |8 ++-- 1 files changed, 6 insertions(+), 2

Re: [BUGFIX PATCH] ASoC: fsl: fix miscompilation of snd-soc-imx-pcm

2012-11-22 Thread Lothar Waßmann
Hi, Mark Brown writes: > On Thu, Nov 22, 2012 at 01:31:06PM +0100, Lothar Waßmann wrote: > > > obj-$(CONFIG_SND_SOC_IMX_PCM) += snd-soc-imx-pcm.o > > snd-soc-imx-pcm-y := imx-pcm.o > > -snd-soc-imx-pcm-$(CONFIG_SND_SOC_IMX_PCM_FIQ) += imx-pcm-fi

Re: [PATCH] ASoC: mxs-saif: export mxs_saif_put_mclk,mxs_saif_get_mclk

2012-11-22 Thread Lothar Waßmann
Hi, > On Thu, Nov 22, 2012 at 01:31:09PM +0100, Lothar Waßmann wrote: > > > > Signed-off-by: Lothar Waßmann > > Why? > I thought that was obvious... To be able to compile the mxs sound driver as module. Lothar Waßmann -- __

[PATCH v2] ASoC: fsl: fix miscompilation of snd-soc-imx-pcm

2012-11-23 Thread Lothar Waßmann
l5000 <-> 63fcc000.ssi mapping ok Signed-off-by: Lothar Waßmann --- sound/soc/fsl/Makefile | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sound/soc/fsl/Makefile b/sound/soc/fsl/Makefile index 515ba66..afd3479 100644 --- a/sound/soc/fsl/Makefile +++ b/so

Re: [PATCH v2] ASoC: fsl: fix miscompilation of snd-soc-imx-pcm

2012-11-23 Thread Lothar Waßmann
Hi, Mark Brown writes: > On Fri, Nov 23, 2012 at 10:12:13AM +0100, Lothar Waßmann wrote: > > Due to a broken make rule, sound/soc/fsl/imx-pcm-dma.c or > > sound/soc/fsl/imx-pcm-fiq.c (whatever is selected via Kconfig) will > > not be compiled into imx-pcm.o when bu

Re: [PATCH] ASoC: mxs-saif: export mxs_saif_put_mclk,mxs_saif_get_mclk

2012-11-26 Thread Lothar Waßmann
Hi, Mark Brown writes: > On Fri, Nov 23, 2012 at 08:21:22AM +0100, Lothar Waßmann wrote: > > > On Thu, Nov 22, 2012 at 01:31:09PM +0100, Lothar Waßmann wrote: > > > > Why? > > > I thought that was obvious... To be able to compile the mxs sound > > driver

[PATCH v3] ASoC: fsl: fix miscompilation of snd-soc-imx-pcm

2012-11-26 Thread Lothar Waßmann
7;y' when selected. Signed-off-by: Lothar Waßmann --- sound/soc/fsl/Kconfig |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/Kconfig b/sound/soc/fsl/Kconfig index 10fd172..3b98159 100644 --- a/sound/soc/fsl/Kconfig +++ b/sound/soc/fsl/Kconfig @@ -112,

Re: [PATCHv2] backlight: pwm_bl: disable PWM when 'duty_cycle' is zero

2016-06-19 Thread Lothar Waßmann
Hi, On Fri, 17 Jun 2016 15:17:19 +0100 Lee Jones wrote: > On Sat, 11 Jun 2016, Lothar Waßmann wrote: > > On Fri, 10 Jun 2016 15:54:49 +0100 Lee Jones wrote: > > > On Fri, 10 Jun 2016, Lothar Waßmann wrote: > > > > On Fri, 10 Jun 2016 08:44:49 +0100 Lee Jones wrote:

Re: [PATCH 3/4] ARM: dts: imx28-tx28: fix interrupt flags and use interrupts-extended property

2017-10-16 Thread Lothar Waßmann
Hi, On Mon, 16 Oct 2017 09:17:26 +0200 Uwe Kleine-König wrote: > Hello, > > On Wed, Oct 11, 2017 at 01:05:38PM +0200, Lothar Waßmann wrote: > > diff --git a/arch/arm/boot/dts/imx28-tx28.dts > > b/arch/arm/boot/dts/imx28-tx28.dts > > index 211e67d..3c852f7 100644

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-16 Thread Lothar Waßmann
Hi, On Mon, 16 Oct 2017 17:13:29 -0500 Rob Herring wrote: > On Wed, Oct 11, 2017 at 6:23 AM, Lothar Waßmann > wrote: > > The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS > > converter that requires a fixed pixelclk polarity, no matter what the > > pan

[PATCH 03/12] ARM: dts: imx6-tx6: remove obsolete ipu1 alias

2017-10-17 Thread Lothar Waßmann
The 'ipu1' alias is already defined in imx6q.dtsi. There is no need to redefine it here. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts b/arch/arm/boot/dts/imx6q

[PATCHv2 00/12] ARM: dts: imx6: Update dts files for the Ka-Ro TX6 module series

2017-10-17 Thread Lothar Waßmann
This patchset updates the dts files for the Ka-Ro electronics GmbH TX6 module series and adds some include files to facilitate supporting various SoM/baseboard combinations. Changes vs. v1: - rebased to imx/dt branch - eliminate use of 'interrupts-extended' property according to Uwe Kleine-König

[PATCH 09/12] ARM: dts: imx6-tx6: move display configuration to .dtsi file

2017-10-17 Thread Lothar Waßmann
Currently the display (LCD or LVDS) configuration is duplicated with slight variations in each TX6 module specific file. Move it to an include file for simplification and consistency. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts| 74 +-- arch/arm/boot

[PATCH 01/12] ARM: dts: imx6-tx6: update model property to match current module HW revision

2017-10-17 Thread Lothar Waßmann
The current TX6Q module HW revision is 3 reflected in the module name suffix '-1030' (-1130 for LVDS). Change the model string to prevent confusion about what DTS file to use for these modules. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6q-tx6q-1010.dts | 4 ++-- arch/ar

[PATCH 04/12] ARM: dts: imx6-tx6: add trickle-charge config for DS1339

2017-10-17 Thread Lothar Waßmann
As the DS1339 driver now supports enabling the trickle charge feature via DTB, add the appropriate properties to utilize this feature. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b

[PATCH 12/12] ARM: dts: imx: add support for TX6 modules on MB7 baseboard

2017-10-17 Thread Lothar Waßmann
Create .dts files for various Ka-Ro electronics TX modules on the MB7 baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/Makefile | 8 arch/arm/boot/dts/imx6dl-tx6s-8034-mb7.dts | 48 arch/arm/boot/dts/imx6dl-tx6s-8035-mb7.dts | 48

[PATCH 10/12] ARM: dts: imx6-tx6: add a .dtsi file for the MB7 baseboard

2017-10-17 Thread Lothar Waßmann
Move the MB7 specific settings to a separate .dtsi file to facilitate supporting more module variants with this baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 9 +-- arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 42 + arch/arm/boot/dts

[PATCH 05/12] ARM: dts: imx6-tx6: improve ethernet related pinctrl setup

2017-10-17 Thread Lothar Waßmann
pinctrl settings from the PHY subnode to the FEC node. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot/dts/imx6qdl-tx6.dtsi index a50bf71

[PATCH 07/12] ARM: dts: imx6-tx6: convert to using simple-audio-card

2017-10-17 Thread Lothar Waßmann
Convert the DTS sound setup to use the simple-audio-card driver. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 50 -- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot

[PATCH 08/12] ARM: dts: imx6-tx6: add support for I2C bus recovery

2017-10-17 Thread Lothar Waßmann
Define the required properties to enable I2C bus recovery supported by the I2C subsystem. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch

[PATCH 02/12] ARM: dts: imx6-tx6: remove obsolete eeti,egalax_ts

2017-10-17 Thread Lothar Waßmann
The display, that incorporates this touchpanel is obsolete and won't be supported any more. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6u-811x.dts | 23 +-- arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 22 +- arch/arm/boot/dts/

[PATCH 06/12] ARM: dts: imx6-tx6: specify ethernet phy reset post-delay

2017-10-17 Thread Lothar Waßmann
Under certain circumstances the ethernet PHY cannot be detected on Ka-Ro electronics TX6 modules. Using a phy-reset-post-delay of at least 2ms alleviates this problem. Define it to 10ms to be on the safe side. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 1 + 1 file

[PATCH 11/12] ARM: dts: imx: add support for TX6QP

2017-10-17 Thread Lothar Waßmann
-DIMM Temp. Range -40°C to 105°C Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/imx6qp-tx6qp-8037.dts | 86 +++ arch/arm/boot/dts/imx6qp-tx6qp-8137.dts | 90 + 3 files changed, 178

[PATCHv3 08/12] ARM: dts: imx6-tx6: add support for I2C bus recovery

2017-10-17 Thread Lothar Waßmann
Define the required properties to enable I2C bus recovery supported by the I2C subsystem. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch

[PATCHv3 09/12] ARM: dts: imx6-tx6: move display configuration to .dtsi file

2017-10-17 Thread Lothar Waßmann
Currently the display (LCD or LVDS) configuration is duplicated with slight variations in each TX6 module specific file. Move it to an include file for simplification and consistency. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6dl-comtft.dts| 74 +-- arch/arm/boot

[PATCHv3 12/12] ARM: dts: imx: add support for TX6 modules on MB7 baseboard

2017-10-17 Thread Lothar Waßmann
Create .dts files for various Ka-Ro electronics TX modules on the MB7 baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/Makefile | 8 arch/arm/boot/dts/imx6dl-tx6s-8034-mb7.dts | 48 arch/arm/boot/dts/imx6dl-tx6s-8035-mb7.dts | 48

[PATCHv3 00/12] ARM: dts: imx6: Update dts files for the Ka-Ro TX6 module series

2017-10-17 Thread Lothar Waßmann
Please ignore the V2 series. I accidentally sent the patches from a wrong directory. This patchset updates the dts files for the Ka-Ro electronics GmbH TX6 module series and adds some include files to facilitate supporting various SoM/baseboard combinations. Changes vs. v2: - resent the correct p

[PATCHv3 03/12] ARM: dts: imx6-tx6: remove obsolete ipu1 alias

2017-10-17 Thread Lothar Waßmann
The 'ipu1' alias is already defined in imx6q.dtsi. There is no need to redefine it here. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts b/arch/arm/boot/dts/imx6q

[PATCHv3 04/12] ARM: dts: imx6-tx6: add trickle-charge config for DS1339

2017-10-17 Thread Lothar Waßmann
As the DS1339 driver now supports enabling the trickle charge feature via DTB, add the appropriate properties to utilize this feature. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b

[PATCHv3 06/12] ARM: dts: imx6-tx6: specify ethernet phy reset post-delay

2017-10-17 Thread Lothar Waßmann
Under certain circumstances the ethernet PHY cannot be detected on Ka-Ro electronics TX6 modules. Using a phy-reset-post-delay of at least 2ms alleviates this problem. Define it to 10ms to be on the safe side. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 1 + 1 file

[PATCHv3 07/12] ARM: dts: imx6-tx6: convert to using simple-audio-card

2017-10-17 Thread Lothar Waßmann
Convert the DTS sound setup to use the simple-audio-card driver. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 50 -- 1 file changed, 42 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot

[PATCHv3 01/12] ARM: dts: imx6-tx6: update model property to match current module HW revision

2017-10-17 Thread Lothar Waßmann
The current TX6Q module HW revision is 3 reflected in the module name suffix '-1030' (-1130 for LVDS). Change the model string to prevent confusion about what DTS file to use for these modules. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6q-tx6q-1010.dts | 4 ++-- arch/ar

[PATCHv3 11/12] ARM: dts: imx: add support for TX6QP

2017-10-17 Thread Lothar Waßmann
-DIMM Temp. Range -40°C to 105°C Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/imx6qp-tx6qp-8037.dts | 86 +++ arch/arm/boot/dts/imx6qp-tx6qp-8137.dts | 90 + 3 files changed, 178

[PATCHv3 10/12] ARM: dts: imx6-tx6: add a .dtsi file for the MB7 baseboard

2017-10-17 Thread Lothar Waßmann
Move the MB7 specific settings to a separate .dtsi file to facilitate supporting more module variants with this baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 9 +-- arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts | 42 + arch/arm/boot/dts

[PATCHv3 05/12] ARM: dts: imx6-tx6: improve ethernet related pinctrl setup

2017-10-17 Thread Lothar Waßmann
pinctrl settings from the PHY subnode to the FEC node. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6qdl-tx6.dtsi | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-tx6.dtsi b/arch/arm/boot/dts/imx6qdl-tx6.dtsi index a50bf71

[PATCHv3 02/12] ARM: dts: imx6-tx6: remove obsolete eeti,egalax_ts

2017-10-17 Thread Lothar Waßmann
The display, that incorporates this touchpanel is obsolete and won't be supported any more. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6dl-tx6u-811x.dts | 23 +-- arch/arm/boot/dts/imx6dl-tx6u-81xx-mb7.dts | 22 +- arch/arm/boot/dts/

Re: [PATCH 6/7] ARM: dts: imx6ul: add support for TXUL modules on TXUL-Mainboard

2017-10-17 Thread Lothar Waßmann
Hi, On Mon, 16 Oct 2017 18:33:17 -0200 Fabio Estevam wrote: > Hi Lothar, > > On Fri, Oct 13, 2017 at 7:43 AM, Lothar Waßmann > wrote: > > > +/ { > > + aliases { > > + lcdif_24bit_pins_a = &pinctrl_disp0_3; > > + mmc

Re: [PATCH 1/9] drm/panel: simple: add a macro for defining display modes in a simpler and less error prone way

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:08:18 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:33PM +0200, Lothar Waßmann wrote: > > Create a macro that eases the definition of display mode parameters by > > accecpting the parameters: > > freq, hactive, hfront-porch,

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:14:22 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:36PM +0200, Lothar Waßmann wrote: > > The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS > > converter that requires a fixed pixelclk polarity, no matter what the > &

Re: [PATCH 3/9] drm/panel: simple: make it possible to override LCD bus format

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:12:40 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:35PM +0200, Lothar Waßmann wrote: > > The baseboards for the Ka-Ro electronics series of i.MX modules > > use a 24bit LCD interface, no matter what LCD bus width the SoC on the > >

Re: [PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:09:37 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:34PM +0200, Lothar Waßmann wrote: > > Use the newly defined macro to generate the display_mode data entries > > for all panels. This reduces the code size significantly and makes th

Re: [PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 15:08:31 +0200 Thierry Reding wrote: > On Tue, Oct 17, 2017 at 03:05:16PM +0200, Lothar Waßmann wrote: > > Hi, > > > > On Tue, 17 Oct 2017 14:09:37 +0200 Thierry Reding wrote: > > > On Wed, Oct 11, 2017 at 01:23:34PM +0200, Lothar Waßman

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-25 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:45:04 +0200 Thierry Reding wrote: > On Tue, Oct 17, 2017 at 02:25:07PM +0200, Lothar Waßmann wrote: > > Hi, > > > > On Tue, 17 Oct 2017 14:14:22 +0200 Thierry Reding wrote: > > > On Wed, Oct 11, 2017 at 01:23:36PM +0200, Lothar Wa

[PATCH 0/2] backlight: pwm_bl: prevent backlight flicker when switching PWM on

2017-10-26 Thread Lothar Waßmann
These patches implement some measures to prevent backlight flicker when the backlight is being switched on for a display with an active low brightness control pin.

[PATCH 0/2] backlight: pwm_bl: prevent backlight flicker when switching PWM on

2017-10-26 Thread Lothar Waßmann
These patches implement some measures to prevent backlight flicker when the backlight is being switched on for a display with an active low brightness control pin. GIT: [PATCH 1/2] backlight: pwm_bl: Enable PWM before switching regulator GIT: [PATCH 2/2] backlight: pwm_bl: add configurable delay be

[PATCH 1/2] backlight: pwm_bl: Enable PWM before switching regulator on

2017-10-26 Thread Lothar Waßmann
PWM before switching backlight power on to prevent this. Signed-off-by: Lothar Waßmann --- drivers/video/backlight/pwm_bl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index 002f1ce..921f322 100644 --- a

[PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on

2017-10-26 Thread Lothar Waßmann
When switching the backlight on, the LCD may need some time to adjust to the configured PWM duty cycle. Add a configurable delay between configuring the PWM and enabling the backlight regulator to account for this. Signed-off-by: Lothar Waßmann --- .../bindings/leds/backlight/pwm-backlight.txt

Re: [PATCH 0/2] backlight: pwm_bl: prevent backlight flicker when switching PWM on

2017-11-13 Thread Lothar Waßmann
Hi, On Fri, 10 Nov 2017 12:22:15 +0100 Enric Balletbo i Serra wrote: > Hi all, > > On 08/11/17 11:48, Daniel Thompson wrote: > > On 26/10/17 13:49, Lothar Waßmann wrote: > >> These patches implement some measures to prevent backlight flicker > >> when the bac

Re: [PATCH 3/4] ARM: dts: imx28-tx28: fix interrupt flags and use interrupts-extended property

2017-10-17 Thread Lothar Waßmann
Hi, On Wed, 18 Oct 2017 10:13:32 +0800 Shawn Guo wrote: > On Mon, Oct 16, 2017 at 10:56:32AM +0200, Lothar Waßmann wrote: > > Hi, > > > > On Mon, 16 Oct 2017 09:17:26 +0200 Uwe Kleine-König wrote: > > > Hello, > > > > > > On Wed, Oct 11

Re: [PATCH v3 1/5] input: touchscreen: add imx6ul_tsc driver support

2015-08-28 Thread Lothar Waßmann
gt; + > + If unsure, say N. > + > + To compile this driver as a module, choose M here: the > + moduel will be called imx6ul_tsc. > s/moduel/module/ Lothar Waßmann -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messa

Re: [PATCH 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-09-09 Thread Lothar Waßmann
dev_err(mt8173_nor->dev, "execute cmd failed!\n"); > > mt8173_nor_execute_cmd() will already have printed an error message. > And mt8173_nor_execute_cmd()/mt8173_nor_set_cmd() returned an error code which should be promoted to the caller rather than inventing a new one.

Re: [RFC PATCH 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO

2018-08-21 Thread Lothar Waßmann
Michal Vokáč wrote: > Output of the PWM block of i.MX SoCs is always zero volts when the block > is disabled. This can caue issues when inverted PWM polarity is needed. > With inverted polarity a duty cycle = 0% corresponds to solid high level > on the output. If the PWM is dissabled its output i

Re: [RFC PATCH 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO

2018-08-22 Thread Lothar Waßmann
Michal Vokáč wrote: > On 22.8.2018 08:14, Lothar Waßmann wrote: > > Michal Vokáč wrote: > > > >> Output of the PWM block of i.MX SoCs is always zero volts when the block > >> is disabled. This can caue issues when inverted PWM polarity is needed. > >&g

Re: [RFC PATCH 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO

2018-08-22 Thread Lothar Waßmann
Michal Vokáč wrote: > On 22.8.2018 13:17, Lothar Waßmann wrote: > > Michal Vokáč wrote: > > > >> On 22.8.2018 08:14, Lothar Waßmann wrote: > >>> Michal Vokáč wrote: > >>> > >>>> Output of the PWM block of i.MX SoCs i

Re: [RFC PATCH 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO

2018-08-23 Thread Lothar Waßmann
Michal Vokáč wrote: > On 22.8.2018 16:10, Lothar Waßmann wrote: > > My use case is attaching different displays to the same baseboard, > > where some displays have the brightness control pin inverted with > > respect to the others. It's easy to change the compatible

Re: [RFC PATCH 1/2] dt-bindings: pwm: imx: Allow switching PWM output between PWM and GPIO

2018-08-23 Thread Lothar Waßmann
in u-boot. > Unfortunately there are both types of displays. Some with an ENABLE pin, some without. Lothar Waßmann -- ___ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Ge

Re: [PATCH v2 1/2] Input: edt-ft5x06 - Add support for regulator

2018-01-23 Thread Lothar Waßmann
*reset_gpio; > > struct gpio_desc *wake_gpio; > > @@ -993,6 +995,23 @@ static int edt_ft5x06_ts_probe(struct i2c_client > > *client, > > > > tsdata->max_support_points = chip_data->max_support_points; > > > > + tsdata->vcc = de

[PATCH 2/3] ARM: dts: imx6ull: add support for the esai interface

2018-01-26 Thread Lothar Waßmann
: Lothar Waßmann --- Documentation/devicetree/bindings/sound/fsl,esai.txt | 4 ++-- arch/arm/boot/dts/imx6ull.dtsi | 17 + sound/soc/fsl/fsl_esai.c | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Documentation

[PATCH 0/3] ARM: dts: imx6ull: fix some incompatibilities between i.MX6UL and i.MX6ULL

2018-01-26 Thread Lothar Waßmann
This patchset addresses some differences between i.MX6UL and i.MX6ULL which have slipped through the cracks so far. - UART8 is not on SPBA but on AIPS-3 - i.MX6ULL has an ESAI interface in the address range of the UART8 on i.MX6UL - i.MX6ULL does not have a CAAM unit nor SIM interfaces

[PATCH BUGFIX] ARM: dts: imx6ull: fix the imx6ull-14x14-evk configuration

2018-01-26 Thread Lothar Waßmann
/imx6ull.dtsi) file. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6ul-14x14-evk.dts | 480 +--- arch/arm/boot/dts/imx6ull-14x14-evk.dts | 5 +- 2 files changed, 5 insertions(+), 480 deletions(-) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot

[PATCH 3/3] ARM: dts: imx6ull: address some more incompatibilites between i.MX6UL and i.MX6ULL

2018-01-26 Thread Lothar Waßmann
The i.MX6ULL doesn't have the CAAM engine nor any SIM interface. These are currently not implemented for i.MX6UL but it cannot hurt to delete the corresponding nodes from the i.MX6ULL DTB anyway. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6ull.dtsi | 6 ++ 1 file chang

[PATCH 1/3] ARM: dts: imx6ull: fix the i.MX6ULL UART8 configuration

2018-01-26 Thread Lothar Waßmann
UART8 on i.MX6ULL is not located on the SPBA bus like on i.MX6UL but on the (otherwise unused) AIPS-3 bus. Create the appropriate AIPS-3 bus configuration and move the uart8 definition where it belongs. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6ull.dtsi | 29

[PATCH v2 BUGFIX] ARM: dts: imx6ull: fix the imx6ull-14x14-evk configuration

2018-01-26 Thread Lothar Waßmann
/imx6ull.dtsi) file. Signed-off-by: Lothar Waßmann --- Changes vs v1: - The newly created .dtsi file was missing arch/arm/boot/dts/imx6ul-14x14-evk.dts | 480 +-- arch/arm/boot/dts/imx6ul-14x14-evk.dtsi | 488 arch/arm/boot/dts/imx6ull-14x14

Re: [PATCH] ARM: dts: i.MX25: define SSI FIFO depth

2018-03-08 Thread Lothar Waßmann
<&sdma 29 1 0>; > dma-names = "rx", "tx"; > + fsl,fifo-depth = <15>; > status = "disabled"; > }; > You are changing the global .dtsi file. Did you test this change with all devices that are affected by it? Lothar Waßmann

Re: [PATCH] ARM: dts: i.MX25: define SSI FIFO depth

2018-03-09 Thread Lothar Waßmann
Hi, On Thu, 8 Mar 2018 16:38:32 +0100 Martin Kaiser wrote: > Hi Lothar, > > Thus wrote Lothar Waßmann (l...@karo-electronics.de): > > > > diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi > > > index 9725705..cf70df2 100644 > >

Re: [PATCH] ARM: dts: i.MX25: define SSI FIFO depth

2018-03-09 Thread Lothar Waßmann
Hi, On Fri, 09 Mar 2018 10:27:12 +0100 Lucas Stach wrote: > Hi Lothar, > > Am Freitag, den 09.03.2018, 09:37 +0100 schrieb Lothar Waßmann: > > Hi, > > > > On Thu, 8 Mar 2018 16:38:32 +0100 Martin Kaiser wrote: > > > Hi Lothar, > > > > > > &

Re: [PATCH] clk: imx25: set correct parents for ssi ipg clocks

2018-03-09 Thread Lothar Waßmann
enables both clocks explicitly. So they are not unused. > > > Doing something like this is not an option for ssi, this will not work with > imx31, 35 etc. > > Therefore, I suggest setting ssi1_ipg_per as parent of ssi1_ipg. > The right wayto fix this is to add the missing ipg_per clock to the DTB rather than introducing a bogus clock relationship that doesn't exist in hardware. The sound/soc/fsl/fsl_ssi.c driver does already handle a second clock as bitclock. It only needs to be specified in the DTB: &ssi1 { clocks = <&clks 117>, <&clk 55>; clock-names = "ipg", "baud"; }; Lothar Waßmann

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-26 Thread Lothar Waßmann
gainst GND = 0V > >- against VCC = 0V > > - Measure resistance against VCC: Hi-Z > > > > The pin is in Hi-Z mode. That is fine but that does not satisfy any > > logic level. > > > > b) working variant > > - Request the GPIO, configure i

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-26 Thread Lothar Waßmann
Uwe Kleine-König wrote: > Hallo Lothar, > > On Mon, Nov 26, 2018 at 10:11:16AM +0100, Lothar Waßmann wrote: > > Uwe Kleine-König wrote: > > > @Lothar: if Michal did something different than you expected, please > > > tell us with a few more details. >

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-26 Thread Lothar Waßmann
> >>> On Thu, Nov 22, 2018 at 03:42:14PM +, Vokáč Michal wrote: > > >>>> On 16.11.2018 09:25, Uwe Kleine-König wrote: > > >>>>> On Fri, Nov 16, 2018 at 08:34:30AM +0100, Lothar Waßmann wrote: > > >>>>>> No. You c

Re: [PATCH V2 2/4] rtc: add i.MX system controller RTC support

2018-11-28 Thread Lothar Waßmann
t = PTR_ERR(rtc); > + return ret; > + } > + > + rtc->ops = &imx_sc_rtc_ops; > + rtc->range_min = 0; > + rtc->range_max = U32_MAX; > + > + ret = rtc_register_device(rtc); > + if (ret) { > + dev_err(&pdev-&

Re: [PATCH 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support

2018-11-28 Thread Lothar Waßmann
ranges = <0x5f00 0x0 0x5f00 0x100>; > }; > + > + rtc: rtc { > + compatible = "nxp,imx8qxp-sc-rtc"; > + }; > }; IMO this should be disabled by default. Lothar Waßmann

Re: [PATCH 4/4] ARM64: dts: imx: add i.MX8QXP system controller RTC support

2018-11-28 Thread Lothar Waßmann
Anson Huang wrote: > Hi, Lothar > > Best Regards! > Anson Huang > > > -Original Message----- > > From: Lothar Waßmann [mailto:l...@karo-electronics.de] > > Sent: 2018年11月28日 17:04 > > To: Anson Huang > > Cc: a.zu...@towertech.it; alexandr

Re: [PATCH V2 2/4] thermal: imx_sc: add i.MX system controller thermal support

2018-11-28 Thread Lothar Waßmann
0; i < sensor_num; i++) { > + struct imx_sc_sensor *sensor = &data->sensor[i]; > + > + sensor_np = of_get_next_child(np, sensor_np); > + ret = imx_sc_thermal_get_sensor_id(sensor_np, > &sensor->resource_id); > + if (ret < 0) { > + dev_err(&pdev->dev, > + "failed to get valid sensor resource id: %d\n", > + ret); > + break; > + } > + > + ret = imx_sc_thermal_register_sensor(pdev, sensor); > + if (ret) { > + dev_err(&pdev->dev, "failed to register thermal sensor: > %d\n", > + ret); > + break; > + } > + } > + > + of_node_put(np); > + of_node_put(sensor_np); > + > + return ret; > +} > + > +static const struct of_device_id imx_sc_thermal_table[] = { > + { .compatible = "nxp,imx8qxp-sc-thermal", }, > + {}, > +}; s/{},/{}/ Lothar Waßmann

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-16 Thread Lothar Waßmann
rl, so that only the selected pull-up/down is relevant. The pin function and GPIO register settings don't matter at all in this case. Lothar Waßmann -- ___ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-

Re: [RCF PATCH,v2,2/2] pwm: imx: Configure output to GPIO in disabled state

2018-11-16 Thread Lothar Waßmann
correctly the backlight won't work as expected... The PWM driver is driving the pins, so that is where the pinctrls belong. Lothar Waßmann -- ___ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +

Re: [PATCH v1] ARM: dts: imx6sl-evk: keep sw4 always on

2018-07-04 Thread Lothar Waßmann
work. > > > > So whatever new feature you need to introduce it needs to be done in > > such a way that the existing dtb's will continue working. > But actually existing dtb is not right since the critical power rail > missing 'regulator-always-on'. It's a fix patch for dts, not related > with following dtb/kernel break rules, just a simple dts patch. Why > should we make promise for the wrong dtbs? > Because they are living in the outside world on real devices. Lothar Waßmann

Re: [REBASED 2/5] regulator: pwm-regulator: Separate voltage-table initialisation

2015-06-10 Thread Lothar Waßmann
Hi, > Take this out of the main .probe() routine in order to facilitate the > introduction of different ways to obtain 'duty cycle' information. > > Signed-off-by: Lee Jones > --- > drivers/mfd/mfd-child.c | 47 > drivers/regulator/pwm-regulator.c | 77 >

Re: [PATCH 1/3] i2c: add DMA support for freescale i2c driver

2014-02-28 Thread Lothar Waßmann
ite understand this. If you have two DMA channels, can you > not > use them both to do full-duplex SPI transfer ? > SPI != I2C Lothar Waßmann -- ___ Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen Phone: +49 2408 1402-

  1   2   3   4   5   >