From: Frieder Schrempf <frieder@fris.de>
To: linux-arm-kernel@lists.infradead.org,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org, imx@lists.linux.dev,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
linux-kernel@vger.kernel.org, Rob Herring <robh@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>
Cc: Annette Kobou <annette.kobou@kontron.de>,
Frieder Schrempf <frieder.schrempf@kontron.de>,
Fabio Estevam <festevam@gmail.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>
Subject: [PATCH 07/12] arm64: dts: imx8mp-kontron: Fix CAN_ADDR0 and CAN_ADDR1 GPIOs
Date: Mon, 14 Jul 2025 16:17:33 +0200 [thread overview]
Message-ID: <20250714141852.116455-8-frieder@fris.de> (raw)
In-Reply-To: <20250714141852.116455-1-frieder@fris.de>
From: Annette Kobou <annette.kobou@kontron.de>
Some signal assignments were modified between hardware revisions
1 and 2:
Revision 1:
- SPI_A_WP -> CAN_ADDR0
- SPI_A_HOLD -> CAN_ADDR1
Revision 2 and later:
- SPI_A_SDI -> CAN_ADDR0
- SPI_A_SDO -> CAN_ADDR1
Fix the labels and add the missing pinctrls.
Signed-off-by: Annette Kobou <annette.kobou@kontron.de>
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
---
.../dts/freescale/imx8mp-kontron-bl-osm-s.dts | 31 ++++++++++++++++---
1 file changed, 27 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts b/arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts
index 0eb9e726a9b81..4aa5c261b865d 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts
@@ -123,14 +123,12 @@ &gpio2 {
/*
* Rename SoM signals according to board usage:
- * SPI_A_WP -> CAN_ADDR0
- * SPI_A_HOLD -> CAN_ADDR1
* GPIO_B_0 -> DIO1_OUT
* GPIO_B_1 -> DIO2_OUT
*/
&gpio3 {
gpio-line-names = "PCIE_WAKE", "PCIE_CLKREQ", "PCIE_A_PERST", "SDIO_B_D5",
- "SDIO_B_D6", "SDIO_B_D7", "CAN_ADDR0", "CAN_ADDR1",
+ "SDIO_B_D6", "SDIO_B_D7", "SPI_A_WP", "SPI_A_HOLD",
"UART_B_RTS", "UART_B_CTS", "SDIO_B_D0", "SDIO_B_D1",
"SDIO_B_D2", "SDIO_B_D3", "SDIO_B_WP", "SDIO_B_D4",
"PCIE_SM_ALERT", "SDIO_B_CLK", "SDIO_B_CMD", "DIO1_OUT",
@@ -159,6 +157,24 @@ &gpio4 {
"GPIO_A_7", "CARRIER_PWR_EN", "I2S_A_DATA_IN", "I2S_LRCLK";
};
+/*
+ * Rename SoM signals according to board usage:
+ * SPI_A_SDI -> CAN_ADDR0
+ * SPI_A_SDO -> CAN_ADDR1
+ */
+&gpio5 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_gpio5>;
+ gpio-line-names = "I2S_BITCLK", "I2S_A_DATA_OUT", "I2S_MCLK", "PWM_2",
+ "PWM_1", "PWM_0", "SPI_A_SCK", "CAN_ADDR1",
+ "CAN_ADDR0", "SPI_A_CS0", "SPI_B_SCK", "SPI_B_SDO",
+ "SPI_B_SDI", "SPI_B_CS0", "I2C_A_SCL", "I2C_A_SDA",
+ "I2C_B_SCL", "I2C_B_SDA", "PCIE_SMCLK", "PCIE_SMDAT",
+ "I2C_CAM_SCL", "I2C_CAM_SDA", "UART_A_RX", "UART_A_TX",
+ "UART_C_RX", "UART_C_TX", "UART_CON_RX", "UART_CON_TX",
+ "UART_B_RX", "UART_B_TX";
+};
+
&hdmi_pvi {
status = "okay";
};
@@ -297,9 +313,16 @@ MX8MP_IOMUXC_SD2_WP__GPIO2_IO20 0x46
>;
};
+ pinctrl_gpio5: gpio5grp {
+ fsl,pins = <
+ MX8MP_IOMUXC_ECSPI1_MOSI__GPIO5_IO07 0x46 /* CAN_ADR0 */
+ MX8MP_IOMUXC_ECSPI1_MISO__GPIO5_IO08 0x46 /* CAN_ADR1 */
+ >;
+ };
+
pinctrl_usb_hub: usbhubgrp {
fsl,pins = <
MX8MP_IOMUXC_NAND_DQS__GPIO3_IO14 0x46
>;
};
-};
+};
\ No newline at end of file
--
2.50.1
next prev parent reply other threads:[~2025-07-14 14:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-14 14:17 [PATCH 00/12] Misc fixups and changes for Kontron i.MX8M and i.MX93 DTs Frieder Schrempf
2025-07-14 14:17 ` [PATCH 01/12] arm64: dts: imx8mm-kontron: Add overlay for LTE extension board Frieder Schrempf
2025-07-14 14:17 ` [PATCH 02/12] arm64: dts: imx8mm-kontron: Remove unused regulator Frieder Schrempf
2025-07-14 14:17 ` [PATCH 03/12] arm64: dts: imx8mm-kontron: Use GPIO for RS485 transceiver control Frieder Schrempf
2025-07-14 14:17 ` [PATCH 04/12] arm64: dts: imx8mm-kontron: Add Sitronix touch controller in DL devicetree Frieder Schrempf
2025-07-14 16:21 ` Fabio Estevam
2025-07-15 6:39 ` Frieder Schrempf
2025-07-14 14:17 ` [PATCH 05/12] arm64: dts: imx8mm-kontron: Sort reg nodes alphabetically Frieder Schrempf
2025-07-14 14:17 ` [PATCH 06/12] arm64: dts: imx8mm-kontron: Name USB regulators according to OSM scheme Frieder Schrempf
2025-07-14 14:17 ` Frieder Schrempf [this message]
2025-07-14 14:17 ` [PATCH 08/12] arm64: dts: imx8mp-kontron: Fix GPIO labels for latest BL board Frieder Schrempf
2025-07-14 14:17 ` [PATCH 09/12] arm64: dts: imx8mp-kontron: Fix USB hub reset Frieder Schrempf
2025-07-14 14:17 ` [PATCH 10/12] arm64: dts: imx93-kontron: Add RTC interrupt signal Frieder Schrempf
2025-07-16 6:21 ` Primoz Fiser
2025-07-16 6:28 ` Frieder Schrempf
2025-07-14 14:17 ` [PATCH 11/12] arm64: dts: imx93-kontron: Fix GPIO for panel regulator Frieder Schrempf
2025-07-14 14:17 ` [PATCH 12/12] arm64: dts: imx93-kontron: Fix USB port assignment Frieder Schrempf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250714141852.116455-8-frieder@fris.de \
--to=frieder@fris.de \
--cc=annette.kobou@kontron.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=frieder.schrempf@kontron.de \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).