Skip to content

Commit cf7a3d4

Browse files
AntonioBorneoLinus Walleij
authored andcommitted
dt-bindings: pinctrl: stm32: Use properties from pincfg-node.yaml
Don't re-declare the standard pincfg properties; take them from the default schema. Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent c0cfa3a commit cf7a3d4

1 file changed

Lines changed: 11 additions & 16 deletions

File tree

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

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ patternProperties:
151151
pinctrl group available on the machine. Each subnode will list the
152152
pins it needs, and how they should be configured, with regard to muxer
153153
configuration, pullups, drive, output high/low and output speed.
154+
$ref: /schemas/pinctrl/pincfg-node.yaml
155+
154156
properties:
155157
pinmux:
156158
$ref: /schemas/types.yaml#/definitions/uint32-array
@@ -195,35 +197,28 @@ patternProperties:
195197
pinmux = <STM32_PINMUX('A', 9, RSVD)>;
196198
};
197199
198-
bias-disable:
199-
type: boolean
200+
bias-disable: true
200201

201-
bias-pull-down:
202-
type: boolean
202+
bias-pull-down: true
203203

204-
bias-pull-up:
205-
type: boolean
204+
bias-pull-up: true
206205

207-
drive-push-pull:
208-
type: boolean
206+
drive-push-pull: true
209207

210-
drive-open-drain:
211-
type: boolean
208+
drive-open-drain: true
212209

213-
output-low:
214-
type: boolean
210+
output-low: true
215211

216-
output-high:
217-
type: boolean
212+
output-high: true
218213

219214
slew-rate:
220215
description: |
221216
0: Low speed
222217
1: Medium speed
223218
2: Fast speed
224219
3: High speed
225-
$ref: /schemas/types.yaml#/definitions/uint32
226-
enum: [0, 1, 2, 3]
220+
minimum: 0
221+
maximum: 3
227222

228223
required:
229224
- pinmux

0 commit comments

Comments
 (0)