[PATCH v3] mailbox: sti: fix struct description warnings

2021-03-31 Thread Alain Volmat
' Signed-off-by: Alain Volmat Reviewed-by: Lee Jones --- drivers/mailbox/mailbox-sti.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mailbox/mailbox-sti.c b/drivers/mailbox/mailbox-sti.c index 2baf69a0b81c..0f2bc09c364d 100644 --- a/drivers/mailbox/mailbox

[PATCH v4 4/7] clk: st: clkgen-pll: 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 --- v3: avoid CLK_IS_CRITICAL. PLL are enabled whenever necessary thanks to child clock v2

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

2021-03-31 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 --- v3: add 300MHz opp, add led, add

[PATCH v3 11/13] ARM: dts: sti: disable rng11 on the stih418 platform

2021-03-31 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 v3 12/13] ARM: dts: sti: add the thermal sensor node within stih418

2021-03-31 Thread Alain Volmat
The STiH418 embedded the same sensor as the STiH410. This commit adds the corresponding node, relying on the st_thermal driver. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/stih418.dtsi b/arch/arm

[PATCH v3 10/13] ARM: dts: sti: add the spinor controller node within stih407-family

2021-03-31 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 v3 09/13] ARM: dts: sti: update clkgen-fsyn entries in stih418-clock

2021-03-31 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 v3 08/13] ARM: dts: sti: update clkgen-fsyn entries in stih410-clock

2021-03-31 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 v3 07/13] ARM: dts: sti: update clkgen-fsyn entries in stih407-clock

2021-03-31 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 v3 06/13] ARM: dts: sti: update clkgen-pll entries in stih418-clock

2021-03-31 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 v3 04/13] ARM: dts: sti: update clkgen-pll entries in stih407-clock

2021-03-31 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 v3 05/13] ARM: dts: sti: update clkgen-pll entries in stih410-clock

2021-03-31 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 v3 03/13] ARM: dts: sti: update flexgen compatible within stih410-clock

2021-03-31 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 v3 01/13] ARM: dts: sti: update flexgen compatible within stih418-clock

2021-03-31 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 v3 02/13] ARM: dts: sti: update flexgen compatible within stih407-clock

2021-03-31 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 v3 00/13] Introduction of STiH418 based 4KOpen board

2021-03-31 Thread Alain Volmat
...@swboyd.mtv.corp.google.com/ Alain Volmat (13): ARM: dts: sti: update flexgen compatible within stih418-clock ARM: dts: sti: update flexgen compatible within stih407-clock ARM: dts: sti: update flexgen compatible within stih410-clock ARM: dts: sti: update clkgen-pll entries in stih407

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

2021-03-31 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 v4 6/7] clk: st: clkgen-fsyn: 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 --- v2: clk-s-c0-fs0-ch0 do not need to be CLK_IS_CRITICAL drivers/clk/st/clkgen-fsyn.c | 113

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

2021-03-31 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 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

[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
(with or 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 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 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 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 need

[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 clock

[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 0/7] clk: st: embed clock outputs within drivers

2021-03-30 Thread Alain Volmat
. This 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/2] i2c: stm32f7: add SMBus-Alert support

2021-03-29 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 v3 1/2] dt-bindings: i2c: stm32f7: add st,smbus-alert binding for SMBus Alert

2021-03-29 Thread Alain Volmat
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: introduc

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

2021-03-29 Thread Alain Volmat
t; 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/i2c-stm32f7

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 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

[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 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 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 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 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 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 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 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 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/clkgen

[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 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 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 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 00/16] clk: st: embed clock outputs within drivers

2021-03-25 Thread Alain Volmat
. This 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

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 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 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 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

[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 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 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 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 00/16] clk: st: embed clock outputs within drivers

2021-03-21 Thread Alain Volmat
. This 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 v2 0/2] i2c: stm32f7: add SMBus-Alert support

2021-03-18 Thread Alain Volmat
nt 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/i2c-stm32f7.c | 73 +++ 2 files ch

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

2021-03-18 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 --- v2: - rely on st,smbus-alert binding instead of smbus

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

2021-03-18 Thread Alain Volmat
alternate function for i2c/smbus controller. [1] https://marc.info/?l=linux-i2c=159531254413805=2 [2] https://marc.info/?l=linux-renesas-soc=159361426409817=2 Signed-off-by: Alain Volmat --- v2: introduce st,smbus-alert property --- Documentation/devicetree/bindings/i2c/st,stm32-i2c.yaml | 5 +++

[PATCH] spi: stm32: Fix use-after-free on unbind

2021-03-18 Thread Alain Volmat
accessible until the driver has unbound. Fixes: 8d559a64f00b ("spi: stm32: drop devres version of spi_register_master") Reported-by: Lukas Wunner Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-)

Re: [PATCH] spi: stm32: drop devres version of spi_register_master

2021-03-18 Thread Alain Volmat
Hi Lukas, On Tue, Mar 16, 2021 at 10:17:44PM +0100, Lukas Wunner wrote: > On Fri, Mar 12, 2021 at 11:34:46AM +0100, Alain Volmat wrote: > > --- a/drivers/spi/spi-stm32.c > > +++ b/drivers/spi/spi-stm32.c > > @@ -1960,6 +1960,7 @@ static int stm32_spi_remove(struct platf

Re: [PATCH] dt-bindings: Clean-up undocumented compatible strings

2021-03-17 Thread Alain Volmat
ial/serial.yaml| 2 +- > .../bindings/spi/amlogic,meson-gx-spicc.yaml | 4 +-- > .../bindings/spi/spi-controller.yaml | 21 --- > .../devicetree/bindings/spi/spi-mux.yaml | 8 ++ > .../devicetree/bindings/spi/st,stm32-spi.yaml | 6 - Acked-by: Alain Volmat >

[PATCH] i2c: stm32f7: avoid ifdef CONFIG_PM_SLEEP for pm callbacks

2021-03-12 Thread Alain Volmat
Avoid CONFIG_PM preprocessor check for pm suspend/resume callbacks and identify the functions with __maybe_unused. Signed-off-by: Alain Volmat --- drivers/i2c/busses/i2c-stm32f7.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.c b

[PATCH] spi: stm32: avoid ifdef CONFIG_PM for pm callbacks

2021-03-12 Thread Alain Volmat
Avoid CONFIG_PM preprocessor check for pm suspend/resume callbacks and identify the functions with __maybe_unused. Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi

[PATCH] spi: stm32: drop devres version of spi_register_master

2021-03-12 Thread Alain Volmat
er() as first action in remove(). Fixes: dcbe0d84dfa5 ("spi: add driver for STM32 SPI controller") Signed-off-by: Antonio Borneo Signed-off-by: Alain Volmat --- drivers/spi/spi-stm32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-stm32.c b

Re: linux-next: manual merge of the arm-soc tree with the arm tree

2021-02-20 Thread Alain Volmat
Hi Stephen, sorry for the delay, is there anything I should do concerning this issue ? Cheers, Alain On Mon, Feb 15, 2021 at 09:14:44AM +1100, Stephen Rothwell wrote: > Hi all, > > On Tue, 2 Feb 2021 09:01:35 +1100 Stephen Rothwell > wrote: > > > > Today's linux-next merge of the arm-soc

[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

[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 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 0/8] spi: stm32: fix and enhancements for spi-stm32

2021-02-05 Thread Alain Volmat
to 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 smaller than max

[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 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 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 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

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

2021-02-05 Thread Alain Volmat
. 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. > > > &g

[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

[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 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 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

[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
to 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 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 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 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 --

  1   2   3   >