Skip to content

Commit e2297f7

Browse files
committed
dt-bindings: pinctrl: stm32: Fix missing 'clocks' property in examples
Now that examples are validated against the DT schema, an error with required 'clocks' property missing is exposed: Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.example.dt.yaml: \ pinctrl@40020000: gpio@0: 'clocks' is a required property Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.example.dt.yaml: \ pinctrl@50020000: gpio@1000: 'clocks' is a required property Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.example.dt.yaml: \ pinctrl@50020000: gpio@2000: 'clocks' is a required property Add the missing 'clocks' properties to the examples to fix the errors. Fixes: 2c9239c ("dt-bindings: pinctrl: Convert stm32 pinctrl bindings to json-schema") Cc: Linus Walleij <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: [email protected] Cc: [email protected] Acked-by: Alexandre TORGUE <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent 20051f5 commit e2297f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ required:
197197
examples:
198198
- |
199199
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
200+
#include <dt-bindings/mfd/stm32f4-rcc.h>
200201
//Example 1
201202
pinctrl@40020000 {
202203
#address-cells = <1>;
@@ -210,6 +211,7 @@ examples:
210211
#gpio-cells = <2>;
211212
reg = <0x0 0x400>;
212213
resets = <&reset_ahb1 0>;
214+
clocks = <&rcc 0 STM32F4_AHB1_CLOCK(GPIOA)>;
213215
st,bank-name = "GPIOA";
214216
};
215217
};
@@ -227,6 +229,7 @@ examples:
227229
#gpio-cells = <2>;
228230
reg = <0x1000 0x400>;
229231
resets = <&reset_ahb1 0>;
232+
clocks = <&rcc 0 STM32F4_AHB1_CLOCK(GPIOB)>;
230233
st,bank-name = "GPIOB";
231234
gpio-ranges = <&pinctrl 0 0 16>;
232235
};
@@ -236,6 +239,7 @@ examples:
236239
#gpio-cells = <2>;
237240
reg = <0x2000 0x400>;
238241
resets = <&reset_ahb1 0>;
242+
clocks = <&rcc 0 STM32F4_AHB1_CLOCK(GPIOC)>;
239243
st,bank-name = "GPIOC";
240244
ngpios = <5>;
241245
gpio-ranges = <&pinctrl 0 16 3>,

0 commit comments

Comments
 (0)