Re: [PATCH v3 1/4] dt-bindings: clock: convert stm32 rcc bindings to json-schema
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Date: 2025-01-14 09:37:08
Also in:
linux-clk, linux-devicetree, lkml
On Tue, Jan 14, 2025 at 10:29 AM Krzysztof Kozlowski [off-list ref] wrote:
On 14/01/2025 10:11, Dario Binacchi wrote:quoted
The patch converts st,stm32-rcc.txt to the JSON schema, but it does more than that. The old bindings, in fact, only covered the stm32f{4,7} platforms and not the stm32h7. Therefore, to avoid patch submission tests failing, it was necessary to add the corresponding compatible (i. e. st,stm32h743-rcc) and specify that, in this case, 3 are the clocks instead of the 2 required for the stm32f{4,7} platforms. Additionally, the old bindings made no mention of the st,syscfg property, which is used by both the stm32f{4,7} and the stm32h7 platforms. The patch also fixes the files referencing to the old st,stm32-rcc.txt. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> Reviewed-by: Krzysztof Kozlowski <redacted>Drop the tag. It was conditional.quoted
+ +properties: + compatible: + oneOf: + - items: + - const: st,stm32f42xx-rcc + - const: st,stm32-rcc + - items: + - enum: + - st,stm32f469-rcc + - const: st,stm32f42xx-rcc + - const: st,stm32-rcc + - items: + - const: st,stm32f746-rcc + - const: st,stm32-rccNothing improved here.
In my humble opinion, there is nothing to improve. Any modification made causes the tests to fail. $ git grep st,stm32f746-rcc arch/ arch/arm/boot/dts/st/stm32f746.dtsi: compatible = "st,stm32f746-rcc", "st,stm32-rcc"; arch/arm/boot/dts/st/stm32f769-disco.dts: compatible = "st,stm32f769-rcc", "st,stm32f746-rcc", "st,stm32-rcc"; Or am I missing something? Thanks and regards, Dario
Best regards, Krzysztof
-- Dario Binacchi Senior Embedded Linux Developer dario.binacchi@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com