renesas,rza-pinctrl

Vendor: Renesas Electronics Corporation

Description

Below generic example shows of supported pinctrl definitions:

  #include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rza-common.h>
  example_pins: device_pin {
      device-pinmux {
        pinmux = <RZA_PINMUX(PORT_08, 1, 5)>,
                 <RZA_PINMUX(PORT_08, 2, 5)>;
        bias_pull_up;
        renesas,filter = RZA_FILTER_SET(RZA_FILNUM_8_STAGE,RZA_FILCLKSEL_DIV_18000);
        drive-strength = <1>;
        slew-rate = "fast";
      };

      device-spins {
        pins = <BSP_IO_XSPI_IO0>, <BSP_IO_XSPI_IO4>;
        input-enable;
        renesas,filter = RZA_FILTER_SET(RZA_FILNUM_8_STAGE,RZA_FILCLKSEL_DIV_18000);
        drive-strength = <2>;
        slew-rate = "fast";
      };
    };

Properties

Top level properties

These property descriptions apply to “renesas,rza-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 RZA_PINMUX()
helper macro in pinctrl_rza.h

pins

array

Special Purpose pins configuration node.
Values are define in pinctrl_rza.h.
Ex: BSP_IO_XSPI_IO0,BSP_IO_I3C_SCL,...

drive-strength

int

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

renesas,filter

int

Digital Noise Filter configuration for a pin which shall be defined
using RZA_FILTER_SET() helper macro in pinctrl_rza.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-disable

boolean

disable any pin bias

bias-high-impedance

boolean

high impedance mode ("third-state", "floating")

bias-pull-up

boolean

enable pull-up resistor

bias-pull-down

boolean

enable pull-down resistor

bias-pull-pin-default

boolean

use pin's default pull state

input-enable

boolean

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

input-disable

boolean

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

power-source

int

select between different power supplies

low-power-enable

boolean

enable low power mode

low-power-disable

boolean

disable low power mode

output-enable

boolean

enable output on a pin without actively driving it (e.g. enable an output
buffer)