[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251118161936.1085477-3-antonio.borneo@foss.st.com>
Date: Tue, 18 Nov 2025 17:19:23 +0100
From: Antonio Borneo <antonio.borneo@...s.st.com>
To: Linus Walleij <linus.walleij@...aro.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Alexandre Torgue
<alexandre.torgue@...s.st.com>,
<linux-gpio@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-stm32@...md-mailman.stormreply.com>,
<linux-arm-kernel@...ts.infradead.org>, <linux-kernel@...r.kernel.org>
CC: Antonio Borneo <antonio.borneo@...s.st.com>,
Clément Le Goffic <legoffic.clement@...il.com>,
"Amelie
Delaunay" <amelie.delaunay@...s.st.com>,
Pascal Paillet
<p.paillet@...s.st.com>
Subject: [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum property 'st,package'
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@...s.st.com>
---
.../bindings/pinctrl/st,stm32-pinctrl.yaml | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
index 76d956b4a5372..73277f515a8fe 100644
--- a/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml
@@ -58,11 +58,19 @@ properties:
- description: The field mask of IRQ mux, needed if different of 0xf
st,package:
- description:
- Indicates the SOC package used.
- More details in include/dt-bindings/pinctrl/stm32-pinfunc.h
- $ref: /schemas/types.yaml#/definitions/uint32
- enum: [0x1, 0x2, 0x4, 0x8, 0x100, 0x400, 0x800]
+ description: Indicates the SOC package used.
+ oneOf:
+ - enum:
+ [0x1, 0x2, 0x4, 0x8, 0x100, 0x400, 0x800]
+ deprecated: true
+ - enum:
+ - AA
+ - AB
+ - AC
+ - AD
+ - AI
+ - AK
+ - AL
patternProperties:
'^gpio@[0-9a-f]*$':
--
2.34.1
Powered by blists - more mailing lists