[PATCH 05/10] arm: dts: k3-am625-generic: Add generic DT for pre R5 SPL

Nitin Yadav n-yadav at ti.com
Wed Apr 26 11:39:01 CEST 2023


To add support of am62x lpsk as unified defconfig.A generic
device tree need to add for pre R5 SPL stage with optimal nodes.
Adding generic tree with I2C and uart nodes helps determine
board model and board name at pre R5 SPL stage.

Signed-off-by: Nitin Yadav <n-yadav at ti.com>
---
 arch/arm/dts/k3-am625-generic.dts | 70 +++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
 create mode 100644 arch/arm/dts/k3-am625-generic.dts

diff --git a/arch/arm/dts/k3-am625-generic.dts b/arch/arm/dts/k3-am625-generic.dts
new file mode 100644
index 0000000000..11fd3d7f79
--- /dev/null
+++ b/arch/arm/dts/k3-am625-generic.dts
@@ -0,0 +1,70 @@
+/*
+ * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
+ */
+
+/dts-v1/;
+
+#include "k3-am625.dtsi"
+
+/ {
+	compatible =  "ti,am625-sk", "ti,am625";
+	model = "Texas Instruments AM625 SK";
+
+	aliases {
+		serial2 = &main_uart0;
+	};
+	chosen {
+		stdout-path = "serial2:115200n8";
+		bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
+		tick-timer = &timer1;
+	};
+};
+
+&cbass_main {
+	bootph-pre-ram;
+	timer1: timer at 2400000 {
+		compatible = "ti,omap5430-timer";
+		reg = <0x00 0x2400000 0x00 0x80>;
+		ti,timer-alwon;
+		clock-frequency = <25000000>;
+		bootph-pre-ram;
+	};
+};
+
+&main_pmx0 {
+	bootph-pre-ram;
+	main_uart0_pins_default: main-uart0-pins-default {
+		bootph-pre-ram;
+		pinctrl-single,pins = <
+			AM62X_IOPAD(0x1c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
+			AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
+		>;
+	};
+
+	main_i2c0_pins_default: main-i2c0-pins-default {
+		bootph-pre-ram;
+		pinctrl-single,pins = <
+			AM62X_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
+			AM62X_IOPAD(0x1e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
+		>;
+	};
+};
+
+&main_uart0 {
+	bootph-pre-ram;
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_uart0_pins_default>;
+	clock-frequency = <48000000>;
+	/delete-property/ clocks;
+	/delete-property/ power-domains;
+};
+
+&main_i2c0 {
+	status = "okay";
+	bootph-pre-ram;
+	pinctrl-0 = <&main_i2c0_pins_default>;
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	/delete-property/ clocks;
+	/delete-property/ power-domains;
+};
-- 
2.25.1



More information about the U-Boot mailing list