Skip to contentSkip to conversation

enable flexspi support on imx8mp

PATCH Superseded Heiko Schocher 3 participants 10 messages Mar 8, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover enable flexspi support on imx8mp

This series enables support for the SPI NOR on the imx8mp based phyboard-pollux-rdk board.

Heiko Schocher (2):
arm64: dts: imx8mp: add flexspi node
arm64: imx8mp: imx8mp-phycore-som enable spi nor

 .../dts/freescale/imx8mp-phycore-som.dtsi     | 27 +++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mp.dtsi     | 16 +++++++++++
 2 files changed, 43 insertions(+)
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/2 arm64: dts: imx8mp: add flexspi node

add node for the flexspi modul on imx8mp.

---

 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +16 -0
index c7523fd4eae9b..086cfbbef43d7 100644
@@ -36,6 +36,7 @@ aliases {
 		serial1 = &uart2;
 		serial2 = &uart3;
 		serial3 = &uart4;
+		spi0 = &flexspi;
 	};
 
 	cpus {
@@ -744,6 +745,21 @@ usdhc3: mmc@30b60000 {
 				status = "disabled";
 			};
 
+			flexspi: spi@30bb0000 {
+				#address-cells = <1>;
+				#size-cells = <0>;
+				compatible = "nxp,imx8mm-fspi";
+				reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>;
+				reg-names = "fspi_base", "fspi_mmap";
+				interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clk IMX8MP_CLK_QSPI_ROOT>,
+					 <&clk IMX8MP_CLK_QSPI_ROOT>;
+				clock-names = "fspi", "fspi_en";
+				assigned-clock-rates = <80000000>;
+				assigned-clocks = <&clk IMX8MP_CLK_QSPI>;
+				status = "disabled";
+			};
+
 			sdma1: dma-controller@30bd0000 {
 				compatible = "fsl,imx8mp-sdma", "fsl,imx8mq-sdma";
 				reg = <0x30bd0000 0x10000>;
Signature · 1 line
2.29.2
#2 lore raw

Re: [PATCH 1/2] arm64: dts: imx8mp: add flexspi node

Hi Heiko,

Quoted 22 lines · Heiko Schocher

add node for the flexspi modul on imx8mp.

---

 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1 -0
index c7523fd4eae9b..086cfbbef43d7 100644
@@ -36,6 +36,7 @@ aliases {
 		serial1 = &uart2;
 		serial2 = &uart3;
 		serial3 = &uart4;
+		spi0 = &flexspi;
 	};
 
 	cpus {

arch/arm64/boot/dts/freescale/imx8mp.dtsi usdhc3: mmc@30b60000 { · line 750

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +3 -0
@@ -744,6 +745,21 @@ usdhc3: mmc@30b60000 {
 				status = "disabled";
 			};
 
+			flexspi: spi@30bb0000 {
+				#address-cells = <1>;
+				#size-cells = <0>;

This properties can moved to end just in front of the status property which should be the last one.

arch/arm64/boot/dts/freescale/imx8mp.dtsi usdhc3: mmc@30b60000 { · line 751

Quoted 1 line
arch/arm64/boot/dts/freescale/imx8mp.dtsi +1 -0
+				compatible = "nxp,imx8mm-fspi";

Please add a own compatible "nxp,imx8mp-fspi" to the driver which should be the first patch in your series.

Also the compatible is always the first property.

Regards,
Marco

Quoted 19 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +11 -0
+				reg = <0x30bb0000 0x10000>, <0x8000000 0x10000000>;
+				reg-names = "fspi_base", "fspi_mmap";
+				interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>;
+				clocks = <&clk IMX8MP_CLK_QSPI_ROOT>,
+					 <&clk IMX8MP_CLK_QSPI_ROOT>;
+				clock-names = "fspi", "fspi_en";
+				assigned-clock-rates = <80000000>;
+				assigned-clocks = <&clk IMX8MP_CLK_QSPI>;
+				status = "disabled";
+			};
+
 			sdma1: dma-controller@30bd0000 {
 				compatible = "fsl,imx8mp-sdma", "fsl,imx8mq-sdma";
 				reg = <0x30bd0000 0x10000>;
Signature · 1 line
2.29.2
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#3 lore raw

PATCH 2/2 arm64: imx8mp: imx8mp-phycore-som enable spi nor

In reply to Heiko Schocher

enable the mt25qu256aba spi nor on the imx8mp-phycore-som.

---

 .../dts/freescale/imx8mp-phycore-som.dtsi     | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +27 -0
index 44a8c2337cee4..0284e7a5c6bba 100644
@@ -65,6 +65,22 @@ ethphy1: ethernet-phy@0 {
 	};
 };
 
+&flexspi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexspi0>;
+	status = "okay";
+
+	flash0: mt25qu256aba@0 {
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		spi-max-frequency = <80000000>;
+		spi-tx-bus-width = <4>;
+		spi-rx-bus-width = <4>;
+	};
+};
+
 &i2c1 {
 	clock-frequency = <400000>;
 	pinctrl-names = "default";
@@ -217,6 +233,17 @@ MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15		0x11
 		>;
 	};
 
+	pinctrl_flexspi0: flexspi0grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_NAND_ALE__FLEXSPI_A_SCLK		0x1c2
+			MX8MP_IOMUXC_NAND_CE0_B__FLEXSPI_A_SS0_B	0x82
+			MX8MP_IOMUXC_NAND_DATA00__FLEXSPI_A_DATA00	0x82
+			MX8MP_IOMUXC_NAND_DATA01__FLEXSPI_A_DATA01	0x82
+			MX8MP_IOMUXC_NAND_DATA02__FLEXSPI_A_DATA02	0x82
+			MX8MP_IOMUXC_NAND_DATA03__FLEXSPI_A_DATA03	0x82
+		>;
+	};
+
 	pinctrl_i2c1: i2c1grp {
 		fsl,pins = <
 			MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL		0x400001c3
Signature · 1 line
2.29.2
#4 lore raw

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

Hello Heiko,

first thanks for the patch :).

Am Montag, den 08.03.2021, 07:40 +0100 schrieb Heiko Schocher:

Quoted 15 lines

enable the mt25qu256aba spi nor on the imx8mp-phycore-som.

---

 .../dts/freescale/imx8mp-phycore-som.dtsi     | 27
+++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +0 -0
index 44a8c2337cee4..0284e7a5c6bba 100644

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi ethphy1: ethernet-phy@0 { · line 73

Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +6 -0
@@ -65,6 +65,22 @@ ethphy1: ethernet-phy@0 {
 	};
 };
 
+&flexspi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexspi0>;
+	status = "okay";
+
+	flash0: mt25qu256aba@0 {

you can remove the label. As it is not used here right now. Also rename the node name to device type like "flash" maybe.

I will try to test this soon.

Thanks,
Teresa

Quoted 37 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +10 -0
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";
+		spi-max-frequency = <80000000>;
+		spi-tx-bus-width = <4>;
+		spi-rx-bus-width = <4>;
+	};
+};
+
 &i2c1 {
 	clock-frequency = <400000>;
 	pinctrl-names = "default";
@@ -217,6 +233,17 @@ MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15		

0x11

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +3 -0
 		>;
 	};
 
+	pinctrl_flexspi0: flexspi0grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_NAND_ALE__FLEXSPI_A_SCLK		

0x1c2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +2 -0
+			MX8MP_IOMUXC_NAND_CE0_B__FLEXSPI_A_SS0_B	0x82
+			MX8MP_IOMUXC_NAND_DATA00__FLEXSPI_A_DATA00	

0x82

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA01__FLEXSPI_A_DATA01	

0x82

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA02__FLEXSPI_A_DATA02	

0x82

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA03__FLEXSPI_A_DATA03	

0x82

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +3 -0
+		>;
+	};
+
 	pinctrl_i2c1: i2c1grp {
 		fsl,pins = <
 			MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL		0x400
Quoted 1 line

001c3

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

#5 lore raw

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

Hi Teresa, Heiko,

Quoted 23 lines · Teresa Remmet

Hello Heiko,

first thanks for the patch :).

Am Montag, den 08.03.2021, 07:40 +0100 schrieb Heiko Schocher:

Quoted 18 lines

enable the mt25qu256aba spi nor on the imx8mp-phycore-som.

---

 .../dts/freescale/imx8mp-phycore-som.dtsi     | 27
+++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +0 -0
index 44a8c2337cee4..0284e7a5c6bba 100644
@@ -65,6 +65,22 @@ ethphy1: ethernet-phy@0 {
 	};
 };
 
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi ethphy1: ethernet-phy@0 { · line 73

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +6 -0
+&flexspi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexspi0>;
+	status = "okay";
+
+	flash0: mt25qu256aba@0 {

you can remove the label. As it is not used here right now.

I would keep the label since most the time the bootloaders will fixup the device tree because they adding a of-partition to it. It's mostly just a matter of time.

Quoted 1 line

Also rename the node name to device type like "flash" maybe.

+1

I would name it 'som_flash: flash@0 { }'

Regards,
Marco

#6 lore raw

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

In reply to Heiko Schocher
Quoted 16 lines · Heiko Schocher

enable the mt25qu256aba spi nor on the imx8mp-phycore-som.

---

 .../dts/freescale/imx8mp-phycore-som.dtsi     | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +0 -0
index 44a8c2337cee4..0284e7a5c6bba 100644
@@ -65,6 +65,22 @@ ethphy1: ethernet-phy@0 {
 	};
 };
 

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi ethphy1: ethernet-phy@0 { · line 77

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +10 -0
+&flexspi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexspi0>;
+	status = "okay";
+
+	flash0: mt25qu256aba@0 {
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";

Please make the compatible the first property followed by the reg property. Also you don't need to add the #size-cells and #address-cells now since you don't add a child node.

Regards,
Marco

Quoted 32 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +17 -0
+		spi-max-frequency = <80000000>;
+		spi-tx-bus-width = <4>;
+		spi-rx-bus-width = <4>;
+	};
+};
+
 &i2c1 {
 	clock-frequency = <400000>;
 	pinctrl-names = "default";
@@ -217,6 +233,17 @@ MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15		0x11
 		>;
 	};
 
+	pinctrl_flexspi0: flexspi0grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_NAND_ALE__FLEXSPI_A_SCLK		0x1c2
+			MX8MP_IOMUXC_NAND_CE0_B__FLEXSPI_A_SS0_B	0x82
+			MX8MP_IOMUXC_NAND_DATA00__FLEXSPI_A_DATA00	0x82
+			MX8MP_IOMUXC_NAND_DATA01__FLEXSPI_A_DATA01	0x82
+			MX8MP_IOMUXC_NAND_DATA02__FLEXSPI_A_DATA02	0x82
+			MX8MP_IOMUXC_NAND_DATA03__FLEXSPI_A_DATA03	0x82
+		>;
+	};
+
 	pinctrl_i2c1: i2c1grp {
 		fsl,pins = <
 			MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL		0x400001c3
Signature · 1 line
2.29.2
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#7 lore raw

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

Hello Marco,

Am Montag, den 08.03.2021, 09:40 +0100 schrieb Marco Felsch:

Quoted 19 lines · Heiko Schocher
Quoted 18 lines

enable the mt25qu256aba spi nor on the imx8mp-phycore-som.

---

 .../dts/freescale/imx8mp-phycore-som.dtsi     | 27
+++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +0 -0
index 44a8c2337cee4..0284e7a5c6bba 100644
@@ -65,6 +65,22 @@ ethphy1: ethernet-phy@0 {
 	};
 };
 
Quoted 15 lines

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi ethphy1: ethernet-phy@0 { · line 77

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +10 -0
+&flexspi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexspi0>;
+	status = "okay";
+
+	flash0: mt25qu256aba@0 {
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";

Please make the compatible the first property followed by the reg property. Also you don't need to add the #size-cells and #address- cells
now since you don't add a child node.

but is this not similar to the label here? If you add partitions in the bootloader you need the cells properties?

Teresa

Quoted 44 lines

Regards,
Marco

Quoted 40 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +6 -0
+		spi-max-frequency = <80000000>;
+		spi-tx-bus-width = <4>;
+		spi-rx-bus-width = <4>;
+	};
+};
+
 &i2c1 {
 	clock-frequency = <400000>;
 	pinctrl-names = "default";
@@ -217,6 +233,17 @@ MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15		

0x11

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +3 -0
 		>;
 	};
 
+	pinctrl_flexspi0: flexspi0grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_NAND_ALE__FLEXSPI_A_SCLK		

0x1c2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_CE0_B__FLEXSPI_A_SS0_B	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA00__FLEXSPI_A_DATA00	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA01__FLEXSPI_A_DATA01	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA02__FLEXSPI_A_DATA02	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA03__FLEXSPI_A_DATA03	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +3 -0
+		>;
+	};
+
 	pinctrl_i2c1: i2c1grp {
 		fsl,pins = <
 			MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL		0x4

00001c3

Signature · 1 line
2.29.2
#8 lore raw

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

Quoted 38 lines · Teresa Remmet

Hello Marco,

Am Montag, den 08.03.2021, 09:40 +0100 schrieb Marco Felsch:

Quoted 19 lines · Heiko Schocher
Quoted 18 lines

enable the mt25qu256aba spi nor on the imx8mp-phycore-som.

---

 .../dts/freescale/imx8mp-phycore-som.dtsi     | 27
+++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +0 -0
index 44a8c2337cee4..0284e7a5c6bba 100644
@@ -65,6 +65,22 @@ ethphy1: ethernet-phy@0 {
 	};
 };
 
Quoted 15 lines

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi ethphy1: ethernet-phy@0 { · line 77

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +10 -0
+&flexspi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexspi0>;
+	status = "okay";
+
+	flash0: mt25qu256aba@0 {
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";

Please make the compatible the first property followed by the reg property. Also you don't need to add the #size-cells and #address- cells
now since you don't add a child node.

Quoted 2 lines

but is this not similar to the label here? If you add partitions in the bootloader you need the cells properties?

If the bootloader will add partitions the bootloader can add the size/address-cells too using the phandle. But this is more a nit.

Regards,
Marco

Quoted 46 lines

Teresa

Quoted 44 lines

Regards,
Marco

Quoted 40 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +6 -0
+		spi-max-frequency = <80000000>;
+		spi-tx-bus-width = <4>;
+		spi-rx-bus-width = <4>;
+	};
+};
+
 &i2c1 {
 	clock-frequency = <400000>;
 	pinctrl-names = "default";
@@ -217,6 +233,17 @@ MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15		

0x11

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +3 -0
 		>;
 	};
 
+	pinctrl_flexspi0: flexspi0grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_NAND_ALE__FLEXSPI_A_SCLK		

0x1c2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_CE0_B__FLEXSPI_A_SS0_B	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA00__FLEXSPI_A_DATA00	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA01__FLEXSPI_A_DATA01	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA02__FLEXSPI_A_DATA02	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA03__FLEXSPI_A_DATA03	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +3 -0
+		>;
+	};
+
 	pinctrl_i2c1: i2c1grp {
 		fsl,pins = <
 			MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL		0x4

00001c3

Signature · 1 line
2.29.2
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#9 lore raw

Re: [PATCH 2/2] arm64: imx8mp: imx8mp-phycore-som enable spi nor

Hello Marco,

Quoted 39 lines · Marco Felsch
Quoted 38 lines · Teresa Remmet

Hello Marco,

Am Montag, den 08.03.2021, 09:40 +0100 schrieb Marco Felsch:

Quoted 34 lines · Heiko Schocher
Quoted 18 lines

enable the mt25qu256aba spi nor on the imx8mp-phycore-som.

---

 .../dts/freescale/imx8mp-phycore-som.dtsi     | 27
+++++++++++++++++++
 1 file changed, 27 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +0 -0
index 44a8c2337cee4..0284e7a5c6bba 100644
@@ -65,6 +65,22 @@ ethphy1: ethernet-phy@0 {
 	};
 };
 

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi ethphy1: ethernet-phy@0 { · line 77

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +10 -0
+&flexspi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexspi0>;
+	status = "okay";
+
+	flash0: mt25qu256aba@0 {
+		reg = <0>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "jedec,spi-nor";

Please make the compatible the first property followed by the reg property. Also you don't need to add the #size-cells and #address- cells
now since you don't add a child node.

Quoted 5 lines
Quoted 2 lines

but is this not similar to the label here? If you add partitions in the bootloader you need the cells properties?

If the bootloader will add partitions the bootloader can add the size/address-cells too using the phandle. But this is more a nit.

Yes. I personally prefer to pass mtd partitions through kernel commandline.

I will work in your and Teresas comment, thanks!

bye,
Heiko

Quoted 51 lines

Regards,
Marco

Quoted 46 lines

Teresa

Quoted 44 lines

Regards,
Marco

Quoted 40 lines
arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +6 -0
+		spi-max-frequency = <80000000>;
+		spi-tx-bus-width = <4>;
+		spi-rx-bus-width = <4>;
+	};
+};
+
 &i2c1 {
 	clock-frequency = <400000>;
 	pinctrl-names = "default";
@@ -217,6 +233,17 @@ MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15		

0x11

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +3 -0
 		>;
 	};
 
+	pinctrl_flexspi0: flexspi0grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_NAND_ALE__FLEXSPI_A_SCLK		

0x1c2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_CE0_B__FLEXSPI_A_SS0_B	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA00__FLEXSPI_A_DATA00	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA01__FLEXSPI_A_DATA01	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA02__FLEXSPI_A_DATA02	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +1 -0
+			MX8MP_IOMUXC_NAND_DATA03__FLEXSPI_A_DATA03	0x8

2

arch/arm64/boot/dts/freescale/imx8mp-phycore-som.dtsi +3 -0
+		>;
+	};
+
 	pinctrl_i2c1: i2c1grp {
 		fsl,pins = <
 			MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL		0x4

00001c3

Signature · 1 line
2.29.2
Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]