Skip to contentSkip to conversation

arm: socfpga: vining: Drop meaningless comment

PATCH In review Marek Vasut 2 participants 16 messages Sep 14, 2021 – Sep 27, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 arm: socfpga: vining: Drop meaningless comment

The comment is no longer meaningful due to DT conversion, drop it.

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 include/configs/socfpga_vining_fpga.h | 2 --
 1 file changed, 2 deletions(-)
include/configs/socfpga_vining_fpga.h +0 -2
index 06976d804c7..38a77535893 100644
@@ -17,8 +17,6 @@
 #define CONFIG_LOADADDR		0x01000000
 #define CONFIG_SYS_LOAD_ADDR	CONFIG_LOADADDR
 
-/* Ethernet on SoC (EMAC) */
-
 /* Extra Environment */
 #define CONFIG_HOSTNAME			"socfpga_vining_fpga"
 
Signature · 1 line
2.33.0
#1 lore raw

PATCH 2/8 arm: socfpga: vining: Increase environment size

Increase the environment size from 4k to 16k to prevent environment from becoming full.

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 configs/socfpga_vining_fpga_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/socfpga_vining_fpga_defconfig +1 -1
index b418efbf895..452e5b48f3a 100644
@@ -1,6 +1,6 @@
 CONFIG_ARM=y
 CONFIG_ARCH_SOCFPGA=y
-CONFIG_ENV_SIZE=0x2000
+CONFIG_ENV_SIZE=0x4000
 CONFIG_ENV_OFFSET=0x100000
 CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_DM_GPIO=y
Signature · 1 line
2.33.0
Reviewed-by on v1 2/8
#2 lore raw

RE: [PATCH 2/8] arm: socfpga: vining: Increase environment size

Quoted 13 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 14 September, 2021 11:26 AM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH 2/8] arm: socfpga: vining: Increase environment size

Increase the environment size from 4k to 16k to prevent environment from becoming full.

Quoted 8 lines
Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 configs/socfpga_vining_fpga_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Regards,
TF

#3 lore raw

PATCH 3/8 arm: socfpga: vining: Set USB gadget manufacturer to Softing with capital S

In reply to Marek Vasut

This was configured in downstream, so it is likely that most of the custom software used around the device depends on it. Make upstream compatible.

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 configs/socfpga_vining_fpga_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/socfpga_vining_fpga_defconfig +1 -1
index 452e5b48f3a..5d8970e57ca 100644
@@ -91,7 +91,7 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_USB_DWC2=y
 CONFIG_USB_GADGET=y
-CONFIG_USB_GADGET_MANUFACTURER="softing"
+CONFIG_USB_GADGET_MANUFACTURER="Softing"
 CONFIG_USB_GADGET_VENDOR_NUM=0x0525
 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
 CONFIG_USB_GADGET_DWC2_OTG=y
Signature · 1 line
2.33.0
Reviewed-by on v1 3/8
#4 lore raw

RE: [PATCH 3/8] arm: socfpga: vining: Set USB gadget manufacturer to Softing with capital S

Quoted 14 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 14 September, 2021 11:26 AM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH 3/8] arm: socfpga: vining: Set USB gadget manufacturer to Softing with capital S

This was configured in downstream, so it is likely that most of the custom software used around the device depends on it. Make upstream compatible.

Quoted 8 lines
Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 configs/socfpga_vining_fpga_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Regards,
TF

#5 lore raw

PATCH 4/8 arm: socfpga: vining: Set default SPI NOR mode and frequency

In reply to Marek Vasut

The SPI NOR bus mode is 0 on this system, update it accordingly. Increase frequency to 40 MHz and enable SFDP parsing, since the flashes on this system support that and it is a huge performance improvement.

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 configs/socfpga_vining_fpga_defconfig | 3 +++
 1 file changed, 3 insertions(+)
configs/socfpga_vining_fpga_defconfig +3 -0
index 5d8970e57ca..4dcf4f7bf9e 100644
@@ -74,6 +74,9 @@ CONFIG_SYS_EEPROM_PAGE_WRITE_BITS=3
 CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS=70
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
+CONFIG_SF_DEFAULT_MODE=0x0
+CONFIG_SF_DEFAULT_SPEED=40000000
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
Signature · 1 line
2.33.0
Reviewed-by on v1 4/8
#6 lore raw

RE: [PATCH 4/8] arm: socfpga: vining: Set default SPI NOR mode and frequency

Quoted 15 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 14 September, 2021 11:26 AM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH 4/8] arm: socfpga: vining: Set default SPI NOR mode and frequency

The SPI NOR bus mode is 0 on this system, update it accordingly. Increase frequency to 40 MHz and enable SFDP parsing, since the flashes on this system support that and it is a huge performance improvement.

Quoted 8 lines
Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 configs/socfpga_vining_fpga_defconfig | 3 +++
 1 file changed, 3 insertions(+)

Regards,
TF

#7 lore raw

PATCH 5/8 arm: socfpga: vining: Un-disable WDT in DT

In reply to Marek Vasut

The WDT on this system should be enabled, make it so.

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi +0 -4
index 2e4468e8d80..9e8be282005 100644
@@ -15,10 +15,6 @@
 	};
 };
 
-&watchdog0 {
-	status = "disabled";
-};
-
 &mmc {
 	status = "disabled";
 };
Signature · 1 line
2.33.0
Reviewed-by on v1 5/8
#8 lore raw

RE: [PATCH 5/8] arm: socfpga: vining: Un-disable WDT in DT

Quoted 12 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 14 September, 2021 11:26 AM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH 5/8] arm: socfpga: vining: Un-disable WDT in DT

The WDT on this system should be enabled, make it so.

Quoted 8 lines
Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi | 4 ----
 1 file changed, 4 deletions(-)

Regards,
TF

#9 lore raw

PATCH 6/8 arm: socfpga: vining: Fix UDC controller phandle in DT

In reply to Marek Vasut

The USB peripheral controller is the DWC2 controller 1, not 0. Update the phandle to fix UDC support on this board.

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi +1 -1
index 9e8be282005..fb05c31d87b 100644
@@ -11,7 +11,7 @@
 /{
 	aliases {
 		spi0 = "/soc/spi@ff705000";
-		udc0 = &usb0;
+		udc0 = &usb1;
 	};
 };
 
Signature · 1 line
2.33.0
Reviewed-by on v1 6/8
#10 lore raw

RE: [PATCH 6/8] arm: socfpga: vining: Fix UDC controller phandle in DT

Quoted 13 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 14 September, 2021 11:26 AM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH 6/8] arm: socfpga: vining: Fix UDC controller phandle in DT

The USB peripheral controller is the DWC2 controller 1, not 0. Update the phandle to fix UDC support on this board.

Quoted 8 lines
Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 arch/arm/dts/socfpga_cyclone5_vining_fpga-u-boot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Regards,
TF

#11 lore raw

PATCH 7/8 arm: socfpga: vining: Enable DW I2C driver

In reply to Marek Vasut

The Designware I2C IP is used to communicate with I2C peripherals on SoCFPGA, and required to access I2C EEPROM on this board. Enable it.

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 configs/socfpga_vining_fpga_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/socfpga_vining_fpga_defconfig +1 -0
index 4dcf4f7bf9e..cbdb897f19f 100644
@@ -56,6 +56,7 @@ CONFIG_DFU_SF=y
 CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_DW=y
 CONFIG_LED_STATUS=y
 CONFIG_LED_STATUS_GPIO=y
 CONFIG_LED_STATUS0=y
Signature · 1 line
2.33.0
Reviewed-by on v1 7/8
#12 lore raw

RE: [PATCH 7/8] arm: socfpga: vining: Enable DW I2C driver

Quoted 13 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 14 September, 2021 11:26 AM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH 7/8] arm: socfpga: vining: Enable DW I2C driver

The Designware I2C IP is used to communicate with I2C peripherals on SoCFPGA, and required to access I2C EEPROM on this board. Enable it.

Quoted 8 lines
Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 configs/socfpga_vining_fpga_defconfig | 1 +
 1 file changed, 1 insertion(+)

Regards,
TF

#13 lore raw

PATCH 8/8 arm: socfpga: vining: Let DWMAC configure PHY reset GPIO

In reply to Marek Vasut

The DM DWMAC driver is perfectly capable of configuring the ethernet PHY reset GPIO, let the driver do it instead of doing it in the board file.

Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 board/softing/vining_fpga/socfpga.c | 7 -------
 1 file changed, 7 deletions(-)
board/softing/vining_fpga/socfpga.c +0 -7
index aaedf034504..22992273911 100644
@@ -23,7 +23,6 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 int board_late_init(void)
 {
-	const unsigned int phy_nrst_gpio = 0;
 	const unsigned int usb_nrst_gpio = 35;
 	int ret;
 
@@ -33,12 +32,6 @@ int board_late_init(void)
 	/* Address of boot parameters for ATAG (if ATAG is used) */
 	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
 
-	ret = gpio_request(phy_nrst_gpio, "phy_nrst_gpio");
-	if (!ret)
-		gpio_direction_output(phy_nrst_gpio, 1);
-	else
-		printf("Cannot remove PHY from reset!\n");
-
 	ret = gpio_request(usb_nrst_gpio, "usb_nrst_gpio");
 	if (!ret)
 		gpio_direction_output(usb_nrst_gpio, 1);
Signature · 1 line
2.33.0
Reviewed-by on v1 8/8
#14 lore raw

RE: [PATCH 8/8] arm: socfpga: vining: Let DWMAC configure PHY reset GPIO

Quoted 14 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 14 September, 2021 11:26 AM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH 8/8] arm: socfpga: vining: Let DWMAC configure PHY reset GPIO

The DM DWMAC driver is perfectly capable of configuring the ethernet PHY reset GPIO, let the driver do it instead of doing it in the board file.

Quoted 8 lines
Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 board/softing/vining_fpga/socfpga.c | 7 -------
 1 file changed, 7 deletions(-)

Regards,
TF

Reviewed-by on v1 1/8
#15 lore raw
In reply to Marek Vasut
Quoted 12 lines

-----Original Message-----
From: Marek Vasut <[email protected]>
Sent: Tuesday, 14 September, 2021 11:25 AM
To: [email protected]
Cc: Marek Vasut <[email protected]>; Lim, Elly Siew Chin <[email protected]>; Simon Goldschmidt <[email protected]>; Chee, Tien Fong <[email protected]>
Subject: [PATCH 1/8] arm: socfpga: vining: Drop meaningless comment

The comment is no longer meaningful due to DT conversion, drop it.

Quoted 8 lines
Cc Siew Chin Lim <[email protected]>
Cc Simon Goldschmidt <[email protected]>
Cc Tien Fong Chee <[email protected]>
---
 include/configs/socfpga_vining_fpga.h | 2 --
 1 file changed, 2 deletions(-)

Regards,
TF