Skip to contentSkip to conversation

ARM: omapl138: Enable DM and DT support

PATCH New Lokesh Vutla 2 participants 7 messages Mar 16, 2018 – Mar 22, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover ARM: omapl138: Enable DM and DT support

Enable DM and DT support for omapl138.

Logs: https://pastebin.ubuntu.com/p/9WS4qRXQR6/

Lokesh Vutla (2):
ARM: dts: da850-lcdk: Sync from Linux 4.16
configs: omapl138: Enable DM and DT

 arch/arm/dts/da850-lcdk-u-boot.dtsi |  13 ++
 arch/arm/dts/da850-lcdk.dts         | 339 ++++++++++++++++++++++++++++++++++++
 arch/arm/dts/da850.dtsi             |  15 +-
 configs/omapl138_lcdk_defconfig     |   8 +-
 include/configs/omapl138_lcdk.h     |  13 +-
 5 files changed, 380 insertions(+), 8 deletions(-)
 create mode 100644 arch/arm/dts/da850-lcdk-u-boot.dtsi
 create mode 100644 arch/arm/dts/da850-lcdk.dts
Signature · 1 line
2.16.2
#1 lore raw

PATCH 1/2 ARM: dts: da850-lcdk: Sync from Linux 4.16

Sync dts from Linux 4.16 and also add u-boot specific dtsi for OMAPl138 board.

---
 arch/arm/dts/da850-lcdk-u-boot.dtsi |  13 ++
 arch/arm/dts/da850-lcdk.dts         | 339 ++++++++++++++++++++++++++++++++++++
 arch/arm/dts/da850.dtsi             |  15 +-
 3 files changed, 363 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/dts/da850-lcdk-u-boot.dtsi
 create mode 100644 arch/arm/dts/da850-lcdk.dts
arch/arm/dts/da850-lcdk-u-boot.dtsi new file +13 -0
new file mode 100644
index 0000000000..c67c3ddbf7
@@ -0,0 +1,13 @@
+/*
+ * da850-lcdk U-Boot Additions
+ *
+ * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+/ {
+	aliases {
+		i2c0 = &i2c0;
+	};
+};
arch/arm/dts/da850-lcdk.dts new file +339 -0

339 lines not on this page · raw message

arch/arm/dts/da850.dtsi +11 -4
index 02e2f8f258..c66cf78953 100644
@@ -23,11 +23,18 @@
 			reg = <0xfffee000 0x2000>;
 		};
 	};
-
-	aliases {
-		spi0 = &spi0;
+	dsp: dsp at 11800000 {
+		compatible = "ti,da850-dsp";
+		reg = <0x11800000 0x40000>,
+		      <0x11e00000 0x8000>,
+		      <0x11f00000 0x8000>,
+		      <0x01c14044 0x4>,
+		      <0x01c14174 0x8>;
+		reg-names = "l2sram", "l1pram", "l1dram", "host1cfg", "chipsig";
+		interrupt-parent = <&intc>;
+		interrupts = <28>;
+		status = "disabled";
 	};
-
 	soc at 1c00000 {
 		compatible = "simple-bus";
 		model = "da850";
Signature · 1 line
2.16.2
#2 lore raw

PATCH 1/2 ARM: dts: da850-lcdk: Sync from Linux 4.16

Quoted 4 lines · Lokesh Vutla

Sync dts from Linux 4.16 and also add u-boot specific dtsi for OMAPl138 board.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180316/01ab6d38/attachment.sig>
#3 lore raw

PATCH 1/2 ARM: dts: da850-lcdk: Sync from Linux 4.16

In reply to Lokesh Vutla
Quoted 5 lines · Lokesh Vutla

Sync dts from Linux 4.16 and also add u-boot specific dtsi for OMAPl138 board.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180322/0869cbf5/attachment.sig>
#4 lore raw

PATCH 2/2 configs: omapl138: Enable DM and DT

In reply to Lokesh Vutla

Enable Driver Model and Device-tree support for omapl138 board in U-Boot. Also enable DM_SERIAL and DM_I2C.

---
 configs/omapl138_lcdk_defconfig |  8 ++++++--
 include/configs/omapl138_lcdk.h | 13 +++++++++++--
 2 files changed, 17 insertions(+), 4 deletions(-)
configs/omapl138_lcdk_defconfig +6 -2
index ccb308bf01..0890b8f901 100644
@@ -9,11 +9,11 @@ CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_DEFAULT_DEVICE_TREE="da850-lcdk"
 CONFIG_BOOTDELAY=3
 CONFIG_LOGLEVEL=3
 CONFIG_VERSION_VARIABLE=y
 # CONFIG_DISPLAY_CPUINFO is not set
-# CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL=y
 CONFIG_SPL_BOARD_INIT=y
@@ -27,9 +27,13 @@ CONFIG_CMD_NAND=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DIAG=y
 CONFIG_CMD_UBI=y
+CONFIG_OF_CONTROL=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_BOOTP_DNS=y
+CONFIG_DM=y
+CONFIG_DM_I2C=y
+CONFIG_DM_I2C_COMPAT=y
 CONFIG_NAND=y
 CONFIG_SYS_NAND_BUSWIDTH_16BIT=y
 CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
@@ -38,6 +42,6 @@ CONFIG_SPL_NAND_SIMPLE=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
+CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
 CONFIG_DAVINCI_SPI=y
-CONFIG_OF_LIBFDT=y
include/configs/omapl138_lcdk.h +11 -2
index ea7bdf133d..6ab565ec7d 100644
@@ -19,6 +19,14 @@
 #undef	CONFIG_SYS_USE_NOR
 #define	CONFIG_USE_NAND
 
+/*
+* Disable DM_* for SPL build and can be re-enabled after adding
+* DM support in SPL
+*/
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_DM_I2C
+#undef CONFIG_DM_I2C_COMPAT
+#endif
 /*
  * SoC Configuration
  */
@@ -104,12 +112,14 @@
 /*
  * Serial Driver info
  */
+#define CONFIG_SYS_NS16550_CLK	clk_get(DAVINCI_UART2_CLKID)
+#if !defined(CONFIG_DM_SERIAL)
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE	-4	/* NS16550 register size */
 #define CONFIG_SYS_NS16550_COM1	DAVINCI_UART2_BASE /* Base address of UART2 */
-#define CONFIG_SYS_NS16550_CLK	clk_get(DAVINCI_UART2_CLKID)
 #define CONFIG_CONS_INDEX	1		/* use UART0 for console */
 #define CONFIG_SYS_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, 115200 }
+#endif
 
 #define CONFIG_SPI
 #define CONFIG_SYS_SPI_BASE		DAVINCI_SPI1_BASE
@@ -126,7 +136,6 @@
 /*
  * I2C Configuration
  */
-#define CONFIG_SYS_I2C
 #define CONFIG_SYS_I2C_DAVINCI
 #define CONFIG_SYS_DAVINCI_I2C_SPEED	25000
 #define CONFIG_SYS_DAVINCI_I2C_SLAVE	10 /* Bogus, master-only in U-Boot */
Signature · 1 line
2.16.2
#5 lore raw

PATCH 2/2 configs: omapl138: Enable DM and DT

Quoted 4 lines · Lokesh Vutla

Enable Driver Model and Device-tree support for omapl138 board in U-Boot. Also enable DM_SERIAL and DM_I2C.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180316/5438eb83/attachment.sig>
#6 lore raw

PATCH 2/2 configs: omapl138: Enable DM and DT

In reply to Lokesh Vutla
Quoted 5 lines · Lokesh Vutla

Enable Driver Model and Device-tree support for omapl138 board in U-Boot. Also enable DM_SERIAL and DM_I2C.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180322/3bb85377/attachment.sig>