Commit 97a1cca9 authored by Quy Tran's avatar Quy Tran Committed by Henrik Brix Andersen
Browse files

boards: renesas: Add boards support for QSPI flash driver



Add support for QSPI flash driver on EK-RA6E2, EK-RA6M3, EK-RA6M4
and EK-RA6M5

Signed-off-by: default avatarQuy Tran <quy.tran.pz@renesas.com>
Signed-off-by: default avatarKhoa Nguyen <khoa.nguyen.xh@renesas.com>
parent 305259db
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -54,4 +54,16 @@
				<RA_PSEL(RA_PSEL_GPT1, 4, 8)>;
		};
	};

	qspi_default: qspi_default {
		group1 {
			/* QSPICLK QSSL QIO0 QIO1 QIO2 QIO3 */
			psels = <RA_PSEL(RA_PSEL_QSPI, 1, 0)>,
			<RA_PSEL(RA_PSEL_QSPI, 1, 12)>,
			<RA_PSEL(RA_PSEL_QSPI, 1, 2)>,
			<RA_PSEL(RA_PSEL_QSPI, 1, 1)>,
			<RA_PSEL(RA_PSEL_QSPI, 1, 4)>,
			<RA_PSEL(RA_PSEL_QSPI, 1, 3)>;
		};
	};
};
+14 −0
Original line number Diff line number Diff line
@@ -189,3 +189,17 @@
&wdt {
	status = "okay";
};

&qspi0 {
	pinctrl-0 = <&qspi_default>;
	pinctrl-names = "default";
	status = "okay";

	at25sf128a: qspi-nor-flash@60000000 {
		compatible = "renesas,ra-qspi-nor";
		reg = <0x60000000 DT_SIZE_M(16)>;
		status = "okay";
		write-block-size = <1>;
		erase-block-size = <4096>;
	};
};
+12 −0
Original line number Diff line number Diff line
@@ -85,4 +85,16 @@
			drive-strength = "high";
		};
	};

	qspi_default: qspi_default {
		group1 {
			/* QSPICLK QSSL QIO0 QIO1 QIO2 QIO3 */
			psels = <RA_PSEL(RA_PSEL_QSPI, 3, 5)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 6)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 7)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 8)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 9)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 10)>;
		};
	};
};
+14 −0
Original line number Diff line number Diff line
@@ -214,3 +214,17 @@
		status = "okay";
	};
};

&qspi0 {
	pinctrl-0 = <&qspi_default>;
	pinctrl-names = "default";
	status = "okay";

	mx25l25645g: qspi-nor-flash@60000000 {
		compatible = "renesas,ra-qspi-nor";
		reg = <0x60000000 DT_SIZE_M(32)>;
		status = "okay";
		write-block-size = <1>;
		erase-block-size = <4096>;
	};
};
+12 −0
Original line number Diff line number Diff line
@@ -86,4 +86,16 @@
			drive-strength = "high";
		};
	};

	qspi_default: qspi_default {
		group1 {
			/* QSPICLK QSSL QIO0 QIO1 QIO2 QIO3 */
			psels = <RA_PSEL(RA_PSEL_QSPI, 3, 5)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 6)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 7)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 8)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 9)>,
			<RA_PSEL(RA_PSEL_QSPI, 3, 10)>;
		};
	};
};
Loading