Skip to contentSkip to conversation

ARM: dts: omap3-devkit8000: Add support for Devkit8000

PATCH Superseded Anthoine Bourgeois 3 participants 6 messages May 15, 2022 – May 18, 2022 Arm (32-bit)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ARM: dts: omap3-devkit8000: Add support for Devkit8000

This commit adds OMAP3 BeagleBoard devicetree files from Linux v5.16.0.
This commit fixes CONFIG_DM_MMC warning.

---
 arch/arm/dts/Makefile                     |   2 +
 arch/arm/dts/omap3-devkit8000-u-boot.dtsi |  14 +
 arch/arm/dts/omap3-devkit8000.dts         | 349 ++++++++++++++++++++++
 configs/devkit8000_defconfig              |  24 +-
 include/configs/devkit8000.h              |  64 ++--
 5 files changed, 426 insertions(+), 27 deletions(-)
 create mode 100644 arch/arm/dts/omap3-devkit8000-u-boot.dtsi
 create mode 100644 arch/arm/dts/omap3-devkit8000.dts
arch/arm/dts/Makefile +2 -0
index 83630af4f6..70f003259a 100644
@@ -1047,6 +1047,8 @@ dtb-$(CONFIG_TARGET_OMAP3_BEAGLE) += \
 	omap3-beagle-xm.dtb \
 	omap3-beagle.dtb
 
+dtb-$(CONFIG_TARGET_DEVKIT8000) += omap3-devkit8000.dtb
+
 dtb-$(CONFIG_TARGET_OMAP3_IGEP00X0) += \
 	omap3-igep0020.dtb
 
arch/arm/dts/omap3-devkit8000-u-boot.dtsi new file +14 -0
new file mode 100644
index 0000000000..2c03701c89
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot additions
+ *
+ * (C) Copyright 2017 Derald D. Woods <[email protected]>
+ */
+
+#include "omap3-u-boot.dtsi"
+
+/ {
+	chosen {
+		stdout-path = &uart3;
+	};
+};
arch/arm/dts/omap3-devkit8000.dts new file +349 -0

349 lines not on this page · raw message

configs/devkit8000_defconfig +19 -5
index be780949ec..c025b400d2 100644
@@ -2,14 +2,21 @@ CONFIG_ARM=y
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_SYS_TEXT_BASE=0x80100000
 CONFIG_SYS_MALLOC_LEN=0x40000
-CONFIG_SYS_MALLOC_F_LEN=0x400
+CONFIG_SYS_MALLOC_F_LEN=0x4000
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_SPL_TEXT_BASE=0x40200000
 CONFIG_TARGET_DEVKIT8000=y
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x400
 CONFIG_SPL=y
+CONFIG_DEFAULT_DEVICE_TREE="omap3-devkit8000"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTCOMMAND="run autoboot"
+CONFIG_USE_PREBOOT=y
+CONFIG_DEFAULT_FDT_FILE="omap3-devkit8000.dtb"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
+CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_SEPARATE_BSS=y
+# CONFIG_SPL_FS_EXT4 is not set
 CONFIG_SPL_NAND_DRIVERS=y
 CONFIG_SPL_NAND_ECC=y
 CONFIG_SPL_NAND_SIMPLE=y
@@ -19,8 +26,8 @@ CONFIG_SPL_FALCON_BOOT_MMCSD=y
 CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR=0x500
 # CONFIG_CMD_IMI is not set
 CONFIG_CMD_SPL=y
-CONFIG_CMD_SPL_NAND_OFS=0x680000
-CONFIG_CMD_SPL_WRITE_SIZE=0x400
+CONFIG_CMD_SPL_NAND_OFS=0x280000
+CONFIG_CMD_SPL_WRITE_SIZE=0x20000
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_I2C=y
 CONFIG_CMD_MMC=y
@@ -38,6 +45,11 @@ CONFIG_JFFS2_PART_SIZE=0xF980000
 CONFIG_CMD_MTDPARTS=y
 CONFIG_MTDIDS_DEFAULT="nand0=nand"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=nand:512k(x-loader),1920k(u-boot),128k(u-boot-env),4m(kernel),-(fs)"
+# CONFIG_ISO_PARTITION is not set
+# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SPL_OF_CONTROL=y
+CONFIG_OF_SPL_REMOVE_PROPS="clocks clock-names interrupt-parent"
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
@@ -47,6 +59,10 @@ CONFIG_BOOTP_SEND_HOSTNAME=y
 CONFIG_SYS_I2C_LEGACY=y
 CONFIG_SPL_SYS_I2C_LEGACY=y
 CONFIG_TWL4030_LED=y
+CONFIG_SPL_DM=y
+CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_SPL_OF_TRANSLATE=y
+CONFIG_DM_MMC=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
@@ -59,6 +75,4 @@ CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
 CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000
 CONFIG_DRIVER_DM9000=y
-CONFIG_CONS_INDEX=3
 CONFIG_JFFS2_NAND=y
-CONFIG_OF_LIBFDT=y
include/configs/devkit8000.h +42 -22

90 lines not on this page · raw message

Signature · 1 line
2.35.1
#1 lore raw

PATCH 2/3 ARM: dts: omap3-devkit8000: Fix CONFIG_DM_I2C warning

Seems that u-boot can't probe i2c bus at 2.6Mhz speed, so lower the speed to the default value 100Khz.

---
 arch/arm/dts/omap3-devkit8000.dts | 2 +-
 configs/devkit8000_defconfig      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/arm/dts/omap3-devkit8000.dts +1 -1
index eee3ba073b..9cd3708d95 100644
@@ -115,7 +115,7 @@
 };
 
 &i2c1 {
-	clock-frequency = <2600000>;
+	clock-frequency = <100000>;
 
 	twl: twl@48 {
 		reg = <0x48>;
configs/devkit8000_defconfig +1 -0
index c025b400d2..98126e9c82 100644
@@ -64,6 +64,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_OMAP_HS=y
+CONFIG_DM_I2C=y
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
 CONFIG_NAND_OMAP_ECCSCHEME_HAM1_CODE_HW=y
Signature · 1 line
2.35.1
#2 lore raw

Re: [PATCH 2/3] ARM: dts: omap3-devkit8000: Fix CONFIG_DM_I2C warning

Quoted 14 lines · Anthoine Bourgeois

Seems that u-boot can't probe i2c bus at 2.6Mhz speed, so lower the speed to the default value 100Khz.

---
 arch/arm/dts/omap3-devkit8000.dts | 2 +-
 configs/devkit8000_defconfig      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
arch/arm/dts/omap3-devkit8000.dts +0 -0
index eee3ba073b..9cd3708d95 100644

arch/arm/dts/omap3-devkit8000.dts line 121

Quoted 8 lines
arch/arm/dts/omap3-devkit8000.dts +1 -1
@@ -115,7 +115,7 @@
 };
 
 &i2c1 {
-	clock-frequency = <2600000>;
+	clock-frequency = <100000>;
 
 	twl: twl@48 {
 		reg = <0x48>;

Thanks for updating these platforms. Can we override this in the -u-boot.dtsi file?

Signature · 1 line
Tom
#3 lore raw

Re: [PATCH 2/3] ARM: dts: omap3-devkit8000: Fix CONFIG_DM_I2C warning

Quoted 23 lines · Tom Rini

Review

Quoted 10 lines · Anthoine Bourgeois

Seems that u-boot can't probe i2c bus at 2.6Mhz speed, so lower the speed to the default value 100Khz.

---
 arch/arm/dts/omap3-devkit8000.dts | 2 +-
 configs/devkit8000_defconfig      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/arch/arm/dts/omap3-devkit8000.dts

Quoted 10 lines

index eee3ba073b..9cd3708d95 100644

arch/arm/dts/omap3-devkit8000.dts +1 -1
@@ -115,7 +115,7 @@
 };
 
 &i2c1 {
-     clock-frequency = <2600000>;
+     clock-frequency = <100000>;
 
Quoted 9 lines

arch/arm/dts/omap3-devkit8000.dts line 121

Quoted 2 lines
arch/arm/dts/omap3-devkit8000.dts +0 -0
      twl: twl@48 {
              reg = <0x48>;

Thanks for updating these platforms. Can we override this in the -u-boot.dtsi file?

--
Tom

$ grep -RI "clock-frequency = <2600000>" .
./arch/arm/dts/logicpd-torpedo-som.dtsi: clock-frequency = <2600000>;
./arch/arm/dts/omap3-igep.dtsi: clock-frequency = <2600000>;
./arch/arm/dts/omap3-beagle.dts: clock-frequency = <2600000>;
./arch/arm/dts/omap3-evm-common.dtsi: clock-frequency = <2600000>;
./arch/arm/dts/logicpd-som-lv.dtsi: clock-frequency = <2600000>;
./arch/arm/dts/omap3-beagle-xm.dts: clock-frequency = <2600000>;

All of these would benefit.

Derald

#4 lore raw

Re: [PATCH 2/3] ARM: dts: omap3-devkit8000: Fix CONFIG_DM_I2C warning

Quoted 43 lines · Derald Woods
Quoted 23 lines · Tom Rini

Review

Quoted 10 lines · Anthoine Bourgeois

Seems that u-boot can't probe i2c bus at 2.6Mhz speed, so lower the speed to the default value 100Khz.

---
 arch/arm/dts/omap3-devkit8000.dts | 2 +-
 configs/devkit8000_defconfig      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/arch/arm/dts/omap3-devkit8000.dts

Quoted 10 lines

index eee3ba073b..9cd3708d95 100644

arch/arm/dts/omap3-devkit8000.dts +1 -1
@@ -115,7 +115,7 @@
 };
 
 &i2c1 {
-     clock-frequency = <2600000>;
+     clock-frequency = <100000>;
 
Quoted 9 lines

arch/arm/dts/omap3-devkit8000.dts line 121

Quoted 2 lines
arch/arm/dts/omap3-devkit8000.dts +0 -0
      twl: twl@48 {
              reg = <0x48>;

Thanks for updating these platforms. Can we override this in the -u-boot.dtsi file?

--
Tom

$ grep -RI "clock-frequency = <2600000>" .
./arch/arm/dts/logicpd-torpedo-som.dtsi: clock-frequency = <2600000>;
./arch/arm/dts/omap3-igep.dtsi: clock-frequency = <2600000>;
./arch/arm/dts/omap3-beagle.dts: clock-frequency = <2600000>;
./arch/arm/dts/omap3-evm-common.dtsi: clock-frequency = <2600000>;
./arch/arm/dts/logicpd-som-lv.dtsi: clock-frequency = <2600000>;
./arch/arm/dts/omap3-beagle-xm.dts: clock-frequency = <2600000>;
Quoted 1 line

All of these would benefit.

Yes, good idea, this is in v2.

--
Anthoine

#5 lore raw

PATCH 3/3 ARM: dts: omap3-devkit8000: Fix CONFIG_DM_ETH warning

In reply to Anthoine Bourgeois

Add the missing ethernet node in u-boot dts.

---
 arch/arm/dts/omap3-devkit8000-u-boot.dtsi | 6 ++++++
 configs/devkit8000_defconfig              | 1 +
 2 files changed, 7 insertions(+)
arch/arm/dts/omap3-devkit8000-u-boot.dtsi +6 -0
index 2c03701c89..a5768b7281 100644
@@ -11,4 +11,10 @@
 	chosen {
 		stdout-path = &uart3;
 	};
+
+	ethernet@2c000000 {
+	        compatible = "davicom,dm9000";
+	        reg = <0x2c000000 2 0x2c000400 2>;
+	        bank-width = <2>;
+	};
 };
configs/devkit8000_defconfig +1 -0
index 98126e9c82..e167abb747 100644
@@ -75,5 +75,6 @@ CONFIG_SYS_NAND_OOBSIZE=0x40
 CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
 CONFIG_SYS_NAND_U_BOOT_OFFS=0x80000
+CONFIG_DM_ETH=y
 CONFIG_DRIVER_DM9000=y
 CONFIG_JFFS2_NAND=y
Signature · 1 line
2.35.1