Skip to content

Add s32n79 rcon support#30

Open
costinctin wants to merge 7 commits intonxp-imx:masterfrom
costinctin:add-s32n79-RCON-support
Open

Add s32n79 rcon support#30
costinctin wants to merge 7 commits intonxp-imx:masterfrom
costinctin:add-s32n79-RCON-support

Conversation

@costinctin
Copy link
Copy Markdown
Contributor

Functionality that enables RCON support for S32N79RDB

@costinctin costinctin force-pushed the add-s32n79-RCON-support branch 8 times, most recently from b01e4cd to 76d3690 Compare April 8, 2026 12:52
Fix reading of PCAL9555 pin value. Given a mistake, the pin bitmask
was not applied correctly on the read value buffer.

Signed-off-by: Costin Constantin <costin.constantin@nxp.com>
Fix issue of wrongly displaying the serial no. with lsftdi command.

Signed-off-by: Costin Constantin <costin.constantin@nxp.com>
Change S32n79rdb board id so that it does not overlap with
other boards already available.

Signed-off-by: Costin Constantin <costin.constantin@nxp.com>
Add possibility to change default 400KHz I2C frequency by adding
a new "frequency" parameter for the ft4232h_i2c device path.
This is important because there are cases when HW design implies
an I2C clock speed for a rail and another for a different rail.

Signed-off-by: Costin Constantin <costin.constantin@nxp.com>
The S32N79RDB boot modes cannot be controlled from on board DIP
switches. The only way to change where to boot from (SD/eMMC/QSPI/serial)
is to program the RCON EEPROM. At boot time, the CPU reads it and
decides where to boot from.

The user can list the available boot modes via the "lsbootmode" command.
For eMMC/QSPI/SD, basic configurations are provided.
To change any of the boot configuration, the "custom" bootmode is
provided. Used standalone, it writes the RCON EEPROM from address 0x0.
It is the only way to set serial boot mode. In conjunction with
"cfg_addr" option it can set bytes in the EEPROM starting from the
value passed to it (e.g. -cfg_addr=0x05 starts writing from address 0x05).
Only the first 20 bytes of the RCON are available for read/write.

Signed-off-by: Costin Constantin <costin.constantin@nxp.com>
@costinctin costinctin force-pushed the add-s32n79-RCON-support branch from 76d3690 to 7d45967 Compare April 15, 2026 12:45
There are cases when some pins are not direct I/Os. They are
used to activate certain HW modules and must be brought to a
certain value before exit, otherwise functionality might be
affected.
An example is S32N79RDB board, where leaving EN_CNTL_I2C or
EN_RCON_I2C lines active, puts the FTDI4232's I2C lines in
parallel with the CPU's and creates interferences during debug
time.

Signed-off-by: Costin Constantin <costin.constantin@nxp.com>
Enable setting FT4232 ports as GPIO.
Aside from port B that is used for I2C communication, port C
or port D might be used as GPIOs. This is true for S32N79RDB
that has TP32, TP30, TP29 and TP27 connected to Port C and D.

Signed-off-by: Costin Constantin <costin.constantin@nxp.com>
@costinctin costinctin force-pushed the add-s32n79-RCON-support branch from 7d45967 to 7a5d9bf Compare April 15, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant