renesas,rzv-pinctrl

Vendor: Renesas Electronics Corporation

Description

Renesas RZ/V pin controller

The Renesas RZ/V pin controller is a node responsible for controlling
pin function selection and pin properties, such as routing the TX and RX of UART2
to pin 0 and pin 1 of port 48.

#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rzv-common.h>
example_pins: device_pin {
    device-pinmux {
      pinmux = <RZV_PINMUX(PORT_04, 0, 2)>,
               <RZV_PINMUX(PORT_04, 1, 2);
      bias_pull_up;
      renesas,filter = RZV_FILTER_SET(RZV_FILNUM_8_STAGE,RZV_FILCLKSEL_DIV_18000);
      drive-strength = <1>;
      slew-rate = <fast>;
    };

    device-spins {
      pins = <BSP_IO_QSPI0_IO0>, <BSP_IO_QSPI0_IO3>;
      input-enable;
      renesas,filter = RZV_FILTER_SET(RZV_FILNUM_8_STAGE,RZV_FILCLKSEL_DIV_18000);
      drive-strength = <2>;
      slew-rate = "fast";
    };
  };

Properties

Top level properties

These property descriptions apply to “renesas,rzv-pinctrl” nodes themselves. This page also describes child node properties in the following sections.

Properties not inherited from the base binding file.

(None)

Grandchild node properties

Name

Type

Details

pinmux

array

Pinmux configuration node.
Values are constructed from GPIO port number, pin number, and
alternate function configuration number using the RZV_PINMUX()
helper macro in pinctrl-rzv-common.h

pins

array

Special Purpose pins configuration node.
Values are define in pinctrl-rzv-common.h.
Ex: BSP_IO_QSPI0_IO0,BSP_IO_RIIC1_SCL,...

drive-strength

int

Maximum sink or source current in mA for pin which shell be selected
depending on device and pin group.

renesas,filter

int

Digital Noise Filter configuration for a pin which shell be defined
using RZV_FILTER_SET() helper macro in pinctrl-rzv-common.h to specify
FILNUM and FILCLKSEL. With 24Mhz external clock:
- min debounce time will be 166.666ns for FILNUM=0 and FILCLKSEL=0
- max debounce time will be 24ms for FILNUM=3 and FILCLKSEL=3.
This property intentionally redefined to avoid unnecessary conversation from usec to
FILNUM and FILCLKSEL values depending on external clock value as this configuration
is static.

slew-rate

string

Select slew rate for pin.

Default value: fast

Legal values: 'slow', 'fast'

bias-pull-up

boolean

enable pull-up resistor

bias-pull-down

boolean

enable pull-down resistor

input-enable

boolean

enable input on pin (e.g. enable an input buffer, no effect on output)