* [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support
@ 2016-07-29 6:33 Vignesh R
2016-07-29 6:33 ` [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable " Vignesh R
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Vignesh R @ 2016-07-29 6:33 UTC (permalink / raw)
To: u-boot
This series adds support for QSPI for am571x-idk and am572x-idk. The
flash is same as the one present on DRA74 EVM.
Tested on am572x-idk and am571x-idk.
Vignesh R (2):
ARM: am57xx_evm: Enable QSPI support
ARM: dts: am57xx-idk-common: Enable support for QSPI
arch/arm/dts/am57xx-idk-common.dtsi | 49 +++++++++++++++++++++++++++++++++++++
configs/am57xx_evm_defconfig | 5 ++++
include/configs/am57xx_evm.h | 36 +++++++++++++++++++++++++++
3 files changed, 90 insertions(+)
--
2.9.2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable QSPI support
2016-07-29 6:33 [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support Vignesh R
@ 2016-07-29 6:33 ` Vignesh R
2016-07-29 8:54 ` Mugunthan V N
2016-07-29 6:33 ` [U-Boot] [PATCH 2/2] ARM: dts: am57xx-idk-common: Enable support for QSPI Vignesh R
2016-07-29 6:46 ` [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support Vignesh R
2 siblings, 1 reply; 7+ messages in thread
From: Vignesh R @ 2016-07-29 6:33 UTC (permalink / raw)
To: u-boot
AM571x IDK and AM572x IDK EVMs have spansion s25fl256s QSPI flash on the
board connected to TI QSPI IP over CS0. Therefore enable QSPI support.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
configs/am57xx_evm_defconfig | 5 +++++
include/configs/am57xx_evm.h | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 41 insertions(+)
diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
index 8a8a4c9090b0..c95f45aca8b5 100644
--- a/configs/am57xx_evm_defconfig
+++ b/configs/am57xx_evm_defconfig
@@ -41,3 +41,8 @@ CONFIG_SPL_OF_LIBFDT=y
CONFIG_SPL_LOAD_FIT=y
CONFIG_OF_LIST="am57xx-beagle-x15 am572x-idk"
CONFIG_DM_I2C=y
+CONFIG_DM_SPI=y
+CONFIG_DM_SPI_FLASH=y
+CONFIG_SPI_FLASH_SPANSION=y
+CONFIG_TI_QSPI=y
+CONFIG_CMD_SF=y
diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
index 2db199db33b7..083886ba262f 100644
--- a/include/configs/am57xx_evm.h
+++ b/include/configs/am57xx_evm.h
@@ -86,4 +86,40 @@
#define CONFIG_EEPROM_CHIP_ADDRESS 0x50
#define CONFIG_EEPROM_BUS_ADDRESS 0
+/*
+ * Default to using SPI for environment, etc.
+ * 0x000000 - 0x040000 : QSPI.SPL (256KiB)
+ * 0x040000 - 0x140000 : QSPI.u-boot (1MiB)
+ * 0x140000 - 0x1C0000 : QSPI.u-boot-spl-os (512KiB)
+ * 0x1C0000 - 0x1D0000 : QSPI.u-boot-env (64KiB)
+ * 0x1D0000 - 0x1E0000 : QSPI.u-boot-env.backup1 (64KiB)
+ * 0x1E0000 - 0x9E0000 : QSPI.kernel (8MiB)
+ * 0x9E0000 - 0x2000000 : USERLAND
+ */
+#define CONFIG_SYS_SPI_KERNEL_OFFS 0x1E0000
+#define CONFIG_SYS_SPI_ARGS_OFFS 0x140000
+#define CONFIG_SYS_SPI_ARGS_SIZE 0x80000
+
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_DM_SPI
+#undef CONFIG_DM_SPI_FLASH
+#undef CONFIG_SPL_MAX_SIZE
+#define CONFIG_SPL_MAX_SIZE (256 << 10) /* 256 KiB */
+#endif
+
+/* SPI SPL */
+#define CONFIG_SPL_SPI_SUPPORT
+#define CONFIG_SPL_DMA_SUPPORT
+#define CONFIG_TI_EDMA3
+#define CONFIG_SPL_SPI_LOAD
+#define CONFIG_SPL_SPI_FLASH_SUPPORT
+#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x40000
+
+/* SPI */
+#undef CONFIG_OMAP3_SPI
+#define CONFIG_TI_SPI_MMAP
+#define CONFIG_SF_DEFAULT_SPEED 76800000
+#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
+#define CONFIG_QSPI_QUAD_SUPPORT
+
#endif /* __CONFIG_AM57XX_EVM_H */
--
2.9.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 2/2] ARM: dts: am57xx-idk-common: Enable support for QSPI
2016-07-29 6:33 [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support Vignesh R
2016-07-29 6:33 ` [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable " Vignesh R
@ 2016-07-29 6:33 ` Vignesh R
2016-07-29 6:46 ` [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support Vignesh R
2 siblings, 0 replies; 7+ messages in thread
From: Vignesh R @ 2016-07-29 6:33 UTC (permalink / raw)
To: u-boot
AM571x and AM572x IDK have a spansion s25fl256s QSPI flash on the board
connected to TI QSPI over CS0. Hence, add QSPI and flash slave
DT nodes.
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
arch/arm/dts/am57xx-idk-common.dtsi | 49 +++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/arch/arm/dts/am57xx-idk-common.dtsi b/arch/arm/dts/am57xx-idk-common.dtsi
index 2805b68f3e0b..a5bcd25d7b7f 100644
--- a/arch/arm/dts/am57xx-idk-common.dtsi
+++ b/arch/arm/dts/am57xx-idk-common.dtsi
@@ -300,3 +300,52 @@
ti,non-removable;
max-frequency = <96000000>;
};
+
+&qspi {
+ status = "okay";
+
+ spi-max-frequency = <76800000>;
+ m25p80 at 0 {
+ compatible = "s25fl256s1","spi-flash";
+ spi-max-frequency = <76800000>;
+ reg = <0>;
+ spi-tx-bus-width = <1>;
+ spi-rx-bus-width = <4>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ /* MTD partition table.
+ * The ROM checks the first four physical blocks
+ * for a valid file to boot and the flash here is
+ * 64KiB block size.
+ */
+ partition at 0 {
+ label = "QSPI.SPL";
+ reg = <0x00000000 0x000040000>;
+ };
+ partition at 1 {
+ label = "QSPI.u-boot";
+ reg = <0x00040000 0x00100000>;
+ };
+ partition at 2 {
+ label = "QSPI.u-boot-spl-os";
+ reg = <0x00140000 0x00080000>;
+ };
+ partition at 3 {
+ label = "QSPI.u-boot-env";
+ reg = <0x001c0000 0x00010000>;
+ };
+ partition at 4 {
+ label = "QSPI.u-boot-env.backup1";
+ reg = <0x001d0000 0x0010000>;
+ };
+ partition at 5 {
+ label = "QSPI.kernel";
+ reg = <0x001e0000 0x0800000>;
+ };
+ partition at 6 {
+ label = "QSPI.file-system";
+ reg = <0x009e0000 0x01620000>;
+ };
+ };
+};
--
2.9.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support
2016-07-29 6:33 [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support Vignesh R
2016-07-29 6:33 ` [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable " Vignesh R
2016-07-29 6:33 ` [U-Boot] [PATCH 2/2] ARM: dts: am57xx-idk-common: Enable support for QSPI Vignesh R
@ 2016-07-29 6:46 ` Vignesh R
2 siblings, 0 replies; 7+ messages in thread
From: Vignesh R @ 2016-07-29 6:46 UTC (permalink / raw)
To: u-boot
On Friday 29 July 2016 12:03 PM, Vignesh R wrote:
>
>
> This series adds support for QSPI for am571x-idk and am572x-idk. The
> flash is same as the one present on DRA74 EVM.
>
> Tested on am572x-idk and am571x-idk.
>
Please ignore this series, I forgot to add support for am57xx_hs_evm.
Sorry for the noise.
Regards
Vignesh
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable QSPI support
2016-07-29 6:33 ` [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable " Vignesh R
@ 2016-07-29 8:54 ` Mugunthan V N
2016-07-29 8:57 ` Vignesh R
0 siblings, 1 reply; 7+ messages in thread
From: Mugunthan V N @ 2016-07-29 8:54 UTC (permalink / raw)
To: u-boot
On Friday 29 July 2016 12:03 PM, Vignesh R wrote:
> AM571x IDK and AM572x IDK EVMs have spansion s25fl256s QSPI flash on the
> board connected to TI QSPI IP over CS0. Therefore enable QSPI support.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> ---
> configs/am57xx_evm_defconfig | 5 +++++
> include/configs/am57xx_evm.h | 36 ++++++++++++++++++++++++++++++++++++
> 2 files changed, 41 insertions(+)
>
> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
> index 8a8a4c9090b0..c95f45aca8b5 100644
> --- a/configs/am57xx_evm_defconfig
> +++ b/configs/am57xx_evm_defconfig
> @@ -41,3 +41,8 @@ CONFIG_SPL_OF_LIBFDT=y
> CONFIG_SPL_LOAD_FIT=y
> CONFIG_OF_LIST="am57xx-beagle-x15 am572x-idk"
> CONFIG_DM_I2C=y
> +CONFIG_DM_SPI=y
> +CONFIG_DM_SPI_FLASH=y
> +CONFIG_SPI_FLASH_SPANSION=y
> +CONFIG_TI_QSPI=y
> +CONFIG_CMD_SF=y
CONFIG_SPI_FLASH_BAR ???
Regards
Mugunthan V N
> diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
> index 2db199db33b7..083886ba262f 100644
> --- a/include/configs/am57xx_evm.h
> +++ b/include/configs/am57xx_evm.h
> @@ -86,4 +86,40 @@
> #define CONFIG_EEPROM_CHIP_ADDRESS 0x50
> #define CONFIG_EEPROM_BUS_ADDRESS 0
>
> +/*
> + * Default to using SPI for environment, etc.
> + * 0x000000 - 0x040000 : QSPI.SPL (256KiB)
> + * 0x040000 - 0x140000 : QSPI.u-boot (1MiB)
> + * 0x140000 - 0x1C0000 : QSPI.u-boot-spl-os (512KiB)
> + * 0x1C0000 - 0x1D0000 : QSPI.u-boot-env (64KiB)
> + * 0x1D0000 - 0x1E0000 : QSPI.u-boot-env.backup1 (64KiB)
> + * 0x1E0000 - 0x9E0000 : QSPI.kernel (8MiB)
> + * 0x9E0000 - 0x2000000 : USERLAND
> + */
> +#define CONFIG_SYS_SPI_KERNEL_OFFS 0x1E0000
> +#define CONFIG_SYS_SPI_ARGS_OFFS 0x140000
> +#define CONFIG_SYS_SPI_ARGS_SIZE 0x80000
> +
> +#ifdef CONFIG_SPL_BUILD
> +#undef CONFIG_DM_SPI
> +#undef CONFIG_DM_SPI_FLASH
> +#undef CONFIG_SPL_MAX_SIZE
> +#define CONFIG_SPL_MAX_SIZE (256 << 10) /* 256 KiB */
> +#endif
> +
> +/* SPI SPL */
> +#define CONFIG_SPL_SPI_SUPPORT
> +#define CONFIG_SPL_DMA_SUPPORT
> +#define CONFIG_TI_EDMA3
> +#define CONFIG_SPL_SPI_LOAD
> +#define CONFIG_SPL_SPI_FLASH_SUPPORT
> +#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x40000
> +
> +/* SPI */
> +#undef CONFIG_OMAP3_SPI
> +#define CONFIG_TI_SPI_MMAP
> +#define CONFIG_SF_DEFAULT_SPEED 76800000
> +#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
> +#define CONFIG_QSPI_QUAD_SUPPORT
> +
> #endif /* __CONFIG_AM57XX_EVM_H */
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable QSPI support
2016-07-29 8:54 ` Mugunthan V N
@ 2016-07-29 8:57 ` Vignesh R
2016-07-29 9:17 ` Mugunthan V N
0 siblings, 1 reply; 7+ messages in thread
From: Vignesh R @ 2016-07-29 8:57 UTC (permalink / raw)
To: u-boot
On Friday 29 July 2016 02:24 PM, Mugunthan V N wrote:
> On Friday 29 July 2016 12:03 PM, Vignesh R wrote:
>> AM571x IDK and AM572x IDK EVMs have spansion s25fl256s QSPI flash on the
>> board connected to TI QSPI IP over CS0. Therefore enable QSPI support.
>>
>> Signed-off-by: Vignesh R <vigneshr@ti.com>
>> ---
>> configs/am57xx_evm_defconfig | 5 +++++
>> include/configs/am57xx_evm.h | 36 ++++++++++++++++++++++++++++++++++++
>> 2 files changed, 41 insertions(+)
>>
>> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
>> index 8a8a4c9090b0..c95f45aca8b5 100644
>> --- a/configs/am57xx_evm_defconfig
>> +++ b/configs/am57xx_evm_defconfig
>> @@ -41,3 +41,8 @@ CONFIG_SPL_OF_LIBFDT=y
>> CONFIG_SPL_LOAD_FIT=y
>> CONFIG_OF_LIST="am57xx-beagle-x15 am572x-idk"
>> CONFIG_DM_I2C=y
>> +CONFIG_DM_SPI=y
>> +CONFIG_DM_SPI_FLASH=y
>> +CONFIG_SPI_FLASH_SPANSION=y
>> +CONFIG_TI_QSPI=y
>> +CONFIG_CMD_SF=y
>
> CONFIG_SPI_FLASH_BAR ???
That config option is already enabled in am57xx_evm_defconfig.
--
Regards
Vignesh
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable QSPI support
2016-07-29 8:57 ` Vignesh R
@ 2016-07-29 9:17 ` Mugunthan V N
0 siblings, 0 replies; 7+ messages in thread
From: Mugunthan V N @ 2016-07-29 9:17 UTC (permalink / raw)
To: u-boot
On Friday 29 July 2016 02:27 PM, Vignesh R wrote:
>
>
> On Friday 29 July 2016 02:24 PM, Mugunthan V N wrote:
>> On Friday 29 July 2016 12:03 PM, Vignesh R wrote:
>>> AM571x IDK and AM572x IDK EVMs have spansion s25fl256s QSPI flash on the
>>> board connected to TI QSPI IP over CS0. Therefore enable QSPI support.
>>>
>>> Signed-off-by: Vignesh R <vigneshr@ti.com>
>>> ---
>>> configs/am57xx_evm_defconfig | 5 +++++
>>> include/configs/am57xx_evm.h | 36 ++++++++++++++++++++++++++++++++++++
>>> 2 files changed, 41 insertions(+)
>>>
>>> diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
>>> index 8a8a4c9090b0..c95f45aca8b5 100644
>>> --- a/configs/am57xx_evm_defconfig
>>> +++ b/configs/am57xx_evm_defconfig
>>> @@ -41,3 +41,8 @@ CONFIG_SPL_OF_LIBFDT=y
>>> CONFIG_SPL_LOAD_FIT=y
>>> CONFIG_OF_LIST="am57xx-beagle-x15 am572x-idk"
>>> CONFIG_DM_I2C=y
>>> +CONFIG_DM_SPI=y
>>> +CONFIG_DM_SPI_FLASH=y
>>> +CONFIG_SPI_FLASH_SPANSION=y
>>> +CONFIG_TI_QSPI=y
>>> +CONFIG_CMD_SF=y
>>
>> CONFIG_SPI_FLASH_BAR ???
>
> That config option is already enabled in am57xx_evm_defconfig.
>
Okay, I could see all spi related configs here, so I thought you missed
adding CONFIG_SPI_FLASH_BAR.
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Regards
Mugunthan V N
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-07-29 9:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-29 6:33 [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support Vignesh R
2016-07-29 6:33 ` [U-Boot] [PATCH 1/2] ARM: am57xx_evm: Enable " Vignesh R
2016-07-29 8:54 ` Mugunthan V N
2016-07-29 8:57 ` Vignesh R
2016-07-29 9:17 ` Mugunthan V N
2016-07-29 6:33 ` [U-Boot] [PATCH 2/2] ARM: dts: am57xx-idk-common: Enable support for QSPI Vignesh R
2016-07-29 6:46 ` [U-Boot] [PATCH 0/2] AM57xx-IDK: Add QSPI support Vignesh R
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.