renesas,rzg-pinctrl

Vendor: Renesas Electronics Corporation

Description

Below generic example shows of supported pinctrl definitions:

  #include <zephyr/dt-bindings/pinctrl/renesas/pinctrl_rzg3s.h>
  example_pins: device_pin {
      device-pinmux {
        pinmux = <RZG_PINMUX(PORT_08, 1, 5)>,
                 <RZG_PINMUX(PORT_08, 2, 5)>;
        bias_pull_up;
        renesas,filter = RZG_FILTER_SET(RZG_FILNUM_8_STAGE,RZG_FILCLKSEL_DIV_18000);
        drive-strength = <1>;
      };

      device-spins {
        pins = <BSP_IO_XSPI_IO0>, <BSP_IO_XSPI_IO4>;
        input-enable;
        renesas,filter = RZG_FILTER_SET(RZG_FILNUM_8_STAGE,RZG_FILCLKSEL_DIV_18000);
        drive-strength = <2>;
      };
    };

Properties

Top level properties

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

Node specific properties

Properties not inherited from the base binding file.

(None)

Deprecated node specific properties

Deprecated properties not inherited from the base binding file.

(None)

Base properties

Properties inherited from the base binding file, which defines common properties that may be set on many nodes. Not all of these may apply to the “renesas,rzg-pinctrl” compatible.

Name

Type

Details

reg

array

register space

This property is required.

See Important properties for more information.

reg-names

string-array

name of each register space

This property is required.

status

string

indicates the operational status of a device

Legal values: 'ok', 'okay', 'disabled', 'reserved', 'fail', 'fail-sss'

See Important properties for more information.

compatible

string-array

compatible strings

This property is required.

See Important properties for more information.

interrupts

array

interrupts for device

See Important properties for more information.

interrupts-extended

compound

extended interrupt specifier for device

interrupt-names

string-array

name of each interrupt

interrupt-parent

phandle

phandle to interrupt controller node

label

string

No description provided for this label

See Important properties for more information.

clocks

phandle-array

Clock gate information

clock-names

string-array

name of each clock

#address-cells

int

number of address cells in reg property

#size-cells

int

number of size cells in reg property

dmas

phandle-array

DMA channels specifiers

dma-names

string-array

Provided names of DMA channel specifiers

io-channels

phandle-array

IO channels specifiers

io-channel-names

string-array

Provided names of IO channel specifiers

mboxes

phandle-array

mailbox / IPM channels specifiers

mbox-names

string-array

Provided names of mailbox / IPM channel specifiers

power-domains

phandle-array

Power domain specifiers

power-domain-names

string-array

Provided names of power domain specifiers

#power-domain-cells

int

Number of cells in power-domains property

zephyr,deferred-init

boolean

Do not initialize device automatically on boot. Device should be manually
initialized using device_init().

wakeup-source

boolean

Property to identify that a device can be used as wake up source.

When this property is provided a specific flag is set into the
device that tells the system that the device is capable of
wake up the system.

Wake up capable devices are disabled (interruptions will not wake up
the system) by default but they can be enabled at runtime if necessary.

zephyr,pm-device-runtime-auto

boolean

Automatically configure the device for runtime power management after the
init function runs.

zephyr,disabling-power-states

phandles

List of power states that will disable this device power.

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 RZG_PINMUX()
helper macro in pinctrl_rzg.h

pins

array

Special Purpose pins configuration node.
Values are define in pinctrl_rzg.h.
Ex: BSP_IO_XSPI_IO0,BSP_IO_I3C_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 RZG_FILTER_SET() helper macro in pinctrl_rzg.h to specify
FILNUM_m and FILCLKSEL_m. With 24Mhz external clock:
- min debounce time will be 166.666ns for FILNUM_m=0 and FILCLKSEL_m=0
- max debounce time will be 24ms for FILNUM_m=3 and FILCLKSEL_m=3.
This property intentionally redefined to avoid unnecessary conversation from usec to
FILNUM_m and FILCLKSEL_m values depending on external clock value as this configuration
is static.

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)