[PATCH v3 10/11] dt-bindings: clock: stm32mp1 new compatible for secure rcc

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Introduce new compatible string "st,stm32mp1-rcc-secure" for stm32mp1 clock driver when the device is configured with RCC security support hardened. Signed-off-by: Etienne Carriere Signed-off-by: Gabriel Fernandez --- .../devicetree/bindings/clock/st,stm32mp1-rcc.yaml

[PATCH v3 11/11] clk: stm32mp1: new compatible for secure RCC support

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clock resources cannot be accessed by Linux kernel when executing in non-secure state of the CPU(s). In such configuration, the RCC clock driver must not register clocks it cannot access. They are expected to be

[PATCH v3 02/11] clk: stm32mp1: merge 'ck_hse_rtc' and 'ck_rtc' into one clock

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez 'ck_rtc' has multiple clocks as input (ck_hsi, ck_lsi, and ck_hse). A divider is available only on the specific rtc input for ck_hse. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez ---

[PATCH v3 09/11] dt-bindings: reset: add MCU HOLD BOOT ID for SCMI reset domains on stm32mp15

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Add ID to SCMI0 to exposes reset controller for the MCU HOLD BOOT resource. Signed-off-by: Arnaud Pouliquen Signed-off-by: Gabriel Fernandez Acked-by: Rob Herring --- include/dt-bindings/reset/stm32mp1-resets.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v3 00/11] Introduce STM32MP1 RCC in secured mode

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clocks and IP resets can relate as secure resources. These resources are moved from a RCC clock/reset handle to a SCMI clock/reset_domain handle. The RCC clock driver is now dependent of the SCMI driver, then we

[PATCH v3 05/11] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

[PATCH v3 03/11] clk: stm32mp1: remove intermediate pll clocks

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. Integrate the mux clock into pll clock will facilitate to have a more coherent clock tree in no trusted / trusted mode. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 65

[PATCH v3 01/11] clk: stm32mp1: merge 'clk-hsi-div' and 'ck_hsi' into one clock

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH v3 04/11] clk: stm32mp1: convert to module driver

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Adds support for probe deferral in way to prepare integration of the security in RCC clock and reset drivers. Some kernel clocks will be provided by the SCMI drivers. Since RCC clock driver create clocks which parents are SCMI clocks, RCC clock driver probe can be

[PATCH v3 07/11] dt-bindings: clock: add IDs for SCMI clocks on stm32mp15

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware interfaces. This change defines the SCMI clock identifiers used by SCMI agents and servers. Server SCMI0 exposes clocks and reset controllers for resources under

[PATCH v3 06/11] reset: stm32mp1: remove stm32mp1 reset

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez st32mp1 RCC reset driver was moved into stm32mp1 RCC clock driver. Signed-off-by: Gabriel Fernandez --- drivers/reset/Kconfig | 6 -- drivers/reset/Makefile | 1 - drivers/reset/reset-stm32mp1.c | 115 - 3 files

[PATCH v3 08/11] dt-bindings: reset: add IDs for SCMI reset domains on stm32mp15

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI reset domains for secure resources. This change defines the SCMI reset domain identifiers used by SCMI agents and servers. Stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware

[PATCH v2 14/14] ARM: dts: stm32: introduce basic boot include on stm32mp15x board

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez Include this .dtsi file to be backward compatible with old basic bootchain. For example add: include "stm32mp15-no-scmi.dtsi" in a stm32mp157c*.dts file. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp15-no-scmi.dtsi | 158 +++ 1

[PATCH v2 12/14] ARM: dts: stm32: move clocks/resets to SCMI resources for stm32mp15

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez This change reflects board hardware configuration where RCC security features are configured for RCC[TZEN]=1 and RCC[MCKPROT]=0, that is RCC TrustZone is hardened and RCC MCKPROT is disabled. Clock and reset controllers that relate to SoC secure resources are moved from

[PATCH v2 13/14] dt-bindings: clock: stm32mp1 new compatible for secure rcc

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez Introduce new compatible string "st,stm32mp1-rcc-secure" for stm32mp1 clock driver when the device is configured with RCC security support hardened. Signed-off-by: Etienne Carriere Signed-off-by: Gabriel Fernandez --- .../devicetree/bindings/clock/st,stm32mp1-rcc.yaml

[PATCH v2 11/14] ARM: dts: stm32: define SCMI resources on stm32mp15

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez Platform stm32mp15 relies on SCMI resources (clocks and reset domains). This change adds SCMI resources description in the platform device tree. SCMI resources uses a mailbox based on some shared memory and a SMC mailbox notification. SCMI0 exposes clocks and reset

[PATCH v2 07/14] dt-bindings: clock: add IDs for SCMI clocks on stm32mp15

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware interfaces. This change defines the SCMI clock identifiers used by SCMI agents and servers. Server SCMI0 exposes clocks and reset controllers for resources under

[PATCH v2 10/14] clk: stm32mp1: new compatible for secure RCC support

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clock resources cannot be accessed by Linux kernel when executing in non-secure state of the CPU(s). In such configuration, the RCC clock driver must not register clocks it cannot access. They are expected to be

[PATCH v2 02/14] clk: stm32mp1: merge 'ck_hse_rtc' and 'ck_rtc' into one clock

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez 'ck_rtc' has multiple clocks as input (ck_hsi, ck_lsi, and ck_hse). A divider is available only on the specific rtc input for ck_hse. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez ---

[PATCH v2 00/14] Introduce STM32MP1 RCC in secured mode

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clocks and IP resets can relate as secure resources. These resources are moved from a RCC clock/reset handle to a SCMI clock/reset_domain handle. The RCC clock driver is now dependent of the SCMI driver, then we

[PATCH v2 09/14] dt-bindings: reset: add MCU HOLD BOOT ID for SCMI reset domains on stm32mp15

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez Add ID to SCMI0 to exposes reset controller for the MCU HOLD BOOT resource. Signed-off-by: Arnaud Pouliquen Signed-off-by: Gabriel Fernandez --- include/dt-bindings/reset/stm32mp1-resets.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 06/14] reset: stm32mp1: remove stm32mp1 reset

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez st32mp1 RCC reset driver was moved into stm32mp1 RCC clock driver. Signed-off-by: Gabriel Fernandez --- drivers/reset/Kconfig | 6 -- drivers/reset/Makefile | 1 - drivers/reset/reset-stm32mp1.c | 115 - 3 files

[PATCH v2 03/14] clk: stm32mp1: remove intermediate pll clocks

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. Integrate the mux clock into pll clock will facilitate to have a more coherent clock tree in no trusted / trusted mode. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 65

[PATCH v2 01/14] clk: stm32mp1: merge 'clk-hsi-div' and 'ck_hsi' into one clock

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH v2 04/14] clk: stm32mp1: convert to module driver

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez Adds support for probe deferral in way to prepare integration of the security in RCC clock and reset drivers. Some kernel clocks will be provided by the SCMI drivers. Since RCC clock driver create clocks which parents are SCMI clocks, RCC clock driver probe can be

[PATCH v2 08/14] dt-bindings: reset: add IDs for SCMI reset domains on stm32mp15

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI reset domains for secure resources. This change defines the SCMI reset domain identifiers used by SCMI agents and servers. Stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware

[PATCH v2 05/14] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-01-26 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

[PATCH 12/14] ARM: dts: stm32: move clocks/resets to SCMI resources for stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez This change reflects board hardware configuration where RCC security features are configured for RCC[TZEN]=1 and RCC[MCKPROT]=0, that is RCC TrustZone is hardened and RCC MCKPROT is disabled. Clock and reset controllers that relate to SoC secure resources are moved from

[PATCH 11/14] ARM: dts: stm32: define SCMI resources on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform stm32mp15 relies on SCMI resources (clocks and reset domains). This change adds SCMI resources description in the platform device tree. SCMI resources uses a mailbox based on some shared memory and a SMC mailbox notification. SCMI0 exposes clocks and reset

[PATCH 13/14] dt-bindings: clock: stm32mp1 new compatible for secure rcc

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Introduce new compatible string "st,stm32mp1-rcc-secure" for stm32mp1 clock driver when the device is configured with RCC security support hardened. Signed-off-by: Etienne Carriere Signed-off-by: Gabriel Fernandez ---

[PATCH 14/14] ARM: dts: stm32: introduce basic boot include on stm32mp15x board

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Include this .dtsi file to be backward compatible with old basic bootchain. For example add: #include "stm32mp15-no-scmi.dtsi" in a stm32mp157c*.dts file. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp15-no-scmi.dtsi | 158 +++ 1

[PATCH 10/14] clk: stm32mp1: new compatible for secure RCC support

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clock resources cannot be accessed by Linux kernel when executing in non-secure state of the CPU(s). In such configuration, the RCC clock driver must not register clocks it cannot access. They are expected to be

[PATCH 06/14] reset: stm32mp1: remove stm32mp1 reset

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez st32mp1 RCC reset driver was moved into stm32mp1 RCC clock driver. Signed-off-by: Gabriel Fernandez --- drivers/reset/Kconfig | 6 -- drivers/reset/Makefile | 1 - drivers/reset/reset-stm32mp1.c | 115 - 3 files

[PATCH 03/14] clk: stm32mp1: remove intermediate pll clocks

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. Integrate the mux clock into pll clock will facilitate to have a more coherent clock tree in no trusted / trusted mode. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 65

[PATCH 04/14] clk: stm32mp1: convert to module driver

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Adds support for probe deferral in way to prepare integration of the security in RCC clock and reset drivers. Some kernel clocks will be provided by the SCMI drivers. Since RCC clock driver create clocks which parents are SCMI clocks, RCC clock driver probe can be

[PATCH 05/14] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

[PATCH 02/14] clk: stm32mp1: merge 'ck_hse_rtc' and 'ck_rtc' into one clock

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez 'ck_rtc' has multiple clocks as input (ck_hsi, ck_lsi, and ck_hse). A divider is available only on the specific rtc input for ck_hse. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez ---

[PATCH 00/14] Introduce STM32MP1 RCC in secured mode

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clocks and IP resets can relate as secure resources. These resources are moved from a RCC clock/reset handle to a SCMI clock/reset_domain handle. The RCC clock driver is now dependant of the SCMI driver, then we

[PATCH 01/14] clk: stm32mp1: merge 'clk-hsi-div' and 'ck_hsi' into one clock

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH 07/14] dt-bindings: clock: add IDs for SCMI clocks on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware interfaces. This change defines the SCMI clock identifiers used by SCMI agents and servers. Server SCMI0 exposes clocks and reset controllers for resources under

[PATCH 09/14] dt-bindings: reset: add MCU HOLD BOOT ID for SCMI reset domains on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Add ID to SCMI0 to exposes reset controller for the MCU HOLD BOOT resource. Signed-off-by: Arnaud Pouliquen Signed-off-by: Gabriel Fernandez --- include/dt-bindings/reset/stm32mp1-resets.h | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 08/14] dt-bindings: reset: add IDs for SCMI reset domains on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI reset domains for secure resources. This change defines the SCMI reset domain identifiers used by SCMI agents and servers. Stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware

[PATCH v2] dt-bindings: clock: remove unused definition for stm32mp1

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez A copy of LTDC_PX and ETHCK_K (LTDC_K and ETHMAC_K) was introduced in stm32mp1 dt-bindings file by mistake. These bindings are not used and shouldn't be use to be conform with convention name of the stm32mp1 clock IP. Signed-off-by: Gabriel Fernandez ---

[PATCH v2 7/7] clk: stm32mp1: fix bit width of hse_rtc divider

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez Fix the bit width of the hse rtc divider because it's off by one. Fixes: 2c87c9d33117 ("clk: stm32mp1: add RTC clock") Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 6/7] clk: stm32mp1: remove unnecessary CLK_DIVIDER_ALLOW_ZERO flag

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez The divisor of ethptp_k and ck_hse_rtc clocks is: 'value register plus one'. Then CLK_DIVIDER_ALLOW_ZERO flag has no effect and is useless here. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

[PATCH v2 3/7] clk: stm32mp1: set ck_csi as critical clock

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez ck_csi is used for IO compensation so it should be considered as "always-on" and kept on. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm32mp1.c

[PATCH v2 0/7] update STM32MP1 clocks

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez Changes: v2: - add more explanation in commit mesages - add one comment to the code This patch-set fixes minor corrections (fixes and documentation alignment) - add missing parent clocks - don't change parent on set rate for kernel clocks - set ck_csi clock as critical -

[PATCH v2 2/7] clk: stm32mp1: add CLK_SET_RATE_NO_REPARENT to Kernel clocks

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez STM32MP1 clock IP offers lots of Kernel clocks that are shared by multiple IP's at the same time. Then boot loader applies a clock tree that allows to use all IP's at same time and with the maximum of performance. Not change parents on a change rate on kernel clocks

[PATCH v2 1/7] clk: stm32mp1: parent clocks update

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez Fixes parent clock for axi, fdcan, sai and adc12 clocks. Fixes: e51d297e9a92 ("clk: stm32mp1: add Sub System clocks") Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v2 5/7] clk: stm32mp1: fix HSI divider flag

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez The divider of HSI (clk-hsi-div) is power of two divider. Fixes: 9bee94e7b7da ("clk: stm32mp1: Introduce STM32MP1 clock driver") Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 4/7] clk: stm32mp1: fix mcu divider table

2019-02-14 Thread gabriel.fernandez
From: Gabriel Fernandez index 8: ck_mcu is divided by 256 (not 512) Fixes: e51d297e9a92 ("clk: stm32mp1: add Sub System clocks") Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm32mp1.c

[PATCH] dt-bindings: clock: remove unused definition for stm32mp1

2019-02-13 Thread gabriel.fernandez
From: Gabriel Fernandez LTDC_K and ETHMAC_K are not used. Signed-off-by: Gabriel Fernandez --- include/dt-bindings/clock/stm32mp1-clks.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/dt-bindings/clock/stm32mp1-clks.h b/include/dt-bindings/clock/stm32mp1-clks.h index

[PATCH v1] Input: st-keyscan - fix potential zalloc NULL dereference

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez This patch fixes the following static checker warning: drivers/input/keyboard/st-keyscan.c:156 keyscan_probe() error: potential zalloc NULL dereference: 'keypad_data->input_dev' Reported-by: Dan Carpenter Signed-off-by: Gabriel Fernandez ---

[PATCH] Input: st-keyscan - fix potential zalloc NULL dereference

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez This patch fixes the following static checker warning: drivers/input/keyboard/st-keyscan.c:156 keyscan_probe() error: potential zalloc NULL dereference: 'keypad_data->input_dev' Reported-by: Dan Carpenter Signed-off-by: Gabriel Fernandez ---

[PATCH 7/7] clk: stm32mp1: fix bit width of hse_rtc divider

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez This patch fixes the bit width of the hse rtc divider. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index

[PATCH 0/7] update STM32MP1 clocks

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez This patch-set fixes minor corrections (fixes and documentation alignment) - add missing parent clocks - don't change parent on set rate for kernel clocks - set ck_csi clock as critical - fix divider configuration Gabriel Fernandez (7): clk: stm32mp1: parent clocks

[PATCH 2/7] clk: stm32mp1: add CLK_SET_RATE_NO_REPARENT to Kernel clocks

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez Don't change parent during a set rate for Kernel clocks. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index

[PATCH 3/7] clk: stm32mp1: set ck_csi as critical clock

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez ck_csi is used for IO compensation so it should be considered as "always-on" and kept on. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm32mp1.c

[PATCH 6/7] clk: stm32mp1: remove unnecessary CLK_DIVIDER_ALLOW_ZERO flag

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez This patch removes unnecessary CLK_DIVIDER_ALLOW_ZERO flag of ethptp_k and ck_hse_rtc clocks. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c

[PATCH 4/7] clk: stm32mp1: fix mcu divider table

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez index 8: ck_mcuss divided by 256 (not 512) Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index 5b30e4eeca2c..385dac678a7f

[PATCH 5/7] clk: stm32mp1: fix HSI divider flag

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez The divider of HSI (clk-hsi-div) is power of two divider. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index

[PATCH 1/7] clk: stm32mp1: parent clocks update

2019-02-12 Thread gabriel.fernandez
From: Gabriel Fernandez This patch updates parent clocks for axi, fdcan, sai and adc12. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index

[RESEND PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default

2018-05-03 Thread gabriel.fernandez
From: Gabriel Fernandez Clock driver is mandatory if the machine is selected. Then don't use 'bool' and 'depends on' commands, but 'def_bool' with the machine(s). Fixes: da32d3539fca ("clk: stm32: add configuration flags for each of the stm32 drivers") Signed-off-by:

[RESEND PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default

2018-05-03 Thread gabriel.fernandez
From: Gabriel Fernandez Clock driver is mandatory if the machine is selected. Then don't use 'bool' and 'depends on' commands, but 'def_bool' with the machine(s). Fixes: da32d3539fca ("clk: stm32: add configuration flags for each of the stm32 drivers") Signed-off-by: Gabriel Fernandez

[PATCH] clk: stm32mp1: Add CLK_IGNORE_UNUSED to ck_sys_dbg clock

2018-04-24 Thread gabriel.fernandez
From: Gabriel Fernandez Don't disable the dbg clock if was set by bootloader. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm32mp1.c

[PATCH] clk: stm32mp1: Add CLK_IGNORE_UNUSED to ck_sys_dbg clock

2018-04-24 Thread gabriel.fernandez
From: Gabriel Fernandez Don't disable the dbg clock if was set by bootloader. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index edd3cf4..35dabf1

[PATCH] ARM: dts: stm32: add reset binding on stm32mp157c

2018-04-20 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds reset binding file. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi

[PATCH] ARM: dts: stm32: add reset binding on stm32mp157c

2018-04-20 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds reset binding file. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp157c.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index bc3eddc..7e91fd6 100644 ---

[PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default

2018-04-17 Thread gabriel.fernandez
From: Gabriel Fernandez Clock driver is mandatory if the machine is selected. Then don't use 'bool' and 'depends on' commands, but 'def_bool' with the machine(s). Fixes: da32d3539fca ("clk: stm32: add configuration flags for each of the stm32 drivers")

[PATCH] clk: stm32: fix: stm32 clock drivers are not compiled by default

2018-04-17 Thread gabriel.fernandez
From: Gabriel Fernandez Clock driver is mandatory if the machine is selected. Then don't use 'bool' and 'depends on' commands, but 'def_bool' with the machine(s). Fixes: da32d3539fca ("clk: stm32: add configuration flags for each of the stm32 drivers") Signed-off-by: Gabriel Fernandez ---

[PATCH 2/6] clk: stm32mp1: remove unused dfsdm_src[] const

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez This patch remove unused constant. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index

[PATCH 6/6] clk: stm32mp1: remove ck_apb_dbg clock

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez It's recommended to use only clk_sys_dbg clock instead to activate debug IP. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c| 4 include/dt-bindings/clock/stm32mp1-clks.h | 1 - 2

[PATCH 3/6] clk: stm32mp1: fix SAI3 & SAI4 clocks

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez fix bad copy / paste. SAI3 & SAI4 used gate of SAI2 instead SAI3 & SAI4 Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 2/6] clk: stm32mp1: remove unused dfsdm_src[] const

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez This patch remove unused constant. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index 62f172c..9a67b1c 100644 ---

[PATCH 6/6] clk: stm32mp1: remove ck_apb_dbg clock

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez It's recommended to use only clk_sys_dbg clock instead to activate debug IP. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c| 4 include/dt-bindings/clock/stm32mp1-clks.h | 1 - 2 files changed, 5 deletions(-) diff --git

[PATCH 3/6] clk: stm32mp1: fix SAI3 & SAI4 clocks

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez fix bad copy / paste. SAI3 & SAI4 used gate of SAI2 instead SAI3 & SAI4 Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c b/drivers/clk/clk-stm32mp1.c index

[PATCH 0/6] stm32mp1 clock update

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez This patch-set adds minor corrections - sparse corections - add tzc2 missing clock - remove unused constant - fix SAI3 & SAI4 clocks - set stgen_k clock as critical - remove not useful ck_apb_dbg clock Gabriel Fernandez (6): clk: stm32mp1: add

[PATCH 0/6] stm32mp1 clock update

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez This patch-set adds minor corrections - sparse corections - add tzc2 missing clock - remove unused constant - fix SAI3 & SAI4 clocks - set stgen_k clock as critical - remove not useful ck_apb_dbg clock Gabriel Fernandez (6): clk: stm32mp1: add missing static clk:

[PATCH 1/6] clk: stm32mp1: add missing static

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez Add missing static for const parent names and clock ops. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff

[PATCH 1/6] clk: stm32mp1: add missing static

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez Add missing static for const parent names and clock ops. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c

[PATCH 5/6] clk: stm32mp1: set stgen_k clock as critical

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez stgen_k should be declared as critical to avoid blocking console when ck_hsi is not used. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH 4/6] clk: stm32mp1: add missing tzc2 clock

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds tzc2 clock and rename tzc clock into tzc1 Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c| 9 ++--- include/dt-bindings/clock/stm32mp1-clks.h | 3 ++- 2 files

[PATCH 4/6] clk: stm32mp1: add missing tzc2 clock

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds tzc2 clock and rename tzc clock into tzc1 Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c| 9 ++--- include/dt-bindings/clock/stm32mp1-clks.h | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH 5/6] clk: stm32mp1: set stgen_k clock as critical

2018-04-06 Thread gabriel.fernandez
From: Gabriel Fernandez stgen_k should be declared as critical to avoid blocking console when ck_hsi is not used. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/clk-stm32mp1.c

[PATCH v3 1/2] dt-bindings: reset: add STM32MP1 resets

2018-03-19 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds the reset binding entry for STM32MP1 Signed-off-by: Gabriel Fernandez Reviewed-by: Rob Herring --- .../devicetree/bindings/reset/st,stm32mp1-rcc.txt | 6 ++

[PATCH v3 2/2] reset: stm32mp1: Enable stm32mp1 reset driver

2018-03-19 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp1 RCC IP 1 has a reset SET register and a reset CLEAR register. Writing '0' on reset SET register has no effect Writing '1' on reset SET register activates the reset of the corresponding peripheral Writing '0' on reset CLEAR

[PATCH v3 1/2] dt-bindings: reset: add STM32MP1 resets

2018-03-19 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds the reset binding entry for STM32MP1 Signed-off-by: Gabriel Fernandez Reviewed-by: Rob Herring --- .../devicetree/bindings/reset/st,stm32mp1-rcc.txt | 6 ++ include/dt-bindings/reset/stm32mp1-resets.h| 108 + 2 files

[PATCH v3 2/2] reset: stm32mp1: Enable stm32mp1 reset driver

2018-03-19 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp1 RCC IP 1 has a reset SET register and a reset CLEAR register. Writing '0' on reset SET register has no effect Writing '1' on reset SET register activates the reset of the corresponding peripheral Writing '0' on reset CLEAR register has no effect

[PATCH v3 0/2] Introduce STM32MP1 Reset driver

2018-03-19 Thread gabriel.fernandez
From: Gabriel Fernandez v3: remove unused includes fix status ops fix from Fengguang Wu for Kbuild test robot: symbol 'stm32_reset_ops' was not declared. Should it be static? use 'builtin_platform_driver' instead 'postcore_initcall' v2: Don't use reset-simple

[PATCH v3 0/2] Introduce STM32MP1 Reset driver

2018-03-19 Thread gabriel.fernandez
From: Gabriel Fernandez v3: remove unused includes fix status ops fix from Fengguang Wu for Kbuild test robot: symbol 'stm32_reset_ops' was not declared. Should it be static? use 'builtin_platform_driver' instead 'postcore_initcall' v2: Don't use reset-simple driver but a custom reset

[PATCH] ARM: dts: stm32: Enable stm32mp1 clock driver on stm32mp157c

2018-03-15 Thread gabriel.fernandez
From: Gabriel Fernandez This patch enables stm32mp1 clock driver. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 24 arch/arm/boot/dts/stm32mp157c.dtsi| 48

[PATCH] ARM: dts: stm32: Enable stm32mp1 clock driver on stm32mp157c

2018-03-15 Thread gabriel.fernandez
From: Gabriel Fernandez This patch enables stm32mp1 clock driver. Signed-off-by: Gabriel Fernandez --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 24 arch/arm/boot/dts/stm32mp157c.dtsi| 48 +++ 2 files changed, 28 insertions(+), 44

[PATCH v2 2/2] reset: stm32mp1: Enable stm32mp1 reset driver

2018-03-14 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp1 RCC IP 1 has a reset SET register and a reset CLEAR register. Writing '0' on reset SET register has no effect Writing '1' on reset SET register activates the reset of the corresponding peripheral Writing '0' on reset CLEAR

[PATCH v2 2/2] reset: stm32mp1: Enable stm32mp1 reset driver

2018-03-14 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp1 RCC IP 1 has a reset SET register and a reset CLEAR register. Writing '0' on reset SET register has no effect Writing '1' on reset SET register activates the reset of the corresponding peripheral Writing '0' on reset CLEAR register has no effect

[PATCH v2 1/2] dt-bindings: reset: add STM32MP1 resets

2018-03-14 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds the reset binding entry for STM32MP1 Signed-off-by: Gabriel Fernandez --- .../devicetree/bindings/reset/st,stm32mp1-rcc.txt | 6 ++ include/dt-bindings/reset/stm32mp1-resets.h| 108

[PATCH v2 1/2] dt-bindings: reset: add STM32MP1 resets

2018-03-14 Thread gabriel.fernandez
From: Gabriel Fernandez This patch adds the reset binding entry for STM32MP1 Signed-off-by: Gabriel Fernandez --- .../devicetree/bindings/reset/st,stm32mp1-rcc.txt | 6 ++ include/dt-bindings/reset/stm32mp1-resets.h| 108 + 2 files changed, 114 insertions(+)

[PATCH v2 0/2] Introduce STM32MP1 Reset driver

2018-03-14 Thread gabriel.fernandez
From: Gabriel Fernandez v2: Don't use reset-simple driver but a custom reset driver. add dt-binding documentation. This patch-set enables the reset of STM32MP1. STM32MP1 reset IP has a register to assert by writing '1' and another register to de-assert by writing '1'.

[PATCH v2 0/2] Introduce STM32MP1 Reset driver

2018-03-14 Thread gabriel.fernandez
From: Gabriel Fernandez v2: Don't use reset-simple driver but a custom reset driver. add dt-binding documentation. This patch-set enables the reset of STM32MP1. STM32MP1 reset IP has a register to assert by writing '1' and another register to de-assert by writing '1'. The patch 'dt-bindings:

[PATCH 2/2] reset: simple: Enable stm32mp1 reset driver

2018-03-13 Thread gabriel.fernandez
From: Gabriel Fernandez The stm32mp1 reset driver is quite similar to simple reset driver. The difference is that stm32mp1 has a reset SET register and a reset CLEAR register. Writing '0' on reset SET register has no effect Writing '1' on reset SET register

[PATCH 2/2] reset: simple: Enable stm32mp1 reset driver

2018-03-13 Thread gabriel.fernandez
From: Gabriel Fernandez The stm32mp1 reset driver is quite similar to simple reset driver. The difference is that stm32mp1 has a reset SET register and a reset CLEAR register. Writing '0' on reset SET register has no effect Writing '1' on reset SET register activates the reset of the

  1   2   3   4   5   >