Browse Source

ARM: dts: ti: Add am57xx-idk jailhouse overlay

Add support for it into the FIT image for am57xx-idk.

Use dtb-merge to create the following files:
am572x-idk-jailhouse.dtb
am572x-idk-lcd-osd101t2045-jailhouse.dtb
am572x-idk-lcd-osd101t2587-jailhouse.dtb
am574x-idk-jailhouse.dtb

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Jacob Stiffler 6 years ago
parent
commit
4ee39b1354

+ 4 - 0
arch/arm/boot/dts/Makefile

@@ -774,8 +774,12 @@ dtb-merge-$(CONFIG_SOC_DRA7XX) += \
 	am572x-idk-pps.dtb \
 	am572x-idk-lcd-osd101t2045.dtb \
 	am572x-idk-lcd-osd101t2587.dtb \
+	am572x-idk-jailhouse.dtb \
+	am572x-idk-lcd-osd101t2045-jailhouse.dtb \
+	am572x-idk-lcd-osd101t2587-jailhouse.dtb \
 	am574x-idk-pps.dtb \
 	am574x-idk-lcd-osd101t2587.dtb \
+	am574x-idk-jailhouse.dtb \
 	dra71-evm-nand.dtb \
 	dra71-evm-lcd-auo-g101evn01.0.dtb \
 	dra72-evm-lcd-osd101t2045.dtb \

+ 106 - 0
arch/arm/boot/dts/ti/am57xx-idk-jailhouse.dtso

@@ -0,0 +1,106 @@
+/dts-v1/;
+/plugin/;
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+  fragment@101 {
+	target-path = "/";
+
+	__overlay__ {
+		reserved-memory {
+			jailhouse: jailhouse@ef000000 {
+				reg = <0x0 0xef000000 0x0 0x1000000>;
+				no-map;
+				status = "okay";
+			};
+
+			jh_inmate: jh_inmate@ee000000 {
+				reg = <0x0 0xe0000000 0x0 0xf000000>;
+				no-map;
+				status = "okay";
+			};
+		};
+	};
+  };
+};
+
+/*
+&pruss1_eth {
+	status = "disabled";
+};
+*/
+
+&pruss2_eth {
+	status = "disabled";
+};
+
+&crossbar_mpu {
+	ti,irqs-skip = <10 44 127 129 133 134 135 136 137 139 140>;
+};
+
+&timer2 {
+	status = "disabled";
+	ti,no-idle;
+};
+
+&timer8 {
+	status = "disabled";
+	ti,no-idle;
+};
+
+&uart9 {
+	status = "disabled";
+	ti,no-idle;
+};
+
+&pruss1 {
+	status = "disabled";
+	ti,no-idle;
+};
+
+&pru1_0 {
+	status = "disabled";
+	ti,no-idle;
+};
+
+&pru1_1 {
+	status = "disabled";
+	ti,no-idle;
+};
+
+&pruss2 {
+	status = "disabled";
+	ti,no-idle;
+};
+
+&pru2_0 {
+	status = "disabled";
+	ti,no-idle;
+};
+
+&pru2_1 {
+	ti,no-idle;
+	status = "disabled";
+};
+
+&pruss1_mdio {
+	ti,no-idle;
+	status = "disabled";
+};
+
+&pruss2_mdio {
+	ti,no-idle;
+	status = "disabled";
+};
+
+&gpio5 {
+	ti,no-idle;
+	status = "disabled";
+};
+
+&gpio3 {
+	ti,no-idle;
+	status = "disabled";
+};

+ 12 - 0
arch/arm/boot/dts/ti/am57xx-idk.its

@@ -111,6 +111,14 @@
 			compression = "none";
 			load = <0x83080000>;
 		};
+		fdt@13 {
+			description = "AM57xx-evm Jailhouse overlay";
+			data = /incbin/("am57xx-idk-jailhouse.dtbo");
+			type = "flat_dt";
+			arch = "arm";
+			compression = "none";
+			load = <0x83110000>;
+		};
 	};
 
 	configurations {
@@ -165,5 +173,9 @@
 			description = "am574x-idk with osd101t2587 LCD";
 			fdt = "fdt@3", "fdt@4", "fdt@6", "fdt@8";
 		};
+		jailhouse {
+			description = "Jailhouse";
+			fdt = "fdt@13";
+		};
 	};
 };