Skip to contentSkip to conversation

arm: dts: k3-am625*: Upgrade kernel dts to v6.7-rc1

PATCH Superseded Nishanth Menon 3 participants 10 messages Nov 13, 2023 – Nov 14, 2023 Arm (32-bit)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover arm: dts: k3-am625*: Upgrade kernel dts to v6.7-rc1

Hi,

Sync Device tree to kernel v6.7-rc1 - we are getting closer to clean u-boot integration now.

Boot logs:
https://gist.github.com/nmenon/d62c4795c6d3d40c83ba36d1cd047c42

WARNING: This will have a minor conflict (binman) with:
https://lore.kernel.org/u-boot/[email protected]/

I haven't had a chance to test this out on verdin (only build tested)
- so will be nice to verify.

Nishanth Menon (4):
arm: dts: k3-am625*: Sync with kernel v6.7-rc1
arm: dts: k3-am625: Drop SoC provided bootph params from board
u-boot/r5 dtsi
arm: dts: k3-am625-beagleplay-u-boot: drop duplicate bootph-nodes
arm: dts: k3-am625-sk-r5/u-boot: Drop duplicate bootph-nodes

 arch/arm/dts/k3-am62-main.dtsi                |  12 +-
 arch/arm/dts/k3-am62-mcu.dtsi                 |   2 +
 arch/arm/dts/k3-am62-verdin-wifi.dtsi         |   6 +
 arch/arm/dts/k3-am62-verdin.dtsi              |   1 +
 arch/arm/dts/k3-am62-wakeup.dtsi              |   2 +
 arch/arm/dts/k3-am62.dtsi                     |   3 +
 arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi  | 110 -------------
 arch/arm/dts/k3-am625-beagleplay.dts          |  34 +++-
 arch/arm/dts/k3-am625-r5-beagleplay.dts       |   9 --
 arch/arm/dts/k3-am625-r5-sk.dts               |  21 +--
 arch/arm/dts/k3-am625-sk-u-boot.dtsi          | 145 ------------------
 arch/arm/dts/k3-am625-sk.dts                  |  27 ++++
 arch/arm/dts/k3-am625-verdin-r5.dts           |   9 --
 .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi  |  55 +------
 arch/arm/dts/k3-am62x-sk-common.dtsi          | 109 ++++++++++++-
 15 files changed, 197 insertions(+), 348 deletions(-)
Signature · 1 line
2.40.0
#1 lore raw

PATCH 1/4 arm: dts: k3-am625*: Sync with kernel v6.7-rc1

Sync with kernel v6.7-rc1 and sync up the u-boot dts files accordingly.

---
 arch/arm/dts/k3-am62-main.dtsi        |  12 ++-
 arch/arm/dts/k3-am62-mcu.dtsi         |   2 +
 arch/arm/dts/k3-am62-verdin-wifi.dtsi |   6 ++
 arch/arm/dts/k3-am62-verdin.dtsi      |   1 +
 arch/arm/dts/k3-am62-wakeup.dtsi      |   2 +
 arch/arm/dts/k3-am62.dtsi             |   3 +
 arch/arm/dts/k3-am625-beagleplay.dts  |  34 +++++++-
 arch/arm/dts/k3-am625-sk.dts          |  27 +++++++
 arch/arm/dts/k3-am62x-sk-common.dtsi  | 109 +++++++++++++++++++++++++-
 9 files changed, 193 insertions(+), 3 deletions(-)
arch/arm/dts/k3-am62-main.dtsi +11 -1
index 284b90c94da8..e5c64c86d1d5 100644
@@ -81,7 +81,8 @@
 	};
 
 	dmss: bus@48000000 {
-		compatible = "simple-mfd";
+		bootph-all;
+		compatible = "simple-bus";
 		#address-cells = <2>;
 		#size-cells = <2>;
 		dma-ranges;
@@ -90,6 +91,7 @@
 		ti,sci-dev-id = <25>;
 
 		secure_proxy_main: mailbox@4d000000 {
+			bootph-all;
 			compatible = "ti,am654-secure-proxy";
 			#mbox-cells = <1>;
 			reg-names = "target_data", "rt", "scfg";
@@ -165,6 +167,7 @@
 	};
 
 	dmsc: system-controller@44043000 {
+		bootph-all;
 		compatible = "ti,k2g-sci";
 		ti,host-id = <12>;
 		mbox-names = "rx", "tx";
@@ -174,16 +177,19 @@
 		reg = <0x00 0x44043000 0x00 0xfe0>;
 
 		k3_pds: power-controller {
+			bootph-all;
 			compatible = "ti,sci-pm-domain";
 			#power-domain-cells = <2>;
 		};
 
 		k3_clks: clock-controller {
+			bootph-all;
 			compatible = "ti,k2g-sci-clk";
 			#clock-cells = <2>;
 		};
 
 		k3_reset: reset-controller {
+			bootph-all;
 			compatible = "ti,sci-reset";
 			#reset-cells = <2>;
 		};
@@ -202,6 +208,7 @@
 	};
 
 	secure_proxy_sa3: mailbox@43600000 {
+		bootph-pre-ram;
 		compatible = "ti,am654-secure-proxy";
 		#mbox-cells = <1>;
 		reg-names = "target_data", "rt", "scfg";
@@ -217,6 +224,7 @@
 	};
 
 	main_pmx0: pinctrl@f4000 {
+		bootph-all;
 		compatible = "pinctrl-single";
 		reg = <0x00 0xf4000 0x00 0x2ac>;
 		#pinctrl-cells = <1>;
@@ -225,12 +233,14 @@
 	};
 
 	main_esm: esm@420000 {
+		bootph-pre-ram;
 		compatible = "ti,j721e-esm";
 		reg = <0x00 0x420000 0x00 0x1000>;
 		ti,esm-pins = <160>, <161>, <162>, <163>, <177>, <178>;
 	};
 
 	main_timer0: timer@2400000 {
+		bootph-all;
 		compatible = "ti,am654-timer";
 		reg = <0x00 0x2400000 0x00 0x400>;
 		interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/dts/k3-am62-mcu.dtsi +2 -0
index 80a3e1db26a9..0e0b234581c6 100644
@@ -7,6 +7,7 @@
 
 &cbass_mcu {
 	mcu_pmx0: pinctrl@4084000 {
+		bootph-all;
 		compatible = "pinctrl-single";
 		reg = <0x00 0x04084000 0x00 0x88>;
 		#pinctrl-cells = <1>;
@@ -15,6 +16,7 @@
 	};
 
 	mcu_esm: esm@4100000 {
+		bootph-pre-ram;
 		compatible = "ti,j721e-esm";
 		reg = <0x00 0x4100000 0x00 0x1000>;
 		ti,esm-pins = <0>, <1>, <2>, <85>;
arch/arm/dts/k3-am62-verdin-wifi.dtsi +6 -0
index 90ddc71bcd30..a6808b10c7b2 100644
@@ -35,5 +35,11 @@
 &main_uart5 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart5>;
+	uart-has-rtscts;
 	status = "okay";
+
+	bluetooth {
+		compatible = "nxp,88w8987-bt";
+		fw-init-baudrate = <3000000>;
+	};
 };
arch/arm/dts/k3-am62-verdin.dtsi +1 -0
index 40992e7e4c30..5db52f237253 100644
@@ -1061,6 +1061,7 @@
 		vddc-supply = <&reg_1v2_dsi>;
 		vddmipi-supply = <&reg_1v2_dsi>;
 		vddio-supply = <&reg_1v8_dsi>;
+		status = "disabled";
 
 		dsi_bridge_ports: ports {
 			#address-cells = <1>;
arch/arm/dts/k3-am62-wakeup.dtsi +2 -0
index eae052887186..fef76f52a52e 100644
@@ -7,6 +7,7 @@
 
 &cbass_wakeup {
 	wkup_conf: syscon@43000000 {
+		bootph-all;
 		compatible = "syscon", "simple-mfd";
 		reg = <0x00 0x43000000 0x00 0x20000>;
 		#address-cells = <1>;
@@ -14,6 +15,7 @@
 		ranges = <0x0 0x00 0x43000000 0x20000>;
 
 		chipid: chipid@14 {
+			bootph-all;
 			compatible = "ti,am654-chipid";
 			reg = <0x14 0x4>;
 		};
arch/arm/dts/k3-am62.dtsi +3 -0
index 11f14eef2d44..f1e15206e1ce 100644
@@ -47,6 +47,7 @@
 	};
 
 	cbass_main: bus@f0000 {
+		bootph-all;
 		compatible = "simple-bus";
 		#address-cells = <2>;
 		#size-cells = <2>;
@@ -86,6 +87,7 @@
 			 <0x00 0x43000000 0x00 0x43000000 0x00 0x00020000>;
 
 		cbass_mcu: bus@4000000 {
+			bootph-all;
 			compatible = "simple-bus";
 			#address-cells = <2>;
 			#size-cells = <2>;
@@ -93,6 +95,7 @@
 		};
 
 		cbass_wakeup: bus@b00000 {
+			bootph-all;
 			compatible = "simple-bus";
 			#address-cells = <2>;
 			#size-cells = <2>;
arch/arm/dts/k3-am625-beagleplay.dts +33 -1
index 7cfdf562b53b..9a6bd0a3c94f 100644
@@ -46,6 +46,7 @@
 	};
 
 	memory@80000000 {
+		bootph-pre-ram;
 		device_type = "memory";
 		/* 2G RAM */
 		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
@@ -58,7 +59,7 @@
 
 		ramoops: ramoops@9ca00000 {
 			compatible = "ramoops";
-			reg = <0x00 0x9c700000 0x00 0x00100000>;
+			reg = <0x00 0x9ca00000 0x00 0x00100000>;
 			record-size = <0x8000>;
 			console-size = <0x8000>;
 			ftrace-size = <0x00>;
@@ -83,6 +84,7 @@
 	};
 
 	vsys_5v0: regulator-1 {
+		bootph-all;
 		compatible = "regulator-fixed";
 		regulator-name = "vsys_5v0";
 		regulator-min-microvolt = <5000000>;
@@ -93,6 +95,7 @@
 
 	vdd_3v3: regulator-2 {
 		/* output of TLV62595DMQR-U12 */
+		bootph-all;
 		compatible = "regulator-fixed";
 		regulator-name = "vdd_3v3";
 		regulator-min-microvolt = <3300000>;
@@ -118,6 +121,7 @@
 
 	vdd_3v3_sd: regulator-4 {
 		/* output of TPS22918DBVR-U21 */
+		bootph-all;
 		pinctrl-names = "default";
 		pinctrl-0 = <&vdd_3v3_sd_pins_default>;
 
@@ -132,6 +136,7 @@
 	};
 
 	vdd_sd_dv: regulator-5 {
+		bootph-all;
 		compatible = "regulator-gpio";
 		regulator-name = "sd_hs200_switch";
 		pinctrl-names = "default";
@@ -146,9 +151,11 @@
 	};
 
 	leds {
+		bootph-all;
 		compatible = "gpio-leds";
 
 		led-0 {
+			bootph-all;
 			gpios = <&main_gpio0 3 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "heartbeat";
 			function = LED_FUNCTION_HEARTBEAT;
@@ -156,6 +163,7 @@
 		};
 
 		led-1 {
+			bootph-all;
 			gpios = <&main_gpio0 4 GPIO_ACTIVE_HIGH>;
 			linux,default-trigger = "disk-activity";
 			function = LED_FUNCTION_DISK_ACTIVITY;
@@ -163,16 +171,19 @@
 		};
 
 		led-2 {
+			bootph-all;
 			gpios = <&main_gpio0 5 GPIO_ACTIVE_HIGH>;
 			function = LED_FUNCTION_CPU;
 		};
 
 		led-3 {
+			bootph-all;
 			gpios = <&main_gpio0 6 GPIO_ACTIVE_HIGH>;
 			function = LED_FUNCTION_LAN;
 		};
 
 		led-4 {
+			bootph-all;
 			gpios = <&main_gpio0 9 GPIO_ACTIVE_HIGH>;
 			function = LED_FUNCTION_WLAN;
 		};
@@ -245,6 +256,7 @@
 
 &main_pmx0 {
 	gpio0_pins_default: gpio0-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x0004, PIN_INPUT, 7) /* (G25) OSPI0_LBCLKO.GPIO0_1 */
 			AM62X_IOPAD(0x0008, PIN_INPUT, 7) /* (J24) OSPI0_DQS.GPIO0_2 */
@@ -264,6 +276,7 @@
 	};
 
 	vdd_sd_dv_pins_default: vdd-sd-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x0244, PIN_OUTPUT, 7) /* (C17) MMC1_SDWP.GPIO1_49 */
 		>;
@@ -283,6 +296,7 @@
 	};
 
 	local_i2c_pins_default: local-i2c-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x01e0, PIN_INPUT_PULLUP, 0) /* (B16) I2C0_SCL */
 			AM62X_IOPAD(0x01e4, PIN_INPUT_PULLUP, 0) /* (A16) I2C0_SDA */
@@ -321,6 +335,7 @@
 	};
 
 	emmc_pins_default: emmc-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x0220, PIN_INPUT, 0) /* (Y3) MMC0_CMD */
 			AM62X_IOPAD(0x0218, PIN_INPUT, 0) /* (AB1) MMC0_CLK */
@@ -336,12 +351,14 @@
 	};
 
 	vdd_3v3_sd_pins_default: vdd-3v3-sd-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x01c4, PIN_INPUT, 7) /* (B14) SPI0_D1_GPIO1_19 */
 		>;
 	};
 
 	sd_pins_default: sd-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
 			AM62X_IOPAD(0x0234, PIN_INPUT, 0) /* (B22) MMC1_CLK */
@@ -418,6 +435,7 @@
 	};
 
 	mikrobus_gpio_pins_default: mikrobus-gpio-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x019c, PIN_INPUT, 7) /* (B18) MCASP0_AXR1.GPIO1_9 */
 			AM62X_IOPAD(0x01a0, PIN_INPUT, 7) /* (E18) MCASP0_AXR0.GPIO1_10 */
@@ -426,6 +444,7 @@
 	};
 
 	console_pins_default: console-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x01c8, PIN_INPUT, 0) /* (D14) UART0_RXD */
 			AM62X_IOPAD(0x01cc, PIN_OUTPUT, 0) /* (E14) UART0_TXD */
@@ -597,6 +616,7 @@
 };
 
 &main_gpio0 {
+	bootph-all;
 	pinctrl-names = "default";
 	pinctrl-0 = <&gpio0_pins_default>;
 	gpio-line-names = "BL_EN_3V3", "SPE_PO_EN", "RTC_INT",	/* 0-2 */
@@ -616,6 +636,7 @@
 };
 
 &main_gpio1 {
+	bootph-all;
 	pinctrl-names = "default";
 	pinctrl-0 = <&mikrobus_gpio_pins_default>;
 	gpio-line-names = "", "", "", "", "",			/* 0-4 */
@@ -633,6 +654,7 @@
 };
 
 &main_i2c0 {
+	bootph-all;
 	pinctrl-names = "default";
 	pinctrl-0 = <&local_i2c_pins_default>;
 	clock-frequency = <400000>;
@@ -651,6 +673,7 @@
 	};
 
 	tps65219: pmic@30 {
+		bootph-all;
 		compatible = "ti,tps65219";
 		reg = <0x30>;
 		buck1-supply = <&vsys_5v0>;
@@ -801,6 +824,7 @@
 };
 
 &sdhci0 {
+	bootph-all;
 	pinctrl-names = "default";
 	pinctrl-0 = <&emmc_pins_default>;
 	ti,driver-strength-ohm = <50>;
@@ -810,6 +834,7 @@
 
 &sdhci1 {
 	/* SD/MMC */
+	bootph-all;
 	pinctrl-names = "default";
 	pinctrl-0 = <&sd_pins_default>;
 
@@ -850,6 +875,7 @@
 };
 
 &main_uart0 {
+	bootph-all;
 	pinctrl-names = "default";
 	pinctrl-0 = <&console_pins_default>;
 	status = "okay";
@@ -870,6 +896,12 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&wifi_debug_uart_pins_default>;
 	status = "okay";
+
+	mcu {
+		compatible = "ti,cc1352p7";
+		reset-gpios = <&main_gpio0 72 GPIO_ACTIVE_LOW>;
+		vdds-supply = <&vdd_3v3>;
+	};
 };
 
 &dss {
arch/arm/dts/k3-am625-sk.dts +27 -0
index 7c98c1b855d1..b18092497c9a 100644
@@ -31,6 +31,7 @@
 
 	vmain_pd: regulator-0 {
 		/* TPS65988 PD CONTROLLER OUTPUT */
+		bootph-all;
 		compatible = "regulator-fixed";
 		regulator-name = "vmain_pd";
 		regulator-min-microvolt = <5000000>;
@@ -41,6 +42,7 @@
 
 	vcc_5v0: regulator-1 {
 		/* Output of LM34936 */
+		bootph-all;
 		compatible = "regulator-fixed";
 		regulator-name = "vcc_5v0";
 		regulator-min-microvolt = <5000000>;
@@ -52,6 +54,7 @@
 
 	vcc_3v3_sys: regulator-2 {
 		/* output of LM61460-Q1 */
+		bootph-all;
 		compatible = "regulator-fixed";
 		regulator-name = "vcc_3v3_sys";
 		regulator-min-microvolt = <3300000>;
@@ -63,6 +66,7 @@
 
 	vdd_mmc1: regulator-3 {
 		/* TPS22918DBVR */
+		bootph-all;
 		compatible = "regulator-fixed";
 		regulator-name = "vdd_mmc1";
 		regulator-min-microvolt = <3300000>;
@@ -75,6 +79,7 @@
 
 	vdd_sd_dv: regulator-4 {
 		/* Output of TLV71033 */
+		bootph-all;
 		compatible = "regulator-gpio";
 		regulator-name = "tlv71033";
 		pinctrl-names = "default";
@@ -102,6 +107,7 @@
 
 &main_pmx0 {
 	main_rgmii2_pins_default: main-rgmii2-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x184, PIN_INPUT, 0) /* (AE23) RGMII2_RD0 */
 			AM62X_IOPAD(0x188, PIN_INPUT, 0) /* (AB20) RGMII2_RD1 */
@@ -119,6 +125,7 @@
 	};
 
 	ospi0_pins_default: ospi0-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x000, PIN_OUTPUT, 0) /* (H24) OSPI0_CLK */
 			AM62X_IOPAD(0x02c, PIN_OUTPUT, 0) /* (F23) OSPI0_CSn0 */
@@ -135,20 +142,32 @@
 	};
 
 	vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x07c, PIN_OUTPUT, 7) /* (P25) GPMC0_CLK.GPIO0_31 */
 		>;
 	};
 
 	main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins {
+		bootph-all;
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (B15) UART0_RTSn.GPIO1_23 */
 		>;
 	};
 };
 
+&main_gpio0 {
+	bootph-all;
+};
+
+&main_gpio1 {
+	bootph-all;
+};
+
 &main_i2c1 {
+	bootph-all;
 	exp1: gpio@22 {
+		bootph-all;
 		compatible = "ti,tca6424";
 		reg = <0x22>;
 		gpio-controller;
@@ -207,12 +226,18 @@
 	};
 };
 
+&fss {
+	bootph-all;
+};
+
 &ospi0 {
+	bootph-all;
 	status = "okay";
 	pinctrl-names = "default";
 	pinctrl-0 = <&ospi0_pins_default>;
 
 	flash@0 {
+		bootph-all;
 		compatible = "jedec,spi-nor";
 		reg = <0x0>;
 		spi-tx-bus-width = <8>;
@@ -225,6 +250,7 @@
 		cdns,read-delay = <4>;
 
 		partitions {
+			bootph-all;
 			compatible = "fixed-partitions";
 			#address-cells = <1>;
 			#size-cells = <1>;
@@ -260,6 +286,7 @@
 			};
 
 			partition@3fc0000 {
+				bootph-pre-ram;
 				label = "ospi.phypattern";
 				reg = <0x3fc0000 0x40000>;
 			};
arch/arm/dts/k3-am62x-sk-common.dtsi +108 -1

223 lines not on this page · raw message

Signature · 1 line
2.40.0
#2 lore raw

PATCH 2/4 arm: dts: k3-am625: Drop SoC provided bootph params from board u-boot/r5 dtsi

In reply to Nishanth Menon

k3-am62* SoC dtsi files now provide the following:

bootph-all: dmss secure_proxy_main dmsc k3_pds k3_clks k3_reset
main_pmx0 main_timer0 mcu_pmx0 wkup_conf chipid

bootph-pre-ram: secure_proxy_sa3 main_esm mcu_esm

Drop these from board r5 and u-boot.dtsi files as these are duplicate in them now.

---
 arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi  | 54 ------------------
 arch/arm/dts/k3-am625-r5-beagleplay.dts       |  9 ---
 arch/arm/dts/k3-am625-r5-sk.dts               |  9 ---
 arch/arm/dts/k3-am625-sk-u-boot.dtsi          | 53 ------------------
 arch/arm/dts/k3-am625-verdin-r5.dts           |  9 ---
 .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi  | 55 +------------------
 6 files changed, 2 insertions(+), 187 deletions(-)
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +0 -54
index d6c6baa5518b..6f3a31558b20 100644
@@ -47,59 +47,17 @@
 	};
 };
 
-&cbass_main {
-	bootph-all;
-};
-
 &main_timer0 {
 	clock-frequency = <25000000>;
-	bootph-all;
-};
-
-&dmss {
-	bootph-all;
-};
-
-&secure_proxy_main {
-	bootph-all;
-};
-
-&dmsc {
-	bootph-all;
-};
-
-&k3_pds {
-	bootph-all;
-};
-
-&k3_clks {
-	bootph-all;
-};
-
-&k3_reset {
-	bootph-all;
 };
 
 &dmsc {
-	bootph-all;
 	k3_sysreset: sysreset-controller {
 		compatible = "ti,sci-sysreset";
 		bootph-all;
 	};
 };
 
-&wkup_conf {
-	bootph-all;
-};
-
-&chipid {
-	bootph-all;
-};
-
-&main_pmx0 {
-	bootph-all;
-};
-
 &main_uart0 {
 	bootph-all;
 };
@@ -108,18 +66,6 @@
 	bootph-all;
 };
 
-&cbass_mcu {
-	bootph-all;
-};
-
-&cbass_wakeup {
-	bootph-all;
-};
-
-&mcu_pmx0 {
-	bootph-all;
-};
-
 &main_i2c0 {
 	bootph-all;
 };
arch/arm/dts/k3-am625-r5-beagleplay.dts +0 -9
index 9c9d0570592a..1f450f55c1d2 100644
@@ -54,12 +54,7 @@
 	ti,secure-host;
 };
 
-&mcu_esm {
-	bootph-pre-ram;
-};
-
 &secure_proxy_sa3 {
-	bootph-pre-ram;
 	/* We require this for boot handshake */
 	status = "okay";
 };
@@ -73,10 +68,6 @@
 	};
 };
 
-&main_esm {
-	bootph-pre-ram;
-};
-
 &main_pktdma {
 	ti,sci = <&dm_tifs>;
 };
arch/arm/dts/k3-am625-r5-sk.dts +0 -9
index bf219226b974..55420b2f2c15 100644
@@ -55,20 +55,11 @@
 	ti,secure-host;
 };
 
-&mcu_esm {
-	bootph-pre-ram;
-};
-
 &secure_proxy_sa3 {
-	bootph-pre-ram;
 	/* We require this for boot handshake */
 	status = "okay";
 };
 
-&main_esm {
-	bootph-pre-ram;
-};
-
 &cbass_main {
 	sysctrler: sysctrler {
 		compatible = "ti,am654-system-controller";
arch/arm/dts/k3-am625-sk-u-boot.dtsi +0 -53

67 lines not on this page · raw message

arch/arm/dts/k3-am625-verdin-r5.dts +0 -9
index 0cae9c577732..305d199678b3 100644
@@ -69,16 +69,7 @@
 	ti,secure-host;
 };
 
-&main_esm {
-	bootph-pre-ram;
-};
-
-&mcu_esm {
-	bootph-pre-ram;
-};
-
 &secure_proxy_sa3 {
-	bootph-pre-ram;
 	/* We require this for boot handshake */
 	status = "okay";
 };
arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi +2 -53

99 lines not on this page · raw message

Signature · 1 line
2.40.0
Acked-by on v1 2/4
#3 lore raw

Re: [PATCH 2/4] arm: dts: k3-am625: Drop SoC provided bootph params from board u-boot/r5 dtsi

Quoted 11 lines · Nishanth Menon

k3-am62* SoC dtsi files now provide the following:

bootph-all: dmss secure_proxy_main dmsc k3_pds k3_clks k3_reset
main_pmx0 main_timer0 mcu_pmx0 wkup_conf chipid

bootph-pre-ram: secure_proxy_sa3 main_esm mcu_esm

Drop these from board r5 and u-boot.dtsi files as these are duplicate in them now.

I had just a quick look and I have not tested the change, with that said

#4 lore raw

PATCH 3/4 arm: dts: k3-am625-beagleplay-u-boot: drop duplicate bootph-nodes

In reply to Nishanth Menon

Kernel dts import now provides bootph-all and bootph-pre-ram properties for the properties we have been overriding so far. Drop the same.

---
 arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 56 --------------------
 1 file changed, 56 deletions(-)
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +0 -56
index 6f3a31558b20..7f8468f298f0 100644
@@ -13,36 +13,26 @@
 		tick-timer = &main_timer0;
 	};
 
-	memory@80000000 {
-		bootph-all;
-	};
-
 	/* Keep the LEDs on by default to indicate life */
 	leds {
-		bootph-all;
 		led-0 {
 			default-state = "on";
-			bootph-all;
 		};
 
 		led-1 {
 			default-state = "on";
-			bootph-all;
 		};
 
 		led-2 {
 			default-state = "on";
-			bootph-all;
 		};
 
 		led-3 {
 			default-state = "on";
-			bootph-all;
 		};
 
 		led-4 {
 			default-state = "on";
-			bootph-all;
 		};
 	};
 };
@@ -58,45 +48,7 @@
 	};
 };
 
-&main_uart0 {
-	bootph-all;
-};
-
-&console_pins_default {
-	bootph-all;
-};
-
-&main_i2c0 {
-	bootph-all;
-};
-
-&local_i2c_pins_default {
-	bootph-all;
-};
-
-&gpio0_pins_default {
-	bootph-all;
-};
-
-&main_gpio0 {
-	bootph-all;
-};
-
-&main_gpio1 {
-	bootph-all;
-};
-
-&sdhci0 {
-	/* EMMC */
-	bootph-all;
-};
-
-&emmc_pins_default {
-	bootph-all;
-};
-
 &sd_pins_default {
-	bootph-all;
 	/* Force to use SDCD card detect pin */
 	pinctrl-single,pins = <
 		AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
@@ -109,14 +61,6 @@
 	>;
 };
 
-&tps65219 {
-	bootph-all;
-};
-
-&sdhci1 {
-	bootph-all;
-};
-
 #ifdef CONFIG_TARGET_AM625_A53_EVM
 
 #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb"
Signature · 1 line
2.40.0
Reviewed-by on v1 3/4
#5 lore raw

Re: [PATCH 3/4] arm: dts: k3-am625-beagleplay-u-boot: drop duplicate bootph-nodes

Quoted 100 lines · Nishanth Menon

Kernel dts import now provides bootph-all and bootph-pre-ram properties for the properties we have been overriding so far. Drop the same.

---
 arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 56 --------------------
 1 file changed, 56 deletions(-)
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +0 -49
index 6f3a31558b20..7f8468f298f0 100644
@@ -13,36 +13,26 @@
 		tick-timer = &main_timer0;
 	};
 
-	memory@80000000 {
-		bootph-all;
-	};
-
 	/* Keep the LEDs on by default to indicate life */
 	leds {
-		bootph-all;
 		led-0 {
 			default-state = "on";
-			bootph-all;
 		};
 
 		led-1 {
 			default-state = "on";
-			bootph-all;
 		};
 
 		led-2 {
 			default-state = "on";
-			bootph-all;
 		};
 
 		led-3 {
 			default-state = "on";
-			bootph-all;
 		};
 
 		led-4 {
 			default-state = "on";
-			bootph-all;
 		};
 	};
 };
@@ -58,45 +48,7 @@
 	};
 };
 
-&main_uart0 {
-	bootph-all;
-};
-
-&console_pins_default {
-	bootph-all;
-};
-
-&main_i2c0 {
-	bootph-all;
-};
-
-&local_i2c_pins_default {
-	bootph-all;
-};
-
-&gpio0_pins_default {
-	bootph-all;
-};
-
-&main_gpio0 {
-	bootph-all;
-};
-
-&main_gpio1 {
-	bootph-all;
-};
-
-&sdhci0 {
-	/* EMMC */
-	bootph-all;
-};
-
-&emmc_pins_default {
-	bootph-all;
-};
-
 &sd_pins_default {
-	bootph-all;
 	/* Force to use SDCD card detect pin */
 	pinctrl-single,pins = <
 		AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
@@ -109,14 +61,6 @@
 	>;
 };
 
-&tps65219 {

arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi line 66

Quoted 10 lines
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +0 -7
-	bootph-all;
-};
-
-&sdhci1 {
-	bootph-all;
-};
-
 #ifdef CONFIG_TARGET_AM625_A53_EVM
 
 #define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb"

You didn't talk about this in the commit message?

Quoted 4 lines
Signature · 1 line
2.40.0

Rest looks ok,

Signature · 2 lines
Best regards,
Dhruva Gole <[email protected]>
#6 lore raw

Re: [PATCH 3/4] arm: dts: k3-am625-beagleplay-u-boot: drop duplicate bootph-nodes

On 09:03-20231114, Dhruva Gole wrote:
[...]

Quoted 5 lines
Quoted 3 lines

#ifdef CONFIG_TARGET_AM625_A53_EVM

#define SPL_AM625_BEAGLEPLAY_DTB "spl/dts/k3-am625-beagleplay.dtb"

You didn't talk about this in the commit message?

There is nothing changing in this patch here.

Signature · 3 lines
Regards,
Nishanth Menonh
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#7 lore raw

PATCH 4/4 arm: dts: k3-am625-sk-r5/u-boot: Drop duplicate bootph-nodes

In reply to Nishanth Menon

Kernel dts import now provides bootph-all and bootph-pre-ram properties for the properties we have been overriding so far. Drop the same.

While at this enable the DM and tifs uarts for programming pinmux since they are marked reserved by board.dts

---
 arch/arm/dts/k3-am625-r5-sk.dts      | 12 +---
 arch/arm/dts/k3-am625-sk-u-boot.dtsi | 92 ----------------------------
 2 files changed, 2 insertions(+), 102 deletions(-)
arch/arm/dts/k3-am625-r5-sk.dts +2 -10
index 55420b2f2c15..6b9f40e55581 100644
@@ -69,22 +69,14 @@
 	};
 };
 
-&wkup_uart0_pins_default {
-	bootph-pre-ram;
-};
-
-&main_uart1_pins_default {
-	bootph-pre-ram;
-};
-
 /* WKUP UART0 is used for DM firmware logs */
 &wkup_uart0 {
-	bootph-pre-ram;
+	status = "okay";
 };
 
 /* Main UART1 is used for TIFS firmware logs */
 &main_uart1 {
-	bootph-pre-ram;
+	status = "okay";
 };
 
 &ospi0 {
arch/arm/dts/k3-am625-sk-u-boot.dtsi +0 -92

112 lines not on this page · raw message

Signature · 1 line
2.40.0
Reviewed-by on v1 4/4
#8 lore raw

Re: [PATCH 4/4] arm: dts: k3-am625-sk-r5/u-boot: Drop duplicate bootph-nodes

Quoted 4 lines · Nishanth Menon

Kernel dts import now provides bootph-all and bootph-pre-ram properties for the properties we have been overriding so far. Drop the same.

While at this enable the DM and tifs uarts for programming pinmux

s/tifs/TIFS UARTs

Quoted 157 lines

since they are marked reserved by board.dts

---
 arch/arm/dts/k3-am625-r5-sk.dts      | 12 +---
 arch/arm/dts/k3-am625-sk-u-boot.dtsi | 92 ----------------------------
 2 files changed, 2 insertions(+), 102 deletions(-)
arch/arm/dts/k3-am625-r5-sk.dts +2 -10
index 55420b2f2c15..6b9f40e55581 100644
@@ -69,22 +69,14 @@
 	};
 };
 
-&wkup_uart0_pins_default {
-	bootph-pre-ram;
-};
-
-&main_uart1_pins_default {
-	bootph-pre-ram;
-};
-
 /* WKUP UART0 is used for DM firmware logs */
 &wkup_uart0 {
-	bootph-pre-ram;
+	status = "okay";
 };
 
 /* Main UART1 is used for TIFS firmware logs */
 &main_uart1 {
-	bootph-pre-ram;
+	status = "okay";
 };
 
 &ospi0 {
arch/arm/dts/k3-am625-sk-u-boot.dtsi +0 -92
index dcf7c7652d31..fa778b0ff4c1 100644
@@ -8,71 +8,14 @@
 
 / {
 	chosen {
-		stdout-path = "serial2:115200n8";
 		tick-timer = &main_timer0;
 	};
-
-	aliases {
-		mmc1 = &sdhci1;
-	};
-
-	memory@80000000 {
-		bootph-all;
-	};
-};
-
-&main_conf {
-	bootph-all;
 };
 
 &main_timer0 {
 	clock-frequency = <25000000>;
 };
 
-&main_uart0 {
-	bootph-all;
-};
-
-&main_uart0_pins_default {
-	bootph-all;
-};
-
-&sdhci1 {
-	bootph-all;
-};
-
-&main_mmc1_pins_default {
-	bootph-all;
-};
-
-&fss {
-	bootph-all;
-};
-
-&ospi0_pins_default {
-	bootph-all;
-};
-
-&ospi0 {
-	bootph-all;
-
-	flash@0 {
-		bootph-all;
-
-		partitions {
-			bootph-all;
-
-			partition@3fc0000 {
-				bootph-all;
-			};
-		};
-	};
-};
-
-&inta_main_dmss {
-	bootph-all;
-};
-
 &main_bcdma {
 	reg = <0x00 0x485c0100 0x00 0x100>,
 	      <0x00 0x4c000000 0x00 0x20000>,
@@ -100,41 +43,6 @@
 	bootph-all;
 };
 
-&cpsw3g_mdio {
-	bootph-all;
-};
-
-&cpsw3g_phy0 {
-	bootph-all;
-};
-
-&cpsw3g_phy1 {
-	bootph-all;
-};
-
-&main_rgmii1_pins_default {
-	bootph-all;
-};
-
-&main_rgmii2_pins_default {
-	bootph-all;
-};
-
-&phy_gmii_sel {
-	bootph-all;
-};
-
-&cpsw3g {
-	bootph-all;
-	ethernet-ports {
-		bootph-all;
-	};
-};
-
-&cpsw_port1 {
-	bootph-all;
-};
-
 &cpsw_port2 {
 	status = "disabled";
 };
Signature · 1 line
2.40.0

Looks okay,

Quoted 2 lines
Signature · 2 lines
Best regards,
Dhruva Gole <[email protected]>
Tested-by on the v1 series
#9 lore raw
In reply to Nishanth Menon

Hi,

Quoted 14 lines · Nishanth Menon

Hi,

Sync Device tree to kernel v6.7-rc1 - we are getting closer to clean u-boot integration now.

Boot logs:
https://gist.github.com/nmenon/d62c4795c6d3d40c83ba36d1cd047c42

WARNING: This will have a minor conflict (binman) with:
https://lore.kernel.org/u-boot/[email protected]/

I haven't had a chance to test this out on verdin (only build tested)
- so will be nice to verify.

Quoted 6 lines

Nishanth Menon (4):
arm: dts: k3-am625*: Sync with kernel v6.7-rc1
arm: dts: k3-am625: Drop SoC provided bootph params from board
u-boot/r5 dtsi
arm: dts: k3-am625-beagleplay-u-boot: drop duplicate bootph-nodes
arm: dts: k3-am625-sk-r5/u-boot: Drop duplicate bootph-nodes

boot tested these patches on SK-AM62x:

...
U-Boot SPL 2024.01-rc2-00087-g38667965389d (Nov 14 2023 - 08:38:39 +0530)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.1--v09.01.01 (Kool Koala)') SPL initial stack usage: 13368 bytes

Trying to boot from UART
CLoaded 777811 bytes
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.9(release):v2.9.0-792-g2899ad392225-dirty
NOTICE:  BL31: Built : 17:56:37, Oct 26 2023

U-Boot SPL 2024.01-rc2-00087-g38667965389d (Nov 14 2023 - 08:38:54 +0530)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.1.1--v09.01.01 (Kool Koala)') SPL initial stack usage: 1872 bytes
Trying to boot from UART
CLoaded 727547 bytes

U-Boot 2024.01-rc2-00087-g38667965389d (Nov 14 2023 - 08:38:54 +0530)

SoC:   AM62X SR1.0 HS-FS
Model: Texas Instruments AM625 SK
DRAM:  2 GiB
Core:  57 devices, 23 uclasses, devicetree: separate
MMC:   mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from nowhere... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Net:   eth0: ethernet@8000000port@1
Hit any key to stop autoboot:  2  0 

=>
=>
=>
=>
=> version
U-Boot 2024.01-rc2-00087-g38667965389d (Nov 14 2023 - 08:38:54 +0530)

aarch64-none-linux-gnu-gcc (Arm GNU Toolchain 12.3.Rel1 (Build arm-12.35)) 12.3.1 20230626
GNU ld (Arm GNU Toolchain 12.3.Rel1 (Build arm-12.35)) 2.40.0.20230627 =>
...

Quoted 22 lines
 arch/arm/dts/k3-am62-main.dtsi                |  12 +-
 arch/arm/dts/k3-am62-mcu.dtsi                 |   2 +
 arch/arm/dts/k3-am62-verdin-wifi.dtsi         |   6 +
 arch/arm/dts/k3-am62-verdin.dtsi              |   1 +
 arch/arm/dts/k3-am62-wakeup.dtsi              |   2 +
 arch/arm/dts/k3-am62.dtsi                     |   3 +
 arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi  | 110 -------------
 arch/arm/dts/k3-am625-beagleplay.dts          |  34 +++-
 arch/arm/dts/k3-am625-r5-beagleplay.dts       |   9 --
 arch/arm/dts/k3-am625-r5-sk.dts               |  21 +--
 arch/arm/dts/k3-am625-sk-u-boot.dtsi          | 145 ------------------
 arch/arm/dts/k3-am625-sk.dts                  |  27 ++++
 arch/arm/dts/k3-am625-verdin-r5.dts           |   9 --
 .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi  |  55 +------
 arch/arm/dts/k3-am62x-sk-common.dtsi          | 109 ++++++++++++-
 15 files changed, 197 insertions(+), 348 deletions(-)
Signature · 1 line
2.40.0
Signature · 2 lines
Best regards,
Dhruva Gole <[email protected]>