Skip to content

Commit 68344f8

Browse files
committed
dts/bindings: pinctrl: Include pincfg-node in st,stm32-pinctrl.yaml
Make use of bindings filtering to inlcude pincfg-node.yaml in st,stm32-pinctrl.yaml Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 930893f commit 68344f8

File tree

1 file changed

+17
-29
lines changed

1 file changed

+17
-29
lines changed

dts/bindings/pinctrl/st,stm32-pinctrl.yaml

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
# Copyright (c) 2020 Linaro Limited
22
# SPDX-License-Identifier: Apache-2.0
33

4-
description: STM32 Pin controller Node
4+
description: |
5+
STM32 Pin controller Node
6+
Based on pincfg-node.yaml binding.
7+
8+
Note: `bias-disable` and `drive-push-pull` are default pin configurations.
9+
They will be applied in case no `bias-foo` or `driver-bar` properties
10+
are set.
511
612
compatible: "st,stm32-pinctrl"
713

8-
include: [base.yaml]
14+
include:
15+
- name: base.yaml
16+
- name: pincfg-node.yaml
17+
child-binding:
18+
property-allowlist:
19+
- bias-disable
20+
- bias-pull-down
21+
- bias-pull-up
22+
- drive-push-pull
23+
- drive-open-drain
924

1025
properties:
1126
reg:
@@ -46,33 +61,6 @@ child-binding:
4661
pinmux = <STM32_PINMUX('A', 9, ANALOG)>;
4762
};
4863
49-
bias-disable:
50-
required: false
51-
type: boolean
52-
description: Pin bias (push-pull) disabled. This is the default pin
53-
configuration and will be applied if no bias- property is set.
54-
55-
bias-pull-down:
56-
required: false
57-
type: boolean
58-
description: Pull down on pin.
59-
60-
bias-pull-up:
61-
required: false
62-
type: boolean
63-
description: Pull up on pin.
64-
65-
drive-push-pull:
66-
required: false
67-
type: boolean
68-
description: Pin driven actively high and low. This is the default pin
69-
configuration and will be applied if no drive- property is set.
70-
71-
drive-open-drain:
72-
required: false
73-
type: boolean
74-
description: Pin driven in open drain.
75-
7664
slew-rate:
7765
required: false
7866
type: string

0 commit comments

Comments
 (0)