Updates for IOT2050 board
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
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
@@ -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
@@ -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
@@ -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
Re: [PATCH 1/2] board: siemens: iot2050: Adjust to changes in DT and configuration
Quoted 5 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
Account for the changes done between merge proposal and the final merge.
Signed-off-by Jan Kiszka <[email protected]>
Ah, the navss name thing, sorry I didn't remember that yesterday.
Signature · 1 line
Tom
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.
Signed-off-by Jan Kiszka <[email protected]>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
Reviewed-by Tom Rini <[email protected]>
Thanks,
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Re: [PATCH 1/2] board: siemens: iot2050: Adjust to changes in DT and configuration
In reply to Jan KiszkaQuoted 6 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
Account for the changes done between merge proposal and the final merge.
Signed-off-by Jan Kiszka <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom
PATCH 2/2 arm: dts: Update IOT2050 device tree files
In reply to Jan KiszkaFrom: 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
@@ -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
@@ -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
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.
Signed-off-by Jan Kiszka <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom