[PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum property 'st,package'

Linus Walleij linus.walleij at linaro.org
Wed Nov 19 06:16:47 PST 2025


On Tue, Nov 18, 2025 at 5:20 PM Antonio Borneo
<antonio.borneo at foss.st.com> wrote:

> The property 'st,package' reports the SoC package used in the
> board DT and is used to inform the driver about which pins are
> available for use by the pinctrl driver.
> It has historically been declared as an uint32 enum, where each
> value is a power of 2.
>
> Deprecate the use of the numeric value and replace it with more
> readable string values.
>
> Signed-off-by: Antonio Borneo <antonio.borneo at foss.st.com>

I think Krzysztof is right about this, deprecate the property and
(re-)introduce it on the top level in:
Documentation/devicetree/bindings/arm/stm32/stm32.yaml

It may be a bit quirky to get to this property from the pin control
Linux driver, but it is the right thing to do.

The Vexpress has some inspirational top-level custom properties:
Documentation/devicetree/bindings/arm/arm,vexpress-juno.yaml

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list