Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 17 additions & 29 deletions dts/bindings/pinctrl/st,stm32-pinctrl.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
# Copyright (c) 2020 Linaro Limited
# SPDX-License-Identifier: Apache-2.0

description: STM32 Pin controller Node
description: |
STM32 Pin controller Node
Based on pincfg-node.yaml binding.

Note: `bias-disable` and `drive-push-pull` are default pin configurations.
They will be applied in case no `bias-foo` or `driver-bar` properties
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if we can do default: true in here for these?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if we can do default: true in here for these?

No; default: true can't be made to work. #31366 (comment)

are set.

compatible: "st,stm32-pinctrl"

include: [base.yaml]
include:
- name: base.yaml
- name: pincfg-node.yaml
child-binding:
property-allowlist:
- bias-disable
- bias-pull-down
- bias-pull-up
- drive-push-pull
- drive-open-drain

properties:
reg:
Expand Down Expand Up @@ -46,33 +61,6 @@ child-binding:
pinmux = <STM32_PINMUX('A', 9, ANALOG)>;
};

bias-disable:
required: false
type: boolean
description: Pin bias (push-pull) disabled. This is the default pin
configuration and will be applied if no bias- property is set.

bias-pull-down:
required: false
type: boolean
description: Pull down on pin.

bias-pull-up:
required: false
type: boolean
description: Pull up on pin.

drive-push-pull:
required: false
type: boolean
description: Pin driven actively high and low. This is the default pin
configuration and will be applied if no drive- property is set.

drive-open-drain:
required: false
type: boolean
description: Pin driven in open drain.

slew-rate:
required: false
type: string
Expand Down