Skip to content

Commit 70ea3b1

Browse files
tswaehnkartben
authored andcommitted
drivers: pinctrl: added slew-rate setting for the sy1xx soc
With this commit we have the option to set the pad slew-rates for all available pins on the soc. Signed-off-by: Sven Ginka <s.ginka@sensry.de>
1 parent 79f5575 commit 70ea3b1

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

dts/bindings/pinctrl/sensry,sy1xx-pinctrl.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,19 @@ child-binding:
7474
description: |
7575
Pin mux selection. See the SOC level pinctrl header
7676
for a defined list of these options.
77+
78+
slew-rate:
79+
type: int
80+
enum:
81+
- 0 # 2pF
82+
- 1 # 4pF
83+
- 2 # 8pF
84+
- 3 # 16pF
85+
default: 0
86+
description: |
87+
Selects the output drive strength. Choices represent approximate capacitive load.
88+
The default corresponds to the reset value of the register field.
89+
- 0.. 2pF, Weakest drive
90+
- 1.. 4pF, Low drive
91+
- 2.. 8pF, Medium drive
92+
- 3.. 16pF, Strongest drive

soc/sensry/ganymed/sy1xx/common/pinctrl_soc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ typedef struct {
4545
(SY1XX_PULL_UP_ENABLE * DT_PROP(node, bias_pull_up)) << SY1XX_PAD_PULL_UP_OFFS | \
4646
(SY1XX_PULL_DOWN_ENABLE * DT_PROP(node, bias_pull_down)) \
4747
<< SY1XX_PAD_PULL_DOWN_OFFS | \
48+
(DT_PROP(node, slew_rate) << SY1XX_PAD_DRIVE_OFFS) | \
4849
(SY1XX_TRISTATE_ENABLE * DT_PROP(node, bias_high_impedance)) \
4950
<< SY1XX_PAD_TRISTATE_OFFS | \
5051
(SY1XX_OUTPUT_ENABLE & (1 - DT_PROP(node, input_enable))) << SY1XX_PAD_DIR_OFFS \

0 commit comments

Comments
 (0)