Skip to contentSkip to conversation

board: ti: k2g: Program PadConfig_202 before locking RSTMUX8

PATCH In review Suman Anna 2 participants 2 messages Jul 26, 2021 – Jul 29, 2021

lore
Share & tools
lore

Suman Anna

author
#0 lore raw

PATCH 1/1 board: ti: k2g: Program PadConfig_202 before locking RSTMUX8

The PADCONFIG_202 register (0x02621328) is affected by the locking of the RSTMUX8 register (0x02620328), and so cannot be configured in kernel. This has been confirmed as a hardware bug and affects all K2G SoCs.

Setup the pinmux for this pin before locking the RSTMUX8 register to allow the ICSS1 PRU1 Ethernet PHY port to work properly. The workaround was added only for the K2G-ICE board to configure the pins needed for the PRUSS Ethernet usecase.

---
 board/ti/ks2_evm/mux-k2g.h | 3 +++
 1 file changed, 3 insertions(+)
board/ti/ks2_evm/mux-k2g.h +3 -0
index fa6c92cbdf1e..f24e62850b8b 100644
@@ -368,6 +368,9 @@ struct pin_cfg k2g_ice_evm_pin_cfg[] = {
 	{ 98,	BUFFER_CLASS_B | PIN_PDIS | MODE(0) },	/* MDIO_DATA */
 	{ 99,	BUFFER_CLASS_B | PIN_PDIS | MODE(0) },	/* MDIO_CLK */
 
+	/* ICSS1 Padconf Workaround */
+	{ 202, MODE(1) | PIN_PDIS },    /* PR1_PRU1_GPO1.PR1_PRU1_GPI1 (PR1_MII1_RXD1) */
+
 	{ MAX_PIN_N, }
 };
 
Signature · 1 line
2.32.0
#1 lore raw
Quoted 9 lines · Suman Anna

The PADCONFIG_202 register (0x02621328) is affected by the locking of the RSTMUX8 register (0x02620328), and so cannot be configured in kernel. This has been confirmed as a hardware bug and affects all K2G SoCs.

Setup the pinmux for this pin before locking the RSTMUX8 register to allow the ICSS1 PRU1 Ethernet PHY port to work properly. The workaround was added only for the K2G-ICE board to configure the pins needed for the PRUSS Ethernet usecase.

Applied to https://source.denx.de/u-boot/custodians/u-boot-ti.git for-rc, thanks! [1/1] board: ti: k2g: Program PadConfig_202 before locking RSTMUX8

      https://source.denx.de/u-boot/custodians/u-boot-ti/-/commit/a6c64d255e

--
Thanks and Regards,
Lokesh