devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/13] Introduction of STM32MP13 RCC driver (Reset Clock Controller)
@ 2022-02-25 13:31 gabriel.fernandez
  2022-02-25 13:31 ` [PATCH v2 01/13] dt-bindings: rcc: stm32: add new compatible for STM32MP13 SoC gabriel.fernandez
                   ` (13 more replies)
  0 siblings, 14 replies; 24+ messages in thread
From: gabriel.fernandez @ 2022-02-25 13:31 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
	Maxime Coquelin, Alexandre Torgue, Philipp Zabel,
	Gabriel Fernandez
  Cc: linux-clk, devicetree, linux-stm32, linux-arm-kernel,
	linux-kernel

From: Gabriel Fernandez <gabriel.fernandez@foss.st.com>

This patchset introduce the reset and clock driver of STM32MP13 SoC.
It uses a clk-stm32-core module to manage stm32 gate, mux and divider
for STM32MP13 and for new future STMP32 SoC.

v2:
  - Resend because patch 9,10,12,13 has not been sent
  - add Reviewed by Krzysztof Kozlowski for patch 1

Gabriel Fernandez (13):
  dt-bindings: rcc: stm32: add new compatible for STM32MP13 SoC
  clk: stm32: Introduce STM32MP13 RCC drivers (Reset Clock Controller)
  clk: stm32mp13: add stm32_mux clock management
  clk: stm32mp13: add stm32_gate management
  clk: stm32mp13: add stm32 divider clock
  clk: stm32mp13: add composite clock
  clk: stm32mp13: manage secured clocks
  clk: stm32mp13: add all STM32MP13 peripheral clocks
  clk: stm32mp13: add all STM32MP13 kernel clocks
  clk: stm32mp13: add multi mux function
  clk: stm32mp13: add safe mux management
  ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP13
  ARM: dts: stm32: add RCC on STM32MP13x SoC family

 .../bindings/clock/st,stm32mp1-rcc.yaml       |    2 +
 arch/arm/boot/dts/stm32mp131.dtsi             |  128 +-
 arch/arm/boot/dts/stm32mp133.dtsi             |    4 +-
 arch/arm/boot/dts/stm32mp13xf.dtsi            |    3 +-
 drivers/clk/Kconfig                           |    5 +
 drivers/clk/Makefile                          |    1 +
 drivers/clk/stm32/Makefile                    |    1 +
 drivers/clk/stm32/clk-stm32-core.c            |  707 +++++++
 drivers/clk/stm32/clk-stm32-core.h            |  239 +++
 drivers/clk/stm32/clk-stm32mp13.c             | 1580 +++++++++++++++
 drivers/clk/stm32/reset-stm32.c               |  122 ++
 drivers/clk/stm32/reset-stm32.h               |    8 +
 drivers/clk/stm32/stm32mp13_rcc.h             | 1748 +++++++++++++++++
 include/dt-bindings/clock/stm32mp13-clks.h    |  229 +++
 include/dt-bindings/reset/stm32mp13-resets.h  |  100 +
 15 files changed, 4817 insertions(+), 60 deletions(-)
 create mode 100644 drivers/clk/stm32/Makefile
 create mode 100644 drivers/clk/stm32/clk-stm32-core.c
 create mode 100644 drivers/clk/stm32/clk-stm32-core.h
 create mode 100644 drivers/clk/stm32/clk-stm32mp13.c
 create mode 100644 drivers/clk/stm32/reset-stm32.c
 create mode 100644 drivers/clk/stm32/reset-stm32.h
 create mode 100644 drivers/clk/stm32/stm32mp13_rcc.h
 create mode 100644 include/dt-bindings/clock/stm32mp13-clks.h
 create mode 100644 include/dt-bindings/reset/stm32mp13-resets.h

-- 
2.25.1


^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: [Linux-stm32] [PATCH v2 12/13] ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP13
@ 2022-03-16 11:01 Etienne Carriere
  2022-03-16 11:17 ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Etienne Carriere @ 2022-03-16 11:01 UTC (permalink / raw)
  To: Ahmad Fatoum, Gabriel FERNANDEZ, Michael Turquette, Stephen Boyd,
	Rob Herring, Krzysztof Kozlowski, Maxime Coquelin,
	Alexandre Torgue, Philipp Zabel, devicetree, linux-kernel,
	linux-clk,
	moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE,
	linux-stm32, Pengutronix Kernel Team, Etienne Carriere

Hi Ahmad,

> Helo Gabriel,
>
> On 03.03.22 14:09, Gabriel FERNANDEZ wrote:
>>
>> On 2/25/22 16:13, Ahmad Fatoum wrote:
>>> Hello Gabriel,
>>>
>>> On 25.02.22 14:31, gabriel.fernandez@foss.st.com wrote:
>>>> From: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
>>>> +    firmware {
>>>> +        optee {
>>>> +            method = "smc";
>>>> +            compatible = "linaro,optee-tz";
>>>> +        };
>>>> +
>>>> +        scmi: scmi {
>>>> +            compatible = "linaro,scmi-optee";
>>> This compatible doesn't seem to be documented upstream. I am looking at v5.17-rc5.
>>> Do you have a reference detailing the difference between this conduit and
>>> plain arm,scmi-smc (as used with TF-A on the STM32MP151).
>>>
>>> Cheers,
>>> Ahmad
>>
>> Hi
>>
>> Ahmad,
>>
>> it's on going.
>>
>> https://lore.kernel.org/linux-arm-kernel/20211029102118.GG6526@e120937-lin/T/#mf46c83f0aadce3061ee93fa22159405f38d881a0
>
> I've found that thread in the meantime and got some clarification on why a new
> transport for OP-TEE was added. One question I still have though is why make
> this transport the default for STM32MP13x instead of using SCMI over SMC like
> you do for STM32MP15x. OP-TEE could still be made to service SCMI over SMC
> and it would allow people employing TF-A as SCMI provider an easier migration
> to the newer SoC.
>

Just to rephrase a bit what's being said in the referred mail thread:
On STM32MP13x, there are SCMI messages that must be processed inside a
thread execution context in the SCMI server. There is no standard SMC
function ID defined that the SCMI/SMC transport could use for that
purpose. OP-TEE provides such a threaded context. Therefore STM32MP13x
explicitly expects SCMI services based on SCMI/OP-TEE transport, not
SCMI/SMC transport.

Best regards,
etienne

> Cheers,
> Ahmad

>
>>
>>> +            #address-cells = <1>;
>>> +            #size-cells = <0>;
>>> +            linaro,optee-channel-id = <0>;
>>> +            shmem = <&scmi_shm>;
>>> +
>>> +            scmi_clk: protocol@14 {
>>> +                reg = <0x14>;
>>> +                #clock-cells = <1>;
>>> +            };
>>> +
>>> +            scmi_reset: protocol@16 {
>>> +                reg = <0x16>;
>>> +                #reset-cells = <1>;
>>> +            };
>>> +        };
>>> +    };
>>>       clocks {
>>>           clk_axi: clk-axi {
>>>               #clock-cells = <0>;
>>
>


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2022-03-16 11:17 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-25 13:31 [PATCH v2 00/13] Introduction of STM32MP13 RCC driver (Reset Clock Controller) gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 01/13] dt-bindings: rcc: stm32: add new compatible for STM32MP13 SoC gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 02/13] clk: stm32: Introduce STM32MP13 RCC drivers (Reset Clock Controller) gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 03/13] clk: stm32mp13: add stm32_mux clock management gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 04/13] clk: stm32mp13: add stm32_gate management gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 05/13] clk: stm32mp13: add stm32 divider clock gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 06/13] clk: stm32mp13: add composite clock gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 07/13] clk: stm32mp13: manage secured clocks gabriel.fernandez
2022-02-25 15:19   ` [Linux-stm32] " Ahmad Fatoum
2022-02-25 13:31 ` [PATCH v2 08/13] clk: stm32mp13: add all STM32MP13 peripheral clocks gabriel.fernandez
2022-03-12  2:53   ` Stephen Boyd
2022-02-25 13:31 ` [PATCH v2 09/13] clk: stm32mp13: add all STM32MP13 kernel clocks gabriel.fernandez
2022-03-12  2:54   ` Stephen Boyd
2022-02-25 13:31 ` [PATCH v2 10/13] clk: stm32mp13: add multi mux function gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 11/13] clk: stm32mp13: add safe mux management gabriel.fernandez
2022-02-25 13:31 ` [PATCH v2 12/13] ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP13 gabriel.fernandez
2022-02-25 15:13   ` [Linux-stm32] " Ahmad Fatoum
2022-03-03 13:09     ` Gabriel FERNANDEZ
2022-03-08  9:58       ` Ahmad Fatoum
2022-02-25 13:31 ` [PATCH v2 13/13] ARM: dts: stm32: add RCC on STM32MP13x SoC family gabriel.fernandez
2022-02-25 15:28 ` [Linux-stm32] [PATCH v2 00/13] Introduction of STM32MP13 RCC driver (Reset Clock Controller) Ahmad Fatoum
2022-02-25 15:43   ` Gabriel FERNANDEZ
  -- strict thread matches above, loose matches on Subject: below --
2022-03-16 11:01 [Linux-stm32] [PATCH v2 12/13] ARM: dts: stm32: enable optee firmware and SCMI support on STM32MP13 Etienne Carriere
2022-03-16 11:17 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).