spi: stm32-qspi: Fix compilation warning in ARM64

2021-04-20 Thread patrice.chotard
From: Patrice Chotard This fixes warnings detected when compiling in ARM64. Introduced by 'commit 18674dee3cd6 ("spi: stm32-qspi: Add dirmap support")' Signed-off-by: Patrice Chotard --- drivers/spi/spi-stm32-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sp

[PATCH 0/3] spi: stm32-qspi: Fix and update

2021-04-19 Thread patrice.chotard
From: Patrice Chotard Christophe Kerello (1): spi: stm32-qspi: fix pm_runtime usage_count counter Patrice Chotard (2): spi: stm32-qspi: Trigger DMA only if more than 4 bytes to transfer spi: stm32-qspi: Add dirmap support drivers/spi/spi-stm32-qspi.c | 106 +++

[PATCH 2/3] spi: stm32-qspi: Trigger DMA only if more than 4 bytes to transfer

2021-04-19 Thread patrice.chotard
From: Patrice Chotard In order to optimize accesses to spi flashes, trigger a DMA only if more than 4 bytes has to be transferred. DMA transfer preparation's cost becomes negligible above 4 bytes to transfer. Below this threshold, indirect transfer give more throughput. mtd_speedtest shows that

[PATCH 1/3] spi: stm32-qspi: fix pm_runtime usage_count counter

2021-04-19 Thread patrice.chotard
From: Christophe Kerello pm_runtime usage_count counter is not well managed. pm_runtime_put_autosuspend callback drops the usage_counter but this one has never been increased. Add pm_runtime_get_sync callback to bump up the usage counter. It is also needed to use pm_runtime_force_suspend and pm_r

[PATCH 3/3] spi: stm32-qspi: Add dirmap support

2021-04-19 Thread patrice.chotard
From: Patrice Chotard Add stm32_qspi_dirmap_read() and stm32_qspi_dirmap_create() to get dirmap support. Update the exec_op callback which doens't allow anymore memory map access. Memory map access are only available through the dirmap_read callback. Signed-off-by: Patrice Chotard --- drivers

[RESEND PATCH 1/3] MAINTAINERS: Update some st.com email addresses to foss.st.com

2021-02-15 Thread patrice.chotard
From: Patrice Chotard Update some st.com to foss.st.com addresses related to STMicroelectronics drivers. All these people will now use this new email address for upstream activities. Signed-off-by: Patrice Chotard --- MAINTAINERS | 28 ++-- 1 file changed, 14 insertions

[RESEND PATCH 3/3] MAINTAINERS: Add Alain Volmat as STM32 I2C/SMBUS maintainer

2021-02-15 Thread patrice.chotard
From: Patrice Chotard Add Alain Volmat as STM32 I2C/SMBUS driver co-maintainer. Signed-off-by: Patrice Chotard Cc: alain.vol...@foss.st.com --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c6266d311061..7de268e4aec0 100644 --- a/MAINTAINERS ++

[RESEND PATCH 2/3] MAINTAINERS: Remove Vincent Abriou for STM/STI DRM drivers.

2021-02-15 Thread patrice.chotard
From: Patrice Chotard Remove Vincent Abriou's email as he has no more review activities on STM/STI DRM drivers. Signed-off-by: Patrice Chotard Cc: Vincent Abriou --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 98802b71385b..c6266d311061 100

[RESEND PATCH 0/3] MAINTAINERS: update STMicroelectronics email

2021-02-15 Thread patrice.chotard
From: Patrice Chotard This series: _ Update st.com to foss.st.com email for some maintainers. _ Remove Vincent Abriou as STI/STM DRM driver _ Add Alain Volmat as STM32 I2C/SMBUS driver maintainer Patrice Chotard (3): MAINTAINERS: Update some st.com email addresses to foss.st.com MAINTA

[PATCH 3/3] MAINTAINERS: Add Alain Volmat as STM32 I2C/SMBUS maintainer

2021-02-01 Thread patrice.chotard
From: Patrice Chotard Add Alain Volmat as STM32 I2C/SMBUS driver co-maintainer. Signed-off-by: Patrice Chotard Cc: alain.vol...@foss.st.com --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 98365c57ae37..f6d317449521 100644 --- a/MAINTAINERS ++

[PATCH 1/3] MAINTAINERS: Update some st.com email addresses to foss.st.com

2021-02-01 Thread patrice.chotard
From: Patrice Chotard Update some st.com to foss.st.com addresses related to STMicroelectronics drivers. All these people will now use this new email address for upstream activities. Signed-off-by: Patrice Chotard --- MAINTAINERS | 28 ++-- 1 file changed, 14 insertions

[PATCH 2/3] MAINTAINERS: Remove Vincent Abriou for STM/STI DRM drivers.

2021-02-01 Thread patrice.chotard
From: Patrice Chotard Remove Vincent Abriou's email as he has no more review activities on STM/STI DRM drivers. Signed-off-by: Patrice Chotard Cc: Vincent Abriou --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8222e50a9902..98365c57ae37 100

[PATCH 0/3] MAINTAINERS: update STMicroelectronics email

2021-02-01 Thread patrice.chotard
From: Patrice Chotard This series: _ Update st.com to foss.st.com email for some maintainers. _ Remove Vincent Abriou as STI/STM DRM driver _ Add Alain Volmat as I2C/SMBUS driver maintainer Patrice Chotard (3): MAINTAINERS: Update some st.com email addresses to foss.st.com MAINTAINERS:

[PATCH 2/2] MAINTAINERS: Remove Vincent Abriou for STM/STI DRM drivers.

2020-12-17 Thread patrice.chotard
From: Patrice Chotard Remove Vincent Abriou's email as he has no more review activities on STM/STI DRM drivers. Signed-off-by: Patrice Chotard Cc: Vincent Abriou --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 685b72a22cee..010160a89a10 100

[PATCH 1/2] MAINTAINERS: Update some st.com email addresses to foss.st.com

2020-12-17 Thread patrice.chotard
From: Patrice Chotard Update some st.com to foss.st.com addresses related to STMicroelectronics drivers. All these people will now use this new email address for upstream activities. Signed-off-by: Patrice Chotard --- MAINTAINERS | 28 ++-- 1 file changed, 14 insertions

[PATCH 0/2] MAINTAINERS: update STMicroelectronics email

2020-12-17 Thread patrice.chotard
From: Patrice Chotard This series: _ update st.com to foss.st.com email for some maintainers. _ Remove Vincent Abriou as STI/STM DRM driver Patrice Chotard (2): MAINTAINERS: Update some st.com email addresses to foss.st.com MAINTAINERS: Remove Vincent Abriou for STM/STI DRM drivers. MA

MAINTAINERS: Update ARM/STI Arch maintainer

2020-11-25 Thread patrice.chotard
From: Patrice Chotard Update my email address with the one dedicated to upstream activities. Signed-off-by: Patrice Chotard --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index a008b70f3c16..e9bdd7f6e1d6 100644 --- a/MAINTAINERS ++

[PATCH v2] PM: Add dev_wakeup_path() helper

2020-11-18 Thread patrice.chotard
From: Patrice Chotard Add dev_wakeup_path() helper to avoid to spread dev->power.wakeup_path test in drivers. Signed-off-by: Patrice Chotard Reviewed-by: Ulf Hansson --- Changes from v1: - Fold the 4 v1 patches into one - Add Ulf's Reviewed-by drivers/base/power/domain.c | 4 ++--

[PATCH v1 4/4] i2c: stm32f7: Make usage of dev_wakeup_path() helper

2020-11-05 Thread patrice.chotard
From: Patrice Chotard Make usage of dev_wakeup_path() helper. Signed-off-by: Patrice Chotard --- drivers/i2c/busses/i2c-stm32f7.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c index f41f51a176a1..9aa8

[PATCH v1 0/4] PM: Add dev_wakeup_path() helper

2020-11-05 Thread patrice.chotard
From: Patrice Chotard Add dev_wakeup_path() helper to avoid to spread dev->power.wakeup_path test in drivers. Cc: amelie.delau...@st.com, erwan_le...@st.com, fabrice.gasn...@st.com, alexandre.tor...@st.com, alain.vol...@st.com, pierre-yves.mord...@st.com *** BLURB HERE ***

[PATCH v1 1/4] PM / wakeup: Add dev_wakeup_path() helper

2020-11-05 Thread patrice.chotard
From: Patrice Chotard Add dev_wakeup_path() helper to avoid to spread dev->power.wakeup_path test in drivers. In case CONFIG_PM_SLEEP is not set, wakeup_path is not defined, dev_wakeup_path() is returning false. Signed-off-by: Patrice Chotard --- include/linux/pm_wakeup.h | 10 ++ 1 f

[PATCH v1 2/4] PM: domains: Make usage of device_wakeup_path() helper

2020-11-05 Thread patrice.chotard
From: Patrice Chotard Make usage of dev_wakeup_path() helper. Signed-off-by: Patrice Chotard --- drivers/base/power/domain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 743268996336..e0894ef8457c 100644

[PATCH v1 3/4] PM: core: Make usage of device_wakeup_path() helper

2020-11-05 Thread patrice.chotard
From: Patrice Chotard Make usage of dev_wakeup_path() helper. Signed-off-by: Patrice Chotard --- drivers/base/power/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index c7ac49042cee..921c5b2ec30a 100644 --- a

[PATCH] Revert "ARM: sti: Implement dummy L2 cache's write_sec"

2020-06-18 Thread patrice.chotard
From: Patrice Chotard This reverts commit 7b8e0188fa717cd9abc4fb52587445b421835c2a. Initially, STiH410-B2260 was supposed to be secured, that's why l2c_write_sec was stubbed to avoid secure register access from non secure world. But by default, STiH410-B2260 is running in non secure mode, so L2

spi: stm32-qspi: Fix error path in case of -EPROBE_DEFER

2020-06-16 Thread patrice.chotard
From: Patrice Chotard In case of -EPROBE_DEFER, stm32_qspi_release() was called in any case which unregistered driver from pm_runtime framework even if it has not been registered yet to it. This leads to: stm32-qspi 58003000.spi: can't setup spi0.0, status -13 spi_master spi0: spi_device registe

spi: stm32-qspi: Fix unbalanced pm_runtime_enable issue

2020-04-29 Thread patrice.chotard
From: Patrice Chotard Issue detected by unbinding/binding the stm32 qspi driver as following: root@stm32mp2:~# echo 4043.spi > /sys/bus/platform/drivers/stm32-qspi/404300 00.spi/driver/unbind root@stm32mp2:~# echo 4043.spi > /sys/bus/platform/drivers/stm32-qspi/bind [ 969.864021] stm32-

ARM: dts: stm32: relax qspi pins slew-rate for stm32mp157

2019-10-04 Thread patrice.chotard
From: Patrice Chotard Relax qspi pins slew-rate to minimize peak currents. Fixes: 844030057339 ("ARM: dts: stm32: add flash nor support on stm32mp157c eval board") Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 8 1 file changed, 4 insertions(+), 4 de

ARM: multi_v7_defconfig: Fix SPI_STM32_QSPI support

2019-10-04 Thread patrice.chotard
From: Patrice Chotard SPI_STM32_QSPI must be set in buildin as rootfs can be located on QSPI memory device. Signed-off-by: Patrice Chotard --- arch/arm/configs/multi_v7_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm

spi: stm32-qspi: Fix kernel oops when unbinding driver

2019-10-04 Thread patrice.chotard
From: Patrice Chotard spi_master_put() must only be called in .probe() in case of error. As devm_spi_register_master() is used during probe, spi_master_put() mustn't be called in .remove() callback. It fixes the following kernel WARNING/Oops when executing echo "58003000.spi" > /sys/bus/platfor

ARM: multi_v7_defconfig: Enable SPI_STM32_QSPI support

2019-07-31 Thread patrice.chotard
From: Patrice Chotard Enable support for QSPI block on STM32 SoCs. Signed-off-by: Patrice Chotard --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 6a40bc2ef271..78d1d9329

ARM: multi_v7_defconfig: Enable SPI_STM32_QSPI support

2019-07-29 Thread patrice.chotard
From: Patrice Chotard Enable support for QSPI block on STM32 SoCs. Signed-off-by: Patrice Chotard --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 6a40bc2ef271..78d1d9329

[PATCH 1/1] spi: spi-stm32-qspi: Remove CR_FTHRES_MASK usage

2019-06-20 Thread patrice.chotard
From: Patrice Chotard On STM32 F4/F7/H7 SoCs, FTHRES is a 5 bits field in QSPI_CR register, but for STM32MP1 SoCs, FTHRES is a 4 bits field long. CR_FTHRES_MASK definition is not correct. As for all these SoCs, FTHRES field is set to 3, FIELD_PREP() macro is used with a constant as second parame

[PATCH v2 1/1] ARM: sti: remove pen_release and boot_lock

2018-12-19 Thread patrice.chotard
From: Patrice Chotard The pen_release implementation was created for Versatile platforms to work around boot loaders that did not differentiate between the various different secondary CPUs on this ARM development platform. This should not be true of modern platforms where we send IPIs to specific

[PATCH 1/1] ARM: STi: Restore secondary CPU's bringup

2018-12-18 Thread patrice.chotard
From: Patrice Chotard Due to pen_release and boot_lock removal, secondary CPU's bringup was broken. Restore CPU's bringup by reworking properly .smp_prepare_cpus and .smp_boot_secondary STi callbacks. Signed-off-by: Patrice Chotard --- arch/arm/mach-sti/platsmp.c | 31 -

[PATCH] ARM: dts: stih410: change syntax of multiple DAI

2018-09-06 Thread patrice.chotard
From: Christophe Priouzeau With change of syntax for 'simple-audio-card,dai-link' containers, devicetrees of stih410 must be updated. This fixes the following error: [3.839466] asoc-simple-card sound: asoc_simple_card_dai_link_of: Can't find simple-audio-card,cpu DT node [3.849150] asoc

[PATCH v2 3/3] ARM: dts: stm32: Fix DT dtc warnings for stm32f4

2018-08-07 Thread patrice.chotard
From: Patrice Chotard Fix the following DT dtc warnings for stm32f429 and stm32f469 boards: Warning (node_name_chars_strict): /soc/pin-controller/usbotg_fs@0: Character '_' not recommended in node name Warning (node_name_chars_strict): /soc/pin-controller/usbotg_fs@1: Character '_' not recomme

[PATCH v2 1/3] ARM: dts: stm32: Fix DT dtc warnings for stm32h7

2018-08-07 Thread patrice.chotard
From: Patrice Chotard Fix the following DT dtc warnings: Warning (node_name_chars_strict): /clocks/i2s_ckin: Character '_' not recommended in node name Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name Warning (unit_address_vs_reg): /soc/pin-controller

[PATCH v2 0/3] ARM: dts: stm32: Fix DT dtc warnings for STM32 MCU's

2018-08-07 Thread patrice.chotard
From: Patrice Chotard Change since v1: - update nodes name as following: @0 to -0 This series fixes DT dtc warnings for following STM32 MCU's boards: - stm32f429i evaluation - stm32f429 discovery - stm32f469 discovery - stm32746g evaluation - stm3

[PATCH v2 2/3] ARM: dts: stm32: Fix DT dtc warnings for stm32f7

2018-08-07 Thread patrice.chotard
From: Patrice Chotard Fix the following DT dtc warnings for stm32f746 and stm32f769 boards: Warning (node_name_chars_strict): /soc/pin-controller/sdio_pins_a@0: Character '_' not recommended in node name Warning (node_name_chars_strict): /soc/pin-controller/sdio_pins_od_a@0: Character '_' not

[PATCH 1/3] ARM: dts: stm32: Fix DT dtc warnings for stm32h7

2018-08-07 Thread patrice.chotard
From: Patrice Chotard Fix the following DT dtc warnings for stm32h743 boards: Warning (node_name_chars_strict): /clocks/i2s_ckin: Character '_' not recommended in node name Warning (unit_address_vs_reg): /memory: node has a reg or ranges property, but no unit name Warning (unit_address_vs_reg)

[PATCH 2/3] ARM: dts: stm32: Fix DT dtc warnings for stm32f7

2018-08-07 Thread patrice.chotard
From: Patrice Chotard Fix the following DT dtc warnings for stm32f746 and stm32f769 boards: Warning (node_name_chars_strict): /soc/pin-controller/sdio_pins_a@0: Character '_' not recommended in node name Warning (node_name_chars_strict): /soc/pin-controller/sdio_pins_od_a@0: Character '_' not

[PATCH 3/3] ARM: dts: stm32: Fix DT dtc warnings for stm32f4

2018-08-07 Thread patrice.chotard
From: Patrice Chotard Fix the following DT dtc warnings for stm32f429 and stm32f469 boards: Warning (node_name_chars_strict): /soc/pin-controller/usbotg_fs@0: Character '_' not recommended in node name Warning (node_name_chars_strict): /soc/pin-controller/usbotg_fs@1: Character '_' not recomme

[PATCH 0/3] ARM: dts: stm32: Fix DT dtc warnings for STM32 MCU's

2018-08-07 Thread patrice.chotard
From: Patrice Chotard This series fixes DT dtc warnings for following STM32 MCU's boards: - stm32f429i evaluation - stm32f429 discovery - stm32f469 discovery - stm32746g evaluation - stm32f746 discovery - stm32h743i discovery - stm32h743i ev

[PATCH 4/4] ARM: dts: stm32: Remove cd-inverted property for stm32f746-disco

2018-07-26 Thread patrice.chotard
From: Patrice Chotard Remove cd-inverted property and update cd-gpios active level accordingly Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f746-disco.dts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/d

[PATCH 3/4] ARM: dts: stm32: Remove cd-inverted property for stm32f769-disco

2018-07-26 Thread patrice.chotard
From: Patrice Chotard Remove cd-inverted property and update cd-gpios active level accordingly Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f769-disco.dts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f769-disco.dts b/arch/arm/boot/d

[PATCH 0/4] Remove cd-inverted property for STM32Fx boards

2018-07-26 Thread patrice.chotard
From: Patrice Chotard This series remove cd-inverted property from STM32Fx boards DT files. As GPIOS are used for card detect, the polarity can be indicated using GPIO_ACTIVE_(HIGH|LOW), so cd-inverted becomes useless. Patrice Chotard (4): ARM: dts: stm32: Remove cd-inverted property for stm3

[PATCH 2/4] ARM: dts: stm32: Remove cd-inverted property for stm32f469-disco

2018-07-26 Thread patrice.chotard
From: Patrice Chotard Remove cd-inverted property and update cd-gpios active level accordingly Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f469-disco.dts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/d

[PATCH 1/4] ARM: dts: stm32: Remove cd-inverted property for stm32429i-eval

2018-07-26 Thread patrice.chotard
From: Patrice Chotard Remove cd-inverted property and update cd-gpios active level accordingly Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32429i-eval.dts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts

[PATCH] ARM: dts: stm32: Add clk-lse node's label on stm32f429

2018-07-19 Thread patrice.chotard
From: Patrice Chotard Add missing clk_lse label for node clk-lse. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f429.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index ede77e0f1c41..6427

[U-BOOT internal] ARM: dts: stm32: Add clk-lse node's label on stm32f429

2018-07-19 Thread patrice.chotard
From: Patrice Chotard Add missing clk_lse label for node clk-lse. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f429.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index ede77e0f1c41..6427

[PATCH 4/5] ARM: dts: stih410: Fix complain about IRQ_TYPE_NONE usage

2018-04-20 Thread patrice.chotard
From: Patrice Chotard Since commit 83a86fbb5b56 ("irqchip/gic: Loudly complain about the use of IRQ_TYPE_NONE") kernel is complaining about the IRQ_TYPE_NONE usage which shouldn't be used. Use IRQ_TYPE_LEVEL_HIGH instead. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stih410.dtsi | 18

[PATCH 5/5] ARM: dts: stihxxx-b2120: Fix complain about IRQ_TYPE_NONE usage

2018-04-20 Thread patrice.chotard
From: Patrice Chotard Since commit 83a86fbb5b56 ("irqchip/gic: Loudly complain about the use of IRQ_TYPE_NONE") kernel is complaining about the IRQ_TYPE_NONE usage which shouldn't be used. Use IRQ_TYPE_LEVEL_HIGH instead. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stihxxx-b2120.dts

[PATCH 0/5] ARM: dts: STi: Fix complain about IRQ_TYPE_NONE_usage

2018-04-20 Thread patrice.chotard
From: Patrice Chotard Fix the STi following DT files which make usage of IRQ_TYPE_NONE flag: _ stih407-family.dtsi _ stih407-pinctrl.dtsi _ stih407.dtsi _ stih410.dtsi _ stihxxx-b2120.dtsi Patrice Chotard (5): ARM: dts: stih407-family: Fix complain about IRQ_TYPE_NONE usage ARM: dts:

[PATCH 1/5] ARM: dts: stih407-family: Fix complain about IRQ_TYPE_NONE usage

2018-04-20 Thread patrice.chotard
From: Patrice Chotard Since commit 83a86fbb5b56 ("irqchip/gic: Loudly complain about the use of IRQ_TYPE_NONE") kernel is complaining about the IRQ_TYPE_NONE usage which shouldn't be used. Use IRQ_TYPE_LEVEL_HIGH instead. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stih407-family.dt

[PATCH 2/5] ARM: dts: stih407-pinctrl: Fix complain about IRQ_TYPE_NONE usage

2018-04-20 Thread patrice.chotard
From: Patrice Chotard Since commit 83a86fbb5b56 ("irqchip/gic: Loudly complain about the use of IRQ_TYPE_NONE") kernel is complaining about the IRQ_TYPE_NONE usage which shouldn't be used. Use IRQ_TYPE_LEVEL_HIGH instead. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stih407-pinctrl.d

[PATCH 3/5] ARM: dts: stih407: Fix complain about IRQ_TYPE_NONE usage

2018-04-20 Thread patrice.chotard
From: Patrice Chotard Since commit 83a86fbb5b56 ("irqchip/gic: Loudly complain about the use of IRQ_TYPE_NONE") kernel is complaining about the IRQ_TYPE_NONE usage which shouldn't be used. Use IRQ_TYPE_LEVEL_HIGH instead. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stih407.dtsi | 2

[RESEND PATCH v4 3/3]] ARM: dts: STi: Remove "console=ttyASN" from bootargs for STi boards

2018-03-14 Thread patrice.chotard
From: Patrice Chotard As serial interface is already specified into stdout-path property, "console=ttyASN,115200" from bootargs can be removed. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stih407-b2120.dts | 2 +- arch/arm/boot/dts/stih410-b2120.dts | 2 +- arch/arm/boot/dts/stih410-b

[RESEND PATCH v4 3/3] ARM: dts: STi: Remove console=ttyASN from bootargs for STi boards] ARM: dts: STi: Remove "console=ttyASN" from bootargs for STi boards

2018-03-14 Thread patrice.chotard
From: Patrice Chotard As serial interface is already specified into stdout-path property, "console=ttyASN,115200" from bootargs can be removed. Signed-off-by: Patrice Chotard --- v4: _ none v3: _ remove "console=serialN,115200" from bootargs and use prefered stdout-path property v2: _ n

[RESEND PATCH] clk: stm32: Add clk entry for SDMMC2 on stm32F769

2018-03-12 Thread patrice.chotard
From: Patrice Chotard STM32F769 has 2 SDMMC port, add clock entry for the second one. Signed-off-by: Alexandre TORGUE Signed-off-by: Patrice Chotard Acked-by: Stephen Boyd --- drivers/clk/clk-stm32f4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm3

[PATCH v4 0/3] Fix STi aliases property name

2018-03-07 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, when compiling dtb with W=1 option, the following warnings are triggered : arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property name must include only lowercase and '-' arch/arm/boot/dts/stih407-b2120.

[PATCH v4 2/3] ARM: dts: STi: Fix aliases property name for STi boards

2018-03-07 Thread patrice.chotard
From: Patrice Chotard Update serial aliases from "ttyASN" to more common "serialN". Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must be lowercase only. This allows to fix following dtc warnings: arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property

[PATCH v4 3/3] ARM: dts: STi: Remove "console=ttyASN" from bootargs for STi boards

2018-03-07 Thread patrice.chotard
From: Patrice Chotard As serial interface is already specified into stdout-path property, "console=ttyASN,115200" from bootargs can be removed. Signed-off-by: Patrice Chotard --- v4: _ none v3: _ remove "console=serialN,115200" from bootargs and use prefered stdout-path property v2: _ no

[PATCH v4 1/3] tty: st-asc: Update tty alias

2018-03-07 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must include only lowercase and '-'. After having updated all STi boards serial aliases from "ttyASN" to "serialN", st-asc driver need to be updated accordingly as tty aliases id is retrieved using of_alias_get_id().

[PATCH v3 1/3] ARM: dts: STi: Fix aliases property name for STi boards

2018-03-07 Thread patrice.chotard
From: Patrice Chotard Update serial aliases from "ttyASN" to more common "serialN". Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must be lowercase only. This allows to fix following dtc warnings: arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property

[PATCH v3 0/3] Fix STi aliases property name

2018-03-07 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, when compiling dtb with W=1 option, the following warnings are triggered : arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property name must include only lowercase and '-' arch/arm/boot/dts/stih407-b2120.

[PATCH v3 2/3] ARM: dts: STi: Remove console=serialN from bootargs for STi boards

2018-03-07 Thread patrice.chotard
From: Patrice Chotard As serial interface is already specified into stdout-path property, "console=serialN,115200" from bootargs can be removed. Signed-off-by: Patrice Chotard --- v3: _ remove "console=serialN,115200" from bootargs and use prefered stdout-path property v2: _ none arch/

[PATCH v3 3/3] tty: st-asc: Update tty alias

2018-03-07 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must include only lowercase and '-'. After having updated all STi boards serial aliases from "ttyASN" to "serialN", st-asc driver need to be updated accordingly as tty aliases id is retrieved using of_alias_get_id().

[PATCH v2 3/3] tty: st-asc: Update tty alias

2018-03-06 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must include only lowercase and '-'. After having updated all STi boards serial aliases from "ttyASN" to "serialN", st-asc driver need to be updated accordingly as tty aliases id is retrieved using of_alias_get_id(np,

[PATCH v2 1/3] ARM: dts: STi: Fix aliases property name for STi boards

2018-03-06 Thread patrice.chotard
From: Patrice Chotard Update serial aliases from "ttyASN" to more common "serialN". Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must be lowercase only. This allows to fix following dtc warnings: arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property

[PATCH v2 0/3] Fix STi aliases property name

2018-03-06 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, when compiling dtb with W=1 option, the following warnings are triggered : arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property name must include only lowercase and '-' arch/arm/boot/dts/stih407-b2120.

[PATCH v2 2/3] ARM: dts: STi: Remove useless stdout-path for STi boards

2018-03-06 Thread patrice.chotard
From: Patrice Chotard As serial interface is already specified into bootargs, stdout-path can be removed. Signed-off-by: Patrice Chotard --- v2: _ none arch/arm/boot/dts/stih407-b2120.dts | 1 - arch/arm/boot/dts/stih410-b2120.dts | 1 - arch/arm/boot/dts/stih410-b2260.dts | 1 - arch/arm/bo

[PATCH 2/2] tty: st-asc: Convert tty alias in lowercase

2018-03-05 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must include only lowercase and '-'. After having converted all STi boards serial aliases in lowercase, st-asc driver need to be updated accordingly as tty aliases id is retrieved using of_alias_get_id(np, ASC_SERIAL_N

[PATCH 1/2] ARM: dts: STi: Fix aliases property name for STi boards

2018-03-05 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, aliases property name must be lowercase only. This allows to fix following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property name must include only lowercas

[PATCH 0/2] Fix STi aliases property name

2018-03-05 Thread patrice.chotard
From: Patrice Chotard Since dtc v1.4.6-9-gaadd0b65c987, when compiling dtb with W=1 option, the following warnings are triggered : arch/arm/boot/dts/stih418-b2199.dtb: Warning (alias_paths): /aliases: aliases property name must include only lowercase and '-' arch/arm/boot/dts/stih407-b2120.

[PATCH v2 4/6] ARM: dts: stm32: Enable sdio1 for stm32f769-disco

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Adds SDIO related DT nodes for stm32f769-disco board. broken-cd property is needed as it misses a pullup on board (resistor R76 is missing). Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f769-disco.dts | 19 +++ 1 file changed, 19 insertions(+

[PATCH v2 0/6] Add mmc support for STM32F7 boards

2018-03-01 Thread patrice.chotard
From: Patrice Chotard This series adds : _ SDIO pins definition for STM32F7 SoCs family _ add sdio1 DT entry for STM32F746 Discovery board _ add sdio1 DT entry for STM32F746 Evaluation board _ add sdio1 DT entry for STM32F769 Discovery board _ add SDMMC2 entry in stm32f7-rcc.h _ replace sdi

[PATCH v2 2/6] ARM: dts: stm32: Enable sdio1 for stm32f746-disco

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Adds SDIO related DT nodes for stm32f746-disco board. Signed-off-by: Patrice Chotard --- v2: _ rename sdio_pins / sdio_od_pins to sdio_pins_a / sdio_od_pins_a arch/arm/boot/dts/stm32f746-disco.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a

[PATCH v2 5/6] dt-bindings: mfd: Add STM32F7 SDMMC2 rcc entry

2018-03-01 Thread patrice.chotard
From: Patrice Chotard STM32F769 SoC provides 2 SDMMC instances, add missing RCC SDMMC2 entry for it. Signed-off-by: Patrice Chotard --- include/dt-bindings/mfd/stm32f7-rcc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/mfd/stm32f7-rcc.h b/include/dt-bindings/mfd/stm

[PATCH v2 1/6] ARM: dts: stm32: Add sdio pins definition for stm32f7

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Add sdio pins definition for the 2 sdio instances embeds in stm32f746. Signed-off-by: Patrice Chotard --- v2: _ rename sdio_pins / sdio_od_pins to sdio_pins_a / sdio_od_pins_a arch/arm/boot/dts/stm32f7-pinctrl.dtsi | 62 ++ 1 file changed

[PATCH v2 6/6] ARM: dts: stm32: Fix sdio2 rcc hard coded value

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Replace sdio2 rcc hard coded clock value by its macro. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f746.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi index 07c2965

[PATCH v2 3/6] ARM: dts: stm32: Enable sdio1 for stm32f746-eval

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Adds SDIO related DT nodes for stm32f746-eval board. broken-cd property is needed as card detect signal is connected to a GPIO expander which is not yet supported in kernel linux. Signed-off-by: Patrice Chotard --- v2: _ rename sdio_pins / sdio_od_pins to sdio_pins_a / s

[PATCH 1/6] ARM: dts: stm32: Add sdio pins definition for stm32f7

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Add sdio pins definition for the 2 sdio instances embeds in stm32f746. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f7-pinctrl.dtsi | 62 ++ 1 file changed, 62 insertions(+) diff --git a/arch/arm/boot/dts/stm32f7-pinctrl.dtsi

[PATCH 3/6] ARM: dts: stm32: Enable sdio1 for stm32f746-eval

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Adds SDIO related DT nodes for stm32f746-eval board. broken-cd property is needed as card detect signal is connected to a GPIO expander which is not yet supported in kernel linux. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32746g-eval.dts | 17 ++

[PATCH 4/6] ARM: dts: stm32: Enable sdio1 for stm32f769-disco

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Adds SDIO related DT nodes for stm32f769-disco board. broken-cd property is needed as it misses a pullup on board (resistor R76 is missing). Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f769-disco.dts | 19 +++ 1 file changed, 19 insertions(+

[PATCH 2/6] ARM: dts: stm32: Enable sdio1 for stm32f746-disco

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Adds SDIO related DT nodes for stm32f746-disco board. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f746-disco.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/stm32f746-disco.dts b/arch/arm/boot/dts/stm32f746-dis

[PATCH 5/6] dt-bindings: mfd: Add STM32F7 SDMMC2 rcc entry

2018-03-01 Thread patrice.chotard
From: Patrice Chotard STM32F769 SoC provides 2 SDMMC instances, add missing RCC SDMMC2 entry for it. Signed-off-by: Patrice Chotard --- include/dt-bindings/mfd/stm32f7-rcc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/mfd/stm32f7-rcc.h b/include/dt-bindings/mfd/stm

[PATCH 0/6] Add mmc support for STM32F7 boards

2018-03-01 Thread patrice.chotard
From: Patrice Chotard This series adds : _ SDIO pins definition for STM32F7 SoCs family _ add sdio1 DT entry for STM32F746 Discovery board _ add sdio1 DT entry for STM32F746 Evaluation board _ add sdio1 DT entry for STM32F769 Discovery board _ add SDMMC2 entry in stm32f7-rcc.h _ replace sdi

[PATCH 6/6] ARM: dts: stm32: Fix sdio2 rcc hard coded value

2018-03-01 Thread patrice.chotard
From: Patrice Chotard Replace sdio2 rcc hard coded clock value by its macro. Signed-off-by: Patrice Chotard --- arch/arm/boot/dts/stm32f746.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f746.dtsi b/arch/arm/boot/dts/stm32f746.dtsi index 07c2965

[PATCH v3 06/11] ARM: dts: STi: Add fake reg property for remote processors

2018-02-13 Thread patrice.chotard
From: Patrice Chotard As st231-gp0, st231-delta are part of SoC, we add a fake reg property instead of moving all these nodes outside soc node. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/st

[PATCH v3 05/11] ARM: dts: STi: Add fake reg property for irq-syscfg

2018-02-13 Thread patrice.chotard
From: Patrice Chotard Add fake reg property to irq-syscfg node. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/irq-syscfg missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2120.dt

[PATCH v3 11/11] ARM: dts: STi: Remove unused clk_ext2f_a9 clock

2018-02-13 Thread patrice.chotard
From: Patrice Chotard This clock node is unused, remove it. This allows to fix the following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): Node /clocks/clockgen-c0 missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2260

[PATCH v3 03/11] ARM: dts: STi: Add fake reg property for sti-display-subsystem

2018-02-13 Thread patrice.chotard
From: Patrice Chotard As sti-display-subsystem sub-nodes (sti-compositor, sti-tvout sti-hdmi, sti-hda and sti-hqvdp) are SoC's IP, we add a fake reg property. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih410-b2120.dtb: Warning (unit_address_v

[PATCH v3 02/11] ARM: dts: STi: Move leds node outside soc node

2018-02-13 Thread patrice.chotard
From: Patrice Chotard Leds are not part of soc, so nove them outside soc node. This allows to fix the following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/leds missing or empty reg/ranges property arch/arm/boot/dts/stih

[PATCH v3 07/11] ARM: dts: STi: Add fake reg for restart, powerdown and picophy/softreset

2018-02-13 Thread patrice.chotard
From: Patrice Chotard Add fake reg property for restart, powerdown, picophyreset and softreset. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/restart missing or empty reg/ranges property arch/

[PATCH v3 01/11] ARM: dts: STi: Fix bindings notation

2018-02-13 Thread patrice.chotard
From: Patrice Chotard Remove leading 0x and 0s from bindings notation Add missing unit-address and remove some which are useless. This allows to fix several warnings like : Warning (unit_address_vs_reg): Node has a reg or ranges property, but no unit name Warning (simple_bus_reg): Node XX

[PATCH v3 10/11] ARM: dts: STi: Update clocks node location

2018-02-13 Thread patrice.chotard
From: Patrice Chotard Move: _ arm_periph_clk node as child of clockgen-a9@92b node _ clk_m_a9_ext2f_div2 node as child of clk_s_c0_flexgen node _ clk-tmdsout-hdmi node outiside soc node This allows to fix the following warnings when compiling dtb with W=1 option : arch/arm/boot/dts/stih4

[PATCH v3 09/11] ARM: dts: STi: Update sound related nodes location

2018-02-13 Thread patrice.chotard
From: Patrice Chotard Move sound node outside soc node and sti_sasg_codec node as child of syscfg_core node. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (unit_address_vs_reg): Node /soc/sound/simple-audio-card,dai-link

[PATCH v3 08/11] ARM: dts: STi: Add fake reg property for usb2_picophyX nodes

2018-02-13 Thread patrice.chotard
From: Patrice Chotard Add fake reg property for usb2_picophy nodes. This allows to fix the following warning when compiling dtb with W=1 option : arch/arm/boot/dts/stih410-b2120.dtb: Warning (simple_bus_reg): Node /soc/phy2 missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2120.dtb

[PATCH v3 04/11] ARM: dts: STi: Add fake reg property for miphy28lp_phy

2018-02-13 Thread patrice.chotard
From: Patrice Chotard Add fake reg property to miphy28lp_phy. This allows to fix the following warning when compiling dtb with W=1 option: arch/arm/boot/dts/stih407-b2120.dtb: Warning (simple_bus_reg): Node /soc/miphy28lp missing or empty reg/ranges property arch/arm/boot/dts/stih410-b2120.dtb:

[PATCH v3 00/11] ARM: dts: STi: Fix DT dtc warnings

2018-02-13 Thread patrice.chotard
From: Patrice Chotard This series fixes all dtc warnings related to STi platforms dt files. It has been reported by Rob Herring [1] For most of implicated node, the addition of a fake reg property fixes these warnings. For others nodes, their location in device tree have been updated. [1] https

  1   2   3   >