Skip to contentSkip to conversation

Update of phyBOARD-Polis-i.MX8MM

PATCH Applied Cem Tenruh 2 participants 8 messages Jun 16, 2023 – Jul 19, 2023

Subsystems (2)
lore
Share & tools
lore

Cem Tenruh

author
#0 lore raw

cover Update of phyBOARD-Polis-i.MX8MM

Small fixes & updates for the phyCORE-i.MX8MM and phyBOARD-Polis-i.MX8MM devicetrees. This also adds the TPM node to the phyBOARD-Polis-i.MX8MM devicetree.

Cem Tenruh (1):
arm64: dts: imx8mm-phyboard-polis: Add i2c4 sda-/scl-gpios

Yannic Moog (2):
arm64: dts: phycore-imx8mm: fix nor mtd partitions
arm64: dts: imx8mm-phyboard-polis: Set debug uart muxing to 0x140

Yashwanth Varakala (3):
arm64: dts: freescale: imx8mm-phyboard-polis: Add TPM node
arm64: dts: phycore-imx8mm: Label typo-fix of VPU
arm64: dts: phycore-imx8mm: Correction in gpio-line-names

 .../freescale/imx8mm-phyboard-polis-rdk.dts   | 54 +++++++++++++++++--
 .../dts/freescale/imx8mm-phycore-som.dtsi     |  6 ++-
 2 files changed, 54 insertions(+), 6 deletions(-)
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author
#1 lore raw

PATCH 1/6 arm64: dts: freescale: imx8mm-phyboard-polis: Add TPM node

From: Yashwanth Varakala <[email protected]>

Add TPM node for phyBOARD-Polis i.MX 8M Mini which has the Infineon-SLB 9670 TPM2.0 module populated.

---
 .../freescale/imx8mm-phyboard-polis-rdk.dts   | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +36 -0
index 03e7679217b2..cfb811091b77 100644
@@ -140,6 +140,27 @@ can0: can@0 {
 	};
 };
 
+/* TPM */
+&ecspi2 {
+	cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
+	fsl,spi-num-chipselects = <1>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_ecspi2>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	tpm: tpm@0 {
+		compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
+		interrupt-parent = <&gpio2>;
+		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_tpm>;
+		reg = <0>;
+		spi-max-frequency = <43000000>;
+	};
+};
+
 &gpio1 {
 	gpio-line-names = "nINT_ETHPHY", "LED_RED", "WDOG_INT", "X_RTC_INT",
 		"", "", "", "RESET_ETHPHY",
@@ -333,6 +354,15 @@ MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9	0x00
 		>;
 	};
 
+	pinctrl_ecspi2: ecspi2grp {
+		fsl,pins = <
+			MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO    0x80
+			MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI    0x80
+			MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK    0x80
+			MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13      0x00
+		>;
+	};
+
 	pinctrl_fan: fan0grp {
 		fsl,pins = <
 			MX8MM_IOMUXC_SAI1_RXD6_GPIO4_IO8	0x16
@@ -368,6 +398,12 @@ MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19	0x40
 		>;
 	};
 
+	pinctrl_tpm: tpmgrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_SD1_STROBE_GPIO2_IO11      0x140
+		>;
+	};
+
 	pinctrl_uart1: uart1grp {
 		fsl,pins = <
 			MX8MM_IOMUXC_SAI2_RXC_UART1_DCE_RX	0x00
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author
#2 lore raw

PATCH 2/6 arm64: dts: phycore-imx8mm: Label typo-fix of VPU

In reply to Cem Tenruh

From: Yashwanth Varakala <[email protected]>

Corrected the label of the VPU regulator node (buck 3) from reg_vdd_gpu to reg_vdd_vpu.

Fixes ae6847f26ac9 ("arm64: dts: freescale: Add phyBOARD-Polis-i.MX8MM support")
---
 arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +1 -1
index 92616bc4f71f..2dd179ec923d 100644
@@ -210,7 +210,7 @@ regulator-state-mem {
 				};
 			};
 
-			reg_vdd_gpu: buck3 {
+			reg_vdd_vpu: buck3 {
 				regulator-always-on;
 				regulator-boot-on;
 				regulator-max-microvolt = <1000000>;
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author
#3 lore raw

PATCH 3/6 arm64: dts: phycore-imx8mm: fix nor mtd partitions

In reply to Cem Tenruh

From: Yannic Moog <[email protected]>

Add #address-cells and #size-cells properties to som_flash. This enables correct parsing of added SPI NOR mtd partition child nodes that are set in the bootloader.

---
 arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +2 -0
index 2dd179ec923d..cc87cc565cc9 100644
@@ -102,6 +102,8 @@ &flexspi {
 	status = "okay";
 
 	som_flash: flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
 		compatible = "jedec,spi-nor";
 		reg = <0>;
 		spi-max-frequency = <80000000>;
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author
#4 lore raw

PATCH 4/6 arm64: dts: phycore-imx8mm: Correction in gpio-line-names

In reply to Cem Tenruh

From: Yashwanth Varakala <[email protected]>

Remove unused nINT_ETHPHY entry from gpio-line-names in gpio1 nodes of phyCORE-i.MX8MM and phyBOARD-Polis-i.MX8MM devicetrees.

Fixes ae6847f26ac9 ("arm64: dts: freescale: Add phyBOARD-Polis-i.MX8MM support")
---
 arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 2 +-
 arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +1 -1
index cfb811091b77..cdaf15ace14f 100644
@@ -162,7 +162,7 @@ tpm: tpm@0 {
 };
 
 &gpio1 {
-	gpio-line-names = "nINT_ETHPHY", "LED_RED", "WDOG_INT", "X_RTC_INT",
+	gpio-line-names = "", "LED_RED", "WDOG_INT", "X_RTC_INT",
 		"", "", "", "RESET_ETHPHY",
 		"CAN_nINT", "CAN_EN", "nENABLE_FLATLINK", "",
 		"USB_OTG_VBUS_EN", "", "LED_GREEN", "LED_BLUE";
arch/arm64/boot/dts/freescale/imx8mm-phycore-som.dtsi +1 -1
index cc87cc565cc9..404f7de0b722 100644
@@ -113,7 +113,7 @@ som_flash: flash@0 {
 };
 
 &gpio1 {
-	gpio-line-names = "nINT_ETHPHY", "", "WDOG_INT", "X_RTC_INT",
+	gpio-line-names = "", "", "WDOG_INT", "X_RTC_INT",
 		"", "", "", "RESET_ETHPHY",
 		"", "", "nENABLE_FLATLINK";
 };
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author
#5 lore raw

PATCH 5/6 arm64: dts: imx8mm-phyboard-polis: Set debug uart muxing to 0x140

In reply to Cem Tenruh

From: Yannic Moog <[email protected]>

Set Pull Resistors Enable bit to put signal into a defined state.

---
 arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +2 -2
index cdaf15ace14f..ff5c684915f6 100644
@@ -424,8 +424,8 @@ MX8MM_IOMUXC_SAI3_TXFS_UART2_DTE_TX	0x00
 
 	pinctrl_uart3: uart3grp {
 		fsl,pins = <
-			MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX	0x40
-			MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX	0x40
+			MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX	0x140
+			MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX	0x140
 		>;
 	};
 
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author
#6 lore raw

PATCH 6/6 arm64: dts: imx8mm-phyboard-polis: Add i2c4 sda-/scl-gpios

In reply to Cem Tenruh

Add i2c4 sda-/scl-gpios with the corresponding pinmux entries.

---
 .../boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8mm-phyboard-polis-rdk.dts +11 -1
index ff5c684915f6..66a0bdaff8eb 100644
@@ -191,8 +191,11 @@ &gpio5 {
 
 &i2c4 {
 	clock-frequency = <400000>;
-	pinctrl-names = "default";
+	pinctrl-names = "default", "gpio";
 	pinctrl-0 = <&pinctrl_i2c4>;
+	pinctrl-1 = <&pinctrl_i2c4_gpio>;
+	sda-gpios = <&gpio5 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	scl-gpios = <&gpio5 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 };
 
 /* PCIe */
@@ -376,6 +379,13 @@ MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA		0x400001c2
 		>;
 	};
 
+	pinctrl_i2c4_gpio: i2c4gpiogrp {
+		fsl,pins = <
+			MX8MM_IOMUXC_I2C4_SCL_GPIO5_IO20        0x1e2
+			MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21        0x1e2
+		>;
+	};
+
 	pinctrl_leds: leds1grp {
 		fsl,pins = <
 			MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1	0x16
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Applied
#7 lore raw
In reply to Cem Tenruh
Quoted 7 lines · Cem Tenruh

Small fixes & updates for the phyCORE-i.MX8MM and phyBOARD-Polis-i.MX8MM devicetrees. This also adds the TPM node to the phyBOARD-Polis-i.MX8MM devicetree.

Cem Tenruh (1):
arm64: dts: imx8mm-phyboard-polis: Add i2c4 sda-/scl-gpios

Quoted 8 lines

Yannic Moog (2):
arm64: dts: phycore-imx8mm: fix nor mtd partitions
arm64: dts: imx8mm-phyboard-polis: Set debug uart muxing to 0x140

Yashwanth Varakala (3):
arm64: dts: freescale: imx8mm-phyboard-polis: Add TPM node
arm64: dts: phycore-imx8mm: Label typo-fix of VPU
arm64: dts: phycore-imx8mm: Correction in gpio-line-names

Applied all, thanks!

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel