Re: [PATCH 2/2] ARM: dts: sti: Introduce 4KOpen (stih418-b2264) board

2021-01-28 Thread Alain Volmat
Hi Arnd, thanks for the comments and sorry for the large 'To' list. In my v2 I'll limit to Patrice Chotard (STi maintainer). On Thu, Jan 28, 2021 at 02:08:51PM +0100, Arnd Bergmann wrote: > On Thu, Jan 28, 2021 at 8:58 AM Alain Volmat wrote: > > > > 4KOpen (

[PATCH v2 0/3] Introduction of STiH418 based 4KOpen board

2021-01-28 Thread Alain Volmat
available on this platform and is thus disabled. Alain Volmat (3): ARM: dts: sti: add the spinor controller node within stih407-family ARM: dts: sti: disable rng11 on the stih418 platform ARM: dts: sti: Introduce 4KOpen (stih418-b2264) board arch/arm/boot/dts/Makefile| 3

[PATCH v2 1/3] ARM: dts: sti: add the spinor controller node within stih407-family

2021-01-28 Thread Alain Volmat
The STiH407 family (and further versions STiH410/STiH418) embedded a serial flash controller allowing fast access to SPI-NOR. This commit adds the corresponding node, relying on the st-spi-fsm drivers. Signed-off-by: Alain Volmat --- v2: commit log improvement arch/arm/boot/dts/stih407

[PATCH v2 2/3] ARM: dts: sti: disable rng11 on the stih418 platform

2021-01-28 Thread Alain Volmat
The rng11 is not available on the STiH418 hence is disabled in the stih418.dtsi Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stih418.dtsi b/arch/arm/boot/dts/stih418.dtsi index a05e2278b448..39a249983496

[PATCH v2 3/3] ARM: dts: sti: Introduce 4KOpen (stih418-b2264) board

2021-01-28 Thread Alain Volmat
4KOpen (B2264) is a board based on the STMicroelectronics STiH418 soc: - 2GB DDR - HDMI - Ethernet 1000-BaseT - PCIe (mini PCIe connector) - MicroSD slot - USB2 and USB3 connectors - Sata - 40 pins GPIO header Signed-off-by: Alain Volmat --- v2: fix bootargs (removal of console

[PATCH v2 0/3] Introduction of STiH418 based 4KOpen board

2021-01-28 Thread Alain Volmat
available on this platform and is thus disabled. Alain Volmat (3): ARM: dts: sti: add the spinor controller node within stih407-family ARM: dts: sti: disable rng11 on the stih418 platform ARM: dts: sti: Introduce 4KOpen (stih418-b2264) board arch/arm/boot/dts/Makefile| 3

[PATCH 2/5] i2c: stm32f7: support DT binding i2c-analog-filter

2021-02-05 Thread Alain Volmat
Replace driver internally coded enabling/disabling of the analog-filter with the DT binding "i2c-analog-filter". Signed-off-by: Alain Volmat --- drivers/i2c/busses/i2c-stm32f7.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/i2c/

[PATCH 5/5] i2c: stm32f7: indicate the address being accessed on errors

2021-02-05 Thread Alain Volmat
To help debugging issues, add the address of the slave being accessed when getting an error. Signed-off-by: Alain Volmat --- drivers/i2c/busses/i2c-stm32f7.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c

[PATCH 3/5] i2c: stm32f7: add support for DNF i2c-digital-filter binding

2021-02-05 Thread Alain Volmat
Add the support for the i2c-digital-filter binding, allowing to enable the digital filter via the device-tree and indicate its value in the DT. Signed-off-by: Alain Volmat --- drivers/i2c/busses/i2c-stm32f7.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions

[PATCH 4/5] ARM: dts: stm32: enable the analog filter for all I2C nodes in stm32mp151

2021-02-05 Thread Alain Volmat
Enable the analog filter for all I2C nodes of the stm32mp151. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stm32mp151.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index 3c75abacb374..558fc8fb38b6

[PATCH 0/5] i2c: stm32: filter binding support & debug info

2021-02-05 Thread Alain Volmat
This serie add support for the analog and digital filter binding for the stm32f7 i2c driver. An additional patch add also debug informations, displayed in case of errors. Alain Volmat (5): i2c: stm32f7: fix configuration of the digital filter i2c: stm32f7: support DT binding i2c-analog-filter

[PATCH 1/5] i2c: stm32f7: fix configuration of the digital filter

2021-02-05 Thread Alain Volmat
The digital filter related computation are present in the driver however the programming of the filter within the IP is missing. The maximum value for the DNF is wrong and should be 15 instead of 16. Fixes: aeb068c57214 ("i2c: i2c-stm32f7: add driver") Signed-off-by: Alain Volmat --

[PATCH 8/8] spi: stm32: make spurious and overrun interrupts visible

2021-02-05 Thread Alain Volmat
We do not expect to receive spurious interrupts so rise a warning if it happens. RX overrun is an error condition that signals a corrupted RX stream both in dma and in irq modes. Report the error and abort the transfer in either cases. Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c

[PATCH 6/8] spi: stm32: use bitfield macros

2021-02-05 Thread Alain Volmat
From: Amelie Delaunay To avoid defining shift and mask separately and hand-coding the bit manipulation, use the bitfield macros. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 54 ++--- 1 file changed, 18

[PATCH 4/8] spi: stm32: driver uses reset controller only at init

2021-02-05 Thread Alain Volmat
From: Etienne Carriere Remove reset controller device reference from the device private structure since it is used only at probe time and can be discarded once used to reset the SPI device. Signed-off-by: Etienne Carriere Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 11

[PATCH 7/8] spi: stm32h7: replace private SPI_1HZ_NS with NSEC_PER_SEC

2021-02-05 Thread Alain Volmat
From: Amelie Delaunay Replace SPI_1HZ_NS private constant with NSEC_PER_SEC, which is easier to read and understand. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/spi/spi

[PATCH 0/8] spi: stm32: fix and enhancements for spi-stm32

2021-02-05 Thread Alain Volmat
use the SPI bus without cs_gpio. Alain Volmat (5): spi: stm32: properly handle 0 byte transfer spi: stm32: do not mandate cs_gpio spi: stm32h7: ensure message are smaller than max size spi: stm32: defer probe for reset spi: stm32: make spurious and overrun interrupts visible Amelie

[PATCH 3/8] spi: stm32h7: ensure message are smaller than max size

2021-02-05 Thread Alain Volmat
Ensure that messages given to transfer_one handler can actually be handled by it. For that purpose rely on the SPI framework spi_split_transfers_maxsize function to split messages whenever necessary. Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 14 ++ 1 file changed, 14

[PATCH 1/8] spi: stm32: properly handle 0 byte transfer

2021-02-05 Thread Alain Volmat
On 0 byte transfer request, return straight from the xfer function after finalizing the transfer. Fixes: dcbe0d84dfa5 ("spi: add driver for STM32 SPI controller") Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drive

[PATCH 2/8] spi: stm32: do not mandate cs_gpio

2021-02-05 Thread Alain Volmat
CS gpios is not mandatory, the driver should allow working even when CS are not given. Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index 137213633e6d..8c6af3aa0dc3 100644 --- a

[PATCH 5/8] spi: stm32: defer probe for reset

2021-02-05 Thread Alain Volmat
Defer the probe operation when a reset controller device is expected but have not yet been probed. This change replaces use of devm_reset_control_get_exclusive() with devm_reset_control_get_optional_exclusive() as reset controller is optional which is now explicitly stated. Signed-off-by: Alain

Re: [PATCH 5/8] spi: stm32: defer probe for reset

2021-02-05 Thread Alain Volmat
ompile properly. Sorry again, Alain On Fri, Feb 05, 2021 at 04:41:54PM +, Mark Brown wrote: > On Fri, Feb 05, 2021 at 12:08:59PM +0100, Alain Volmat wrote: > > Defer the probe operation when a reset controller device is expected > > but have not yet been probed. > &

[PATCH v2 1/8] spi: stm32: properly handle 0 byte transfer

2021-02-05 Thread Alain Volmat
On 0 byte transfer request, return straight from the xfer function after finalizing the transfer. Fixes: dcbe0d84dfa5 ("spi: add driver for STM32 SPI controller") Signed-off-by: Alain Volmat --- v2: remove useless spi_finalize_current_transfer drivers/spi/spi-stm32.c | 4 1 fi

[PATCH v2 6/8] spi: stm32: defer probe for reset

2021-02-05 Thread Alain Volmat
Defer the probe operation when a reset controller device is expected but have not yet been probed. This change replaces use of devm_reset_control_get_exclusive() with devm_reset_control_get_optional_exclusive() as reset controller is optional which is now explicitly stated. Signed-off-by: Alain

[PATCH v2 3/8] spi: stm32: use bitfield macros

2021-02-05 Thread Alain Volmat
From: Amelie Delaunay To avoid defining shift and mask separately and hand-coding the bit manipulation, use the bitfield macros. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: reordered within the serie drivers/spi/spi-stm32.c | 54

[PATCH v2 2/8] spi: stm32: do not mandate cs_gpio

2021-02-05 Thread Alain Volmat
CS gpios is not mandatory, the driver should allow working even when CS are not given. Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-stm32.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index 6cdecd1c5ec7

[PATCH v2 0/8] spi: stm32: fix and enhancements for spi-stm32

2021-02-05 Thread Alain Volmat
use the SPI bus without cs_gpio. v2: Fix within patch 'spi: stm32: properly handle 0 byte transfer' Reorder patches to avoid compilation issue Alain Volmat (5): spi: stm32: properly handle 0 byte transfer spi: stm32: do not mandate cs_gpio spi: stm32h7: ensure message are smalle

[PATCH v2 8/8] spi: stm32: make spurious and overrun interrupts visible

2021-02-05 Thread Alain Volmat
We do not expect to receive spurious interrupts so rise a warning if it happens. RX overrun is an error condition that signals a corrupted RX stream both in dma and in irq modes. Report the error and abort the transfer in either cases. Signed-off-by: Alain Volmat --- v2: identical to v1

[PATCH v2 4/8] spi: stm32h7: ensure message are smaller than max size

2021-02-05 Thread Alain Volmat
Ensure that messages given to transfer_one handler can actually be handled by it. For that purpose rely on the SPI framework spi_split_transfers_maxsize function to split messages whenever necessary. Signed-off-by: Alain Volmat --- v2: reordered within the serie drivers/spi/spi-stm32.c | 14

[PATCH v2 7/8] spi: stm32h7: replace private SPI_1HZ_NS with NSEC_PER_SEC

2021-02-05 Thread Alain Volmat
From: Amelie Delaunay Replace SPI_1HZ_NS private constant with NSEC_PER_SEC, which is easier to read and understand. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-stm32.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff

[PATCH v2 5/8] spi: stm32: driver uses reset controller only at init

2021-02-05 Thread Alain Volmat
From: Etienne Carriere Remove reset controller device reference from the device private structure since it is used only at probe time and can be discarded once used to reset the SPI device. Signed-off-by: Etienne Carriere Signed-off-by: Alain Volmat --- v2: reordered within the serie

Re: [PATCH] [v2] i2c: stm32f7: Fix runtime PM imbalance on error

2020-05-31 Thread Alain Volmat
Hi, Reviewed-by: Alain Volmat Thanks, Alain On Wed, May 27, 2020 at 01:38:53AM +, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep th

[PATCH v3 2/2] i2c: stm32f7: Add SMBus Host-Notify protocol support

2020-08-02 Thread Alain Volmat
Rely on the core functions to implement the host-notify protocol via the a I2C slave device. Signed-off-by: Alain Volmat --- v3: identical to v2 v2: fix slot #0 usage condition within stm32f7_i2c_get_free_slave_id drivers/i2c/busses/Kconfig | 1 + drivers/i2c/busses/i2c-stm32f7.c

[PATCH] i2c: stm32f7: add SMBus-Alert support

2020-08-02 Thread Alain Volmat
Add support for the SMBus-Alert protocol. Signed-off-by: Alain Volmat --- This patch has to be integrated on top of the patch 'i2c: stm32f7: Add SMBus Host-Notify protocol support' since SMBus Alert is enabled by the DT binding 'smbus' introduced in that patch. dr

[PATCH v3 1/2] i2c: smbus: add core function handling SMBus host-notify

2020-08-02 Thread Alain Volmat
client. This commit introduces two new core functions * i2c_new_slave_host_notify_device * i2c_free_slave_host_notify_device that take care of registration of the new slave device and callback and will call i2c_handle_smbus_host_notify once a Host-Notify event is received. Signed-off-by: Alain

[PATCH v3 0/2] i2c: stm32: add host-notify support via i2c slave

2020-08-02 Thread Alain Volmat
This serie replaces the previous 'stm32-f7: Addition of SMBus Alert / Host-notify features' serie to only focus on the SMBus Host-Notify feature. It should be applied with "[PATCH] i2c: add binding to mark a bus as SMBus" from Wolfram which defines the newly introduced &qu

[PATCH 0/5] spi: stm32: various driver fixes

2020-08-07 Thread Alain Volmat
This serie is a reduced version of the serie [spi: stm32: various driver enhancements] previously sent. Alain Volmat (1): spi: stm32: always perform registers configuration prior to transfer Amelie Delaunay (3): spi: stm32: fix fifo threshold level in case of short transfer spi: stm32: fix

[PATCH 5/5] spi: stm32: always perform registers configuration prior to transfer

2020-08-07 Thread Alain Volmat
SPI registers content may have been lost upon suspend/resume sequence. So, always compute and apply the necessary configuration in stm32_spi_transfer_one_setup routine. Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 42 +- 1 file changed, 17

[PATCH 4/5] spi: stm32: fixes suspend/resume management

2020-08-07 Thread Alain Volmat
From: Amelie Delaunay This patch adds pinctrl power management, and reconfigure spi controller in case of resume. Fixes: 038ac869c9d2 ("spi: stm32: add runtime PM support") Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- drivers/spi/spi-st

[PATCH 3/5] spi: stm32: fix stm32_spi_prepare_mbr in case of odd clk_rate

2020-08-07 Thread Alain Volmat
From: Amelie Delaunay Fix spi->clk_rate when it is odd to the nearest lowest even value because minimum SPI divider is 2. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/

[PATCH 2/5] spi: stm32: fix fifo threshold level in case of short transfer

2020-08-07 Thread Alain Volmat
From: Amelie Delaunay When transfer is shorter than half of the fifo, set the data packet size up to transfer size instead of up to half of the fifo. Check also that threshold is set at least to 1 data frame. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- drivers/spi/spi

[PATCH 1/5] spi: stm32h7: fix race condition at end of transfer

2020-08-07 Thread Alain Volmat
spi_finalize_current_transfer(). Move the call to spi_finalize_current_transfer() _after_ the call to stm32_spi_disable(). Signed-off-by: Antonio Borneo Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-stm32.c b

Re: [PATCH 02/18] spi: stm32-spi: defer probe for reset

2020-08-07 Thread Alain Volmat
On Wed, Aug 05, 2020 at 11:49:06AM +0100, Mark Brown wrote: > On Wed, Aug 05, 2020 at 09:01:57AM +0200, Alain Volmat wrote: > > > - rst = devm_reset_control_get_exclusive(&pdev->dev, NULL); > > - if (!IS_ERR(rst)) { > > + rst = devm_reset_control_get_opti

[PATCH v2 4/5] spi: stm32: fixes suspend/resume management

2020-08-10 Thread Alain Volmat
From: Amelie Delaunay This patch adds pinctrl power management, and reconfigure spi controller in case of resume. Fixes: 038ac869c9d2 ("spi: stm32: add runtime PM support") Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-st

[PATCH v2 1/5] spi: stm32h7: fix race condition at end of transfer

2020-08-10 Thread Alain Volmat
spi_finalize_current_transfer(). Move the call to spi_finalize_current_transfer() _after_ the call to stm32_spi_disable(). Signed-off-by: Antonio Borneo Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v2 5/5] spi: stm32: always perform registers configuration prior to transfer

2020-08-10 Thread Alain Volmat
SPI registers content may have been lost upon suspend/resume sequence. So, always compute and apply the necessary configuration in stm32_spi_transfer_one_setup routine. Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-stm32.c | 42

[PATCH v2 2/5] spi: stm32: fix fifo threshold level in case of short transfer

2020-08-10 Thread Alain Volmat
From: Amelie Delaunay When transfer is shorter than half of the fifo, set the data packet size up to transfer size instead of up to half of the fifo. Check also that threshold is set at least to 1 data frame. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: fix conditional

[PATCH v2 0/5] spi: stm32: various driver fixes

2020-08-10 Thread Alain Volmat
This serie is a reduced version of the serie [spi: stm32: various driver enhancements] previously sent. Alain Volmat (1): spi: stm32: always perform registers configuration prior to transfer Amelie Delaunay (3): spi: stm32: fix fifo threshold level in case of short transfer spi: stm32: fix

[PATCH v2 3/5] spi: stm32: fix stm32_spi_prepare_mbr in case of odd clk_rate

2020-08-10 Thread Alain Volmat
From: Amelie Delaunay Fix spi->clk_rate when it is odd to the nearest lowest even value because minimum SPI divider is 2. Signed-off-by: Amelie Delaunay Signed-off-by: Alain Volmat --- v2: identical to v1 drivers/spi/spi-stm32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) d

[PATCH v2 00/16] clk: st: embed clock outputs within drivers

2021-03-25 Thread Alain Volmat
serie also contains modifications within STi DTS in order to use the newly introduced compatible and remove clock-output-names properties. Alain Volmat (16): clk: st: clkgen-pll: remove used variable of struct clkgen_pll clk: st: flexgen: embed soc clock outputs within compatible data dt

[PATCH v2 01/16] clk: st: clkgen-pll: remove used variable of struct clkgen_pll

2021-03-25 Thread Alain Volmat
ODF field within the struct clkgen_pll is never used by the driver and can thus be removed. Signed-off-by: Alain Volmat --- drivers/clk/st/clkgen-pll.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/st/clkgen-pll.c b/drivers/clk/st/clkgen-pll.c index 119c5b33080c..f6c56ca90c7d

[PATCH v2 02/16] clk: st: flexgen: embed soc clock outputs within compatible data

2021-03-25 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- v2: add some missing clock as CLK_IS_CRITICAL drivers/clk/st/clk-flexgen.c | 344 +-- 1

[PATCH v2 03/16] dt-bindings: clock: st: flexgen: add new introduced compatible

2021-03-25 Thread Alain Volmat
New compatible are added, supporting various kind of flexgen in STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat --- .../devicetree/bindings/clock/st/st,flexgen.txt| 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/st/st

[PATCH v2 04/16] clk: st: clkgen-pll: embed soc clock outputs within compatible data

2021-03-25 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- v2: clk-s-a0-pll-odf-0 don't need to be CLK_IS_CRITICAL mark several clock as CLK_IS_CRITICAL drivers/clk/st/c

[PATCH v2 05/16] dt-bindings: clock: st: clkgen-pll: add new introduced compatible

2021-03-25 Thread Alain Volmat
New compatible are added, supporting various kind of clkgen-pll used for STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat --- Documentation/devicetree/bindings/clock/st/st,clkgen-pll.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/st/st

[PATCH v2 08/16] ARM: dts: sti: update flexgen compatible within stih418-clock

2021-03-25 Thread Alain Volmat
With the introduction of new flexgen compatible within the clk-flexgen driver, remove the clock-output-names entry from the flexgen nodes and set the new proper compatible corresponding. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418-clock.dtsi | 96 ++-- 1

[PATCH v2 07/16] dt-bindings: clock: st: clkgen-fsyn: add new introduced compatible

2021-03-25 Thread Alain Volmat
New compatible are added, supporting various kind of clkgen-fsyn used for STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat --- Documentation/devicetree/bindings/clock/st/st,quadfs.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/st/st

[PATCH v2 10/16] ARM: dts: sti: update flexgen compatible within stih410-clock

2021-03-25 Thread Alain Volmat
With the introduction of new flexgen compatible within the clk-flexgen driver, remove the clock-output-names entry from the flexgen nodes and set the new proper compatible corresponding. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih410-clock.dtsi | 95 ++-- 1

[PATCH v2 06/16] clk: st: clkgen-fsyn: embed soc clock outputs within compatible data

2021-03-25 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- v2: clk-s-c0-fs0-ch0 do not need to be CLK_IS_CRITICAL drivers/clk/st/clkgen-fsyn.c | 113

[PATCH v2 09/16] ARM: dts: sti: update flexgen compatible within stih407-clock

2021-03-25 Thread Alain Volmat
With the introduction of new flexgen compatible within the clk-flexgen driver, remove the clock-output-names entry from the flexgen nodes and set the new proper compatible corresponding. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih407-clock.dtsi | 85 ++-- 1

[PATCH v2 11/16] ARM: dts: sti: update clkgen-pll entries in stih407-clock

2021-03-25 Thread Alain Volmat
The clkgen-pll driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih407-clock.dtsi | 16 +++- 1 file changed, 3 insertions

[PATCH v2 12/16] ARM: dts: sti: update clkgen-pll entries in stih410-clock

2021-03-25 Thread Alain Volmat
The clkgen-pll driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih410-clock.dtsi | 16 +++- 1 file changed, 3 insertions

[PATCH v2 14/16] ARM: dts: sti: update clkgen-fsyn entries in stih407-clock

2021-03-25 Thread Alain Volmat
The clkgen-fsyn driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih407-clock.dtsi | 27 +++ 1 file changed, 3

[PATCH v2 13/16] ARM: dts: sti: update clkgen-pll entries in stih418-clock

2021-03-25 Thread Alain Volmat
The clkgen-pll driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418-clock.dtsi | 14 +++--- 1 file changed, 3 insertions(+), 11

[PATCH v2 15/16] ARM: dts: sti: update clkgen-fsyn entries in stih410-clock

2021-03-25 Thread Alain Volmat
The clkgen-fsyn driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih410-clock.dtsi | 27 +++ 1 file changed, 3

[PATCH v2 16/16] ARM: dts: sti: update clkgen-fsyn entries in stih418-clock

2021-03-25 Thread Alain Volmat
The clkgen-fsyn driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418-clock.dtsi | 26 +++--- 1 file changed, 3

Re: [PATCH] i2c-stm32f4: Mundane typo fix

2021-03-25 Thread Alain Volmat
e current byte >* will be received in the shift register >*/ Reviewed-by: Alain Volmat > -- > 2.30.1 >

[PATCH v3 0/7] clk: st: embed clock outputs within drivers

2021-03-30 Thread Alain Volmat
serie also contains modifications within STi DTS in order to use the newly introduced compatible and remove clock-output-names properties. Alain Volmat (7): clk: st: clkgen-pll: remove used variable of struct clkgen_pll clk: st: flexgen: embed soc clock outputs within compatible data dt

[PATCH v3 2/7] clk: st: flexgen: embed soc clock outputs within compatible data

2021-03-30 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- v3: add comments about CLK_IS_CRITICAL reason don't put clk-proc-stfe as CLK_IS_CRITICAL v2: add some missing

[PATCH v3 1/7] clk: st: clkgen-pll: remove unused variable of struct clkgen_pll

2021-03-30 Thread Alain Volmat
ODF field within the struct clkgen_pll is never used by the driver and can thus be removed. Signed-off-by: Alain Volmat --- v3: s/used/unused within the subject drivers/clk/st/clkgen-pll.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/st/clkgen-pll.c b/drivers/clk/st/clkgen

[PATCH v3 6/7] clk: st: clkgen-fsyn: embed soc clock outputs within compatible data

2021-03-30 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- v2: clk-s-c0-fs0-ch0 do not need to be CLK_IS_CRITICAL drivers/clk/st/clkgen-fsyn.c | 113

[PATCH v3 5/7] dt-bindings: clock: st: clkgen-pll: add new introduced compatible

2021-03-30 Thread Alain Volmat
New compatible are added, supporting various kind of clkgen-pll used for STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/st/st,clkgen-pll.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation

[PATCH v3 7/7] dt-bindings: clock: st: clkgen-fsyn: add new introduced compatible

2021-03-30 Thread Alain Volmat
New compatible are added, supporting various kind of clkgen-fsyn used for STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat --- Documentation/devicetree/bindings/clock/st/st,quadfs.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/st/st

[PATCH v3 3/7] dt-bindings: clock: st: flexgen: add new introduced compatible

2021-03-30 Thread Alain Volmat
New compatible are added, supporting various kind of flexgen in STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat Acked-by: Rob Herring --- .../devicetree/bindings/clock/st/st,flexgen.txt| 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree

[PATCH v3 4/7] clk: st: clkgen-pll: embed soc clock outputs within compatible data

2021-03-30 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- v3: avoid CLK_IS_CRITICAL. PLL are enabled whenever necessary thanks to child clock v2: clk-s-a0-pll-odf-0 don't

[PATCH 00/16] clk: st: embed clock outputs within drivers

2021-03-21 Thread Alain Volmat
serie also contains modifications within STi DTS in order to use the newly introduced compatible and remove clock-output-names properties. Alain Volmat (16): clk: st: clkgen-pll: remove used variable of struct clkgen_pll clk: st: flexgen: embed soc clock outputs within compatible data dt

[PATCH 01/16] clk: st: clkgen-pll: remove used variable of struct clkgen_pll

2021-03-21 Thread Alain Volmat
ODF field within the struct clkgen_pll is never used by the driver and can thus be removed. Signed-off-by: Alain Volmat --- drivers/clk/st/clkgen-pll.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/st/clkgen-pll.c b/drivers/clk/st/clkgen-pll.c index 119c5b33080c..f6c56ca90c7d

[PATCH 07/16] dt-bindings: clock: st: clkgen-fsyn: add new introduced compatible

2021-03-21 Thread Alain Volmat
New compatible are added, supporting various kind of clkgen-fsyn used for STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat --- Documentation/devicetree/bindings/clock/st/st,quadfs.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/st/st

[PATCH 05/16] dt-bindings: clock: st: clkgen-pll: add new introduced compatible

2021-03-21 Thread Alain Volmat
New compatible are added, supporting various kind of clkgen-pll used for STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat --- Documentation/devicetree/bindings/clock/st/st,clkgen-pll.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/st/st

[PATCH 04/16] clk: st: clkgen-pll: embed soc clock outputs within compatible data

2021-03-21 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- drivers/clk/st/clkgen-pll.c | 120 +++- 1 file changed, 106 insertions(+), 14 deletions

[PATCH 08/16] ARM: dts: sti: update flexgen compatible within stih418-clock

2021-03-21 Thread Alain Volmat
With the introduction of new flexgen compatible within the clk-flexgen driver, remove the clock-output-names entry from the flexgen nodes and set the new proper compatible corresponding. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418-clock.dtsi | 96 ++-- 1

[PATCH 02/16] clk: st: flexgen: embed soc clock outputs within compatible data

2021-03-21 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- drivers/clk/st/clk-flexgen.c | 344 +-- 1 file changed, 330 insertions(+), 14 deletions

[PATCH 06/16] clk: st: clkgen-fsyn: embed soc clock outputs within compatible data

2021-03-21 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat --- drivers/clk/st/clkgen-fsyn.c | 113 +++ 1 file changed, 101 insertions(+), 12 deletions

[PATCH 03/16] dt-bindings: clock: st: flexgen: add new introduced compatible

2021-03-21 Thread Alain Volmat
New compatible are added, supporting various kind of flexgen in STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat --- .../devicetree/bindings/clock/st/st,flexgen.txt| 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/st/st

[PATCH 09/16] ARM: dts: sti: update flexgen compatible within stih407-clock

2021-03-21 Thread Alain Volmat
With the introduction of new flexgen compatible within the clk-flexgen driver, remove the clock-output-names entry from the flexgen nodes and set the new proper compatible corresponding. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih407-clock.dtsi | 85 ++-- 1

[PATCH 10/16] ARM: dts: sti: update flexgen compatible within stih410-clock

2021-03-21 Thread Alain Volmat
With the introduction of new flexgen compatible within the clk-flexgen driver, remove the clock-output-names entry from the flexgen nodes and set the new proper compatible corresponding. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih410-clock.dtsi | 95 ++-- 1

[PATCH 12/16] ARM: dts: sti: update clkgen-pll entries in stih410-clock

2021-03-21 Thread Alain Volmat
The clkgen-pll driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih410-clock.dtsi | 16 +++- 1 file changed, 3 insertions

[PATCH 13/16] ARM: dts: sti: update clkgen-pll entries in stih418-clock

2021-03-21 Thread Alain Volmat
The clkgen-pll driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418-clock.dtsi | 14 +++--- 1 file changed, 3 insertions(+), 11

[PATCH 15/16] ARM: dts: sti: update clkgen-fsyn entries in stih410-clock

2021-03-21 Thread Alain Volmat
The clkgen-fsyn driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih410-clock.dtsi | 27 +++ 1 file changed, 3

[PATCH 14/16] ARM: dts: sti: update clkgen-fsyn entries in stih407-clock

2021-03-21 Thread Alain Volmat
The clkgen-fsyn driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih407-clock.dtsi | 27 +++ 1 file changed, 3

[PATCH 16/16] ARM: dts: sti: update clkgen-fsyn entries in stih418-clock

2021-03-21 Thread Alain Volmat
The clkgen-fsyn driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418-clock.dtsi | 26 +++--- 1 file changed, 3

[PATCH 11/16] ARM: dts: sti: update clkgen-pll entries in stih407-clock

2021-03-21 Thread Alain Volmat
The clkgen-pll driver now embed the clock names (assuming the right compatible is used). Remove all clock-output-names property and update when necessary the compatible. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih407-clock.dtsi | 16 +++- 1 file changed, 3 insertions

Re: [PATCH 00/16] clk: st: embed clock outputs within drivers

2021-03-22 Thread Alain Volmat
Hello, it turns out that some CLK_IS_CRITICAL are missing in the patches I sent. (especially for the stih418). I will send a v2 soon. Alain On Sun, Mar 21, 2021 at 09:40:22PM +0100, Alain Volmat wrote: > Most of ST clock drivers used by STi platform are updated in > order to introduce

[PATCH v3 0/2] i2c: stm32f7: add SMBus-Alert support

2021-03-28 Thread Alain Volmat
ert" dedicated binding to have a smbus alert with a consistent pin configuration in DT. Alain Volmat (2): dt-bindings: i2c: stm32f7: add st,smbus-alert binding for SMBus Alert i2c: stm32f7: add SMBus-Alert support .../devicetree/bindings/i2c/st,stm32-i2c.yaml | 5 ++ drivers/i2c/busses/i

[PATCH v3 1/2] dt-bindings: i2c: stm32f7: add st,smbus-alert binding for SMBus Alert

2021-03-28 Thread Alain Volmat
figured as alternate function for i2c/smbus controller. [1] https://lore.kernel.org/linux-i2c/20200721062217.GA1044@kunai/ [2] https://lore.kernel.org/linux-i2c/20200701143738.gf3...@gnbcxd0016.gnb.st.com/ Signed-off-by: Alain Volmat Reviewed-by: Rob Herring --- v3: use lore.kernel.org links v2

[PATCH v3 2/2] i2c: stm32f7: add SMBus-Alert support

2021-03-28 Thread Alain Volmat
Add support for the SMBus-Alert protocol to the STM32F7 that has dedicated control and status logic. If SMBus-Alert is used, the SMBALERT# pin must be configured as alternate function for I2C Alert. Signed-off-by: Alain Volmat Reviewed-by: Pierre-Yves MORDRET --- v2: - rely on st,smbus-alert

[PATCH v4 1/7] clk: st: clkgen-pll: remove unused variable of struct clkgen_pll

2021-03-31 Thread Alain Volmat
ODF field within the struct clkgen_pll is never used by the driver and can thus be removed. Signed-off-by: Alain Volmat Reviewed-by: Patrice Chotard --- v3: s/used/unused within the subject drivers/clk/st/clkgen-pll.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/st/clkgen

[PATCH v4 0/7] clk: st: embed clock outputs within drivers

2021-03-31 Thread Alain Volmat
without clock-output-names). Once all DT will have been updated, the legacy mode could be removed from the drivers. This will also allow, once all STi DT will be corrected, to remove the of_clk_detect_critical API from clk core code since STi clock drivers are the only drivers using this API. Alain

[PATCH v4 3/7] dt-bindings: clock: st: flexgen: add new introduced compatible

2021-03-31 Thread Alain Volmat
New compatible are added, supporting various kind of flexgen in STiH407, STiH410 and STiH418 Signed-off-by: Alain Volmat Acked-by: Rob Herring --- .../devicetree/bindings/clock/st/st,flexgen.txt| 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree

[PATCH v4 2/7] clk: st: flexgen: embed soc clock outputs within compatible data

2021-03-31 Thread Alain Volmat
the old method. Once DTs will be fixed, the method relying on DT clock-output-names will be removed from this driver as well as old compatibles. Signed-off-by: Alain Volmat Reviewed-by: Patrice Chotard --- v4: for stih410, set the clk-icn-reg-16 as critical v3: add comments about CLK_IS_CRITICAL

  1   2   3   >