Skip to contentSkip to conversation

Subject: [patch]SPI: GD SPI: Add Gigadevice SPI NOR part numbers

PATCH In review Victor lim 3 participants 4 messages Nov 17, 2022 – Nov 22, 2022

Subsystems (2)
lore
Share & tools
lore

Victor lim

author
#0 lore raw

PATCH 1/1 Subject: [patch]SPI: GD SPI: Add Gigadevice SPI NOR part numbers

added gigadevice in the defconfig file and ID in the ids.c file

---
 configs/xilinx_zynqmp_mini_qspi_defconfig |   1 +
 configs/zynq_cse_qspi_defconfig           |   1 +
 drivers/mtd/spi/spi-nor-ids.c             | 137 +++++++++++++++-------
 3 files changed, 94 insertions(+), 45 deletions(-)
configs/xilinx_zynqmp_mini_qspi_defconfig +1 -0
index c6401c2a54..75014117f1 100644
@@ -78,3 +78,4 @@ CONFIG_ZYNQMP_GQSPI=y
 CONFIG_PANIC_HANG=y
 # CONFIG_GZIP is not set
 # CONFIG_LMB is not set
+CONFIG_SPI_FLASH_GIGADEVICE=y
configs/zynq_cse_qspi_defconfig +1 -0
index 60f0d7cac4..cd245906ab 100644
@@ -76,3 +76,4 @@ CONFIG_ARM_DCC=y
 CONFIG_ZYNQ_QSPI=y
 # CONFIG_GZIP is not set
 # CONFIG_LMB is not set
+CONFIG_SPI_FLASH_GIGADEVICE=y
drivers/mtd/spi/spi-nor-ids.c +92 -45

143 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 6 lines · Victor lim

added gigadevice in the defconfig file and ID in the ids.c file

---
  configs/xilinx_zynqmp_mini_qspi_defconfig |   1 +
  configs/zynq_cse_qspi_defconfig           |   1 +

This should be done in separate patch.

configs/xilinx_zynqmp_mini_qspi_defconfig CONFIG_ZYNQMP_GQSPI=y · line 81

Quoted 12 lines
  drivers/mtd/spi/spi-nor-ids.c             | 137 +++++++++++++++-------
  3 files changed, 94 insertions(+), 45 deletions(-)
configs/xilinx_zynqmp_mini_qspi_defconfig +1 -0
index c6401c2a54..75014117f1 100644
@@ -78,3 +78,4 @@ CONFIG_ZYNQMP_GQSPI=y
  CONFIG_PANIC_HANG=y
  # CONFIG_GZIP is not set
  # CONFIG_LMB is not set
+CONFIG_SPI_FLASH_GIGADEVICE=y

This is likely just appended and doesn't reflect Kconfig layout.
Run make xilinx_zynqmp_mini_qspi_defconfig; make savedefconfig; cp defconfig configs/xilinx_zynqmp_mini_qspi_defconfig

configs/zynq_cse_qspi_defconfig CONFIG_ARM_DCC=y · line 79

Quoted 9 lines
configs/zynq_cse_qspi_defconfig +1 -0
index 60f0d7cac4..cd245906ab 100644
@@ -76,3 +76,4 @@ CONFIG_ARM_DCC=y
  CONFIG_ZYNQ_QSPI=y
  # CONFIG_GZIP is not set
  # CONFIG_LMB is not set
+CONFIG_SPI_FLASH_GIGADEVICE=y

ditto. I am also fine with enabling these memories for zynqmp_virt/zynq_virt and versal_virt and versal_net_virt platforms.

Hard to guess what you have changed below. But if you want to change style it is one patch. If you want to add new devices it is another patch.

Thanks,
Michal

#2 lore raw

Hi, Michal,

Regarding the following item,

configs/xilinx_zynqmp_mini_qspi_defconfig CONFIG_ZYNQMP_GQSPI=y · line 81

Quoted 12 lines
  drivers/mtd/spi/spi-nor-ids.c             | 137 +++++++++++++++-------
  3 files changed, 94 insertions(+), 45 deletions(-)
configs/xilinx_zynqmp_mini_qspi_defconfig +1 -0
index c6401c2a54..75014117f1 100644
@@ -78,3 +78,4 @@ CONFIG_ZYNQMP_GQSPI=y
  CONFIG_PANIC_HANG=y
  # CONFIG_GZIP is not set
  # CONFIG_LMB is not set
+CONFIG_SPI_FLASH_GIGADEVICE=y

This is likely just appended and doesn't reflect Kconfig layout. Run make xilinx_zynqmp_mini_qspi_defconfig; make savedefconfig; cp defconfig configs/xilinx_zynqmp_mini_qspi_defconfig

I have the following script for uboot compilation, should I add the following lines to my script? make savedefconfig;
cp defconfig configs/xilinx_zynqmp_mini_qspi_defconfig

This is my script,
source /tools/Xilinx/Vivado/2022.2/settings64.sh
export CROSS_COMPILE=aarch64-linux-gnu-
export ARCH=aarch64
make distclean
make xilinx_zynqmp_mini_qspi_defconfig
make -j8 DEVICE_TREE=zynqmp-mini-qspi-single
cp u-boot.elf zynqmp_qspi_x4_single.bin

Regards,

Victor

________________________________
From: Michal Simek <[email protected]>
Sent: Monday, November 21, 2022 02:34
To: Victor lim <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; Vlim <[email protected]>
Subject: Re: [PATCH] Subject: [patch]SPI: GD SPI: Add Gigadevice SPI NOR part numbers

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

此为外部邮件,谨防钓鱼邮件,请注意邮件是否涉及敏感信息

This is an external email, beware of phishing emails. Please pay close attention to whether the email contains sensitive information

Quoted 6 lines · Victor lim

added gigadevice in the defconfig file and ID in the ids.c file

---
  configs/xilinx_zynqmp_mini_qspi_defconfig |   1 +
  configs/zynq_cse_qspi_defconfig           |   1 +

This should be done in separate patch.

configs/xilinx_zynqmp_mini_qspi_defconfig CONFIG_ZYNQMP_GQSPI=y · line 81

Quoted 12 lines
  drivers/mtd/spi/spi-nor-ids.c             | 137 +++++++++++++++-------
  3 files changed, 94 insertions(+), 45 deletions(-)
configs/xilinx_zynqmp_mini_qspi_defconfig +1 -0
index c6401c2a54..75014117f1 100644
@@ -78,3 +78,4 @@ CONFIG_ZYNQMP_GQSPI=y
  CONFIG_PANIC_HANG=y
  # CONFIG_GZIP is not set
  # CONFIG_LMB is not set
+CONFIG_SPI_FLASH_GIGADEVICE=y

This is likely just appended and doesn't reflect Kconfig layout. Run make xilinx_zynqmp_mini_qspi_defconfig; make savedefconfig; cp defconfig configs/xilinx_zynqmp_mini_qspi_defconfig

configs/zynq_cse_qspi_defconfig CONFIG_ARM_DCC=y · line 79

Quoted 9 lines
configs/zynq_cse_qspi_defconfig +1 -0
index 60f0d7cac4..cd245906ab 100644
@@ -76,3 +76,4 @@ CONFIG_ARM_DCC=y
  CONFIG_ZYNQ_QSPI=y
  # CONFIG_GZIP is not set
  # CONFIG_LMB is not set
+CONFIG_SPI_FLASH_GIGADEVICE=y

ditto. I am also fine with enabling these memories for zynqmp_virt/zynq_virt and versal_virt and versal_net_virt platforms.

Hard to guess what you have changed below. But if you want to change style it is one patch. If you want to add new devices it is another patch.

Thanks,
Michal

maintainer
#3 lore raw

Hi,

Quoted 22 lines · Vlim

Hi, Michal,

Regarding the following item,

Quoted 8 lines
   drivers/mtd/spi/spi-nor-ids.c             | 137 +++++++++++++++-------
   3 files changed, 94 insertions(+), 45 deletions(-)
configs/xilinx_zynqmp_mini_qspi_defconfig +0 -0
index c6401c2a54..75014117f1 100644
@@ -78,3 +78,4 @@ CONFIG_ZYNQMP_GQSPI=y
Quoted 4 lines

   CONFIG_PANIC_HANG=y
   # CONFIG_GZIP is not set
   # CONFIG_LMB is not set
+CONFIG_SPI_FLASH_GIGADEVICE=y

This is likely just appended and doesn't reflect Kconfig layout. Run make xilinx_zynqmp_mini_qspi_defconfig; make savedefconfig; cp defconfig configs/xilinx_zynqmp_mini_qspi_defconfig

Quoted 3 lines

I have the following script for uboot compilation, should I add the following lines to my script? make savedefconfig;
cp defconfig configs/xilinx_zynqmp_mini_qspi_defconfig

up2you but symbol position should be correct when you add it based on current Kconfig layout.

Thanks,
Michal