Skip to contentSkip to conversation

Updates for IOT2050 board

PATCH In review Jan Kiszka 2 participants 7 messages Oct 5, 2021 – Oct 12, 2021 Arm (32-bit)

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

cover Updates for IOT2050 board

This fixes the freshly merged IOT2050 board and also enables the usage of the USB 3.0 port under U-Boot (as USB 2.0).

Jan

Jan Kiszka (2):
board: siemens: iot2050: Adjust to changes in DT and configuration
arm: dts: Update IOT2050 device tree files

 .../k3-am65-iot2050-common-pg2-u-boot.dtsi    | 27 +++++++++++++++++++
 arch/arm/dts/k3-am65-iot2050-common-pg2.dtsi  |  4 ++-
 .../dts/k3-am65-iot2050-common-u-boot.dtsi    |  2 +-
 configs/iot2050_defconfig                     |  6 +++--
 include/configs/iot2050.h                     |  2 --
 5 files changed, 35 insertions(+), 6 deletions(-)
 create mode 100644 arch/arm/dts/k3-am65-iot2050-common-pg2-u-boot.dtsi
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 1/2 board: siemens: iot2050: Adjust to changes in DT and configuration

From: Jan Kiszka <[email protected]>

Account for the changes done between merge proposal and the final merge.

---
 arch/arm/dts/k3-am65-iot2050-common-u-boot.dtsi | 2 +-
 configs/iot2050_defconfig                       | 6 ++++--
 include/configs/iot2050.h                       | 2 --
 3 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/dts/k3-am65-iot2050-common-u-boot.dtsi +1 -1
index 88c36fcf43..286e25f379 100644
@@ -35,7 +35,7 @@
 
 &cbass_main {
 	u-boot,dm-spl;
-	main-navss {
+	main_navss: bus@30800000 {
 		u-boot,dm-spl;
 	};
 };
configs/iot2050_defconfig +4 -2
index 72ee5c83f1..84e387a099 100644
@@ -1,4 +1,5 @@
 CONFIG_ARM=y
+CONFIG_SKIP_LOWLEVEL_INIT=y
 CONFIG_ARCH_K3=y
 CONFIG_SPL_GPIO=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
@@ -10,15 +11,16 @@ CONFIG_TARGET_IOT2050_A53=y
 CONFIG_ENV_SIZE=0x20000
 CONFIG_ENV_OFFSET=0x680000
 CONFIG_ENV_SECT_SIZE=0x20000
+CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_DM_GPIO=y
 CONFIG_SPL_DM_SPI=y
 CONFIG_DEFAULT_DEVICE_TREE="k3-am6528-iot2050-basic"
 CONFIG_SPL_TEXT_BASE=0x80080000
-CONFIG_SPL_SERIAL_SUPPORT=y
+CONFIG_SPL_SERIAL=y
 CONFIG_SPL_STACK_R_ADDR=0x82000000
 CONFIG_ENV_OFFSET_REDUND=0x6a0000
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
-CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_SPL_SPI=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_SPL_LOAD_FIT=y
include/configs/iot2050.h +0 -2
index ddb4cfcc8e..91ed76bb40 100644
@@ -17,8 +17,6 @@
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SPL_TEXT_BASE + \
 					 CONFIG_SYS_K3_NON_SECURE_MSRAM_SIZE)
 
-#define CONFIG_SKIP_LOWLEVEL_INIT
-
 #define CONFIG_SPL_MAX_SIZE		CONFIG_SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
 
 #define CONFIG_SYS_BOOTM_LEN		SZ_64M
Signature · 1 line
2.31.1
author
#3 lore raw

Re: [PATCH 1/2] board: siemens: iot2050: Adjust to changes in DT and configuration

Quoted 10 lines · Tom Rini
Quoted 5 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Account for the changes done between merge proposal and the final merge.

Ah, the navss name thing, sorry I didn't remember that yesterday.

Yeah, and my first experiment to revert the DT changes somehow didn't apply which sent me needlessly into an extra bisection loop.

Quoted 2 lines

Thanks,
Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
author
#5 lore raw

PATCH 2/2 arm: dts: Update IOT2050 device tree files

In reply to Jan Kiszka

From: Jan Kiszka <[email protected]>

This fixes the usage of the USB 3.0-capable port under U-Boot as USB 2.0-only port.

Original patch by Chao Zeng.

---
 .../k3-am65-iot2050-common-pg2-u-boot.dtsi    | 27 +++++++++++++++++++
 arch/arm/dts/k3-am65-iot2050-common-pg2.dtsi  |  4 ++-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/k3-am65-iot2050-common-pg2-u-boot.dtsi
arch/arm/dts/k3-am65-iot2050-common-pg2-u-boot.dtsi new file +27 -0
new file mode 100644
index 0000000000..64dddce648
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (c) Siemens AG, 2018-2021
+ *
+ * Authors:
+ *   Chao Zeng <[email protected]>
+ *
+ * U-Boot bits of the IOT2050 Advanced PG2 variants
+ * (downgrade of usb0 to USB 2.0 mode)
+ */
+
+&serdes0 {
+	status = "disabled";
+};
+
+&dwc3_0 {
+	assigned-clock-parents = <&k3_clks 151 4>,	/* set REF_CLK to 20MHz i.e. PER0_PLL/48 */
+				 <&k3_clks 151 9>;	/* set PIPE3_TXB_CLK to CLK_12M_RC/256 (for HS only) */
+	/delete-property/ phys;
+	/delete-property/ phy-names;
+};
+
+&usb0 {
+	maximum-speed = "high-speed";
+	/delete-property/ snps,dis-u1-entry-quirk;
+	/delete-property/ snps,dis-u2-entry-quirk;
+};
arch/arm/dts/k3-am65-iot2050-common-pg2.dtsi +3 -1
index c25bce7339..e7e0ca4159 100644
@@ -44,8 +44,10 @@
 	phy-names = "usb3-phy";
 };
 
-&usb0_phy {
+&usb0 {
 	maximum-speed = "super-speed";
 	snps,dis-u1-entry-quirk;
 	snps,dis-u2-entry-quirk;
 };
+
+#include "k3-am65-iot2050-common-pg2-u-boot.dtsi"
Signature · 1 line
2.31.1
#6 lore raw

Re: [PATCH 2/2] arm: dts: Update IOT2050 device tree files

Quoted 8 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

This fixes the usage of the USB 3.0-capable port under U-Boot as USB 2.0-only port.

Original patch by Chao Zeng.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom