39static const char*
const s_tag =
"ra8_board.touch";
70 uint32_t pclka_hz = 0U;
static const char * s_tag
Logging / check tag.
Board-support layer for the Renesas EK-RA8D2 v1 evaluation kit.
@ k_ra8_board_touch_target_7b
GT911 default 7-bit target address.
@ k_ra8_board_touch_bus_hz
Fast-mode I2C rate for the touch bus.
@ k_ra8_board_touch_i3c_channel
IIC_B / I3C channel 0 carries the GT911.
static ra8_io_i2c_bus_t s_touch_bus
Bound bus handle the touch driver's injected seam points at.
ra8_err_t ra8_board_touch_open(const ra8_board_touch_cfg_t *cfg)
Bring the on-board GT911 up and open the touch driver against it.
One-call bring-up of the EK-RA8D2 panel's GoodIX GT911 touch controller.
High-level Clock Generation Circuit driver.
ra8_err_t ra8_cgc_get_clock_hz(ra8_clock_id_t id, uint32_t *out_hz)
Query the current frequency of a clock-tree domain.
@ k_ra8_clock_id_pclka
PCLKA.
Validation and Error-Checking Macros for ra8-firmware.
#define RA8_CHECK_NULL_PTR(ptr, tag, message)
Reject nullptr pointer, returning k_ra8_err_null_ptr.
Error Code Definitions for ra8-firmware.
@ k_ra8_err_invalid_arg
Invalid function argument.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Injected I2C-bus seam consumed by Ring-3 I2C device drivers.
I3C Bus Interface driver – unified native-I3C + I2C-compat modes.
@ k_ra8_i3c_mode_i2c
Legacy I2C-compatibility controller.
ra8_err_t ra8_i3c_init(uint8_t channel, const ra8_i3c_cfg_t *cfg)
Initialise an I3C channel in the configured mode.
ra8_io I2C-bus facade – one controller-transfer vtable over thechip's two I2C implementations.
ra8_err_t ra8_io_i2c_bus_as_ops(const ra8_io_i2c_bus_t *bus, ra8_i2c_bus_ops_t *out)
Expose a bound bus through the Ring-3 seam ra8_i2c_bus_ops_t.
I3C I2C-compatibility backend binder for the ra8_io I2C-bus facade.
ra8_err_t ra8_io_i2c_bus_bind_i3c_compat(ra8_io_i2c_bus_t *bus, uint8_t channel)
Bind bus to I3C channel channel in I2C-compatibility mode.
Multi-touch input driver – GoodIX GT911 backend.
ra8_err_t ra8_touch_open(const ra8_touch_cfg_t *cfg)
Bring up the touch IC over the injected I2C bus seam.
@ k_ra8_touch_max_points
Hard cap (matches GT911 capacity).
The two touch settings that are an APPLICATION choice, not a board fact.
uint8_t irq_pin
Attention pin, or k_ra8_touch_irq_pin_unset for a polled controller.
uint8_t max_points
Cap on reported contacts; 0 selects the board default (the GT911's full k_ra8_touch_max_points capaci...
Caller-filled I2C controller-transfer seam (write / read / write-then-read).
Per-channel bring-up configuration for ra8_i3c_init.
Caller-allocated I2C-bus handle binding a backend to its context.
Configuration descriptor for ra8_touch_open.