[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <054fd366-89fe-4ab8-b9db-88c5245cb719@suse.com>
Date: Wed, 2 Oct 2024 13:58:13 +0200
From: Matthias Brugger <mbrugger@...e.com>
To: Andrei Stefanescu <andrei.stefanescu@....nxp.com>,
Dong Aisheng <aisheng.dong@....com>, Fabio Estevam <festevam@...il.com>,
Shawn Guo <shawnguo@...nel.org>, Jacky Bai <ping.bai@....com>,
Linus Walleij <linus.walleij@...aro.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Ghennadi Procopciuc
<Ghennadi.Procopciuc@....nxp.com>, Chester Lin <chester62515@...il.com>,
Sascha Hauer <s.hauer@...gutronix.de>
Cc: Pengutronix Kernel Team <kernel@...gutronix.de>,
linux-gpio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
imx@...ts.linux.dev, NXP S32 Linux Team <s32@....com>,
Christophe Lizzi <clizzi@...hat.com>, Alberto Ruiz <aruizrui@...hat.com>,
Enric Balletbo <eballetb@...hat.com>
Subject: Re: [PATCH 1/3] pinctrl: s32: add missing pins definitions
On 30/09/2024 15:23, Andrei Stefanescu wrote:
> Added definitions for some pins which were missing from the
> S32G2 SIUL2 pinctrl driver. These pins are used by the JTAG,
> PFE and LLCE hardware modules.
>
> Signed-off-by: Andrei Stefanescu <andrei.stefanescu@....nxp.com>
Reviewed-by: Matthias Brugger <mbrugger@...e.com>
> ---
> drivers/pinctrl/nxp/pinctrl-s32g2.c | 52 +++++++++++++++++++++++++++++
> 1 file changed, 52 insertions(+)
>
> diff --git a/drivers/pinctrl/nxp/pinctrl-s32g2.c b/drivers/pinctrl/nxp/pinctrl-s32g2.c
> index 440ff1879424..c49d28793b69 100644
> --- a/drivers/pinctrl/nxp/pinctrl-s32g2.c
> +++ b/drivers/pinctrl/nxp/pinctrl-s32g2.c
> @@ -216,6 +216,12 @@ enum s32_pins {
> S32G_IMCR_CAN1_RXD = 631,
> S32G_IMCR_CAN2_RXD = 632,
> S32G_IMCR_CAN3_RXD = 633,
> +
> + /* JTAG IMCRs */
> + S32G_IMCR_JTAG_TMS = 562,
> + S32G_IMCR_JTAG_TCK = 572,
> + S32G_IMCR_JTAG_TDI = 573,
> +
> /* GMAC0 */
> S32G_IMCR_Ethernet_MDIO = 527,
> S32G_IMCR_Ethernet_CRS = 526,
> @@ -229,7 +235,21 @@ enum s32_pins {
> S32G_IMCR_Ethernet_RX_DV = 530,
> S32G_IMCR_Ethernet_TX_CLK = 538,
> S32G_IMCR_Ethernet_REF_CLK = 535,
> +
> /* PFE EMAC 0 MII */
> + S32G_IMCR_PFE_EMAC_0_MDIO = 837,
> + S32G_IMCR_PFE_EMAC_0_CRS = 836,
> + S32G_IMCR_PFE_EMAC_0_COL = 835,
> + S32G_IMCR_PFE_EMAC_0_RX_D0 = 841,
> + S32G_IMCR_PFE_EMAC_0_RX_D1 = 842,
> + S32G_IMCR_PFE_EMAC_0_RX_D2 = 843,
> + S32G_IMCR_PFE_EMAC_0_RX_D3 = 844,
> + S32G_IMCR_PFE_EMAC_0_RX_ER = 840,
> + S32G_IMCR_PFE_EMAC_0_RX_CLK = 839,
> + S32G_IMCR_PFE_EMAC_0_RX_DV = 845,
> + S32G_IMCR_PFE_EMAC_0_TX_CLK = 846,
> + S32G_IMCR_PFE_EMAC_0_REF_CLK = 838,
> +
> /* PFE EMAC 1 MII */
> S32G_IMCR_PFE_EMAC_1_MDIO = 857,
> S32G_IMCR_PFE_EMAC_1_CRS = 856,
> @@ -317,6 +337,13 @@ enum s32_pins {
> S32G_IMCR_LLCE_CAN13_RXD = 758,
> S32G_IMCR_LLCE_CAN14_RXD = 759,
> S32G_IMCR_LLCE_CAN15_RXD = 760,
> + S32G_IMCR_LLCE_UART0_RXD = 790,
> + S32G_IMCR_LLCE_UART1_RXD = 791,
> + S32G_IMCR_LLCE_UART2_RXD = 792,
> + S32G_IMCR_LLCE_UART3_RXD = 793,
> + S32G_IMCR_LLCE_LPSPI2_PCS0 = 811,
> + S32G_IMCR_LLCE_LPSPI2_SCK = 816,
> + S32G_IMCR_LLCE_LPSPI2_SIN = 817,
> S32G_IMCR_USB_CLK = 895,
> S32G_IMCR_USB_DATA0 = 896,
> S32G_IMCR_USB_DATA1 = 897,
> @@ -503,6 +530,12 @@ static const struct pinctrl_pin_desc s32_pinctrl_pads_siul2[] = {
> S32_PINCTRL_PIN(S32G_IMCR_USDHC_DAT7),
> S32_PINCTRL_PIN(S32G_IMCR_USDHC_DQS),
> S32_PINCTRL_PIN(S32G_IMCR_CAN0_RXD),
> +
> + /* JTAG IMCRs */
> + S32_PINCTRL_PIN(S32G_IMCR_JTAG_TMS),
> + S32_PINCTRL_PIN(S32G_IMCR_JTAG_TCK),
> + S32_PINCTRL_PIN(S32G_IMCR_JTAG_TDI),
> +
> /* GMAC0 */
> S32_PINCTRL_PIN(S32G_IMCR_Ethernet_MDIO),
> S32_PINCTRL_PIN(S32G_IMCR_Ethernet_CRS),
> @@ -638,6 +671,13 @@ static const struct pinctrl_pin_desc s32_pinctrl_pads_siul2[] = {
> S32_PINCTRL_PIN(S32G_IMCR_LLCE_CAN13_RXD),
> S32_PINCTRL_PIN(S32G_IMCR_LLCE_CAN14_RXD),
> S32_PINCTRL_PIN(S32G_IMCR_LLCE_CAN15_RXD),
> + S32_PINCTRL_PIN(S32G_IMCR_LLCE_UART0_RXD),
> + S32_PINCTRL_PIN(S32G_IMCR_LLCE_UART1_RXD),
> + S32_PINCTRL_PIN(S32G_IMCR_LLCE_UART2_RXD),
> + S32_PINCTRL_PIN(S32G_IMCR_LLCE_UART3_RXD),
> + S32_PINCTRL_PIN(S32G_IMCR_LLCE_LPSPI2_PCS0),
> + S32_PINCTRL_PIN(S32G_IMCR_LLCE_LPSPI2_SCK),
> + S32_PINCTRL_PIN(S32G_IMCR_LLCE_LPSPI2_SIN),
> S32_PINCTRL_PIN(S32G_IMCR_CAN1_RXD),
> S32_PINCTRL_PIN(S32G_IMCR_CAN2_RXD),
> S32_PINCTRL_PIN(S32G_IMCR_CAN3_RXD),
> @@ -652,6 +692,18 @@ static const struct pinctrl_pin_desc s32_pinctrl_pads_siul2[] = {
> S32_PINCTRL_PIN(S32G_IMCR_USB_DATA7),
> S32_PINCTRL_PIN(S32G_IMCR_USB_DIR),
> S32_PINCTRL_PIN(S32G_IMCR_USB_NXT),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_MDIO),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_CRS),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_COL),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_RX_D0),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_RX_D1),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_RX_D2),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_RX_D3),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_RX_ER),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_RX_CLK),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_RX_DV),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_TX_CLK),
> + S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_0_REF_CLK),
> S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_1_MDIO),
> S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_1_CRS),
> S32_PINCTRL_PIN(S32G_IMCR_PFE_EMAC_1_COL),
Powered by blists - more mailing lists