[PATCH] regulator: pca9450: Fix return value when failing to get sd-vsel GPIO

2021-02-22 Thread Schrempf Frieder
From: Frieder Schrempf This fixes the return value of pca9450_i2c_probe() to use the correct error code when getting the sd-vsel GPIO fails. Signed-off-by: Frieder Schrempf --- drivers/regulator/pca9450-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/reg

[PATCH v2] regulator: pca9450: Clear PRESET_EN bit to fix BUCK1/2/3 voltage setting

2021-02-22 Thread Schrempf Frieder
From: Frieder Schrempf The driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the voltage for the buck regulators 1, 2 and 3. This has no effect as the PRESET_EN bit is set by default and therefore the preset values are used instead, which are set to 850 mV. To fix this we clear the

[PATCH] regulator: pca9450: Reset PRESET_EN bit to fix BUCK1/2/3 voltage setting

2021-02-22 Thread Schrempf Frieder
From: Frieder Schrempf The driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the voltage for the buck regulators 1, 2 and 3. This has no effect as the PRESET_EN bit is set by default. This causes the preset values to be used instead, which are set to 850 mV by default. To fix this w

[PATCH 1/3] regulator: pca9450: Add SD_VSEL GPIO for LDO5

2021-02-11 Thread Schrempf Frieder
From: Frieder Schrempf LDO5 has two separate control registers. LDO5CTRL_L is used if the input signal SD_VSEL is low and LDO5CTRL_H if it is high. The current driver implementation only uses LDO5CTRL_H. To make this work on boards that have SD_VSEL connected to a GPIO, we add support for specify

[PATCH 2/3] dt-bindings: regulator: pca9450: Add sd-vsel GPIO

2021-02-11 Thread Schrempf Frieder
From: Frieder Schrempf Add the binding documentation for the optional sd-vsel GPIO. Signed-off-by: Frieder Schrempf --- .../devicetree/bindings/regulator/nxp,pca9450-regulator.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/nxp,pca9450

[PATCH 3/3] regulator: pca9450: Enable system reset on WDOG_B assertion

2021-02-11 Thread Schrempf Frieder
From: Frieder Schrempf By default the PCA9450 doesn't handle the assertion of the WDOG_B signal, but this is required to guarantee that things like software resets triggered by the watchdog work reliably. As we don't want to rely on the bootloader to enable this, we tell the PMIC to issue a cold

[PATCH v3] NFC: nxp-nci: Make firmware GPIO pin optional

2020-12-01 Thread Schrempf Frieder
From: Frieder Schrempf There are other NXP NCI compatible NFC controllers such as the PN7150 that use an integrated firmware and therefore do not have a GPIO to select firmware downloading mode. To support this kind of controller, let's make the firmware GPIO optional. Signed-off-by: Frieder Sch

[PATCH v2] NFC: nxp-nci: Make firmware GPIO pin optional

2020-12-01 Thread Schrempf Frieder
From: Frieder Schrempf There are other NXP NCI compatible NFC controllers such as the PN7150 that use an integrated firmware and therefore do not have a GPIO to select firmware downloading mode. To support these kind of chips, let's make the firmware GPIO optional. Signed-off-by: Frieder Schremp

[PATCH] NFC: nxp-nci: Make firmware GPIO pin optional

2020-11-30 Thread Schrempf Frieder
From: Frieder Schrempf There are other NXP NCI compatible NFC controllers such as the PN7150 that use an integrated firmware and therefore do not have a GPIO to select firmware downloading mode. To support these kind of chips, let's make the firmware GPIO optional. Signed-off-by: Frieder Schremp

[PATCH v5 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8M Mini SoMs and boards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Add entries for the SoMs and boards based on i.MX8MM from Kontron Electronics GmbH. Signed-off-by: Frieder Schrempf Reviewed-by: Rob Herring --- Changes for v5: * None Changes for v4: * Rebase on next-20201001 * Enhance SoM and board description Changes for v3: * None

[PATCH v5 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. The matching baseboards have the same form factor and similar interfaces as the other boards from the Kontron "Board-Line" family, including S

[PATCH v4 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. The matching baseboards have the same form factor and similar interfaces as the other boards from the Kontron "Board-Line" family, including S

[PATCH v4 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8M Mini SoMs and boards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Add entries for the SoMs and boards based on i.MX8MM from Kontron Electronics GmbH. Signed-off-by: Frieder Schrempf Reviewed-by: Rob Herring --- Changes for v4: * Rebase on next-20201001 * Enhance SoM and board description Changes for v3: * None Changes for v2: * Merge

[PATCH 1/2] regulator: pca9450: Add SD_VSEL GPIO for LDO5

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf LDO5 has two separate control registers. LDO5CTRL_L is used if the input signal SD_VSEL is low and LDO5CTRL_H if it is high. The current driver implementation only uses LDO5CTRL_H. To make this work on boards that have SD_VSEL connected to a GPIO, we add support for specify

[PATCH 2/2] arm64: dts: imx8mm-kontron: Add support for ultra high speed modes on SD card

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf In order to use ultra high speed modes (UHS) on the SD card slot, we add matching pinctrls and fix the voltage switching for LDO5 of the PMIC, by providing the SD_VSEL pin as GPIO to the PMIC driver. Signed-off-by: Frieder Schrempf --- .../dts/freescale/imx8mm-kontron-n8

[PATCH v3 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. The matching baseboards have the same form factor and similar interfaces as the other boards from the Kontron "Board-Line" family, including S

[PATCH v3 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8M Mini SoMs and boards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Add entries for the SoMs and boards based on i.MX8MM from Kontron Electronics GmbH. Signed-off-by: Frieder Schrempf Reviewed-by: Rob Herring --- Changes for v3: * None Changes for v2: * Merge the SoMs and baseboards N8010 and N8011 into a single configuration (N801X).

[PATCH v2 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8M Mini SoMs and boards

2020-07-16 Thread Schrempf Frieder
From: Frieder Schrempf Add entries for the SoMs and boards based on i.MX8MM from Kontron Electronics GmbH. Signed-off-by: Frieder Schrempf Reviewed-by: Rob Herring --- Changes for v2: * Merge the SoMs and baseboards N8010 and N8011 into a single configuration (N801X). * Add Rob's R-b tag ---

[PATCH v2 0/2] Add support for Kontron i.MX8MM SoMs and boards

2020-07-16 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. Currently there are two SoM models: * SL i.MX8MM N8010 with 1GB RAM and 8 GB eMMC * SL i.MX8MM N8011 with 2GB RAM and 8 GB eMMC The match

[PATCH v2 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-07-16 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. The matching baseboards have the same form factor and similar interfaces as the other boards from the Kontron "Board-Line" family, including S

[PATCH 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8MM SoMs and boards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Add entries for the SoMs and boards based on i.MX8MM from Kontron Electronics GmbH. Signed-off-by: Frieder Schrempf --- Documentation/devicetree/bindings/arm/fsl.yaml | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/ar

[PATCH 1/2] arm64: dts: Add the Kontron i.MX8M-Mini SoMs and baseboards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8MM including PMIC, LPDDR4-RAM, eMMC and SPI NOR. The matching baseboards have the same form factor and similar interfaces as the other boards from the Kontron "Board-Line" family, including SD card,

[PATCH 0/2] Add support for Kontron i.MX8MM SoMs and boards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8MM including PMIC, LPDDR4-RAM, eMMC and SPI NOR. Currently there are two SoM models: * SL i.MX8MM N8010 with 1GB RAM and 8 GB eMMC * SL i.MX8MM N8011 with 2GB RAM and 8 GB eMMC The matching base

[PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Allow external SPI ports on Kontron boards to use the spidev driver. Signed-off-by: Frieder Schrempf --- drivers/spi/spidev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 59e07675ef86..058b08a3767d 100644 --- a/dri

[PATCH] mtd: spi-nor: Add support for Macronix MX25R1635F

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf The MX25R1635F is the smaller sibling of the MX25R3235F that is already supported. It's only half the size (16Mb). It was tested on the Kontron Electronics i.MX8MM SoM (N8010) using raw read and write from and to the mtd device and the 'flash_erase' command. Signed-off-by

Re: [PATCH v1 1/4] regulator: pca9450: add pca9450 pmic driver

2020-07-02 Thread Schrempf Frieder
Hi Robin, On 20.05.20 00:05, Robin Gong wrote: > Add NXP pca9450 pmic driver. > > Signed-off-by: Robin Gong I rebased and applied on v5.8-rc3 an tested this with our i.MX8MM board with PCA9450A. It seems to work fine. Below you can find some comments. Thanks, Frieder > --- > drivers/regula

Re: [PATCH v2] serial: imx: Fix handling of TC irq in combination with DMA

2020-06-09 Thread Schrempf Frieder
On 09.06.20 09:23, Schrempf Frieder wrote: > From: Uwe Kleine-König > > commit 1866541492641c02874bf51f9d8712b5510f2c64 upstream > > When using RS485 half duplex the Transmitter Complete irq is needed to > determine the moment when the transmitter can be disabled. When using &

[PATCH v2] serial: imx: Fix handling of TC irq in combination with DMA

2020-06-09 Thread Schrempf Frieder
From: Uwe Kleine-König commit 1866541492641c02874bf51f9d8712b5510f2c64 upstream When using RS485 half duplex the Transmitter Complete irq is needed to determine the moment when the transmitter can be disabled. When using DMA this irq must only be enabled when DMA has completed to transfer all da

Re: [PATCH] serial: imx: Fix handling of TC irq in combination with DMA

2020-06-09 Thread Schrempf Frieder
On 08.06.20 17:57, Fabio Estevam wrote: > On Mon, Jun 8, 2020 at 12:51 PM Fabio Estevam wrote: >> >> On Mon, Jun 8, 2020 at 12:12 PM Schrempf Frieder >> wrote: >> >>> if (port->rs485.flags & SER_RS485_ENABLED) { >>>

[PATCH] serial: imx: Fix handling of TC irq in combination with DMA

2020-06-08 Thread Schrempf Frieder
From: Uwe Kleine-König commit 1866541492641c02874bf51f9d8712b5510f2c64 upstream When using RS485 half duplex the Transmitter Complete irq is needed to determine the moment when the transmitter can be disabled. When using DMA this irq must only be enabled when DMA has completed to transfer all da

[PATCH 2/2] ARM: dts: Change WDOG_ANY signal from push-pull to open-drain

2020-05-28 Thread Schrempf Frieder
From: Frieder Schrempf The WDOG_ANY signal is connected to the RESET_IN signal of the SoM and baseboard. It is currently configured as push-pull, which means that if some external device like a programmer wants to assert the RESET_IN signal by pulling it to ground, it drives against the high leve

[PATCH 1/2] ARM: dts: Move watchdog from Kontron i.MX6UL/ULL board to SoM

2020-05-28 Thread Schrempf Frieder
From: Frieder Schrempf The watchdog's WDOG_ANY signal is used to trigger a POR of the SoC, if a soft reset is issued. As the SoM hardware connects the WDOG_ANY and the POR signals, the watchdog node itself and the pin configuration should be part of the common SoM devicetree. Let's move it from t

Re: High interrupt latency with low power idle mode on i.MX6

2020-05-27 Thread Schrempf Frieder
On 27.05.20 13:53, Russell King - ARM Linux admin wrote: > On Wed, May 27, 2020 at 10:39:12AM +0000, Schrempf Frieder wrote: >> Hi, >> >> on our i.MX6UL/ULL boards running mainline kernels, we see an issue with >> RS485 collisions on the bus. These are caused by the res

High interrupt latency with low power idle mode on i.MX6

2020-05-27 Thread Schrempf Frieder
Hi, on our i.MX6UL/ULL boards running mainline kernels, we see an issue with RS485 collisions on the bus. These are caused by the resetting of the RTS signal being delayed after each transmission. The TXDC interrupt takes several milliseconds to trigger and the slave on the bus already starts

Re: [RFC PATCH 4/4] arm64: dts: imx8mm: Add GPU nodes for 2D and 3D core using Etnaviv

2020-05-06 Thread Schrempf Frieder
On 06.05.20 13:45, Frieder Schrempf wrote: > On 03.05.20 16:49, Adam Ford wrote: >> On Thu, Apr 30, 2020 at 7:46 AM Schrempf Frieder >> wrote: >>> >>> From: Frieder Schrempf >>> >>> According to the documents, the i.MX8M-Mini features a GC320 a

Re: [RFC PATCH 4/4] arm64: dts: imx8mm: Add GPU nodes for 2D and 3D core using Etnaviv

2020-05-06 Thread Schrempf Frieder
On 03.05.20 16:49, Adam Ford wrote: > On Thu, Apr 30, 2020 at 7:46 AM Schrempf Frieder > wrote: >> >> From: Frieder Schrempf >> >> According to the documents, the i.MX8M-Mini features a GC320 and a >> GCNanoUltra GPU core. Etnaviv detects them as: >> &

Re: [RFC PATCH 3/4] drm/etnaviv: Change order of enabling clocks to fix boot on i.MX8MM

2020-05-06 Thread Schrempf Frieder
Hi Peng, On 01.05.20 14:36, Peng Fan wrote: >> Subject: Re: [RFC PATCH 3/4] drm/etnaviv: Change order of enabling clocks to >> fix boot on i.MX8MM >> >> On 30.04.20 16:35, Lucas Stach wrote: >>> Am Donnerstag, den 30.04.2020, 12:46 + schrieb Schrempf Fri

Re: [RFC PATCH 3/4] drm/etnaviv: Change order of enabling clocks to fix boot on i.MX8MM

2020-04-30 Thread Schrempf Frieder
On 30.04.20 16:35, Lucas Stach wrote: > Am Donnerstag, den 30.04.2020, 12:46 + schrieb Schrempf Frieder: >> From: Frieder Schrempf >> >> On some i.MX8MM devices the boot hangs when enabling the GPU clocks. >> Changing the order of clock initalization to >>

Re: [RFC PATCH 1/4] drm/etnaviv: Prevent IRQ triggering at probe time on i.MX8MM

2020-04-30 Thread Schrempf Frieder
Hi Lucas, On 30.04.20 16:32, Lucas Stach wrote: > Hi Frieder, > > Am Donnerstag, den 30.04.2020, 12:46 + schrieb Schrempf Frieder: >> From: Frieder Schrempf >> >> On i.MX8MM there is an interrupt getting triggered immediately after >> requesting the I

Re: [RFC PATCH 1/4] drm/etnaviv: Prevent IRQ triggering at probe time on i.MX8MM

2020-04-30 Thread Schrempf Frieder
On 30.04.20 16:23, Daniel Baluta wrote: > On 4/30/20 3:46 PM, Schrempf Frieder wrote: >> +    /* >> + * On i.MX8MM there is an interrupt getting triggered immediately >> + * after requesting the IRQ, which leads to a stall as the handler >> + * accesses the

[RFC PATCH 4/4] arm64: dts: imx8mm: Add GPU nodes for 2D and 3D core using Etnaviv

2020-04-30 Thread Schrempf Frieder
From: Frieder Schrempf According to the documents, the i.MX8M-Mini features a GC320 and a GCNanoUltra GPU core. Etnaviv detects them as: etnaviv-gpu 3800.gpu: model: GC600, revision: 4653 etnaviv-gpu 38008000.gpu: model: GC520, revision: 5341 This seems to work fine more or

[RFC PATCH 3/4] drm/etnaviv: Change order of enabling clocks to fix boot on i.MX8MM

2020-04-30 Thread Schrempf Frieder
From: Frieder Schrempf On some i.MX8MM devices the boot hangs when enabling the GPU clocks. Changing the order of clock initalization to core -> shader -> bus -> reg fixes the issue. This is the same order used in the imx platform code of the downstream GPU driver in the NXP kernel [1]. For the

[RFC PATCH 2/4] drm/etnaviv: Fix error path in etnaviv_gpu_clk_enable()

2020-04-30 Thread Schrempf Frieder
From: Frieder Schrempf In case enabling of the bus clock fails etnaviv_gpu_clk_enable() returns without disabling the already enabled reg clock. Fix this. Fixes: 65f037e8e908 ("drm/etnaviv: add support for slave interface clock") Signed-off-by: Frieder Schrempf --- drivers/gpu/drm/etnaviv/etna

[RFC PATCH 1/4] drm/etnaviv: Prevent IRQ triggering at probe time on i.MX8MM

2020-04-30 Thread Schrempf Frieder
From: Frieder Schrempf On i.MX8MM there is an interrupt getting triggered immediately after requesting the IRQ, which leads to a stall as the handler accesses the GPU registers whithout the clock being enabled. Enabling the clocks briefly seems to clear the IRQ state, so we do this before reques

[RFC PATCH 0/4] Add support for i.MX8MM GPUs through Etnaviv

2020-04-30 Thread Schrempf Frieder
From: Frieder Schrempf This series contains patches to enable GPU support for the i.MX8MM. There is currently no upstream support for the display subsystem of the i.MX8MM, but I have a 5.4-based tree with some ported drivers for LCDIF, DSIM bridge, etc. (see [1]) which I used to test the GPU with

Re: [PATCH 01/10] ARM: dts: imx6ul-kontron-n6310: Move common SoM nodes to a separate file

2019-10-21 Thread Schrempf Frieder
On 21.10.19 12:28, k...@kernel.org wrote: > On Wed, Oct 16, 2019 at 03:07:19PM +0000, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> The Kontron N6311 and N6411 SoMs are very similar to N6310. In >> preparation to add support for them, we move the common

Re: [PATCH 03/10] ARM: dts: imx6ul-kontron-n6310-s: Move common nodes to a separate file

2019-10-21 Thread Schrempf Frieder
Hi Krzysztof, On 21.10.19 12:38, k...@kernel.org wrote: > On Wed, Oct 16, 2019 at 03:07:25PM +0000, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> The baseboard for the Kontron N6310 SoM is also used for other SoMs >> such as N6311 and N6411. In order to

Re: [PATCH 00/10] Add support for more Kontron i.MX6UL/ULL SoMs and boards

2019-10-21 Thread Schrempf Frieder
Hi Marco, On 21.10.19 13:43, Marco Felsch wrote: > Hi Frieder, > > On 19-10-17 08:24, Schrempf Frieder wrote: >> Hi Marco, >> >> On 17.10.19 10:14, Marco Felsch wrote: >>> Hi Frieder, >>> >>> On 19-10-16 15:06, Schrempf Frieder wrote: >

Re: [PATCH 00/10] Add support for more Kontron i.MX6UL/ULL SoMs and boards

2019-10-17 Thread Schrempf Frieder
Hi Marco, On 17.10.19 10:14, Marco Felsch wrote: > Hi Frieder, > > On 19-10-16 15:06, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> In order to support more of the i.MX6UL/ULL-based SoMs and boards by >> Kontron Electronics GmbH, we restructure the dev

[PATCH 10/10] MAINTAINERS: Add an entry for Kontron Electronics ARM board support

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH produces several ARM boards, that are planned to be upstreamed eventually. For now we have some i.MX6UL/ULL based SoMs and boards, that are already available in the kernel. Signed-off-by: Frieder Schrempf --- MAINTAINERS | 6 ++ 1 file change

[PATCH 06/10] ARM: dts: imx6ul-kontron-n6x1x-s: Specify bus-width for SD card and eMMC

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf Both, the SD card and the eMMC are connected to the usdhc controller by four data lines. Therefore we set 'bus-width = <4>' for both interfaces. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/imx6ul-kontron-n6x1x-s.dtsi | 2 ++ 1 file changed, 2 insertions(+) dif

[PATCH 04/10] ARM: dts: Add support for two more Kontron evalkit boards 'N6311 S' and 'N6411 S'

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf The 'N6311 S' and the 'N6411 S' are similar to the Kontron 'N6310 S' evaluation kit boards. Instead of the N6310 SoM, they feature a N6311 or N6411 SoM. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/imx6ul-kontron-n6311-s.dts | 16 arch/arm/boot

[PATCH 07/10] ARM: dts: imx6ul-kontron-n6x1x-s: Add vbus-supply and overcurrent polarity to usb nodes

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf To silence the warnings shown by the driver at boot time, we add a fixed regulator for the 5V supply of usbotg2 and specify the polarity of the overcurrent signal for usbotg1. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/imx6ul-kontron-n6x1x-s.dtsi | 9 +

[PATCH 03/10] ARM: dts: imx6ul-kontron-n6310-s: Move common nodes to a separate file

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf The baseboard for the Kontron N6310 SoM is also used for other SoMs such as N6311 and N6411. In order to share the code, we move the definitions of the baseboard to a separate dtsi file. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/imx6ul-kontron-n6310-s.dts |

[PATCH 08/10] ARM: dts: imx6ul-kontron-n6x1x-s: Remove an obsolete comment and fix indentation

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf The ECSPI1 is not used for a FRAM chip, so remove the comment. While at it, also change some whitespaces to tabs to comply with the indentation style of the rest of the file. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/imx6ul-kontron-n6x1x-s.dtsi | 13 ++---

[PATCH 05/10] ARM: dts: imx6ul-kontron-n6x1x: Add 'chosen' node with 'stdout-path'

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf The Kontron N6x1x SoMs all use uart4 as a debug serial interface. Therefore we set in the 'chosen' node. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/imx6ul-kontron-n6x1x-som-common.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH 09/10] dt-bindings: arm: fsl: Add more Kontron i.MX6UL/ULL compatibles

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf Add the compatibles for Kontron i.MX6UL N6311 SoM and boards and the compatibles for Kontron i.MX6ULL N6411 SoM and boards. Signed-off-by: Frieder Schrempf --- Documentation/devicetree/bindings/arm/fsl.yaml | 14 ++ 1 file changed, 14 insertions(+) diff --gi

[PATCH 02/10] ARM: dts: Add support for two more Kontron SoMs N6311 and N6411

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf The N6311 and the N6411 SoM are similar to the Kontron N6310 SoM. They are pin-compatible, but feature a larger RAM and NAND flash (512MiB instead of 256MiB). Further, the N6411 has an i.MX6ULL SoC, instead of an i.MX6UL. Signed-off-by: Frieder Schrempf --- .../boot/dts/

[PATCH 01/10] ARM: dts: imx6ul-kontron-n6310: Move common SoM nodes to a separate file

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf The Kontron N6311 and N6411 SoMs are very similar to N6310. In preparation to add support for them, we move the common nodes to a separate file imx6ul-kontron-n6x1x-som-common.dtsi. Signed-off-by: Frieder Schrempf --- .../boot/dts/imx6ul-kontron-n6310-som.dtsi| 95 +

[PATCH 00/10] Add support for more Kontron i.MX6UL/ULL SoMs and boards

2019-10-16 Thread Schrempf Frieder
From: Frieder Schrempf In order to support more of the i.MX6UL/ULL-based SoMs and boards by Kontron Electronics GmbH, we restructure the devicetrees to share common parts and add new devicetrees for the missing boards. Currently there are the following SoM flavors: * N6310: SoM with i.MX6UL-2,

[PATCH] spi: spi-fsl-qspi: Clear TDH bits in FLSHCR register

2019-10-07 Thread Schrempf Frieder
From: Frieder Schrempf Later versions of the QSPI controller (e.g. in i.MX6UL/ULL and i.MX7) seem to have an additional TDH setting in the FLSHCR register, that needs to be set in accordance with the access mode that is used (DDR or SDR). Previous bootstages such as BootROM or bootloader might h

Re: [PATCH v5 11/15] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm

2019-09-25 Thread Schrempf Frieder
On 25.09.19 13:26, Robin Gong wrote: > On 2019-9-24 21:28 Schrempf Frieder wrote: >> >> Hi Robin, >> >>> From: Robin Gong >>> >>> Because the number of ecspi1 rx event on i.mx8mm is 0, the condition >>> check ignore such special case wi

Re: [PATCH v5 11/15] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm

2019-09-24 Thread Schrempf Frieder
Hi Robin, > From: Robin Gong > > Because the number of ecspi1 rx event on i.mx8mm is 0, the condition > check ignore such special case without dma channel enabled, which caused > ecspi1 rx works failed. Actually, no need to check event_id0/event_id1 > and replace checking 'event_id1' with 'DMA_D

Re: [PATCH] - change calculating of position page containing BBM

2019-09-19 Thread Schrempf Frieder
On 19.09.19 15:18, Miquel Raynal wrote: > Hello, > > Schrempf Frieder wrote on Thu, 19 Sep > 2019 13:15:08 +: > >> On 19.09.19 14:58, Miquel Raynal wrote: >>> Hi Piotr, >>> >>> Piotr Sroka wrote on Thu, 19 Sep 2019 13:41:35 >>>

Re: [PATCH] - change calculating of position page containing BBM

2019-09-19 Thread Schrempf Frieder
On 19.09.19 14:58, Miquel Raynal wrote: > Hi Piotr, > > Piotr Sroka wrote on Thu, 19 Sep 2019 13:41:35 > +0100: > >> Change calculating of position page containing BBM >> >> If none of BBM flags is set then function nand_bbm_get_next_page >> reports EINVAL. It causes that BBM is not read at all

Re: [PATCH 2/3] arm64: dts: imx8mm: Use correct clock for usdhc's ipg clk

2019-09-19 Thread Schrempf Frieder
Hi Anson, On 19.09.19 11:31, Anson Huang wrote: > Hi, Schrempf > >> Hi Anson, >> >> I have a question, that is not directly related to this patch. >> I see that for the usdhc1 and usdhc3 nodes, there is an 'assigned-clock' >> and 'assigned-clock-rates' property but not for usdhc2. The same applie

Missing 'assigned-clocks' in usdhc node of i.MX8MQ/MM/MN dtsi?

2019-09-19 Thread Schrempf Frieder
Hi, I wonder why imx8mq.dtsi, imx8mm.dtsi and imx8mn.dtsi have 'assigned-clocks' and 'assigned-clock-rates' set for all usdhc nodes, except for usdhc2. Is this on purpose? Is it a flaw? Thanks, Frieder Extract from imx8mm.dtsi: usdhc1: mmc@30b4 { [...] assigned-clocks = <

Re: [PATCH 2/3] arm64: dts: imx8mm: Use correct clock for usdhc's ipg clk

2019-09-19 Thread Schrempf Frieder
Hi Anson, I have a question, that is not directly related to this patch. I see that for the usdhc1 and usdhc3 nodes, there is an 'assigned-clock' and 'assigned-clock-rates' property but not for usdhc2. The same applies to the mx8mq and mx8mn dtsi file. Is there any reason for this? If not can y

Re: [RESEND PATCH v3 14/20] mtd: spi_nor: Add a ->setup() method

2019-08-26 Thread Schrempf Frieder
On 26.08.19 16:02, Boris Brezillon wrote: > On Mon, 26 Aug 2019 13:38:48 + > Schrempf Frieder wrote: > >> On 26.08.19 14:40, Boris Brezillon wrote: >>> On Mon, 26 Aug 2019 12:08:58 + >>> wrote: >>> >>>> From: Tudor Ambarus >&

Re: [RESEND PATCH v3 14/20] mtd: spi_nor: Add a ->setup() method

2019-08-26 Thread Schrempf Frieder
On 26.08.19 14:40, Boris Brezillon wrote: > On Mon, 26 Aug 2019 12:08:58 + > wrote: > >> From: Tudor Ambarus >> >> nor->params.setup() configures the SPI NOR memory. Useful for SPI NOR >> flashes that have peculiarities to the SPI NOR standard, e.g. >> different opcodes, specific address cal

Re: [PATCH v4 2/3] dt-bindings: eeprom: at25: Add Anvo ANV32E61W

2019-08-08 Thread Schrempf Frieder
On 08.08.19 19:26, Krzysztof Kozlowski wrote: > Document the compatible for ANV32E61W EEPROM chip. This chip is actually not an EEPROM, but a SPI nvSRAM. It can be interfaced by the at25 driver similar to an EEPROM. This is not the ideal solution, but it works until there's a proper driver for s

Re: [PATCH] i2c: imx: Allow the driver to be built for ARM64 SoCs such as i.MX8M

2019-08-07 Thread Schrempf Frieder
On 07.08.19 14:09, Alexander Stein wrote: > On Wednesday, August 7, 2019, 1:44:06 PM CEST Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> The imx I2C controller is used in some ARM64 SoCs such as i.MX8M. >> To make use of it, append ARM64 to the list of depend

Re: [PATCH] net: fec: Allow the driver to be built for ARM64 SoCs such as i.MX8

2019-08-07 Thread Schrempf Frieder
On 07.08.19 14:20, Fabio Estevam wrote: > Hi Frieder, > > On Wed, Aug 7, 2019 at 9:04 AM Schrempf Frieder > wrote: >> >> From: Frieder Schrempf >> >> The FEC ethernet controller is used in some ARM64 SoCs such as i.MX8. >> To make use of it

[PATCH] net: fec: Allow the driver to be built for ARM64 SoCs such as i.MX8

2019-08-07 Thread Schrempf Frieder
From: Frieder Schrempf The FEC ethernet controller is used in some ARM64 SoCs such as i.MX8. To make use of it, append ARM64 to the list of dependencies. Signed-off-by: Frieder Schrempf --- drivers/net/ethernet/freescale/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] i2c: imx: Allow the driver to be built for ARM64 SoCs such as i.MX8M

2019-08-07 Thread Schrempf Frieder
From: Frieder Schrempf The imx I2C controller is used in some ARM64 SoCs such as i.MX8M. To make use of it, append ARM64 to the list of dependencies. Signed-off-by: Frieder Schrempf --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/b

Re: [PATCH v3 2/4] serial: mctrl_gpio: Add a NULL check to mctrl_gpio_to_gpiod()

2019-08-06 Thread Schrempf Frieder
On 06.08.19 09:45, Uwe Kleine-König wrote: > Hello Frieder, > > On Mon, Aug 05, 2019 at 09:01:39AM +, Schrempf Frieder wrote: >> On 02.08.19 14:12, Uwe Kleine-König wrote: >>> On Fri, Aug 02, 2019 at 10:04:10AM +, Schrempf Frieder wrote: >>>> From:

Re: [PATCH v3 2/4] serial: mctrl_gpio: Add a NULL check to mctrl_gpio_to_gpiod()

2019-08-05 Thread Schrempf Frieder
On 02.08.19 14:12, Uwe Kleine-König wrote: > On Fri, Aug 02, 2019 at 10:04:10AM +0000, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> As it is allowed to use the mctrl_gpio_* functions before >> initialization (as the 8250 driver does according to 434be0a

[PATCH v3 2/4] serial: mctrl_gpio: Add a NULL check to mctrl_gpio_to_gpiod()

2019-08-02 Thread Schrempf Frieder
From: Frieder Schrempf As it is allowed to use the mctrl_gpio_* functions before initialization (as the 8250 driver does according to 434be0ae7aa7), it seems appropriate to have a NULL check in all of the functions. Otherwise the mctrl_gpio_to_gpiod() function is prone to be used in a context tha

[PATCH v3 1/4] serial: mctrl_gpio: Avoid probe failures in case of missing gpiolib

2019-08-02 Thread Schrempf Frieder
From: Frieder Schrempf If CONFIG_GPIOLIB is not enabled, mctrl_gpio_init() and mctrl_gpio_init_noauto() will currently return an error pointer with -ENOSYS. As the mctrl GPIOs are usually optional, drivers need to check for this condition to allow continue probing. To avoid the need for this che

[PATCH v3 3/4] serial: sh-sci: Don't check for mctrl_gpio_init() returning -ENOSYS

2019-08-02 Thread Schrempf Frieder
From: Frieder Schrempf Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) if CONFIG_GPIOLIB is disabled, we can safely remove this check. Signed-off-by: Frieder Schrempf --- Changes in v3 = * Adjust the commit message and subject line Changes in v2 =

[PATCH v3 4/4] serial: 8250: Don't check for mctrl_gpio_init() returning -ENOSYS

2019-08-02 Thread Schrempf Frieder
From: Frieder Schrempf Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) if CONFIG_GPIOLIB is disabled, we can safely remove this check. Signed-off-by: Frieder Schrempf --- Changes in v3 = * Adjust the commit message and subject line Changes in v2 =

Re: [PATCH v2 2/3] serial: sh-sci: Remove check for specific mctrl_gpio_init() return value

2019-08-02 Thread Schrempf Frieder
On 01.08.19 22:39, Uwe Kleine-König wrote: > On Thu, Aug 01, 2019 at 06:45:24PM +0000, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) >> in cases when CONFIG_GPIOLIB is disabled, we can

Re: [PATCH v2 1/3] serial: mctrl_gpio: Avoid probe failures in case of missing gpiolib

2019-08-02 Thread Schrempf Frieder
On 01.08.19 22:33, Uwe Kleine-König wrote: > On Thu, Aug 01, 2019 at 06:45:21PM +0000, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> If CONFIG_GPIOLIB is not enabled, mctrl_gpio_init() and >> mctrl_gpio_init_noauto() will currently return an error pointer wi

[PATCH v2 3/3] serial: 8250: Remove check for specific mctrl_gpio_init() return value

2019-08-01 Thread Schrempf Frieder
From: Frieder Schrempf Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) in cases when CONFIG_GPIOLIB is disabled, we can safely remove this check. Signed-off-by: Frieder Schrempf --- drivers/tty/serial/8250/8250_core.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletio

[PATCH v2 2/3] serial: sh-sci: Remove check for specific mctrl_gpio_init() return value

2019-08-01 Thread Schrempf Frieder
From: Frieder Schrempf Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS) in cases when CONFIG_GPIOLIB is disabled, we can safely remove this check. Signed-off-by: Frieder Schrempf --- drivers/tty/serial/sh-sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH v2 1/3] serial: mctrl_gpio: Avoid probe failures in case of missing gpiolib

2019-08-01 Thread Schrempf Frieder
From: Frieder Schrempf If CONFIG_GPIOLIB is not enabled, mctrl_gpio_init() and mctrl_gpio_init_noauto() will currently return an error pointer with -ENOSYS. As the mctrl GPIOs are usually optional, drivers need to check for this condition to allow continue probing. To avoid the need for this che

[PATCH] serial: mctrl_gpio: Avoid probe failures in case of missing gpiolib

2019-08-01 Thread Schrempf Frieder
From: Frieder Schrempf If CONFIG_GPIOLIB is not enabled, mctrl_gpio_init() and mctrl_gpio_init_noauto() will currently return an error pointer with -ENOSYS. As the mctrl GPIOs are usually optional, drivers need to check for this condition to allow continue probing. To avoid the need for this che

Re: [PATCH] serial: imx: Avoid probe failure in case of missing gpiolib

2019-08-01 Thread Schrempf Frieder
On 01.08.19 11:55, Uwe Kleine-König wrote: > On Thu, Aug 01, 2019 at 09:28:33AM +0000, Schrempf Frieder wrote: >> Hi Uwe, >> >> On 01.08.19 10:48, Uwe Kleine-König wrote: >>> On Thu, Aug 01, 2019 at 08:18:05AM +, Schrempf Frieder wrote: >>>> From: Fri

Re: [PATCH] serial: imx: Avoid probe failure in case of missing gpiolib

2019-08-01 Thread Schrempf Frieder
Hi Uwe, On 01.08.19 10:48, Uwe Kleine-König wrote: > On Thu, Aug 01, 2019 at 08:18:05AM +0000, Schrempf Frieder wrote: >> From: Frieder Schrempf >> >> If CONFIG_GPIOLIB is not enabled, mctrl_gpio_init() will return >> -ENOSYS and cause the probing of the imx UART t

[PATCH] serial: imx: Avoid probe failure in case of missing gpiolib

2019-08-01 Thread Schrempf Frieder
From: Frieder Schrempf If CONFIG_GPIOLIB is not enabled, mctrl_gpio_init() will return -ENOSYS and cause the probing of the imx UART to fail. As the GPIOs are optional, we should continue probing in this case. Signed-off-by: Frieder Schrempf --- drivers/tty/serial/imx.c | 4 +++- 1 file change

Re: [PATCH v3 2/2] ARM: dts: imx6ul-kontron-n6310: Add Kontron i.MX6UL N6310 SoM and boards

2019-07-30 Thread Schrempf Frieder
On 29.07.19 19:20, Krzysztof Kozlowski wrote: > Add support for i.MX6UL modules from Kontron Electronics GmbH (before > acquisition: Exceet Electronics) and evalkit boards based on it: > > 1. N6310 SOM: i.MX6 UL System-on-Module, a 25x25 mm solderable module > (LGA pads and pin castellations)

Re: [PATCH v2 1/2] dt-bindings: vendor-prefixes: Add Admatec AG

2019-07-26 Thread Schrempf Frieder
On 26.07.19 12:02, Krzysztof Kozlowski wrote: > On Fri, 26 Jul 2019 at 11:48, Schrempf Frieder > wrote: >> >> On 26.07.19 08:17, Krzysztof Kozlowski wrote: >>> Add vendor prefix for Admatec AG. >> >> We get the displays used with the Kontron eval kits

Re: [PATCH v2 1/2] dt-bindings: vendor-prefixes: Add Admatec AG

2019-07-26 Thread Schrempf Frieder
On 26.07.19 08:17, Krzysztof Kozlowski wrote: > Add vendor prefix for Admatec AG. We get the displays used with the Kontron eval kits from "admatec GmbH" in Hamburg, not "Admatec AG" in Switzerland. I think we have to differentiate here. I will review patch 2/2 soon... > > Signed-off-by: Krzy

Re: [PATCH] ARM: dts: imx6ul-kontron-ul2: Add Exceet/Kontron iMX6-UL2 SoM

2019-07-16 Thread Schrempf Frieder
Hi Krzysztof, On 12.07.19 16:12, Krzysztof Kozlowski wrote: > Add support for iMX6-UL2 modules from Kontron Electronics GmbH (before > acquisition: Exceet Electronics) and evalkit boards based on it: > > 1. i.MX6 UL System-on-Module, a 25x25 mm solderable module (LGA pads and > pin castellati

Re: [PATCH] ARM: dts: imx6ul-kontron-ul2: Add Exceet/Kontron iMX6-UL2 SoM

2019-07-16 Thread Schrempf Frieder
On 16.07.19 09:50, Krzysztof Kozlowski wrote: > On Fri, 12 Jul 2019 at 17:21, Schrempf Frieder > wrote: >> >> Hi Krzysztof, >> >> On 12.07.19 16:12, Krzysztof Kozlowski wrote: >>> Add support for iMX6-UL2 modules from Kontron Electronics GmbH (before &

Re: [PATCH] ARM: dts: imx6ul-kontron-ul2: Add Exceet/Kontron iMX6-UL2 SoM

2019-07-12 Thread Schrempf Frieder
Hi Krzysztof, On 12.07.19 16:12, Krzysztof Kozlowski wrote: > Add support for iMX6-UL2 modules from Kontron Electronics GmbH (before > acquisition: Exceet Electronics) and evalkit boards based on it: > > 1. i.MX6 UL System-on-Module, a 25x25 mm solderable module (LGA pads and > pin castellati

Re: [PATCH v2] mtd: spinand: Add initial support for Paragon PN26G0xA

2019-06-27 Thread Schrempf Frieder
On 18.06.19 19:08, Jeff Kletsky wrote: > From: Jeff Kletsky > > Add initial support for Paragon Technology > PN26G01Ax and PN26G02Ax SPI NAND > > Datasheets available at > http://www.xtxtech.com/upfile/2016082517274590.pdf > http://www.xtxtech.com/upfile/2016082517282329.pdf > > Signed-

Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-25 Thread Schrempf Frieder
On 25.06.19 13:56, liaoweixiong wrote: > Oh, i am sorry that i had misunderstanded your letter. No problem ;) > Thank you for your document and guidance. You're welcome! > On 2019/6/25 PM 3:04, Schrempf Frieder wrote: >> Hi liaoweixiong, >> >> On 25.06.19 05:08

Re: [PATCH v2] mtd: spinand: Add initial support for Paragon PN26G0xA

2019-06-25 Thread Schrempf Frieder
Hi Jeff, On 18.06.19 19:08, Jeff Kletsky wrote: > From: Jeff Kletsky > > Add initial support for Paragon Technology > PN26G01Ax and PN26G02Ax SPI NAND > > Datasheets available at > http://www.xtxtech.com/upfile/2016082517274590.pdf > http://www.xtxtech.com/upfile/2016082517282329.pdf >

Re: [RESEND PATCH v2] mtd: spinand: read return badly if the last page has bitflips

2019-06-25 Thread Schrempf Frieder
Hi liaoweixiong, On 25.06.19 05:08, Greg KH wrote: > On Tue, Jun 25, 2019 at 09:02:29AM +0800, liaoweixiong wrote: >> In case of the last page containing bitflips (ret > 0), >> spinand_mtd_read() will return that number of bitflips for the last >> page. But to me it looks like it should instead re

  1   2   3   >