Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pinctrl-rzg3e.h File Reference

Renesas RZ/G3E pin control (pinctrl) definitions for Zephyr. More...

Go to the source code of this file.

Macros

#define RZG_PINMUX(port, pin, func)
 Create an encoded value containing port/pin/function information.
#define RZG_FILTER_SET(filnum, filclksel)
 Encode filter stage count and clock selection into one configuration value.
Renesas RZ/G3E I/O Ports.
#define PORT_00   0x0000
 IO port 0.
#define PORT_01   0x0100
 IO port 1.
#define PORT_02   0x0200
 IO port 2.
#define PORT_03   0x0300
 IO port 3.
#define PORT_04   0x0400
 IO port 4.
#define PORT_05   0x0500
 IO port 5.
#define PORT_06   0x0600
 IO port 6.
#define PORT_07   0x0700
 IO port 7.
#define PORT_08   0x0800
 IO port 8.
#define PORT_10   0x0A00
 IO port 10.
#define PORT_11   0x0B00
 IO port 11.
#define PORT_12   0x0C00
 IO port 12.
#define PORT_13   0x0D00
 IO port 13.
#define PORT_14   0x0E00
 IO port 14.
#define PORT_15   0x0F00
 IO port 15.
#define PORT_16   0x1000
 IO port 16.
#define PORT_17   0x1100
 IO port 17.
#define PORT_19   0x1300
 IO port 19.
#define PORT_20   0x1400
 IO port 20.
#define PORT_21   0x1500
 IO port 21.
#define PORT_22   0x1600
 IO port 22.
#define PORT_28   0x1C00
 IO port 28.
Renesas RZ/G3E Dedicated Pins
#define BSP_IO_WDTUDFCA   0xFFFF0500
 WDTUDFCA.
#define BSP_IO_WDTUDFCM   0xFFFF0501
 WDTUDFCM.
#define BSP_IO_SCIF_RXD   0xFFFF0600
 SCIF_RXD.
#define BSP_IO_SCIF_TXD   0xFFFF0601
 SCIF_TXD.
#define BSP_IO_SD0CLK   0xFFFF0900
 SD0CLK.
#define BSP_IO_SD0CMD   0xFFFF0901
 SD0CMD.
#define BSP_IO_SD0RSTN   0xFFFF0902
 SD0RSTN.
#define BSP_IO_SD0PWEN   0xFFFF0903
 SD0PWEN.
#define BSP_IO_SD0IOVS   0xFFFF0904
 SD0IOVS.
#define BSP_IO_SD0DAT0   0xFFFF0A00
 SD0DAT0.
#define BSP_IO_SD0DAT1   0xFFFF0A01
 SD0DAT1.
#define BSP_IO_SD0DAT2   0xFFFF0A02
 SD0DAT2.
#define BSP_IO_SD0DAT3   0xFFFF0A03
 SD0DAT3.
#define BSP_IO_SD0DAT4   0xFFFF0A04
 SD0DAT4.
#define BSP_IO_SD0DAT5   0xFFFF0A05
 SD0DAT5.
#define BSP_IO_SD0DAT6   0xFFFF0A06
 SD0DAT6.
#define BSP_IO_SD0DAT7   0xFFFF0A07
 SD0DAT7.
Renesas RZ/G3E Digital Noise Filter Options

Set the number of stages (FILNUM) and the sampling internal (FILCLKSEL)

#define RZG_FILNUM_4_STAGE   0
 FILNUM: 4-stage filter.
#define RZG_FILNUM_8_STAGE   1
 FILNUM: 8-stage filter.
#define RZG_FILNUM_12_STAGE   2
 FILNUM: 12-stage filter.
#define RZG_FILNUM_16_STAGE   3
 FILNUM: 16-stage filter.
#define RZG_FILCLKSEL_DIV_4   0
 FILCLKSEL: divided by 4.
#define RZG_FILCLKSEL_DIV_32   1
 FILCLKSEL: divided by 32.
#define RZG_FILCLKSEL_DIV_128   2
 FILCLKSEL: divided by 128.
#define RZG_FILCLKSEL_DIV_256   3
 FILCLKSEL: divided by 256.

Detailed Description

Renesas RZ/G3E pin control (pinctrl) definitions for Zephyr.

This header provides macro constants for encoding pin function selections and pin indices for Renesas RZ/G3E SoCs. These values are used by the DeviceTree pinctrl subsystem to describe peripheral pin mappings.

Macro Definition Documentation

◆ BSP_IO_SCIF_RXD

#define BSP_IO_SCIF_RXD   0xFFFF0600

SCIF_RXD.

◆ BSP_IO_SCIF_TXD

#define BSP_IO_SCIF_TXD   0xFFFF0601

SCIF_TXD.

◆ BSP_IO_SD0CLK

#define BSP_IO_SD0CLK   0xFFFF0900

SD0CLK.

◆ BSP_IO_SD0CMD

#define BSP_IO_SD0CMD   0xFFFF0901

SD0CMD.

◆ BSP_IO_SD0DAT0

#define BSP_IO_SD0DAT0   0xFFFF0A00

SD0DAT0.

◆ BSP_IO_SD0DAT1

#define BSP_IO_SD0DAT1   0xFFFF0A01

SD0DAT1.

◆ BSP_IO_SD0DAT2

#define BSP_IO_SD0DAT2   0xFFFF0A02

SD0DAT2.

◆ BSP_IO_SD0DAT3

#define BSP_IO_SD0DAT3   0xFFFF0A03

SD0DAT3.

◆ BSP_IO_SD0DAT4

#define BSP_IO_SD0DAT4   0xFFFF0A04

SD0DAT4.

◆ BSP_IO_SD0DAT5

#define BSP_IO_SD0DAT5   0xFFFF0A05

SD0DAT5.

◆ BSP_IO_SD0DAT6

#define BSP_IO_SD0DAT6   0xFFFF0A06

SD0DAT6.

◆ BSP_IO_SD0DAT7

#define BSP_IO_SD0DAT7   0xFFFF0A07

SD0DAT7.

◆ BSP_IO_SD0IOVS

#define BSP_IO_SD0IOVS   0xFFFF0904

SD0IOVS.

◆ BSP_IO_SD0PWEN

#define BSP_IO_SD0PWEN   0xFFFF0903

SD0PWEN.

◆ BSP_IO_SD0RSTN

#define BSP_IO_SD0RSTN   0xFFFF0902

SD0RSTN.

◆ BSP_IO_WDTUDFCA

#define BSP_IO_WDTUDFCA   0xFFFF0500

WDTUDFCA.

◆ BSP_IO_WDTUDFCM

#define BSP_IO_WDTUDFCM   0xFFFF0501

WDTUDFCM.

◆ PORT_00

#define PORT_00   0x0000

IO port 0.

◆ PORT_01

#define PORT_01   0x0100

IO port 1.

◆ PORT_02

#define PORT_02   0x0200

IO port 2.

◆ PORT_03

#define PORT_03   0x0300

IO port 3.

◆ PORT_04

#define PORT_04   0x0400

IO port 4.

◆ PORT_05

#define PORT_05   0x0500

IO port 5.

◆ PORT_06

#define PORT_06   0x0600

IO port 6.

◆ PORT_07

#define PORT_07   0x0700

IO port 7.

◆ PORT_08

#define PORT_08   0x0800

IO port 8.

◆ PORT_10

#define PORT_10   0x0A00

IO port 10.

◆ PORT_11

#define PORT_11   0x0B00

IO port 11.

◆ PORT_12

#define PORT_12   0x0C00

IO port 12.

◆ PORT_13

#define PORT_13   0x0D00

IO port 13.

◆ PORT_14

#define PORT_14   0x0E00

IO port 14.

◆ PORT_15

#define PORT_15   0x0F00

IO port 15.

◆ PORT_16

#define PORT_16   0x1000

IO port 16.

◆ PORT_17

#define PORT_17   0x1100

IO port 17.

◆ PORT_19

#define PORT_19   0x1300

IO port 19.

◆ PORT_20

#define PORT_20   0x1400

IO port 20.

◆ PORT_21

#define PORT_21   0x1500

IO port 21.

◆ PORT_22

#define PORT_22   0x1600

IO port 22.

◆ PORT_28

#define PORT_28   0x1C00

IO port 28.

◆ RZG_FILCLKSEL_DIV_128

#define RZG_FILCLKSEL_DIV_128   2

FILCLKSEL: divided by 128.

◆ RZG_FILCLKSEL_DIV_256

#define RZG_FILCLKSEL_DIV_256   3

FILCLKSEL: divided by 256.

◆ RZG_FILCLKSEL_DIV_32

#define RZG_FILCLKSEL_DIV_32   1

FILCLKSEL: divided by 32.

◆ RZG_FILCLKSEL_DIV_4

#define RZG_FILCLKSEL_DIV_4   0

FILCLKSEL: divided by 4.

◆ RZG_FILNUM_12_STAGE

#define RZG_FILNUM_12_STAGE   2

FILNUM: 12-stage filter.

◆ RZG_FILNUM_16_STAGE

#define RZG_FILNUM_16_STAGE   3

FILNUM: 16-stage filter.

◆ RZG_FILNUM_4_STAGE

#define RZG_FILNUM_4_STAGE   0

FILNUM: 4-stage filter.

◆ RZG_FILNUM_8_STAGE

#define RZG_FILNUM_8_STAGE   1

FILNUM: 8-stage filter.

◆ RZG_FILTER_SET

#define RZG_FILTER_SET ( filnum,
filclksel )
Value:
(((filnum) & 0x3) << 0x2) | (filclksel & 0x3)

Encode filter stage count and clock selection into one configuration value.

Encoding:

  • bits [3:2] = FILNUM (masked to 2 bits)
  • bits [1:0] = FILCLKSEL (masked to 2 bits)
Parameters
filnumFilter stage selection (RZG_FILNUM_*).
filclkselFilter clock selection (RZG_FILCLKSEL_*).
Returns
Encoded filter configuration value.

◆ RZG_PINMUX

#define RZG_PINMUX ( port,
pin,
func )
Value:
(port | pin | ((func) << 4))

Create an encoded value containing port/pin/function information.

Parameters
portPort identifier (PORT_00..PORT_28).
pinPin number within the port.
funcPin function selector.
Returns
Encoded pinmux value.