All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] AM64: Add support for USB
@ 2021-10-20 15:39 Aswath Govindraju
  2021-10-20 15:39 ` [PATCH 1/2] arm: dts: am642-sk: Add and Enable USB SuperSpeed Host Port in SPL Aswath Govindraju
  2021-10-20 15:39 ` [PATCH 2/2] configs: am64x_evm_*_defconfig: Add configs to enable serdes for USB 3.0 support Aswath Govindraju
  0 siblings, 2 replies; 5+ messages in thread
From: Aswath Govindraju @ 2021-10-20 15:39 UTC (permalink / raw)
  Cc: u-boot, Nishanth Menon, Dave Gerlach, Kishon Vijay Abraham I,
	Vignesh Raghavendra, Suman Anna, Simon Glass, Jaehoon Chung

Add support for USB 3.0 TYPE A port on AM642 SK board

The following series of patches are dependent on,
- https://patchwork.ozlabs.org/project/uboot/list/?series=268093
- https://patchwork.ozlabs.org/project/uboot/list/?series=268092

Aswath Govindraju (1):
  configs: am64x_evm_*_defconfig: Add configs to enable serdes for USB
    3.0 support

Kishon Vijay Abraham I (1):
  arm: dts: am642-sk: Add and Enable USB SuperSpeed Host Port in SPL

 arch/arm/dts/k3-am642-r5-sk.dts      | 40 ++++++++++++++++++++++++++++
 arch/arm/dts/k3-am642-sk-u-boot.dtsi | 33 +++++++++++++++++++++++
 configs/am64x_evm_a53_defconfig      | 15 +++++++++++
 configs/am64x_evm_r5_defconfig       | 13 +++++++++
 4 files changed, 101 insertions(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] arm: dts: am642-sk: Add and Enable USB SuperSpeed Host Port in SPL
  2021-10-20 15:39 [PATCH 0/2] AM64: Add support for USB Aswath Govindraju
@ 2021-10-20 15:39 ` Aswath Govindraju
  2021-11-18 19:15   ` Tom Rini
  2021-10-20 15:39 ` [PATCH 2/2] configs: am64x_evm_*_defconfig: Add configs to enable serdes for USB 3.0 support Aswath Govindraju
  1 sibling, 1 reply; 5+ messages in thread
From: Aswath Govindraju @ 2021-10-20 15:39 UTC (permalink / raw)
  Cc: u-boot, Nishanth Menon, Dave Gerlach, Kishon Vijay Abraham I,
	Vignesh Raghavendra, Suman Anna, Simon Glass, Jaehoon Chung

From: Kishon Vijay Abraham I <kishon@ti.com>

Add and Enable USB SuperSpeed Host Port in SPL.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
---
 arch/arm/dts/k3-am642-r5-sk.dts      | 40 ++++++++++++++++++++++++++++
 arch/arm/dts/k3-am642-sk-u-boot.dtsi | 33 +++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/arch/arm/dts/k3-am642-r5-sk.dts b/arch/arm/dts/k3-am642-r5-sk.dts
index 79eff8259f94..71fcf61ff9fb 100644
--- a/arch/arm/dts/k3-am642-r5-sk.dts
+++ b/arch/arm/dts/k3-am642-r5-sk.dts
@@ -5,6 +5,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/mux/ti-serdes.h>
+#include <dt-bindings/phy/phy.h>
 #include "k3-am642.dtsi"
 #include "k3-am64-sk-lp4-1333MTs.dtsi"
 #include "k3-am64-ddr.dtsi"
@@ -107,6 +109,13 @@
 			AM64X_IOPAD(0x029c, PIN_INPUT_PULLUP, 0)	/* (C20) MMC1_SDWP */
 		>;
 	};
+
+	main_usb0_pins_default: main-usb0-pins-default {
+		u-boot,dm-spl;
+		pinctrl-single,pins = <
+			AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
+		>;
+	};
 };
 
 &dmsc {
@@ -142,4 +151,35 @@
 	pinctrl-0 = <&main_mmc1_pins_default>;
 };
 
+&serdes_ln_ctrl {
+	idle-states = <AM64_SERDES0_LANE0_USB>;
+};
+
+&serdes_wiz0 {
+	status = "okay";
+};
+
+&serdes0 {
+	serdes0_usb_link: link@0 {
+		reg = <0>;
+		cdns,num-lanes = <1>;
+		#phy-cells = <0>;
+		cdns,phy-type = <PHY_TYPE_USB3>;
+		resets = <&serdes_wiz0 1>;
+	};
+};
+
+&usbss0 {
+	ti,vbus-divider;
+};
+
+&usb0 {
+	dr_mode = "host";
+	maximum-speed = "super-speed";
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_usb0_pins_default>;
+	phys = <&serdes0_usb_link>;
+	phy-names = "cdns3,usb3-phy";
+};
+
 #include "k3-am642-sk-u-boot.dtsi"
diff --git a/arch/arm/dts/k3-am642-sk-u-boot.dtsi b/arch/arm/dts/k3-am642-sk-u-boot.dtsi
index efbcfb36e92a..95cf52c37fab 100644
--- a/arch/arm/dts/k3-am642-sk-u-boot.dtsi
+++ b/arch/arm/dts/k3-am642-sk-u-boot.dtsi
@@ -110,3 +110,36 @@
 &cpsw_port2 {
 	status = "disabled";
 };
+
+&main_usb0_pins_default {
+	u-boot,dm-spl;
+};
+
+&serdes_ln_ctrl {
+	u-boot,mux-autoprobe;
+};
+
+&usbss0 {
+	u-boot,dm-spl;
+};
+
+&usb0 {
+	dr_mode = "host";
+	u-boot,dm-spl;
+};
+
+&serdes_wiz0 {
+	u-boot,dm-spl;
+};
+
+&serdes0_usb_link {
+	u-boot,dm-spl;
+};
+
+&serdes0 {
+	u-boot,dm-spl;
+};
+
+&serdes_refclk {
+	u-boot,dm-spl;
+};
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] configs: am64x_evm_*_defconfig: Add configs to enable serdes for USB 3.0 support
  2021-10-20 15:39 [PATCH 0/2] AM64: Add support for USB Aswath Govindraju
  2021-10-20 15:39 ` [PATCH 1/2] arm: dts: am642-sk: Add and Enable USB SuperSpeed Host Port in SPL Aswath Govindraju
@ 2021-10-20 15:39 ` Aswath Govindraju
  2021-11-18 19:15   ` Tom Rini
  1 sibling, 1 reply; 5+ messages in thread
From: Aswath Govindraju @ 2021-10-20 15:39 UTC (permalink / raw)
  Cc: u-boot, Nishanth Menon, Dave Gerlach, Kishon Vijay Abraham I,
	Vignesh Raghavendra, Suman Anna, Simon Glass, Jaehoon Chung

Add configs to enable serdes for USB 3.0 support.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
---
 configs/am64x_evm_a53_defconfig | 15 +++++++++++++++
 configs/am64x_evm_r5_defconfig  | 13 +++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig
index d157403d84cb..388b3530d0b9 100644
--- a/configs/am64x_evm_a53_defconfig
+++ b/configs/am64x_evm_a53_defconfig
@@ -1,6 +1,7 @@
 CONFIG_ARM=y
 CONFIG_SKIP_LOWLEVEL_INIT=y
 CONFIG_ARCH_K3=y
+CONFIG_SPL_GPIO=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_SYS_MALLOC_F_LEN=0x8000
@@ -34,6 +35,7 @@ CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1400
 CONFIG_SPL_DMA=y
+CONFIG_SPL_DM_GPIO=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_I2C=y
 CONFIG_SPL_DM_MAILBOX=y
@@ -70,10 +72,14 @@ CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_REGMAP=y
 CONFIG_SPL_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_SPL_SYSCON=y
 CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_CLK=y
 CONFIG_SPL_CLK=y
 CONFIG_CLK_TI_SCI=y
+CONFIG_CLK_CCF=y
+CONFIG_SPL_CLK_CCF=y
 CONFIG_DFU_MMC=y
 CONFIG_DFU_RAM=y
 CONFIG_DFU_SF=y
@@ -84,6 +90,7 @@ CONFIG_TI_K3_NAVSS_UDMA=y
 CONFIG_TI_SCI_PROTOCOL=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_OMAP24XX=y
+CONFIG_DM_GPIO=y
 CONFIG_DM_MAILBOX=y
 CONFIG_K3_SEC_PROXY=y
 CONFIG_SUPPORT_EMMC_BOOT=y
@@ -96,10 +103,18 @@ CONFIG_MMC_SDHCI_AM654=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_MULTIPLEXER=y
+CONFIG_MUX_MMIO=y
 CONFIG_PHY_TI_DP83867=y
 CONFIG_PHY_FIXED=y
 CONFIG_DM_ETH=y
 CONFIG_TI_AM65_CPSW_NUSS=y
+CONFIG_PHY=y
+CONFIG_SPL_PHY=y
+CONFIG_PHY_CADENCE_TORRENT=y
+CONFIG_SPL_PHY_CADENCE_TORRENT=y
+CONFIG_PHY_J721E_WIZ=y
+CONFIG_SPL_PHY_J721E_WIZ=y
 CONFIG_PINCTRL=y
 CONFIG_SPL_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
diff --git a/configs/am64x_evm_r5_defconfig b/configs/am64x_evm_r5_defconfig
index 5b04f18a635a..0f49b5d7cb6e 100644
--- a/configs/am64x_evm_r5_defconfig
+++ b/configs/am64x_evm_r5_defconfig
@@ -10,6 +10,7 @@ CONFIG_ENV_SIZE=0x20000
 CONFIG_ENV_OFFSET=0x680000
 CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_DM_GPIO=y
+CONFIG_SPL_DM_GPIO=y
 CONFIG_SPL_DM_SPI=y
 CONFIG_DEFAULT_DEVICE_TREE="k3-am642-r5-evm"
 CONFIG_SPL_TEXT_BASE=0x70000000
@@ -76,10 +77,14 @@ CONFIG_SPL_DM=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_REGMAP=y
 CONFIG_SPL_REGMAP=y
+CONFIG_SYSCON=y
+CONFIG_SPL_SYSCON=y
 CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_CLK=y
 CONFIG_SPL_CLK=y
 CONFIG_CLK_TI_SCI=y
+CONFIG_CLK_CCF=y
+CONFIG_SPL_CLK_CCF=y
 CONFIG_DFU_MMC=y
 CONFIG_DFU_RAM=y
 CONFIG_DFU_SF=y
@@ -97,6 +102,14 @@ CONFIG_MMC_SDHCI_AM654=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_PHY=y
+CONFIG_SPL_PHY=y
+CONFIG_PHY_CADENCE_SIERRA=y
+CONFIG_SPL_PHY_CADENCE_SIERRA=y
+CONFIG_PHY_CADENCE_TORRENT=y
+CONFIG_SPL_PHY_CADENCE_TORRENT=y
+CONFIG_PHY_J721E_WIZ=y
+CONFIG_SPL_PHY_J721E_WIZ=y
 CONFIG_PINCTRL=y
 # CONFIG_PINCTRL_GENERIC is not set
 CONFIG_SPL_PINCTRL=y
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] arm: dts: am642-sk: Add and Enable USB SuperSpeed Host Port in SPL
  2021-10-20 15:39 ` [PATCH 1/2] arm: dts: am642-sk: Add and Enable USB SuperSpeed Host Port in SPL Aswath Govindraju
@ 2021-11-18 19:15   ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2021-11-18 19:15 UTC (permalink / raw)
  To: Aswath Govindraju
  Cc: u-boot, Nishanth Menon, Dave Gerlach, Kishon Vijay Abraham I,
	Vignesh Raghavendra, Suman Anna, Simon Glass, Jaehoon Chung

[-- Attachment #1: Type: text/plain, Size: 339 bytes --]

On Wed, Oct 20, 2021 at 09:09:12PM +0530, Aswath Govindraju wrote:

> From: Kishon Vijay Abraham I <kishon@ti.com>
> 
> Add and Enable USB SuperSpeed Host Port in SPL.
> 
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] configs: am64x_evm_*_defconfig: Add configs to enable serdes for USB 3.0 support
  2021-10-20 15:39 ` [PATCH 2/2] configs: am64x_evm_*_defconfig: Add configs to enable serdes for USB 3.0 support Aswath Govindraju
@ 2021-11-18 19:15   ` Tom Rini
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2021-11-18 19:15 UTC (permalink / raw)
  To: Aswath Govindraju
  Cc: u-boot, Nishanth Menon, Dave Gerlach, Kishon Vijay Abraham I,
	Vignesh Raghavendra, Suman Anna, Simon Glass, Jaehoon Chung

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

On Wed, Oct 20, 2021 at 09:09:13PM +0530, Aswath Govindraju wrote:

> Add configs to enable serdes for USB 3.0 support.
> 
> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>

Applied to u-boot/next, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-18 19:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-20 15:39 [PATCH 0/2] AM64: Add support for USB Aswath Govindraju
2021-10-20 15:39 ` [PATCH 1/2] arm: dts: am642-sk: Add and Enable USB SuperSpeed Host Port in SPL Aswath Govindraju
2021-11-18 19:15   ` Tom Rini
2021-10-20 15:39 ` [PATCH 2/2] configs: am64x_evm_*_defconfig: Add configs to enable serdes for USB 3.0 support Aswath Govindraju
2021-11-18 19:15   ` Tom Rini

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.