Re: [U-Boot] [PATCH 8/9] ARM: dts: AM571x-IDK Initial Support

2016-11-26 Thread Tom Rini
On Fri, Nov 25, 2016 at 11:14:25AM +0530, Lokesh Vutla wrote:

> From: Schuyler Patton 
> 
> Add initial DTS support for AM571-IDK evm.
> 
> Signed-off-by: Schuyler Patton 
> Signed-off-by: Nishanth Menon 
> Signed-off-by: Lokesh Vutla 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 8/9] ARM: dts: AM571x-IDK Initial Support

2016-11-24 Thread Lokesh Vutla
From: Schuyler Patton 

Add initial DTS support for AM571-IDK evm.

Signed-off-by: Schuyler Patton 
Signed-off-by: Nishanth Menon 
Signed-off-by: Lokesh Vutla 
---
 arch/arm/dts/Makefile|  3 +-
 arch/arm/dts/am571x-idk.dts  | 81 
 board/ti/am57xx/board.c  |  2 ++
 configs/am57xx_evm_defconfig |  2 +-
 4 files changed, 86 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm/dts/am571x-idk.dts

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 082b89c..4ea1550 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -139,7 +139,8 @@ dtb-$(CONFIG_TARGET_DRA7XX_EVM) += dra72-evm.dtb 
dra7-evm.dtb   \
dra72-evm-revc.dtb dra71-evm.dtb
 dtb-$(CONFIG_TARGET_AM57XX_EVM) += am57xx-beagle-x15.dtb \
am57xx-beagle-x15-revb1.dtb \
-   am572x-idk.dtb
+   am572x-idk.dtb  \
+   am571x-idk.dtb
 dtb-$(CONFIG_TARGET_STV0991) += stv0991.dtb
 
 dtb-$(CONFIG_LS102XA) += ls1021a-qds-duart.dtb \
diff --git a/arch/arm/dts/am571x-idk.dts b/arch/arm/dts/am571x-idk.dts
new file mode 100644
index 000..ac69bb0
--- /dev/null
+++ b/arch/arm/dts/am571x-idk.dts
@@ -0,0 +1,81 @@
+/*
+ * Copyright (C) 2015-2016 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 "dra72x.dtsi"
+#include 
+#include 
+#include "am57xx-idk-common.dtsi"
+
+/ {
+   model = "TI AM5718 IDK";
+   compatible = "ti,am5718-idk", "ti,am5718", "ti,dra7";
+
+   memory@8000 {
+   device_type = "memory";
+   reg = <0x0 0x8000 0x0 0x4000>;
+   };
+
+   leds {
+   compatible = "gpio-leds";
+   cpu0-led {
+   label = "status0:red:cpu0";
+   gpios = < 25 GPIO_ACTIVE_HIGH>;
+   default-state = "off";
+   linux,default-trigger = "cpu0";
+   };
+
+   usr0-led {
+   label = "status0:green:usr";
+   gpios = < 26 GPIO_ACTIVE_HIGH>;
+   default-state = "off";
+   };
+
+   heartbeat-led {
+   label = "status0:blue:heartbeat";
+   gpios = < 27 GPIO_ACTIVE_HIGH>;
+   default-state = "off";
+   linux,default-trigger = "heartbeat";
+   };
+
+   usr1-led {
+   label = "status1:red:usr";
+   gpios = < 28 GPIO_ACTIVE_HIGH>;
+   default-state = "off";
+   };
+
+   usr2-led {
+   label = "status1:green:usr";
+   gpios = < 21 GPIO_ACTIVE_HIGH>;
+   default-state = "off";
+   };
+
+   mmc0-led {
+   label = "status1:blue:mmc0";
+   gpios = < 19 GPIO_ACTIVE_HIGH>;
+   default-state = "off";
+   linux,default-trigger = "mmc0";
+   };
+   };
+
+   extcon_usb2: extcon_usb2 {
+compatible = "linux,extcon-usb-gpio";
+id-gpio = < 7 GPIO_ACTIVE_HIGH>;
+   };
+};
+
+ {
+   status = "okay";
+   vmmc-supply = <_reg>;
+   bus-width = <4>;
+   cd-gpios = < 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
+};
+
+_dwc3_2 {
+   extcon = <_usb2>;
+};
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index a4bb117..226752e 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -849,6 +849,8 @@ int board_fit_config_name_match(const char *name)
return 0;
} else if (board_is_am572x_idk() && !strcmp(name, "am572x-idk")) {
return 0;
+   } else if (board_is_am571x_idk() && !strcmp(name, "am571x-idk")) {
+   return 0;
}
 
return -1;
diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
index bffa47c..37a71fd 100644
--- a/configs/am57xx_evm_defconfig
+++ b/configs/am57xx_evm_defconfig
@@ -47,7 +47,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_CONTROL=y
-CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am572x-idk"
+CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am572x-idk 
am571x-idk"
 CONFIG_DM=y
 # CONFIG_BLK is not set
 CONFIG_DM_GPIO=y
-- 
2.10.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot