]> git.sur5r.net Git - u-boot/commitdiff
ARM: dts: AM571x-IDK Initial Support
authorSchuyler Patton <spatton@ti.com>
Fri, 25 Nov 2016 05:44:25 +0000 (11:14 +0530)
committerTom Rini <trini@konsulko.com>
Sun, 4 Dec 2016 18:54:56 +0000 (13:54 -0500)
Add initial DTS support for AM571-IDK evm.

Signed-off-by: Schuyler Patton <spatton@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/dts/Makefile
arch/arm/dts/am571x-idk.dts [new file with mode: 0644]
board/ti/am57xx/board.c
configs/am57xx_evm_defconfig

index 8b2030f7471353c5f825f4ce2965b32e0891eb52..1964d3d9d18ecdef65b9ba6c202408c0d083d0a3 100644 (file)
@@ -141,7 +141,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 (file)
index 0000000..ac69bb0
--- /dev/null
@@ -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 <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+#include "am57xx-idk-common.dtsi"
+
+/ {
+       model = "TI AM5718 IDK";
+       compatible = "ti,am5718-idk", "ti,am5718", "ti,dra7";
+
+       memory@80000000 {
+               device_type = "memory";
+               reg = <0x0 0x80000000 0x0 0x40000000>;
+       };
+
+       leds {
+               compatible = "gpio-leds";
+               cpu0-led {
+                       label = "status0:red:cpu0";
+                       gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+                       linux,default-trigger = "cpu0";
+               };
+
+               usr0-led {
+                       label = "status0:green:usr";
+                       gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               heartbeat-led {
+                       label = "status0:blue:heartbeat";
+                       gpios = <&gpio2 27 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+                       linux,default-trigger = "heartbeat";
+               };
+
+               usr1-led {
+                       label = "status1:red:usr";
+                       gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               usr2-led {
+                       label = "status1:green:usr";
+                       gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               mmc0-led {
+                       label = "status1:blue:mmc0";
+                       gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+                       linux,default-trigger = "mmc0";
+               };
+       };
+
+       extcon_usb2: extcon_usb2 {
+            compatible = "linux,extcon-usb-gpio";
+            id-gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>;
+       };
+};
+
+&mmc1 {
+       status = "okay";
+       vmmc-supply = <&ldo1_reg>;
+       bus-width = <4>;
+       cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
+};
+
+&omap_dwc3_2 {
+       extcon = <&extcon_usb2>;
+};
index 0c9d724da8bf8bf5e31be16403431a3764564c81..797d7a4c0c200f571b25af5a44f4406672fbd8ab 100644 (file)
@@ -857,6 +857,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;
index f401a6e3aa07a78b7d0b9c3867a7fcc983675d80..7fd418f5c353c00e6a4657caac72e9421d1b8777 100644 (file)
@@ -50,7 +50,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