Skip to content

Commit 81f889d

Browse files
tunguyen4585henrikbrixandersen
authored andcommitted
soc: dts: pinctrl: support the configurations which apply for LVDS pads
support the configurations which apply for LVDS pads + termination resistor + current reference control + rx current boost Signed-off-by: Tu Nguyen Van <[email protected]>
1 parent 05191ec commit 81f889d

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

dts/bindings/pinctrl/nxp,s32ze-pinctrl.yaml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 NXP
1+
# Copyright 2022, 2024 NXP
22
# SPDX-License-Identifier: Apache-2.0
33

44
description: |
@@ -57,13 +57,13 @@ description: |
5757
- internal pull not enabled
5858
- open drain disabled
5959
- slew rate 4 (see description in property below).
60+
- termination resistor disabled (affect LVDS pads only).
61+
- current reference control disabled (affect LVDS pads only).
62+
- Rx current boost disabled (affect LVDS pads only).
6063
61-
Additionally, Safe Mode is always disabled (reset value) and configuration that
62-
only applies to LVDS pads, which are not supported, default to reset values:
63-
- termination resistor disabled
64-
- receiver single ended
65-
- current reference control disabled
66-
- Rx current boost disabled.
64+
Additionally:
65+
- Safe Mode is always kept as reset value (disabled).
66+
- Receiver Select is always kept as reset value (enables the differential vref based receiver).
6767
6868
compatible: "nxp,s32ze-pinctrl"
6969

@@ -116,3 +116,26 @@ child-binding:
116116
5: FMAX_33 = 50 MHz
117117
6: FMAX_33 = 50 MHz
118118
7: FMAX_33 = 1 MHz
119+
120+
nxp,current-reference-control:
121+
type: boolean
122+
description: |
123+
This configuration applies the current reference control to
124+
the associated pin. It is only applicable to LVDS pads and
125+
has no effect on other types of pads
126+
127+
nxp,termination-resistor:
128+
type: boolean
129+
description: |
130+
This configuration applies the termination resistor to
131+
the associated pin. It is only applicable to LVDS pads and
132+
has no effect on other types of pads
133+
134+
nxp,rx-current-boost:
135+
type: boolean
136+
description: |
137+
RX LVDS Current Boost
138+
Boosts RX IO current. It is only applicable to LVDS pads and
139+
has no effect on other types of pads
140+
0: Current reference is 200 μA; supports data rate up to 320 Mbaud
141+
1: Current reference is 1 mA; supports data rate up to 420 Mbaud

soc/nxp/s32/s32ze/pinctrl_soc.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@
5353
SIUL2_MSCR_PUS(DT_PROP(group, bias_pull_up)) | \
5454
SIUL2_MSCR_SRE(DT_PROP(group, slew_rate)) | \
5555
SIUL2_MSCR_ODE(DT_PROP(group, drive_open_drain) && \
56-
DT_PROP(group, output_enable)) \
56+
DT_PROP(group, output_enable)) | \
57+
SIUL2_MSCR_TRC(DT_PROP(group, nxp_termination_resistor)) | \
58+
SIUL2_MSCR_CREF(DT_PROP(group, nxp_current_reference_control)) | \
59+
SIUL2_MSCR_RXCB(DT_PROP(group, nxp_rx_current_boost)) \
5760
}, \
5861
.imcr = { \
5962
.inst = NXP_S32_PINMUX_GET_IMCR_SIUL2_IDX(value), \

0 commit comments

Comments
 (0)