Skip to contentSkip to conversation

am33xx: Update DT files, add am335x_gp_evm_config target

PATCH New Tom Rini 2 participants 15 messages Jul 31, 2015 – Aug 13, 2015

Subsystems (5)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/5 am33xx: Update DT files, add am335x_gp_evm_config target

- Re-sync DT files for am33xx with Linux Kernel v4.1
- Include DT file now for the "AM335x GP EVM" and build target for it, via device tree and DM.
- We only need to provide platform data for UART when OF_CONTROL isn't also enabled really. We can just push GPIO to coming from DT

---
 arch/arm/cpu/armv7/am33xx/board.c    |   36 +-
 arch/arm/dts/Makefile                |    2 +-
 arch/arm/dts/am335x-bone-common.dtsi |  410 +++++++++++-------
 arch/arm/dts/am335x-bone.dts         |   29 ++
 arch/arm/dts/am335x-boneblack.dts    |   72 ++++
 arch/arm/dts/am335x-evm.dts          |  765 ++++++++++++++++++++++++++++++++++
 arch/arm/dts/am33xx-clocks.dtsi      |  646 ++++++++++++++++++++++++++++
 arch/arm/dts/am33xx.dtsi             |  297 +++++++++++--
 arch/arm/dts/tps65910.dtsi           |   91 ++++
 configs/am335x_gp_evm_defconfig      |   14 +
 10 files changed, 2156 insertions(+), 206 deletions(-)
 create mode 100644 arch/arm/dts/am335x-bone.dts
 create mode 100644 arch/arm/dts/am335x-evm.dts
 create mode 100644 arch/arm/dts/am33xx-clocks.dtsi
 create mode 100644 arch/arm/dts/tps65910.dtsi
 create mode 100644 configs/am335x_gp_evm_defconfig
arch/arm/cpu/armv7/am33xx/board.c +6 -30
index 67bef23..81492a5 100644
@@ -38,45 +38,22 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CONFIG_DM_GPIO
-static const struct omap_gpio_platdata am33xx_gpio[] = {
-	{ 0, AM33XX_GPIO0_BASE, METHOD_GPIO_24XX },
-	{ 1, AM33XX_GPIO1_BASE, METHOD_GPIO_24XX },
-	{ 2, AM33XX_GPIO2_BASE, METHOD_GPIO_24XX },
-	{ 3, AM33XX_GPIO3_BASE, METHOD_GPIO_24XX },
-#ifdef CONFIG_AM43XX
-	{ 4, AM33XX_GPIO4_BASE, METHOD_GPIO_24XX },
-	{ 5, AM33XX_GPIO5_BASE, METHOD_GPIO_24XX },
-#endif
-};
-
-U_BOOT_DEVICES(am33xx_gpios) = {
-	{ "gpio_omap", &am33xx_gpio[0] },
-	{ "gpio_omap", &am33xx_gpio[1] },
-	{ "gpio_omap", &am33xx_gpio[2] },
-	{ "gpio_omap", &am33xx_gpio[3] },
-#ifdef CONFIG_AM43XX
-	{ "gpio_omap", &am33xx_gpio[4] },
-	{ "gpio_omap", &am33xx_gpio[5] },
-#endif
-};
-
-# ifndef CONFIG_OF_CONTROL
+#if defined(CONFIG_DM_SERIAL) && !defined(CONFIG_OF_CONTROL)
 /*
  * TODO(sjg at chromium.org): When we can move SPL serial to DM, we can remove
  * the CONFIGs. At the same time, we should move this to the board files.
  */
 static const struct ns16550_platdata am33xx_serial[] = {
 	{ CONFIG_SYS_NS16550_COM1, 2, CONFIG_SYS_NS16550_CLK },
-#  ifdef CONFIG_SYS_NS16550_COM2
+# ifdef CONFIG_SYS_NS16550_COM2
 	{ CONFIG_SYS_NS16550_COM2, 2, CONFIG_SYS_NS16550_CLK },
-#   ifdef CONFIG_SYS_NS16550_COM3
+#  ifdef CONFIG_SYS_NS16550_COM3
 	{ CONFIG_SYS_NS16550_COM3, 2, CONFIG_SYS_NS16550_CLK },
 	{ CONFIG_SYS_NS16550_COM4, 2, CONFIG_SYS_NS16550_CLK },
 	{ CONFIG_SYS_NS16550_COM5, 2, CONFIG_SYS_NS16550_CLK },
 	{ CONFIG_SYS_NS16550_COM6, 2, CONFIG_SYS_NS16550_CLK },
-#   endif
 #  endif
+# endif
 };
 
 U_BOOT_DEVICES(am33xx_uarts) = {
@@ -91,10 +68,10 @@ U_BOOT_DEVICES(am33xx_uarts) = {
 #   endif
 #  endif
 };
-# endif
+#endif
 
-#else
 
+#ifndef CONFIG_DM_GPIO
 static const struct gpio_bank gpio_bank_am33xx[] = {
 	{ (void *)AM33XX_GPIO0_BASE, METHOD_GPIO_24XX },
 	{ (void *)AM33XX_GPIO1_BASE, METHOD_GPIO_24XX },
@@ -107,7 +84,6 @@ static const struct gpio_bank gpio_bank_am33xx[] = {
 };
 
 const struct gpio_bank *const omap_gpio_bank = gpio_bank_am33xx;
-
 #endif
 
 #if defined(CONFIG_OMAP_HSMMC) && !defined(CONFIG_SPL_BUILD)
arch/arm/dts/Makefile +1 -1
index ba63553..43b1616 100644
@@ -49,7 +49,7 @@ dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \
 	zynq-zc770-xm011.dtb \
 	zynq-zc770-xm012.dtb \
 	zynq-zc770-xm013.dtb
-dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb
+dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-evm.dtb
 
 dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_arria5_socdk.dtb			\
arch/arm/dts/am335x-bone-common.dtsi +270 -140

496 lines not on this page · raw message

arch/arm/dts/am335x-bone.dts new file +29 -0
new file mode 100644
index 0000000..81441cc
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+/dts-v1/;
+
+#include "am33xx.dtsi"
+#include "am335x-bone-common.dtsi"
+
+/ {
+	model = "TI AM335x BeagleBone";
+	compatible = "ti,am335x-bone", "ti,am33xx";
+	chosen {
+		stdout-path = &uart0;
+	};
+};
+
+&ldo3_reg {
+	regulator-min-microvolt = <1800000>;
+	regulator-max-microvolt = <3300000>;
+	regulator-always-on;
+};
+
+&mmc1 {
+	vmmc-supply = <&ldo3_reg>;
+};
arch/arm/dts/am335x-boneblack.dts +72 -0

80 lines not on this page · raw message

arch/arm/dts/am335x-evm.dts new file +765 -0

765 lines not on this page · raw message

arch/arm/dts/am33xx-clocks.dtsi new file +646 -0

646 lines not on this page · raw message

arch/arm/dts/am33xx.dtsi +262 -35

514 lines not on this page · raw message

arch/arm/dts/tps65910.dtsi new file +91 -0

91 lines not on this page · raw message

configs/am335x_gp_evm_defconfig new file +14 -0
new file mode 100644
index 0000000..62d3b6b
@@ -0,0 +1,14 @@
+CONFIG_ARM=y
+CONFIG_TARGET_AM335X_EVM=y
+CONFIG_DEFAULT_DEVICE_TREE="am335x-evm"
+CONFIG_SPL=y
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SYS_EXTRA_OPTIONS="NAND"
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_SETEXPR is not set
+CONFIG_OF_CONTROL=y
+CONFIG_SPL_DISABLE_OF_CONTROL=y
+CONFIG_SPI_FLASH=y
+CONFIG_RSA=y
Signature · 1 line
1.7.9.5
author
#2 lore raw

PATCH 2/5 gpio: omap: Drop 'method' parameter

The "method" parameter was part of the original port of the driver from the kernel. At some point this may have been added to allow for future differentiation (as omap1 and omap2 have different GPIO IP blocks, so this wasn't an unreasonable thing to do). At this point however it's just extra overhead, so drop.

---
 arch/arm/cpu/armv7/am33xx/board.c |   12 ++---
 arch/arm/cpu/armv7/omap3/board.c  |   24 ++++-----
 arch/arm/cpu/armv7/omap4/hwinit.c |   12 ++---
 arch/arm/cpu/armv7/omap5/hwinit.c |   18 ++++---
 arch/arm/include/asm/omap_gpio.h  |    7 +--
 drivers/gpio/omap_gpio.c          |  107 ++++++++++++++++++++-----------------
 6 files changed, 94 insertions(+), 86 deletions(-)
arch/arm/cpu/armv7/am33xx/board.c +6 -6
index 81492a5..77c1f9b 100644
@@ -73,13 +73,13 @@ U_BOOT_DEVICES(am33xx_uarts) = {
 
 #ifndef CONFIG_DM_GPIO
 static const struct gpio_bank gpio_bank_am33xx[] = {
-	{ (void *)AM33XX_GPIO0_BASE, METHOD_GPIO_24XX },
-	{ (void *)AM33XX_GPIO1_BASE, METHOD_GPIO_24XX },
-	{ (void *)AM33XX_GPIO2_BASE, METHOD_GPIO_24XX },
-	{ (void *)AM33XX_GPIO3_BASE, METHOD_GPIO_24XX },
+	{ (void *)AM33XX_GPIO0_BASE },
+	{ (void *)AM33XX_GPIO1_BASE },
+	{ (void *)AM33XX_GPIO2_BASE },
+	{ (void *)AM33XX_GPIO3_BASE },
 #ifdef CONFIG_AM43XX
-	{ (void *)AM33XX_GPIO4_BASE, METHOD_GPIO_24XX },
-	{ (void *)AM33XX_GPIO5_BASE, METHOD_GPIO_24XX },
+	{ (void *)AM33XX_GPIO4_BASE },
+	{ (void *)AM33XX_GPIO5_BASE },
 #endif
 };
 
arch/arm/cpu/armv7/omap3/board.c +12 -12
index 17cb5b7..8252b32 100644
@@ -38,12 +38,12 @@ static void omap3_invalidate_l2_cache_secure(void);
 
 #ifdef CONFIG_DM_GPIO
 static const struct omap_gpio_platdata omap34xx_gpio[] = {
-	{ 0, OMAP34XX_GPIO1_BASE, METHOD_GPIO_24XX },
-	{ 1, OMAP34XX_GPIO2_BASE, METHOD_GPIO_24XX },
-	{ 2, OMAP34XX_GPIO3_BASE, METHOD_GPIO_24XX },
-	{ 3, OMAP34XX_GPIO4_BASE, METHOD_GPIO_24XX },
-	{ 4, OMAP34XX_GPIO5_BASE, METHOD_GPIO_24XX },
-	{ 5, OMAP34XX_GPIO6_BASE, METHOD_GPIO_24XX },
+	{ 0, OMAP34XX_GPIO1_BASE },
+	{ 1, OMAP34XX_GPIO2_BASE },
+	{ 2, OMAP34XX_GPIO3_BASE },
+	{ 3, OMAP34XX_GPIO4_BASE },
+	{ 4, OMAP34XX_GPIO5_BASE },
+	{ 5, OMAP34XX_GPIO6_BASE },
 };
 
 U_BOOT_DEVICES(am33xx_gpios) = {
@@ -58,12 +58,12 @@ U_BOOT_DEVICES(am33xx_gpios) = {
 #else
 
 static const struct gpio_bank gpio_bank_34xx[6] = {
-	{ (void *)OMAP34XX_GPIO1_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP34XX_GPIO2_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP34XX_GPIO3_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP34XX_GPIO4_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP34XX_GPIO5_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP34XX_GPIO6_BASE, METHOD_GPIO_24XX },
+	{ (void *)OMAP34XX_GPIO1_BASE },
+	{ (void *)OMAP34XX_GPIO2_BASE },
+	{ (void *)OMAP34XX_GPIO3_BASE },
+	{ (void *)OMAP34XX_GPIO4_BASE },
+	{ (void *)OMAP34XX_GPIO5_BASE },
+	{ (void *)OMAP34XX_GPIO6_BASE },
 };
 
 const struct gpio_bank *const omap_gpio_bank = gpio_bank_34xx;
arch/arm/cpu/armv7/omap4/hwinit.c +6 -6
index 9792761..a68947f 100644
@@ -25,12 +25,12 @@ DECLARE_GLOBAL_DATA_PTR;
 u32 *const omap_si_rev = (u32 *)OMAP_SRAM_SCRATCH_OMAP_REV;
 
 static const struct gpio_bank gpio_bank_44xx[6] = {
-	{ (void *)OMAP44XX_GPIO1_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP44XX_GPIO2_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP44XX_GPIO3_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP44XX_GPIO4_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP44XX_GPIO5_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP44XX_GPIO6_BASE, METHOD_GPIO_24XX },
+	{ (void *)OMAP44XX_GPIO1_BASE },
+	{ (void *)OMAP44XX_GPIO2_BASE },
+	{ (void *)OMAP44XX_GPIO3_BASE },
+	{ (void *)OMAP44XX_GPIO4_BASE },
+	{ (void *)OMAP44XX_GPIO5_BASE },
+	{ (void *)OMAP44XX_GPIO6_BASE },
 };
 
 const struct gpio_bank *const omap_gpio_bank = gpio_bank_44xx;
arch/arm/cpu/armv7/omap5/hwinit.c +10 -8
index 39f8d0d..ad15b94 100644
@@ -27,18 +27,20 @@ DECLARE_GLOBAL_DATA_PTR;
 
 u32 *const omap_si_rev = (u32 *)OMAP_SRAM_SCRATCH_OMAP_REV;
 
+#ifndef CONFIG_DM_GPIO
 static struct gpio_bank gpio_bank_54xx[8] = {
-	{ (void *)OMAP54XX_GPIO1_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP54XX_GPIO2_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP54XX_GPIO3_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP54XX_GPIO4_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP54XX_GPIO5_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP54XX_GPIO6_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP54XX_GPIO7_BASE, METHOD_GPIO_24XX },
-	{ (void *)OMAP54XX_GPIO8_BASE, METHOD_GPIO_24XX },
+	{ (void *)OMAP54XX_GPIO1_BASE },
+	{ (void *)OMAP54XX_GPIO2_BASE },
+	{ (void *)OMAP54XX_GPIO3_BASE },
+	{ (void *)OMAP54XX_GPIO4_BASE },
+	{ (void *)OMAP54XX_GPIO5_BASE },
+	{ (void *)OMAP54XX_GPIO6_BASE },
+	{ (void *)OMAP54XX_GPIO7_BASE },
+	{ (void *)OMAP54XX_GPIO8_BASE },
 };
 
 const struct gpio_bank *const omap_gpio_bank = gpio_bank_54xx;
+#endif
 
 void do_set_mux32(u32 base, struct pad_conf_entry const *array, int size)
 {
arch/arm/include/asm/omap_gpio.h +1 -6
index 839af54..ef38b63 100644
@@ -23,24 +23,19 @@
 
 #include <asm/arch/cpu.h>
 
-enum gpio_method {
-	METHOD_GPIO_24XX	= 4,
-};
-
 #ifdef CONFIG_DM_GPIO
 
 /* Information about a GPIO bank */
 struct omap_gpio_platdata {
 	int bank_index;
 	ulong base;	/* address of registers in physical memory */
-	enum gpio_method method;
+	const char *port_name;
 };
 
 #else
 
 struct gpio_bank {
 	void *base;
-	int method;
 };
 
 extern const struct gpio_bank *const omap_gpio_bank;
drivers/gpio/omap_gpio.c +59 -48

163 lines not on this page · raw message

Signature · 1 line
1.7.9.5
author
#4 lore raw

PATCH 3/5 ARM: SPL: Use CONFIG_SPL_DM not CONFIG_DM

In reply to Tom Rini

We now have the CONFIG_SPL_DM for code within SPL to toggle caring about DM or not. Without this change platforms that do enable CONFIG_DM but not CONFIG_SPL_DM may be broken (such as OMAP5).

Cc Albert Aribaud <[email protected]>
---
 arch/arm/cpu/armv7/lowlevel_init.S |    2 +-
 arch/arm/lib/spl.c                 |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/cpu/armv7/lowlevel_init.S +1 -1
index 427b0b1..1872c57 100644
@@ -21,7 +21,7 @@ ENTRY(lowlevel_init)
 	 */
 	ldr	sp, =CONFIG_SYS_INIT_SP_ADDR
 	bic	sp, sp, #7 /* 8-byte alignment for ABI compliance */
-#ifdef CONFIG_DM
+#ifdef CONFIG_SPL_DM
 	mov	r9, #0
 #else
 	/*
arch/arm/lib/spl.c +2 -2
index bd8c7d2..d737a5c 100644
@@ -13,7 +13,7 @@
 #include <image.h>
 #include <linux/compiler.h>
 
-#ifndef CONFIG_DM
+#ifndef CONFIG_SPL_DM
 /* Pointer to as well as the global data structure for SPL */
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -35,7 +35,7 @@ void __weak board_init_f(ulong dummy)
 	/* Clear the BSS. */
 	memset(__bss_start, 0, __bss_end - __bss_start);
 
-#ifndef CONFIG_DM
+#ifndef CONFIG_SPL_DM
 	/* TODO: Remove settings of the global data pointer here */
 	gd = &gdata;
 #endif
Signature · 1 line
1.7.9.5
author
#6 lore raw

PATCH 4/5 dra7xx: Move CONS_INDEX to Kconfig and enable CONFIG_SPL_STACK_ADDR

In reply to Tom Rini

- Move the CONS_INDEX selection out of CONFIG_SYS_EXTRA_OPTIONS and into Kconfig proper.
- While in here, enable CONFIG_SPL_STACK_ADDR

---
 board/ti/dra7xx/Kconfig               |    8 ++++++++
 configs/dra7xx_evm_defconfig          |    3 ++-
 configs/dra7xx_evm_qspiboot_defconfig |    4 +++-
 configs/dra7xx_evm_uart3_defconfig    |    5 ++++-
 4 files changed, 17 insertions(+), 3 deletions(-)
board/ti/dra7xx/Kconfig +8 -0
index 3bbd866..80341d9 100644
@@ -9,4 +9,12 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
 	default "dra7xx_evm"
 
+config CONS_INDEX
+	int "UART used for console"
+	range 1 6
+	default 1
+	help
+	  The DRA7xx (and AM57x) SoC has a total of 6 UARTs available to it.
+	  Depending on your specific board you may want something other than UART1
+	  here.
 endif
configs/dra7xx_evm_defconfig +2 -1
index 463a7e2..f98e7b7 100644
@@ -2,7 +2,8 @@ CONFIG_ARM=y
 CONFIG_OMAP54XX=y
 CONFIG_TARGET_DRA7XX_EVM=y
 CONFIG_SPL=y
-CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1"
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_SETEXPR is not set
configs/dra7xx_evm_qspiboot_defconfig +3 -1
index 90e3cf4..f14fa62 100644
@@ -2,7 +2,9 @@ CONFIG_ARM=y
 CONFIG_OMAP54XX=y
 CONFIG_TARGET_DRA7XX_EVM=y
 CONFIG_SPL=y
-CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1,QSPI_BOOT"
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SYS_EXTRA_OPTIONS="QSPI_BOOT"
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_SETEXPR is not set
configs/dra7xx_evm_uart3_defconfig +4 -1
index 474cada..8882260 100644
@@ -1,8 +1,11 @@
 CONFIG_ARM=y
 CONFIG_OMAP54XX=y
 CONFIG_TARGET_DRA7XX_EVM=y
+CONFIG_CONS_INDEX=3
 CONFIG_SPL=y
-CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=3,SPL_YMODEM_SUPPORT"
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SYS_EXTRA_OPTIONS="SPL_YMODEM_SUPPORT"
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_SETEXPR is not set
Signature · 1 line
1.7.9.5
author
#8 lore raw

PATCH 5/5 dra7xx: Add dra72_evm_defconfig using CONFIG_DM

In reply to Tom Rini

- Import various DT files for DRA7 / DR72x / dra72-evm from Linux Kernel v4.1
- Add config file for this board, enable DM and DM_GPIO

---
For some reason I can't yet figure out, enabling CONFIG_DM_SERIAL seems to be triggering the no console panic failure path, but I can't seem to figure out why.

---
 arch/arm/dts/Makefile                |    1 +
 arch/arm/dts/dra7.dtsi               | 1529 ++++++++++++++++++++++++
 arch/arm/dts/dra72-evm.dts           |  683 +++++++++++
 arch/arm/dts/dra72x.dtsi             |   47 +
 arch/arm/dts/dra7xx-clocks.dtsi      | 2149 ++++++++++++++++++++++++++++++++++
 arch/arm/dts/omap4-cpu-thermal.dtsi  |   41 +
 arch/arm/dts/omap5-core-thermal.dtsi |   28 +
 arch/arm/dts/omap5-gpu-thermal.dtsi  |   28 +
 configs/dra72_evm_defconfig          |   17 +
 drivers/serial/serial_omap.c         |    1 +
 include/dt-bindings/pinctrl/dra.h    |   51 +
 11 files changed, 4575 insertions(+)
 create mode 100644 arch/arm/dts/dra7.dtsi
 create mode 100644 arch/arm/dts/dra72-evm.dts
 create mode 100644 arch/arm/dts/dra72x.dtsi
 create mode 100644 arch/arm/dts/dra7xx-clocks.dtsi
 create mode 100644 arch/arm/dts/omap4-cpu-thermal.dtsi
 create mode 100644 arch/arm/dts/omap5-core-thermal.dtsi
 create mode 100644 arch/arm/dts/omap5-gpu-thermal.dtsi
 create mode 100644 configs/dra72_evm_defconfig
 create mode 100644 include/dt-bindings/pinctrl/dra.h
arch/arm/dts/Makefile +1 -0
index 43b1616..ca5e444 100644
@@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_SOCFPGA) +=				\
 	socfpga_arria5_socdk.dtb			\
 	socfpga_cyclone5_socdk.dtb			\
 	socfpga_cyclone5_socrates.dtb
+dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb
 dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
 
 dtb-$(CONFIG_LS102XA) += ls1021a-qds.dtb \
arch/arm/dts/dra7.dtsi new file +1529 -0

1,529 lines not on this page · raw message

arch/arm/dts/dra72-evm.dts new file +683 -0

683 lines not on this page · raw message

arch/arm/dts/dra72x.dtsi new file +47 -0

47 lines not on this page · raw message

arch/arm/dts/dra7xx-clocks.dtsi new file +2149 -0

734 lines not on this page · raw message

arch/arm/dts/omap4-cpu-thermal.dtsi new file +41 -0

41 lines not on this page · raw message

arch/arm/dts/omap5-core-thermal.dtsi new file +28 -0
new file mode 100644
index 0000000..de8a3d4

Lines of this file are not shown. View the raw message.

arch/arm/dts/omap5-gpu-thermal.dtsi new file +28 -0
new file mode 100644
index 0000000..bc3090f

Lines of this file are not shown. View the raw message.

configs/dra72_evm_defconfig new file +17 -0
new file mode 100644
index 0000000..3205e72

Lines of this file are not shown. View the raw message.

drivers/serial/serial_omap.c +1 -0
index 265fe00..325fe42 100644

Lines of this file are not shown. View the raw message.

include/dt-bindings/pinctrl/dra.h new file +51 -0

51 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.9.5

Part of the diff is not shown here. View the raw message.

#9 lore raw

PATCH 5/5 dra7xx: Add dra72_evm_defconfig using CONFIG_DM

Hi Tom,

Quoted 11 lines · Tom Rini

- Import various DT files for DRA7 / DR72x / dra72-evm from Linux Kernel v4.1
- Add config file for this board, enable DM and DM_GPIO

---
For some reason I can't yet figure out, enabling CONFIG_DM_SERIAL seems to be triggering the no console panic failure path, but I can't seem to figure out why.

There is a bug in it but I suspect your problem is elsewhere:

http://patchwork.ozlabs.org/patch/498648/

You could enable the debug UART and print characters to see where it fails...

DM bits:

Quoted 14 lines
---
 arch/arm/dts/Makefile                |    1 +
 arch/arm/dts/dra7.dtsi               | 1529 ++++++++++++++++++++++++
 arch/arm/dts/dra72-evm.dts           |  683 +++++++++++
 arch/arm/dts/dra72x.dtsi             |   47 +
 arch/arm/dts/dra7xx-clocks.dtsi      | 2149 ++++++++++++++++++++++++++++++++++
 arch/arm/dts/omap4-cpu-thermal.dtsi  |   41 +
 arch/arm/dts/omap5-core-thermal.dtsi |   28 +
 arch/arm/dts/omap5-gpu-thermal.dtsi  |   28 +
 configs/dra72_evm_defconfig          |   17 +
 drivers/serial/serial_omap.c         |    1 +
 include/dt-bindings/pinctrl/dra.h    |   51 +
 11 files changed, 4575 insertions(+)
 create mode 100644 arch/arm/dts/dra7.dtsi
Quoted 8 lines
 create mode 100644 arch/arm/dts/dra72-evm.dts
 create mode 100644 arch/arm/dts/dra72x.dtsi
 create mode 100644 arch/arm/dts/dra7xx-clocks.dtsi
 create mode 100644 arch/arm/dts/omap4-cpu-thermal.dtsi
 create mode 100644 arch/arm/dts/omap5-core-thermal.dtsi
 create mode 100644 arch/arm/dts/omap5-gpu-thermal.dtsi
 create mode 100644 configs/dra72_evm_defconfig
 create mode 100644 include/dt-bindings/pinctrl/dra.h

Regards,
Simon

author
#10 lore raw

PATCH 5/5 dra7xx: Add dra72_evm_defconfig using CONFIG_DM

Quoted 10 lines · Simon Glass

Hi Tom,

Quoted 7 lines · Tom Rini

- Import various DT files for DRA7 / DR72x / dra72-evm from Linux Kernel v4.1
- Add config file for this board, enable DM and DM_GPIO

Quoted 8 lines
Quoted 4 lines

---
For some reason I can't yet figure out, enabling CONFIG_DM_SERIAL seems to be triggering the no console panic failure path, but I can't seem to figure out why.

There is a bug in it but I suspect your problem is elsewhere:

http://patchwork.ozlabs.org/patch/498648/

I had that applied locally based on your hint, no help :(

Quoted 1 line

You could enable the debug UART and print characters to see where it fails...

I need to, yes, but one of my tests was commenting out the panic_str(...) and that went from a loop (since I didn't have CONFIG_PANIC_HANG set) to a hard crash I'm guessing a bit later on.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150802/206010ed/attachment.sig>
#11 lore raw

PATCH 5/5 dra7xx: Add dra72_evm_defconfig using CONFIG_DM

Hi Tom,

Quoted 20 lines · Tom Rini
Quoted 10 lines · Simon Glass

Hi Tom,

Quoted 7 lines · Tom Rini

- Import various DT files for DRA7 / DR72x / dra72-evm from Linux Kernel v4.1
- Add config file for this board, enable DM and DM_GPIO

Quoted 8 lines
Quoted 4 lines

---
For some reason I can't yet figure out, enabling CONFIG_DM_SERIAL seems to be triggering the no console panic failure path, but I can't seem to figure out why.

There is a bug in it but I suspect your problem is elsewhere:

http://patchwork.ozlabs.org/patch/498648/

Quoted 7 lines

I had that applied locally based on your hint, no help :(

Quoted 1 line

You could enable the debug UART and print characters to see where it fails...

I need to, yes, but one of my tests was commenting out the panic_str(...) and that went from a loop (since I didn't have CONFIG_PANIC_HANG set) to a hard crash I'm guessing a bit later on.

If I could repeat this on BBB I could try to track it down. But I suspect it is something else.

Is this in U-Boot proper? It really should pick up the stdout-path right at the top of serial_find_console_or_panic() and return.

Regards,
Simon

author
#12 lore raw

PATCH 5/5 dra7xx: Add dra72_evm_defconfig using CONFIG_DM

Quoted 25 lines · Simon Glass

Hi Tom,

Quoted 22 lines · Tom Rini
Quoted 10 lines · Simon Glass

Hi Tom,

Quoted 7 lines · Tom Rini

- Import various DT files for DRA7 / DR72x / dra72-evm from Linux Kernel v4.1
- Add config file for this board, enable DM and DM_GPIO

Quoted 8 lines
Quoted 4 lines

---
For some reason I can't yet figure out, enabling CONFIG_DM_SERIAL seems to be triggering the no console panic failure path, but I can't seem to figure out why.

There is a bug in it but I suspect your problem is elsewhere:

http://patchwork.ozlabs.org/patch/498648/

I had that applied locally based on your hint, no help :(

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

You could enable the debug UART and print characters to see where it fails...

I need to, yes, but one of my tests was commenting out the panic_str(...) and that went from a loop (since I didn't have CONFIG_PANIC_HANG set) to a hard crash I'm guessing a bit later on.

If I could repeat this on BBB I could try to track it down. But I suspect it is something else.

Indeed, I was hoping it was a few things but I couldn't make am335x-gp-evm fail.

Quoted 2 lines

Is this in U-Boot proper? It really should pick up the stdout-path right at the top of serial_find_console_or_panic() and return.

Full U-Boot. SPL_DM is off. And yes, since we set stdout-path and have everything else set right in the DT it's very puzzling :(

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150802/53ccba8a/attachment.sig>
#13 lore raw

PATCH 5/5 dra7xx: Add dra72_evm_defconfig using CONFIG_DM

Hi Tom.

Quoted 35 lines · Tom Rini
Quoted 25 lines · Simon Glass

Hi Tom,

Quoted 22 lines · Tom Rini
Quoted 10 lines · Simon Glass

Hi Tom,

Quoted 7 lines · Tom Rini

- Import various DT files for DRA7 / DR72x / dra72-evm from Linux Kernel v4.1
- Add config file for this board, enable DM and DM_GPIO

Quoted 8 lines
Quoted 4 lines

---
For some reason I can't yet figure out, enabling CONFIG_DM_SERIAL seems to be triggering the no console panic failure path, but I can't seem to figure out why.

There is a bug in it but I suspect your problem is elsewhere:

http://patchwork.ozlabs.org/patch/498648/

I had that applied locally based on your hint, no help :(

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

You could enable the debug UART and print characters to see where it fails...

I need to, yes, but one of my tests was commenting out the panic_str(...) and that went from a loop (since I didn't have CONFIG_PANIC_HANG set) to a hard crash I'm guessing a bit later on.

If I could repeat this on BBB I could try to track it down. But I suspect it is something else.

Quoted 8 lines

Indeed, I was hoping it was a few things but I couldn't make am335x-gp-evm fail.

Quoted 2 lines

Is this in U-Boot proper? It really should pick up the stdout-path right at the top of serial_find_console_or_panic() and return.

Full U-Boot. SPL_DM is off. And yes, since we set stdout-path and have everything else set right in the DT it's very puzzling :(

Well if you can get a debug UART:

- check the return value of uclass_get_device_by_of_offset(). It should be 0 assuming that you have u-boot,dm-pre-reloc set for your console UART node
- if not, then lists_bind_fdt() should return 0, and then device_probe() should return 0. For the former, something is horribly wrong. For the latter check if your driver's probe function is returning something odd...

Regards,
Simon

author
#1 lore raw

PATCH 1/5 am33xx: Update DT files, add am335x_gp_evm_config target

In reply to Tom Rini
Quoted 7 lines · Tom Rini

- Re-sync DT files for am33xx with Linux Kernel v4.1
- Include DT file now for the "AM335x GP EVM" and build target for it, via device tree and DM.
- We only need to provide platform data for UART when OF_CONTROL isn't also enabled really. We can just push GPIO to coming from DT

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: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/5556278d/attachment.sig>
author
#3 lore raw

PATCH 2/5 gpio: omap: Drop 'method' parameter

In reply to Tom Rini
Quoted 7 lines · Tom Rini

The "method" parameter was part of the original port of the driver from the kernel. At some point this may have been added to allow for future differentiation (as omap1 and omap2 have different GPIO IP blocks, so this wasn't an unreasonable thing to do). At this point however it's just extra overhead, so drop.

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: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/7d988dcc/attachment.sig>
author
#5 lore raw

PATCH 3/5 ARM: SPL: Use CONFIG_SPL_DM not CONFIG_DM

In reply to Tom Rini
Quoted 6 lines · Tom Rini

We now have the CONFIG_SPL_DM for code within SPL to toggle caring about DM or not. Without this change platforms that do enable CONFIG_DM but not CONFIG_SPL_DM may be broken (such as OMAP5).

Cc Albert Aribaud <[email protected]>

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: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/26cbeef1/attachment.sig>
author
#7 lore raw

PATCH 4/5 dra7xx: Move CONS_INDEX to Kconfig and enable CONFIG_SPL_STACK_ADDR

In reply to Tom Rini
Quoted 5 lines · Tom Rini

- Move the CONS_INDEX selection out of CONFIG_SYS_EXTRA_OPTIONS and into Kconfig proper.
- While in here, enable CONFIG_SPL_STACK_ADDR

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: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/b59b7f30/attachment.sig>
author
#14 lore raw

PATCH 5/5 dra7xx: Add dra72_evm_defconfig using CONFIG_DM

In reply to Tom Rini
Quoted 7 lines · Tom Rini

- Import various DT files for DRA7 / DR72x / dra72-evm from Linux Kernel v4.1
- Add config file for this board, enable DM and DM_GPIO

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: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/711070f6/attachment.sig>