Skip to contentSkip to conversation

Initial support Texas Instrument's AM654 Platform

PATCH New Lokesh Vutla 2 participants 11 messages Aug 27, 2018 – Sep 12, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/3 Initial support Texas Instrument's AM654 Platform

Continue from PART 2/3...

This series adds arm64 support for AM654 EVM. Patch 2/6 describes the boot flow in detail. I would recommend to go through the patch in order to understand the entire boot flow.

Right now only arm64 support is added. r5 support will be posted later once loading of system firmware is ported to generic filesystem loader.

Changes since v1:
- Merged adding readme patch[2/6] to board support patch[1/6]
- Updated more info on the boot flow.

Andreas Dannenberg (1):
include: am654_evm: Establish initial environment for SD card boot

Lokesh Vutla (4):
board: ti: am654: a53: Add initial support for am654
arm64: dts: k3: Add Support for AM654 SoC
arm64: dts: k3: Add u-boot specific nodes
configs: am65x_evm_a53: Add initial support

 arch/arm/dts/Makefile                        |   2 +
 arch/arm/dts/k3-am65-main.dtsi               |  31 +++
 arch/arm/dts/k3-am65.dtsi                    |  87 ++++++++
 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 203 +++++++++++++++++++
 arch/arm/dts/k3-am654-base-board.dts         |  36 ++++
 arch/arm/dts/k3-am654.dtsi                   | 115 +++++++++++
 arch/arm/mach-k3/Kconfig                     |   1 +
 board/ti/am65x/Kconfig                       |  28 +++
 board/ti/am65x/MAINTAINERS                   |   6 +
 board/ti/am65x/Makefile                      |   8 +
 board/ti/am65x/README                        | 141 +++++++++++++
 board/ti/am65x/evm.c                         |  68 +++++++
 configs/am65x_evm_a53_defconfig              |  71 +++++++
 include/configs/am65x_evm.h                  |  69 +++++++
 include/dt-bindings/pinctrl/k3-am65.h        |  49 +++++
 15 files changed, 915 insertions(+)
 create mode 100644 arch/arm/dts/k3-am65-main.dtsi
 create mode 100644 arch/arm/dts/k3-am65.dtsi
 create mode 100644 arch/arm/dts/k3-am654-base-board-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-am654-base-board.dts
 create mode 100644 arch/arm/dts/k3-am654.dtsi
 create mode 100644 board/ti/am65x/Kconfig
 create mode 100644 board/ti/am65x/MAINTAINERS
 create mode 100644 board/ti/am65x/Makefile
 create mode 100644 board/ti/am65x/README
 create mode 100644 board/ti/am65x/evm.c
 create mode 100644 configs/am65x_evm_a53_defconfig
 create mode 100644 include/configs/am65x_evm.h
 create mode 100644 include/dt-bindings/pinctrl/k3-am65.h
Signature · 1 line
2.18.0
#1 lore raw

PATCH v2 1/5 board: ti: am654: a53: Add initial support for am654

Add initial support for AM654 based EVM running on A53. Enable 4GB of DDR available on the EVM so that kernel DTB file can be updated accordingly.

[Andreas: Added 4GB ddr support]
---
 arch/arm/mach-k3/Kconfig    |   1 +
 board/ti/am65x/Kconfig      |  28 +++++++
 board/ti/am65x/MAINTAINERS  |   5 ++
 board/ti/am65x/Makefile     |   8 ++
 board/ti/am65x/README       | 141 ++++++++++++++++++++++++++++++++++++
 board/ti/am65x/evm.c        |  56 ++++++++++++++
 include/configs/am65x_evm.h |  34 +++++++++
 7 files changed, 273 insertions(+)
 create mode 100644 board/ti/am65x/Kconfig
 create mode 100644 board/ti/am65x/MAINTAINERS
 create mode 100644 board/ti/am65x/Makefile
 create mode 100644 board/ti/am65x/README
 create mode 100644 board/ti/am65x/evm.c
 create mode 100644 include/configs/am65x_evm.h
arch/arm/mach-k3/Kconfig +1 -0
index 1380013fe7..2df6197af7 100644
@@ -47,4 +47,5 @@ config SYS_K3_BOOT_PARAM_TABLE_INDEX
 	  Address at which ROM stores the value which determines if SPL
 	  is booted up by primary boot media or secondary boot media.
 
+source "board/ti/am65x/Kconfig"
 endif
board/ti/am65x/Kconfig new file +28 -0
new file mode 100644
index 0000000000..591600483e
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
+#	Lokesh Vutla <[email protected]>
+
+choice
+	prompt "K3 AM65 based boards"
+	optional
+
+config TARGET_AM654_A53_EVM
+	bool "TI K3 based AM654 EVM running on A53"
+	select ARM64
+	select SOC_K3_AM6
+
+endchoice
+
+if TARGET_AM654_A53_EVM
+
+config SYS_BOARD
+       default "am65x"
+
+config SYS_VENDOR
+       default "ti"
+
+config SYS_CONFIG_NAME
+       default "am65x_evm"
+
+endif
board/ti/am65x/MAINTAINERS new file +5 -0
new file mode 100644
index 0000000000..c5921b4a28
@@ -0,0 +1,5 @@
+AM65x BOARD
+M:	Lokesh Vutla <[email protected]>
+S:	Maintained
+F:	board/ti/am65x/
+F:	include/configs/am65x_evm.h
board/ti/am65x/Makefile new file +8 -0
new file mode 100644
index 0000000000..94dddfcc4a
@@ -0,0 +1,8 @@
+#
+# Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
+#	Lokesh Vutla <[email protected]>
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+obj-y  := evm.o
board/ti/am65x/README new file +141 -0

141 lines not on this page · raw message

board/ti/am65x/evm.c new file +56 -0

56 lines not on this page · raw message

include/configs/am65x_evm.h new file +34 -0
new file mode 100644
index 0000000000..90dd9f3721
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Configuration header file for K3 AM654 EVM
+ *
+ * Copyright (C) 2017-2018 Texas Instruments Incorporated - http://www.ti.com/
+ *	Lokesh Vutla <[email protected]>
+ */
+
+#ifndef __CONFIG_AM654_EVM_H
+#define __CONFIG_AM654_EVM_H
+
+#include <linux/sizes.h>
+#include <config_distro_bootcmd.h>
+
+#define CONFIG_ENV_SIZE			(128 << 10)
+
+/* DDR Configuration */
+#define CONFIG_SYS_SDRAM_BASE1		0x880000000
+
+/* SPL Loader Configuration */
+#ifdef CONFIG_TARGET_AM654_A53_EVM
+#define CONFIG_SPL_TEXT_BASE		0x80080000
+#endif
+
+#define CONFIG_SKIP_LOWLEVEL_INIT
+
+#define CONFIG_SPL_MAX_SIZE		CONFIG_SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE
+#define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SPL_TEXT_BASE +	\
+					CONFIG_SYS_K3_NON_SECURE_MSRAM_SIZE - 4)
+
+/* Now for the remaining common defines */
+#include <configs/ti_armv7_common.h>
+
+#endif /* __CONFIG_AM654_EVM_H */
Signature · 1 line
2.18.0
#2 lore raw

PATCH v2 1/5 board: ti: am654: a53: Add initial support for am654

Quoted 8 lines · Lokesh Vutla

Add initial support for AM654 based EVM running on A53. Enable 4GB of DDR available on the EVM so that kernel DTB file can be updated accordingly.

[Andreas: Added 4GB ddr support]

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/20180911/3ffee360/attachment.sig>
#3 lore raw

PATCH v2 2/5 include: am654_evm: Establish initial environment for SD card boot

In reply to Lokesh Vutla

From: Andreas Dannenberg <[email protected]>

Create a basic U-Boot environment that allows the automatic loading of a Linux Kernel located at /boot/Image and an associated device tree blob located at /boot/k3-am654-base-board.dtb from the secondary partition of an ext4-formatted SD card on the AM654x EVM. Furthermore the boot.scr and uEnv.txt detection and loading schemes are supported in a manner already known from other TI platforms.

Note that this is intended to be a starting point to enable initial board use and will most certainly get extended and refactored as different boot media become available.

---
 include/configs/am65x_evm.h | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
include/configs/am65x_evm.h +35 -0
index 90dd9f3721..65015df131 100644
@@ -11,6 +11,7 @@
 
 #include <linux/sizes.h>
 #include <config_distro_bootcmd.h>
+#include <environment/ti/mmc.h>
 
 #define CONFIG_ENV_SIZE			(128 << 10)
 
@@ -28,6 +29,40 @@
 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SPL_TEXT_BASE +	\
 					CONFIG_SYS_K3_NON_SECURE_MSRAM_SIZE - 4)
 
+/* U-Boot general configuration */
+#define EXTRA_ENV_AM65X_BOARD_SETTINGS					\
+	"findfdt="							\
+		"if test $board_name = am65x; then "			\
+			"setenv name_fdt k3-am654-base-board.dtb; "	\
+		"else if test $name_fdt = undefined; then "		\
+			"echo WARNING: Could not determine device tree to use;"\
+		"fi; fi; "						\
+		"setenv fdtfile ${name_fdt}\0"				\
+	"loadaddr=0x80080000\0"						\
+	"fdtaddr=0x82000000\0"						\
+	"name_kern=Image\0"						\
+	"console=ttyS2,115200n8\0"					\
+	"args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000\0" \
+	"run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}\0"
+
+/* U-Boot MMC-specific configuration */
+#define EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC				\
+	"boot=mmc\0"							\
+	"mmcdev=1\0"							\
+	"bootpart=1:2\0"						\
+	"bootdir=/boot\0"						\
+	"rd_spec=-\0"							\
+	"init_mmc=run args_all args_mmc\0"				\
+	"get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0" \
+	"get_kern_mmc=load mmc ${bootpart} ${loadaddr} "		\
+		"${bootdir}/${name_kern}\0"
+
+/* Incorporate settings into the U-Boot environment */
+#define CONFIG_EXTRA_ENV_SETTINGS					\
+	DEFAULT_MMC_TI_ARGS						\
+	EXTRA_ENV_AM65X_BOARD_SETTINGS					\
+	EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC
+
 /* Now for the remaining common defines */
 #include <configs/ti_armv7_common.h>
 
Signature · 1 line
2.18.0
#4 lore raw

PATCH v2 2/5 include: am654_evm: Establish initial environment for SD card boot

Quoted 9 lines · Lokesh Vutla

From: Andreas Dannenberg <[email protected]>

Create a basic U-Boot environment that allows the automatic loading of a Linux Kernel located at /boot/Image and an associated device tree blob located at /boot/k3-am654-base-board.dtb from the secondary partition of an ext4-formatted SD card on the AM654x EVM. Furthermore the boot.scr and uEnv.txt detection and loading schemes are supported in a manner already known from other TI platforms.

Quoted 7 lines

Note that this is intended to be a starting point to enable initial board use and will most certainly get extended and refactored as different boot media become available.

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/20180911/e975e189/attachment.sig>
#5 lore raw

PATCH v2 3/5 arm64: dts: k3: Add Support for AM654 SoC

In reply to Lokesh Vutla

Add initial DT support for AM654 EVM that runs on A53.

---
 arch/arm/dts/Makefile                |   2 +
 arch/arm/dts/k3-am65-main.dtsi       |  31 ++++++++
 arch/arm/dts/k3-am65.dtsi            |  87 ++++++++++++++++++++
 arch/arm/dts/k3-am654-base-board.dts |  36 +++++++++
 arch/arm/dts/k3-am654.dtsi           | 115 +++++++++++++++++++++++++++
 board/ti/am65x/evm.c                 |  12 +++
 6 files changed, 283 insertions(+)
 create mode 100644 arch/arm/dts/k3-am65-main.dtsi
 create mode 100644 arch/arm/dts/k3-am65.dtsi
 create mode 100644 arch/arm/dts/k3-am654-base-board.dts
 create mode 100644 arch/arm/dts/k3-am654.dtsi
arch/arm/dts/Makefile +2 -0
index ebfa227262..150e1d4090 100644
@@ -549,6 +549,8 @@ dtb-$(CONFIG_TARGET_STM32MP1) += \
 	stm32mp157c-ed1.dtb \
 	stm32mp157c-ev1.dtb
 
+dtb-$(CONFIG_SOC_K3_AM6) += k3-am654-base-board.dtb
+
 targets += $(dtb-y)
 
 # Add any required device tree compiler flags here
arch/arm/dts/k3-am65-main.dtsi new file +31 -0
new file mode 100644
index 0000000000..2409344df4
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree Source for AM6 SoC Family Main Domain peripherals
+ *
+ * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
+ */
+
+&cbass_main {
+	gic500: interrupt-controller at 1800000 {
+		compatible = "arm,gic-v3";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+		#interrupt-cells = <3>;
+		interrupt-controller;
+		reg = <0x01800000 0x10000>,	/* GICD */
+		      <0x01880000 0x90000>;	/* GICR */
+		/*
+		 * vcpumntirq:
+		 * virtual CPU interface maintenance interrupt
+		 */
+		interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
+
+		gic_its: gic-its at 18200000 {
+			compatible = "arm,gic-v3-its";
+			reg = <0x01820000 0x10000>;
+			msi-controller;
+			#msi-cells = <1>;
+		};
+	};
+};
arch/arm/dts/k3-am65.dtsi new file +87 -0

87 lines not on this page · raw message

arch/arm/dts/k3-am654-base-board.dts new file +36 -0
new file mode 100644
index 0000000000..af6956fdc1
@@ -0,0 +1,36 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/
+ */
+
+/dts-v1/;
+
+#include "k3-am654.dtsi"
+
+/ {
+	compatible =  "ti,am654-evm", "ti,am654";
+	model = "Texas Instruments AM654 Base Board";
+
+	chosen {
+		stdout-path = "serial2:115200n8";
+		bootargs = "earlycon=ns16550a,mmio32,0x02800000";
+	};
+
+	memory at 80000000 {
+		device_type = "memory";
+		/* 4G RAM */
+		reg = <0x00000000 0x80000000 0x00000000 0x80000000>,
+		      <0x00000008 0x80000000 0x00000000 0x80000000>;
+	};
+
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+		secure_ddr: secure_ddr at 9e800000 {
+			reg = <0 0x9e800000 0 0x01800000>; /* for OP-TEE */
+			alignment = <0x1000>;
+			no-map;
+		};
+	};
+};
arch/arm/dts/k3-am654.dtsi new file +115 -0

115 lines not on this page · raw message

board/ti/am65x/evm.c +12 -0
index cb54d97551..784b2b0191 100644
@@ -54,3 +54,15 @@ int dram_init_banksize(void)
 
 	return 0;
 }
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+#ifdef CONFIG_TARGET_AM654_A53_EVM
+	if (!strcmp(name, "k3-am654-base-board"))
+		return 0;
+#endif
+
+	return -1;
+}
+#endif
Signature · 1 line
2.18.0
#6 lore raw

PATCH v2 3/5 arm64: dts: k3: Add Support for AM654 SoC

Quoted 4 lines · Lokesh Vutla

Add initial DT support for AM654 EVM that runs on A53.

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/20180911/006fd0cf/attachment.sig>
#7 lore raw

PATCH v2 4/5 arm64: dts: k3: Add u-boot specific nodes

In reply to Lokesh Vutla

Add the minimum dt nodes required to boot. These nodes will get deleted as kernel gets these nodes added in the main dts files.

---
 arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 203 +++++++++++++++++++
 include/dt-bindings/pinctrl/k3-am65.h        |  49 +++++
 2 files changed, 252 insertions(+)
 create mode 100644 arch/arm/dts/k3-am654-base-board-u-boot.dtsi
 create mode 100644 include/dt-bindings/pinctrl/k3-am65.h
arch/arm/dts/k3-am654-base-board-u-boot.dtsi new file +203 -0
new file mode 100644
index 0000000000..d4ecb3be10
@@ -0,0 +1,203 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
+ */
+
+#include <dt-bindings/pinctrl/k3-am65.h>
+
+/ {
+	chosen {
+		stdout-path = "serial2:115200n8";
+	};
+
+	aliases {
+		serial2 = &main_uart0;
+	};
+};
+
+&cbass_main{
+	u-boot,dm-spl;
+	secure_proxy: secure_proxy at 32c00000 {
+		compatible = "ti,am654-secure-proxy";
+		#mbox-cells = <1>;
+		reg-names = "target_data", "rt", "scfg";
+		reg = <0x32c00000 0x100000>,
+		      <0x32400000 0x100000>,
+		      <0x32800000 0x100000>;
+		interrupt-names = "rx_011";
+		interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
+	};
+
+	dmsc: dmsc {
+		compatible = "ti,k2g-sci";
+		ti,host-id = <12>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+		/*
+		 * In case of rare platforms that does not use am6 as
+		 * system master, use /delete-property/
+		 */
+		ti,system-reboot-controller;
+		mbox-names = "rx", "tx";
+
+		mboxes= <&secure_proxy 11>,
+			<&secure_proxy 13>;
+
+		k3_pds: power-controller {
+			compatible = "ti,sci-pm-domain";
+			#power-domain-cells = <1>;
+		};
+
+		k3_clks: clocks {
+			compatible = "ti,k2g-sci-clk";
+			#clock-cells = <2>;
+		};
+
+		k3_reset: reset-controller {
+			compatible = "ti,sci-reset";
+			#reset-cells = <2>;
+		};
+
+		k3_sysreset: sysreset-controller {
+			compatible = "ti,sci-sysreset";
+		};
+	};
+
+	main_pmx0: pinmux at 11c000 {
+		compatible = "pinctrl-single";
+		reg = <0x11c000 0x2e4>;
+		#pinctrl-cells = <1>;
+		pinctrl-single,register-width = <32>;
+		pinctrl-single,function-mask = <0xffffffff>;
+	};
+
+	main_pmx1: pinmux at 11c2e8 {
+		compatible = "pinctrl-single";
+		reg = <0x11c2e8 0x24>;
+		#pinctrl-cells = <1>;
+		pinctrl-single,register-width = <32>;
+		pinctrl-single,function-mask = <0xffffffff>;
+	};
+
+	main_uart0: serial at 2800000 {
+		compatible = "ti,am654-uart", "ti,omap4-uart", "ns16550a";
+		reg = <0x02800000 0x100>;
+		reg-shift = <2>;
+		reg-io-width = <4>;
+		interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
+		clock-frequency = <48000000>;
+		current-speed = <115200>;
+		status = "disabled";
+		u-boot,dm-pre-reloc;
+	};
+
+	sdhci0: sdhci at 04F80000 {
+		compatible = "arasan,sdhci-5.1";
+		reg = <0x4F80000 0x1000>,
+		      <0x4F90000 0x400>;
+		clocks = <&k3_clks 47 1>;
+		power-domains = <&k3_pds 47>;
+		max-frequency = <25000000>;
+	};
+
+	sdhci1: sdhci at 04FA0000 {
+		compatible = "arasan,sdhci-5.1";
+		reg = <0x4FA0000 0x1000>,
+		      <0x4FB0000 0x400>;
+		clocks = <&k3_clks 48 1>;
+		power-domains = <&k3_pds 48>;
+		max-frequency = <25000000>;
+	};
+
+};
+
+&secure_proxy {
+	u-boot,dm-spl;
+};
+
+&dmsc {
+	u-boot,dm-spl;
+};
+
+&k3_pds {
+	u-boot,dm-spl;
+};
+
+&k3_clks {
+	u-boot,dm-spl;
+};
+
+&k3_reset {
+	u-boot,dm-spl;
+};
+
+&main_pmx0 {
+	u-boot,dm-spl;
+	main_uart0_pins_default: main_uart0_pins_default {
+		pinctrl-single,pins = <
+			AM65X_IOPAD(0x01e4, PIN_INPUT | MUX_MODE0)	/* (AF11) UART0_RXD */
+			AM65X_IOPAD(0x01e8, PIN_OUTPUT | MUX_MODE0)	/* (AE11) UART0_TXD */
+			AM65X_IOPAD(0x01ec, PIN_INPUT | MUX_MODE0)	/* (AG11) UART0_CTSn */
+			AM65X_IOPAD(0x01f0, PIN_OUTPUT | MUX_MODE0)	/* (AD11) UART0_RTSn */
+		>;
+	};
+
+	main_mmc0_pins_default: main_mmc0_pins_default {
+		pinctrl-single,pins = <
+			AM65X_IOPAD(0x01a8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* (B25) MMC0_CLK */
+			AM65X_IOPAD(0x01aC, PIN_INPUT_PULLUP | MUX_MODE0) /* (B27) MMC0_CMD */
+			AM65X_IOPAD(0x01a4, PIN_INPUT_PULLUP | MUX_MODE0) /* (A26) MMC0_DAT0 */
+			AM65X_IOPAD(0x01a0, PIN_INPUT_PULLUP | MUX_MODE0) /* (E25) MMC0_DAT1 */
+			AM65X_IOPAD(0x019c, PIN_INPUT_PULLUP | MUX_MODE0) /* (C26) MMC0_DAT2 */
+			AM65X_IOPAD(0x0198, PIN_INPUT_PULLUP | MUX_MODE0) /* (A25) MMC0_DAT3 */
+			AM65X_IOPAD(0x0194, PIN_INPUT_PULLUP | MUX_MODE0) /* (E24) MMC0_DAT4 */
+			AM65X_IOPAD(0x0190, PIN_INPUT_PULLUP | MUX_MODE0) /* (A24) MMC0_DAT5 */
+			AM65X_IOPAD(0x018c, PIN_INPUT_PULLUP | MUX_MODE0) /* (B26) MMC0_DAT6 */
+			AM65X_IOPAD(0x0188, PIN_INPUT_PULLUP | MUX_MODE0) /* (D25) MMC0_DAT7 */
+			AM65X_IOPAD(0x01b0, PIN_INPUT | MUX_MODE0) /* (C25) MMC0_DS */
+		>;
+	};
+
+	main_mmc1_pins_default: main_mmc1_pins_default {
+		pinctrl-single,pins = <
+			AM65X_IOPAD(0x02d4, PIN_INPUT_PULLDOWN | MUX_MODE0) /* (C27) MMC1_CLK */
+			AM65X_IOPAD(0x02d8, PIN_INPUT_PULLUP | MUX_MODE0) /* (C28) MMC1_CMD */
+			AM65X_IOPAD(0x02d0, PIN_INPUT_PULLUP | MUX_MODE0) /* (D28) MMC1_DAT0 */
+			AM65X_IOPAD(0x02cc, PIN_INPUT_PULLUP | MUX_MODE0) /* (E27) MMC1_DAT1 */
+			AM65X_IOPAD(0x02c8, PIN_INPUT_PULLUP | MUX_MODE0) /* (D26) MMC1_DAT2 */
+			AM65X_IOPAD(0x02c4, PIN_INPUT_PULLUP | MUX_MODE0) /* (D27) MMC1_DAT3 */
+			AM65X_IOPAD(0x02dc, PIN_INPUT_PULLUP | MUX_MODE0) /* (B24) MMC1_SDCD */
+			AM65X_IOPAD(0x02e0, PIN_INPUT | MUX_MODE0) /* (C24) MMC1_SDWP */
+		>;
+	};
+
+};
+
+&main_pmx1 {
+	u-boot,dm-spl;
+};
+
+&main_uart0 {
+	u-boot,dm-spl;
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_uart0_pins_default>;
+	status = "okay";
+};
+
+&sdhci0 {
+	u-boot,dm-spl;
+	status = "okay";
+	non-removable;
+	bus-width = <8>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_mmc0_pins_default>;
+};
+
+&sdhci1 {
+	u-boot,dm-spl;
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_mmc1_pins_default>;
+	sdhci-caps-mask = <0x7 0x0>;
+};
include/dt-bindings/pinctrl/k3-am65.h new file +49 -0

49 lines not on this page · raw message

Signature · 1 line
2.18.0
#8 lore raw

PATCH v2 4/5 arm64: dts: k3: Add u-boot specific nodes

Quoted 6 lines · Lokesh Vutla

Add the minimum dt nodes required to boot. These nodes will get deleted as kernel gets these nodes added in the main dts files.

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/20180911/ecae4cb0/attachment.sig>
#9 lore raw

PATCH v2 5/5 configs: am65x_evm_a53: Add initial support

In reply to Lokesh Vutla

Add initial defconfig support for AM65x that runs on A53.

---
 board/ti/am65x/MAINTAINERS      |  1 +
 configs/am65x_evm_a53_defconfig | 71 +++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)
 create mode 100644 configs/am65x_evm_a53_defconfig
board/ti/am65x/MAINTAINERS +1 -0
index c5921b4a28..ca1ce58f72 100644
@@ -3,3 +3,4 @@ M:	Lokesh Vutla <[email protected]>
 S:	Maintained
 F:	board/ti/am65x/
 F:	include/configs/am65x_evm.h
+F:	configs/am65x_evm_a53_defconfig
configs/am65x_evm_a53_defconfig new file +71 -0

71 lines not on this page · raw message

Signature · 1 line
2.18.0
#10 lore raw

PATCH v2 5/5 configs: am65x_evm_a53: Add initial support

Quoted 4 lines · Lokesh Vutla

Add initial defconfig support for AM65x that runs on A53.

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/20180911/0d0736ea/attachment.sig>