Skip to contentSkip to conversation

J721E DTS Sync with Kernel v6.6-rc1

PATCH Superseded Neha Malcom Francis 3 participants 14 messages Sep 22, 2023 – Sep 27, 2023

Subsystems (3)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover J721E DTS Sync with Kernel v6.6-rc1

This series aims to sync kernel.org v6.6-rc1 DTS with that of U-Boot. It also includes cleanups where necessary along with certain changes to ensure boot is unaffected.

Same as with other board series that have taken up this effort, cleanup of mcu_ringacc and mcu_udmap are dependent on MCU DMA [1] fixes. Also adding TPS6594 PMIC support is still under review [2] in the Kernel. These will be taken up after their merge to Linux.

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

Boot logs:
https://gist.github.com/nehamalcom/52dd8f2b553952108c0d16556f58077a

Changes in v3:
- Nishanth:
- synced to v6.6-rc1 from v6.5-rc1
- reworded commit messages
- removed patch adding k3_avs compatible since it has been merged to -next separately
- removed unnecessary #includes
- added extra comments for OSPI reg overrides
- removed hbmc node from R5 DTS
- changed ti_sci_get_cmd_revision to be at a common point for all boot flows
- Manorit:
- added Reviewed-by tag for mcu_timer0 ID patch (2/7)
- removed all aliases
- removed unnecessary properties

Changes in v2:
- Nishanth:
- synced k3-j721e-som-0.dtsi 6.5-rc1
- delete tick-timer from -u-boot.dtsi
- remove unnecessary aliases
- remove SERDES overrides in U-Boot
- formatting changes
- drop repeated nodes and properties in U-Boot dts
- drop nodes and properties not related to U-Boot from U-Boot dts
- drop all /delete

Neha Malcom Francis (6):
arm: mach-k3: j721e: dev-data: Add mcu_timer0 ID
arm: mach-k3: j721e_init: Move clk_k3 probe before loading TIFS
drivers: firmware: ti_sci: Get SCI revision only if TIFS/SYSFW is up
configs: j721e: Remove HBMC_AM654 config
arm: dts: k3-j721e-r5: Clean up inclusion hierarchy
arm: dts: k3-j721e: Sync with v6.6-rc1

 .../k3-j721e-common-proc-board-u-boot.dtsi    |  153 +--
 arch/arm/dts/k3-j721e-common-proc-board.dts   |  513 ++++++---
 arch/arm/dts/k3-j721e-main.dtsi               | 1018 +++++++++++++++--
 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi         |  305 ++++-
 .../k3-j721e-r5-common-proc-board-u-boot.dtsi |   29 -
 .../arm/dts/k3-j721e-r5-common-proc-board.dts |  363 +-----
 arch/arm/dts/k3-j721e-r5-sk-u-boot.dtsi       |   31 -
 arch/arm/dts/k3-j721e-r5-sk.dts               |  572 +--------
 arch/arm/dts/k3-j721e-sk-u-boot.dtsi          |  184 +--
 arch/arm/dts/k3-j721e-sk.dts                  |  673 +++++++----
 arch/arm/dts/k3-j721e-som-p0.dtsi             |  217 ++--
 arch/arm/dts/k3-j721e-thermal.dtsi            |   75 ++
 arch/arm/dts/k3-j721e.dtsi                    |   32 +-
 arch/arm/mach-k3/j721e/dev-data.c             |    1 +
 arch/arm/mach-k3/j721e_init.c                 |   24 +-
 configs/j721e_evm_a72_defconfig               |    1 -
 configs/j721e_evm_r5_defconfig                |    1 -
 drivers/firmware/ti_sci.c                     |   11 +-
 18 files changed, 2415 insertions(+), 1788 deletions(-)
 delete mode 100644 arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi
 delete mode 100644 arch/arm/dts/k3-j721e-r5-sk-u-boot.dtsi
 create mode 100644 arch/arm/dts/k3-j721e-thermal.dtsi
Signature · 1 line
2.34.1
#1 lore raw

PATCH v3 1/6 arm: mach-k3: j721e: dev-data: Add mcu_timer0 ID

U-Boot uses mcu_timer0 as the tick-timer, so add it to device list.

---
 arch/arm/mach-k3/j721e/dev-data.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-k3/j721e/dev-data.c +1 -0
index 97f017f8af..b0adb1857b 100644
@@ -56,6 +56,7 @@ static struct ti_dev soc_dev_list[] = {
 	PSC_DEV(4, &soc_lpsc_list[8]),
 	PSC_DEV(202, &soc_lpsc_list[9]),
 	PSC_DEV(203, &soc_lpsc_list[10]),
+	PSC_DEV(35, &soc_lpsc_list[11]),
 	PSC_DEV(102, &soc_lpsc_list[11]),
 	PSC_DEV(103, &soc_lpsc_list[11]),
 	PSC_DEV(104, &soc_lpsc_list[11]),
Signature · 1 line
2.34.1
maintainer Reviewed-by on v3 1/6
#2 lore raw

Re: [PATCH v3 1/6] arm: mach-k3: j721e: dev-data: Add mcu_timer0 ID

Quoted 4 lines · Neha Malcom Francis

U-Boot uses mcu_timer0 as the tick-timer, so add it to device list.

[...]

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

PATCH v3 2/6 arm: mach-k3: j721e_init: Move clk_k3 probe before loading TIFS

In reply to Neha Malcom Francis

When setting boot media to load the TIFS binary in legacy boot flow (followed by J721E), get_timer() is called which eventually calls dm_timer_init() to grab the tick-timer, which is mcu_timer0. Since we need to set up the clocks before using the timer, move clk_k3 driver probe before k3_sysfw_loader to ensure we have all necessary clocks set up before.

---
 arch/arm/mach-k3/j721e_init.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
arch/arm/mach-k3/j721e_init.c +12 -12
index b6164575b7..b1f7e25ed0 100644
@@ -228,6 +228,18 @@ void board_init_f(ulong dummy)
 	if (!ret)
 		pinctrl_select_state(dev, "default");
 
+	/*
+	 * Force probe of clk_k3 driver here to ensure basic default clock
+	 * configuration is always done.
+	 */
+	if (IS_ENABLED(CONFIG_SPL_CLK_K3)) {
+		ret = uclass_get_device_by_driver(UCLASS_CLK,
+						  DM_DRIVER_GET(ti_clk),
+						  &dev);
+		if (ret)
+			panic("Failed to initialize clk-k3!\n");
+	}
+
 	/*
 	 * Load, start up, and configure system controller firmware. Provide
 	 * the U-Boot console init function to the SYSFW post-PM configuration
@@ -241,18 +253,6 @@ void board_init_f(ulong dummy)
 	do_dt_magic();
 #endif
 
-	/*
-	 * Force probe of clk_k3 driver here to ensure basic default clock
-	 * configuration is always done.
-	 */
-	if (IS_ENABLED(CONFIG_SPL_CLK_K3)) {
-		ret = uclass_get_device_by_driver(UCLASS_CLK,
-						  DM_DRIVER_GET(ti_clk),
-						  &dev);
-		if (ret)
-			panic("Failed to initialize clk-k3!\n");
-	}
-
 	/* Prepare console output */
 	preloader_console_init();
 
Signature · 1 line
2.34.1
maintainer Reviewed-by on v3 2/6
#4 lore raw

Re: [PATCH v3 2/6] arm: mach-k3: j721e_init: Move clk_k3 probe before loading TIFS

Quoted 8 lines · Neha Malcom Francis

When setting boot media to load the TIFS binary in legacy boot flow (followed by J721E), get_timer() is called which eventually calls dm_timer_init() to grab the tick-timer, which is mcu_timer0. Since we need to set up the clocks before using the timer, move clk_k3 driver probe before k3_sysfw_loader to ensure we have all necessary clocks set up before.

Quoted 49 lines
---
 arch/arm/mach-k3/j721e_init.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
arch/arm/mach-k3/j721e_init.c +12 -12
index b6164575b7..b1f7e25ed0 100644
@@ -228,6 +228,18 @@ void board_init_f(ulong dummy)
 	if (!ret)
 		pinctrl_select_state(dev, "default");
 
+	/*
+	 * Force probe of clk_k3 driver here to ensure basic default clock
+	 * configuration is always done.
+	 */
+	if (IS_ENABLED(CONFIG_SPL_CLK_K3)) {
+		ret = uclass_get_device_by_driver(UCLASS_CLK,
+						  DM_DRIVER_GET(ti_clk),
+						  &dev);
+		if (ret)
+			panic("Failed to initialize clk-k3!\n");
+	}
+
 	/*
 	 * Load, start up, and configure system controller firmware. Provide
 	 * the U-Boot console init function to the SYSFW post-PM configuration
@@ -241,18 +253,6 @@ void board_init_f(ulong dummy)
 	do_dt_magic();
 #endif
 
-	/*
-	 * Force probe of clk_k3 driver here to ensure basic default clock
-	 * configuration is always done.
-	 */
-	if (IS_ENABLED(CONFIG_SPL_CLK_K3)) {
-		ret = uclass_get_device_by_driver(UCLASS_CLK,
-						  DM_DRIVER_GET(ti_clk),
-						  &dev);
-		if (ret)
-			panic("Failed to initialize clk-k3!\n");
-	}
-
 	/* Prepare console output */
 	preloader_console_init();
 
Signature · 1 line
2.34.1
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#5 lore raw

PATCH v3 3/6 drivers: firmware: ti_sci: Get SCI revision only if TIFS/SYSFW is up

In reply to Neha Malcom Francis

When setting up boot media to load the TIFS binary in legacy boot flow (followed by J721E), get_timer() is called which calls dm_timer_init() which then gets the tick-timer: mcu_timer0. mcu_timer0 uses k3_clks (clock controller) and k3_pds (power controller) from the dmsc node that forces probe of the ti_sci driver of TIFS that hasn't been loaded yet! Running ti_sci_cmd_get_revision from the probe leads to panic since no TIFS and board config binaries have been loaded yet. Resolve this by moving ti_sci_cmd_get_revision to ti_sci_get_handle_from_sysfw as a common point of invocation for both legacy and combined boot flows.

Before doing this, it is important to go through whether any sync points exist where revision is needed before ti_sci_get_handle_from_sysfw is invoked. Going through the code along with boot tests on both flows ensures that there are none.

---
 drivers/firmware/ti_sci.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
drivers/firmware/ti_sci.c +8 -3
index 72f572d824..45406e24d2 100644
@@ -2690,6 +2690,8 @@ static void ti_sci_setup_ops(struct ti_sci_info *info)
 const
 struct ti_sci_handle *ti_sci_get_handle_from_sysfw(struct udevice *sci_dev)
 {
+	int ret;
+
 	if (!sci_dev)
 		return ERR_PTR(-EINVAL);
 
@@ -2703,6 +2705,11 @@ struct ti_sci_handle *ti_sci_get_handle_from_sysfw(struct udevice *sci_dev)
 	if (!handle)
 		return ERR_PTR(-EINVAL);
 
+	ret = ti_sci_cmd_get_revision(handle);
+
+	if (ret)
+		return ret;
+
 	return handle;
 }
 
@@ -2825,11 +2832,9 @@ static int ti_sci_probe(struct udevice *dev)
 	list_add_tail(&info->list, &ti_sci_list);
 	ti_sci_setup_ops(info);
 
-	ret = ti_sci_cmd_get_revision(&info->handle);
-
 	INIT_LIST_HEAD(&info->dev_list);
 
-	return ret;
+	return 0;
 }
 
 /**
Signature · 1 line
2.34.1
maintainer
#6 lore raw

Re: [PATCH v3 3/6] drivers: firmware: ti_sci: Get SCI revision only if TIFS/SYSFW is up

Quoted 10 lines · Neha Malcom Francis

When setting up boot media to load the TIFS binary in legacy boot flow (followed by J721E), get_timer() is called which calls dm_timer_init() which then gets the tick-timer: mcu_timer0. mcu_timer0 uses k3_clks (clock controller) and k3_pds (power controller) from the dmsc node that forces probe of the ti_sci driver of TIFS that hasn't been loaded yet! Running ti_sci_cmd_get_revision from the probe leads to panic since no TIFS and board config binaries have been loaded yet. Resolve this by moving ti_sci_cmd_get_revision to ti_sci_get_handle_from_sysfw as a common point of invocation for both legacy and combined boot flows.

Quoted 4 lines

Before doing this, it is important to go through whether any sync points exist where revision is needed before ti_sci_get_handle_from_sysfw is invoked. Going through the code along with boot tests on both flows ensures that there are none.

Please provide bootlogs for one board of the following SoCs in the diffstat for us to be sure.

* AM65 (sysfw gen1), J721e(tifs gen1), AM64(sysfw gen2-Sitara), J7200(tifs gen2-Jacinto), J721s2(tifs-dm/Jacinto), AM62x(tifs-dm/Sitara)

Quoted 47 lines
---
 drivers/firmware/ti_sci.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
drivers/firmware/ti_sci.c +8 -3
index 72f572d824..45406e24d2 100644
@@ -2690,6 +2690,8 @@ static void ti_sci_setup_ops(struct ti_sci_info *info)
 const
 struct ti_sci_handle *ti_sci_get_handle_from_sysfw(struct udevice *sci_dev)
 {
+	int ret;
+
 	if (!sci_dev)
 		return ERR_PTR(-EINVAL);
 
@@ -2703,6 +2705,11 @@ struct ti_sci_handle *ti_sci_get_handle_from_sysfw(struct udevice *sci_dev)
 	if (!handle)
 		return ERR_PTR(-EINVAL);
 
+	ret = ti_sci_cmd_get_revision(handle);
+
+	if (ret)
+		return ret;
+
 	return handle;
 }
 
@@ -2825,11 +2832,9 @@ static int ti_sci_probe(struct udevice *dev)
 	list_add_tail(&info->list, &ti_sci_list);
 	ti_sci_setup_ops(info);
 
-	ret = ti_sci_cmd_get_revision(&info->handle);
-
 	INIT_LIST_HEAD(&info->dev_list);
 
-	return ret;
+	return 0;
 }
 
 /**
Signature · 1 line
2.34.1
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#7 lore raw

PATCH v3 4/6 configs: j721e: Remove HBMC_AM654 config

In reply to Neha Malcom Francis

Kernel commit d93036b47f35 ("arm64: dts: ti: k3-j721e-mcu_wakeup: Add HyperBus node") was merged to kernel without its dependent patch [1]. Similar fix is needed in U-Boot, and hbmc currently breaks boot. Till this gets fixed in U-Boot, disable the config by default so that the hbmc probe that happens in board/ti/j721e/evm.c will not take place and lead to boot failure.

[1] https://lore.kernel.org/all/[email protected]/

---
 configs/j721e_evm_a72_defconfig | 1 -
 configs/j721e_evm_r5_defconfig  | 1 -
 2 files changed, 2 deletions(-)
configs/j721e_evm_a72_defconfig +0 -1
index 214fa8b2f3..beea948c4e 100644
@@ -140,7 +140,6 @@ CONFIG_CFI_FLASH=y
 CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
 CONFIG_FLASH_CFI_MTD=y
 CONFIG_SYS_FLASH_CFI=y
-CONFIG_HBMC_AM654=y
 CONFIG_SYS_MAX_FLASH_BANKS_DETECT=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
configs/j721e_evm_r5_defconfig +0 -1
index cf7bc872b5..d974be275f 100644
@@ -127,7 +127,6 @@ CONFIG_CFI_FLASH=y
 CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
 CONFIG_FLASH_CFI_MTD=y
 CONFIG_SYS_FLASH_CFI=y
-CONFIG_HBMC_AM654=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_SFDP_SUPPORT=y
 CONFIG_SPI_FLASH_STMICRO=y
Signature · 1 line
2.34.1
#8 lore raw

PATCH v3 5/6 arm: dts: k3-j721e-r5: Clean up inclusion hierarchy

In reply to Neha Malcom Francis

Get rid of k3-j721e-r5-*-u-boot.dtsi as it is not necessary. Change the inclusion hierarchy to be as follows:

	k3-j721e-<board>.dts---
			       -
			        -->k3-j721e-r5-<board>.dts
			       -

k3-j721e-<board>-u-boot.dtsi---

Reason for explicitly mentioning the inclusion of -u-boot.dtsi in code although it could've been automatically done by U-Boot is to resolve some of the dependencies that R5 file requires.

Also remove duplicate phandles while making this shift as well as remove firmware-loader as it serves no purpose without "phandlepart" property.

---
 .../k3-j721e-r5-common-proc-board-u-boot.dtsi | 29 ------------
 .../arm/dts/k3-j721e-r5-common-proc-board.dts | 38 +++------------
 arch/arm/dts/k3-j721e-r5-sk-u-boot.dtsi       | 31 ------------
 arch/arm/dts/k3-j721e-r5-sk.dts               | 47 ++++---------------
 4 files changed, 16 insertions(+), 129 deletions(-)
 delete mode 100644 arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi
 delete mode 100644 arch/arm/dts/k3-j721e-r5-sk-u-boot.dtsi
arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi deleted +0 -29
deleted file mode 100644
index f9746d33ec..0000000000
@@ -1,29 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/
- */
-
-#include "k3-j721e-common-proc-board-u-boot.dtsi"
-
-/ {
-	chosen {
-		firmware-loader = &fs_loader0;
-	};
-
-	aliases {
-		remoteproc0 = &sysctrler;
-		remoteproc1 = &a72_0;
-	};
-
-	fs_loader0: fs_loader@0 {
-		bootph-all;
-		compatible = "u-boot,fs-loader";
-	};
-};
-
-&tps659413a {
-	esm: esm {
-		compatible = "ti,tps659413-esm";
-		bootph-pre-ram;
-	};
-};
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +7 -31
index 32f71e9b6a..7bb5ce775c 100644
@@ -5,10 +5,10 @@
 
 /dts-v1/;
 
-#include "k3-j721e-som-p0.dtsi"
+#include "k3-j721e-common-proc-board.dts"
 #include "k3-j721e-ddr-evm-lp4-4266.dtsi"
 #include "k3-j721e-ddr.dtsi"
-#include "k3-j721e-binman.dtsi"
+#include "k3-j721e-common-proc-board-u-boot.dtsi"
 #include <dt-bindings/phy/phy-cadence.h>
 
 / {
@@ -198,27 +198,6 @@
 		>;
 	};
 
-	main_usbss0_pins_default: main_usbss0_pins_default {
-		pinctrl-single,pins = <
-			J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
-			J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
-		>;
-	};
-
-	main_mmc1_pins_default: main_mmc1_pins_default {
-		pinctrl-single,pins = <
-			J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
-			J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
-			J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
-			J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
-			J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
-			J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
-			J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
-			J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
-			J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
-		>;
-	};
-
 	main_i2c0_pins_default: main-i2c0-pins-default {
 		pinctrl-single,pins = <
 			J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
@@ -300,6 +279,11 @@
 				bootph-pre-ram;
 			};
 		};
+
+		esm: esm {
+			compatible = "ti,tps659413-esm";
+			bootph-pre-ram;
+		};
 	};
 };
 
@@ -424,14 +408,6 @@
 	assigned-clocks = <&serdes0 CDNS_SIERRA_PLL_CMNLC>, <&serdes0 CDNS_SIERRA_PLL_CMNLC1>;
 	assigned-clock-parents = <&wiz0_pll1_refclk>, <&wiz0_pll1_refclk>;
 
-	serdes0_pcie_link: link@0 {
-		reg = <0>;
-		cdns,num-lanes = <1>;
-		#phy-cells = <0>;
-		cdns,phy-type = <PHY_TYPE_PCIE>;
-		resets = <&serdes_wiz0 1>;
-	};
-
 	serdes0_qsgmii_link: phy@1 {
 		reg = <1>;
 		cdns,num-lanes = <1>;
arch/arm/dts/k3-j721e-r5-sk-u-boot.dtsi deleted +0 -31
deleted file mode 100644
index 733d69cd00..0000000000
@@ -1,31 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/
- */
-
-#include "k3-j721e-sk-u-boot.dtsi"
-
-/ {
-	chosen {
-		firmware-loader = &fs_loader0;
-	};
-
-	aliases {
-		remoteproc0 = &sysctrler;
-		remoteproc1 = &a72_0;
-		remoteproc2 = &main_r5fss0_core0;
-		remoteproc3 = &main_r5fss0_core1;
-	};
-
-	fs_loader0: fs_loader@0 {
-		bootph-all;
-		compatible = "u-boot,fs-loader";
-	};
-};
-
-&tps659412 {
-	esm: esm {
-		compatible = "ti,tps659413-esm";
-		bootph-pre-ram;
-	};
-};
arch/arm/dts/k3-j721e-r5-sk.dts +9 -38

82 lines not on this page · raw message

Signature · 1 line
2.34.1
#9 lore raw

PATCH v3 6/6 arm: dts: k3-j721e: Sync with v6.6-rc1

In reply to Neha Malcom Francis

Sync k3-j721e DTS with kernel.org v6.6-rc1.

---
 .../k3-j721e-common-proc-board-u-boot.dtsi    |  153 +--
 arch/arm/dts/k3-j721e-common-proc-board.dts   |  513 ++++++---
 arch/arm/dts/k3-j721e-main.dtsi               | 1018 +++++++++++++++--
 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi         |  305 ++++-
 .../arm/dts/k3-j721e-r5-common-proc-board.dts |  325 +-----
 arch/arm/dts/k3-j721e-r5-sk.dts               |  529 +--------
 arch/arm/dts/k3-j721e-sk-u-boot.dtsi          |  184 +--
 arch/arm/dts/k3-j721e-sk.dts                  |  673 +++++++----
 arch/arm/dts/k3-j721e-som-p0.dtsi             |  217 ++--
 arch/arm/dts/k3-j721e-thermal.dtsi            |   75 ++
 arch/arm/dts/k3-j721e.dtsi                    |   32 +-
 11 files changed, 2380 insertions(+), 1644 deletions(-)
 create mode 100644 arch/arm/dts/k3-j721e-thermal.dtsi
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +42 -111
index 540c847eb3..64908c2056 100644
@@ -3,83 +3,42 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  */
 
-#include <dt-bindings/net/ti-dp83867.h>
 #include "k3-j721e-binman.dtsi"
 
-/ {
-	chosen {
-		stdout-path = "serial2:115200n8";
-		tick-timer = &timer1;
-	};
-
-	aliases {
-		ethernet0 = &cpsw_port1;
-		spi0 = &ospi0;
-		spi1 = &ospi1;
-		remoteproc0 = &mcu_r5fss0_core0;
-		remoteproc1 = &mcu_r5fss0_core1;
-		remoteproc2 = &main_r5fss0_core0;
-		remoteproc3 = &main_r5fss0_core1;
-		remoteproc4 = &main_r5fss1_core0;
-		remoteproc5 = &main_r5fss1_core1;
-		remoteproc6 = &c66_0;
-		remoteproc7 = &c66_1;
-		remoteproc8 = &c71_0;
-		i2c0 = &wkup_i2c0;
-		i2c1 = &mcu_i2c0;
-		i2c2 = &mcu_i2c1;
-		i2c3 = &main_i2c0;
-	};
+&cbass_main {
+	bootph-pre-ram;
 };
 
-&cbass_main{
+&main_navss {
 	bootph-pre-ram;
-
-	main_navss: bus@30000000 {
-		bootph-pre-ram;
-	};
 };
 
 &cbass_mcu_wakeup {
 	bootph-pre-ram;
 
-	timer1: timer@40400000 {
-		compatible = "ti,omap5430-timer";
-		reg = <0x0 0x40400000 0x0 0x80>;
-		ti,timer-alwon;
-		clock-frequency = <250000000>;
+	chipid@43000014 {
 		bootph-pre-ram;
 	};
+};
 
-	mcu_navss: bus@28380000 {
-		bootph-pre-ram;
+&mcu_navss {
+	bootph-pre-ram;
+};
 
-		ringacc@2b800000 {
-			reg =	<0x0 0x2b800000 0x0 0x400000>,
-				<0x0 0x2b000000 0x0 0x400000>,
-				<0x0 0x28590000 0x0 0x100>,
-				<0x0 0x2a500000 0x0 0x40000>,
-				<0x0 0x28440000 0x0 0x40000>;
-			reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target", "cfg";
-			bootph-pre-ram;
-		};
-
-		dma-controller@285c0000 {
-			reg =	<0x0 0x285c0000 0x0 0x100>,
-				<0x0 0x284c0000 0x0 0x4000>,
-				<0x0 0x2a800000 0x0 0x40000>,
-				<0x0 0x284a0000 0x0 0x4000>,
-				<0x0 0x2aa00000 0x0 0x40000>,
-				<0x0 0x28400000 0x0 0x2000>;
-			reg-names = "gcfg", "rchan", "rchanrt", "tchan",
-					    "tchanrt", "rflow";
-			bootph-pre-ram;
-		};
-	};
+&mcu_ringacc {
+	bootph-pre-ram;
+};
 
-	chipid@43000014 {
-		bootph-pre-ram;
-	};
+&mcu_udmap {
+	reg =	<0x0 0x285c0000 0x0 0x100>,
+		<0x0 0x284c0000 0x0 0x4000>,
+		<0x0 0x2a800000 0x0 0x40000>,
+		<0x0 0x284a0000 0x0 0x4000>,
+		<0x0 0x2aa00000 0x0 0x40000>,
+		<0x0 0x28400000 0x0 0x2000>;
+	reg-names = "gcfg", "rchan", "rchanrt", "tchan",
+		    "tchanrt", "rflow";
+	bootph-pre-ram;
 };
 
 &secure_proxy_main {
@@ -130,9 +89,16 @@
 	bootph-pre-ram;
 };
 
-&wiz3_pll1_refclk {
-	assigned-clocks = <&wiz3_pll1_refclk>, <&wiz3_pll0_refclk>;
-	assigned-clock-parents = <&k3_clks 295 0>, <&k3_clks 295 9>;
+&wkup_uart0_pins_default {
+	bootph-pre-ram;
+};
+
+&mcu_uart0_pins_default {
+	bootph-pre-ram;
+};
+
+&main_uart0_pins_default {
+	bootph-pre-ram;
 };
 
 &main_usbss0_pins_default {
@@ -148,19 +114,6 @@
 	bootph-pre-ram;
 };
 
-&mcu_cpsw {
-	reg = <0x0 0x46000000 0x0 0x200000>,
-	      <0x0 0x40f00200 0x0 0x2>;
-	reg-names = "cpsw_nuss", "mac_efuse";
-	/delete-property/ ranges;
-
-	cpsw-phy-sel@40f04040 {
-		compatible = "ti,am654-cpsw-phy-sel";
-		reg= <0x0 0x40f04040 0x0 0x4>;
-		reg-names = "gmii-sel";
-	};
-};
-
 &main_mmc1_pins_default {
 	bootph-pre-ram;
 };
@@ -169,8 +122,14 @@
 	bootph-pre-ram;
 };
 
+&wkup_uart0 {
+	bootph-pre-ram;
+	status = "okay";
+};
+
 &wkup_i2c0 {
 	bootph-pre-ram;
+	status = "okay";
 };
 
 &main_i2c0 {
@@ -181,6 +140,10 @@
 	bootph-pre-ram;
 };
 
+&main_esm {
+	bootph-pre-ram;
+};
+
 &exp2 {
 	bootph-pre-ram;
 };
@@ -194,11 +157,7 @@
 };
 
 &hbmc {
-	bootph-pre-ram;
-
-	flash@0,0 {
-		bootph-pre-ram;
-	};
+	status = "disabled";
 };
 
 &hbmc_mux {
@@ -244,31 +203,3 @@
 &main_r5fss1 {
 	ti,cluster-mode = <0>;
 };
-
-&wiz3_pll1_refclk {
-	assigned-clocks = <&wiz3_pll1_refclk>, <&wiz3_pll0_refclk>;
-	assigned-clock-parents = <&k3_clks 295 0>, <&k3_clks 295 9>;
-};
-
-&serdes_ln_ctrl {
-	u-boot,mux-autoprobe;
-};
-
-&usb_serdes_mux {
-	u-boot,mux-autoprobe;
-};
-
-&serdes0 {
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-};
-
-&serdes0_pcie_link {
-	assigned-clocks = <&serdes0 CDNS_SIERRA_PLL_CMNLC>;
-	assigned-clock-parents = <&wiz0_pll1_refclk>;
-};
-
-&serdes0_qsgmii_link {
-	assigned-clocks = <&serdes0 CDNS_SIERRA_PLL_CMNLC1>;
-	assigned-clock-parents = <&wiz0_pll1_refclk>;
-};
arch/arm/dts/k3-j721e-common-proc-board.dts +349 -164

810 lines not on this page · raw message

arch/arm/dts/k3-j721e-main.dtsi +908 -110

1,524 lines not on this page · raw message

arch/arm/dts/k3-j721e-mcu-wakeup.dtsi +284 -21

433 lines not on this page · raw message

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +24 -301

24 lines not on this page · raw message

arch/arm/dts/k3-j721e-r5-sk.dts +26 -503

529 lines not on this page · raw message

arch/arm/dts/k3-j721e-sk-u-boot.dtsi +34 -150

184 lines not on this page · raw message

arch/arm/dts/k3-j721e-sk.dts +478 -195

673 lines not on this page · raw message

arch/arm/dts/k3-j721e-som-p0.dtsi +148 -69

217 lines not on this page · raw message

arch/arm/dts/k3-j721e-thermal.dtsi new file +75 -0

75 lines not on this page · raw message

arch/arm/dts/k3-j721e.dtsi +12 -20
index f0587fde14..a200810df5 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.34.1

Part of the diff is not shown here. View the raw message.

maintainer
#10 lore raw

Re: [PATCH v3 6/6] arm: dts: k3-j721e: Sync with v6.6-rc1

Quoted 1 line · Neha Malcom Francis

Sync k3-j721e DTS with kernel.org v6.6-rc1.

Give a summary of changes here - for example hbmc was disabled.

Quoted 24 lines
---
 .../k3-j721e-common-proc-board-u-boot.dtsi    |  153 +--
 arch/arm/dts/k3-j721e-common-proc-board.dts   |  513 ++++++---
 arch/arm/dts/k3-j721e-main.dtsi               | 1018 +++++++++++++++--
 arch/arm/dts/k3-j721e-mcu-wakeup.dtsi         |  305 ++++-
 .../arm/dts/k3-j721e-r5-common-proc-board.dts |  325 +-----
 arch/arm/dts/k3-j721e-r5-sk.dts               |  529 +--------
 arch/arm/dts/k3-j721e-sk-u-boot.dtsi          |  184 +--
 arch/arm/dts/k3-j721e-sk.dts                  |  673 +++++++----
 arch/arm/dts/k3-j721e-som-p0.dtsi             |  217 ++--
 arch/arm/dts/k3-j721e-thermal.dtsi            |   75 ++
 arch/arm/dts/k3-j721e.dtsi                    |   32 +-
 11 files changed, 2380 insertions(+), 1644 deletions(-)
 create mode 100644 arch/arm/dts/k3-j721e-thermal.dtsi
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +0 -0
index 540c847eb3..64908c2056 100644
@@ -3,83 +3,42 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  */

[...]

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi line 98

Quoted 7 lines

+&wkup_uart0_pins_default {

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +6 -0
+	bootph-pre-ram;
+};
+
+&mcu_uart0_pins_default {
+	bootph-pre-ram;
+};

You need this only for R5, correct? then, why not move those two to R5 dts?

Quoted 53 lines
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +13 -13
+
+&main_uart0_pins_default {
+	bootph-pre-ram;
 };
 
 &main_usbss0_pins_default {
@@ -148,19 +114,6 @@
 	bootph-pre-ram;
 };
 
-&mcu_cpsw {
-	reg = <0x0 0x46000000 0x0 0x200000>,
-	      <0x0 0x40f00200 0x0 0x2>;
-	reg-names = "cpsw_nuss", "mac_efuse";
-	/delete-property/ ranges;
-
-	cpsw-phy-sel@40f04040 {
-		compatible = "ti,am654-cpsw-phy-sel";
-		reg= <0x0 0x40f04040 0x0 0x4>;
-		reg-names = "gmii-sel";
-	};
-};
-
 &main_mmc1_pins_default {
 	bootph-pre-ram;
 };
@@ -169,8 +122,14 @@
 	bootph-pre-ram;
 };
 
+&wkup_uart0 {
+	bootph-pre-ram;
+	status = "okay";
+};
+
 &wkup_i2c0 {
 	bootph-pre-ram;
+	status = "okay";
 };
 
 &main_i2c0 {
@@ -181,6 +140,10 @@
 	bootph-pre-ram;
 };
 
+&main_esm {
+	bootph-pre-ram;
+};
+
 &exp2 {
 	bootph-pre-ram;
 };

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi line 160

Quoted 9 lines
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +1 -5
@@ -194,11 +157,7 @@
 };
 
 &hbmc {
-	bootph-pre-ram;
-
-	flash@0,0 {
-		bootph-pre-ram;
-	};
+	status = "disabled";

OK - but then why have the node? or &hbmc_mux or the mux?

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi line 204

Quoted 6 lines
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +0 -0
 };
 
 &hbmc_mux {
@@ -244,31 +203,3 @@
 &main_r5fss1 {
 	ti,cluster-mode = <0>;

I don't understand the override here.

[...]

Quoted 10 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -1
index 7bb5ce775c..950264ee16 100644
@@ -9,19 +9,17 @@
 #include "k3-j721e-ddr-evm-lp4-4266.dtsi"
 #include "k3-j721e-ddr.dtsi"
 #include "k3-j721e-common-proc-board-u-boot.dtsi"
-#include <dt-bindings/phy/phy-cadence.h>
 

[...]

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 52

Quoted 11 lines

-&cbass_main {

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +3 -6
-	main_esm: esm@700000 {
-		compatible = "ti,j721e-esm";
-		reg = <0x0 0x700000 0x0 0x1000>;
-		ti,esm-pins = <344>, <345>;
-		bootph-pre-ram;
-	};
+&mcu_timer0 {
+	status = "okay";
+	clock-frequency = <250000000>;

Document why clock-frequency

Quoted 4 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -0
+	bootph-pre-ram;
 };

[...]

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 78

Quoted 8 lines

&mcu_uart0 {

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -6
-	/delete-property/ power-domains;
-	/delete-property/ clocks;
-	/delete-property/ clock-names;
-	pinctrl-names = "default";
-	pinctrl-0 = <&mcu_uart0_pins_default>;
-	status = "okay";
 	clock-frequency = <48000000>;

I have'nt seen us needing this elsewhere.

Quoted 9 lines

};

-&main_uart0 {

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -6
-	pinctrl-names = "default";
-	pinctrl-0 = <&main_uart0_pins_default>;
-	status = "okay";
-	power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
-};
-

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 82

Quoted 10 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -8
 &main_sdhci0 {
-	/delete-property/ power-domains;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	clock-names = "clk_xin";
-	clocks = <&clk_200mhz>;
-	ti,driver-strength-ohm = <50>;
-	non-removable;
-	bus-width = <8>;
+	clock-frequency = <200000000>;

I have'nt seen us needing this elsewhere.

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 86

Quoted 12 lines

};

&main_sdhci1 {

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -8
-	/delete-property/ power-domains;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	pinctrl-names = "default";
-	pinctrl-0 = <&main_mmc1_pins_default>;
-	clock-names = "clk_xin";
-	clocks = <&clk_200mhz>;
-	ti,driver-strength-ohm = <50>;
+	clock-frequency = <19200000>;

I have'nt seen us needing this elsewhere.

arch/arm/dts/k3-j721e-r5-common-proc-board.dts

Quoted 4 lines

};

&wkup_i2c0 {

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
@@ -293,97 +122,19 @@

I dont like the inclusion of tps659413a which is not in upstream
- document that in commit message.

Quoted 3 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
 };
 
 };

[...]

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 146

Quoted 6 lines

&mcu_ringacc {

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
@@ -393,31 +144,3 @@
 &mcu_udmap {
 	ti,sci = <&dm_tifs>;
 };

Move the ra and udmap nodes ahead of the peripherals.

	[...]

arch/arm/dts/k3-j721e-r5-sk.dts

Quoted 4 lines
arch/arm/dts/k3-j721e-r5-sk.dts +0 -0
index 1cc64d07f7..0274465fa4 100644

Unrelated to this patch: I noticed also that the DDR configuration for J721e-sk is stale (0.6 rev of DDR tool Vs 0.10 for EVM)

For SK's R5 dts and u-boot.dtsi:
The above pattern of comments from EVM repeat on SK as well, I will skip repeating the comments.

[...]

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

Re: [PATCH v3 6/6] arm: dts: k3-j721e: Sync with v6.6-rc1

Hi Nishanth

Quoted 231 lines · Nishanth Menon
Quoted 1 line · Neha Malcom Francis

Sync k3-j721e DTS with kernel.org v6.6-rc1.

Give a summary of changes here - for example hbmc was disabled.

Quoted 24 lines
---
  .../k3-j721e-common-proc-board-u-boot.dtsi    |  153 +--
  arch/arm/dts/k3-j721e-common-proc-board.dts   |  513 ++++++---
  arch/arm/dts/k3-j721e-main.dtsi               | 1018 +++++++++++++++--
  arch/arm/dts/k3-j721e-mcu-wakeup.dtsi         |  305 ++++-
  .../arm/dts/k3-j721e-r5-common-proc-board.dts |  325 +-----
  arch/arm/dts/k3-j721e-r5-sk.dts               |  529 +--------
  arch/arm/dts/k3-j721e-sk-u-boot.dtsi          |  184 +--
  arch/arm/dts/k3-j721e-sk.dts                  |  673 +++++++----
  arch/arm/dts/k3-j721e-som-p0.dtsi             |  217 ++--
  arch/arm/dts/k3-j721e-thermal.dtsi            |   75 ++
  arch/arm/dts/k3-j721e.dtsi                    |   32 +-
  11 files changed, 2380 insertions(+), 1644 deletions(-)

create mode 100644 arch/arm/dts/k3-j721e-thermal.dtsi

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +0 -0
index 540c847eb3..64908c2056 100644
@@ -3,83 +3,42 @@
   * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
   */

[...]

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi line 98

Quoted 7 lines

+&wkup_uart0_pins_default {

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +6 -0
+	bootph-pre-ram;
+};
+
+&mcu_uart0_pins_default {
+	bootph-pre-ram;
+};

You need this only for R5, correct? then, why not move those two to R5 dts?

Quoted 53 lines
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +13 -13
+
+&main_uart0_pins_default {
+	bootph-pre-ram;
  };
 
  &main_usbss0_pins_default {
@@ -148,19 +114,6 @@
  	bootph-pre-ram;
  };
 
-&mcu_cpsw {
-	reg = <0x0 0x46000000 0x0 0x200000>,
-	      <0x0 0x40f00200 0x0 0x2>;
-	reg-names = "cpsw_nuss", "mac_efuse";
-	/delete-property/ ranges;
-
-	cpsw-phy-sel@40f04040 {
-		compatible = "ti,am654-cpsw-phy-sel";
-		reg= <0x0 0x40f04040 0x0 0x4>;
-		reg-names = "gmii-sel";
-	};
-};
-
  &main_mmc1_pins_default {
  	bootph-pre-ram;
  };
@@ -169,8 +122,14 @@
  	bootph-pre-ram;
  };
 
+&wkup_uart0 {
+	bootph-pre-ram;
+	status = "okay";
+};
+
  &wkup_i2c0 {
  	bootph-pre-ram;
+	status = "okay";
  };
 
  &main_i2c0 {
@@ -181,6 +140,10 @@
  	bootph-pre-ram;
  };
 
+&main_esm {
+	bootph-pre-ram;
+};
+
  &exp2 {
  	bootph-pre-ram;
  };

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi line 160

Quoted 9 lines
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +1 -5
@@ -194,11 +157,7 @@
  };
 
  &hbmc {
-	bootph-pre-ram;
-
-	flash@0,0 {
-		bootph-pre-ram;
-	};
+	status = "disabled";

OK - but then why have the node? or &hbmc_mux or the mux?

arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi line 204

Quoted 6 lines
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +0 -0
  };
 
  &hbmc_mux {
@@ -244,31 +203,3 @@
  &main_r5fss1 {
  	ti,cluster-mode = <0>;

I don't understand the override here.

[...]

Quoted 10 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -1
index 7bb5ce775c..950264ee16 100644
@@ -9,19 +9,17 @@
  #include "k3-j721e-ddr-evm-lp4-4266.dtsi"
  #include "k3-j721e-ddr.dtsi"
  #include "k3-j721e-common-proc-board-u-boot.dtsi"
-#include <dt-bindings/phy/phy-cadence.h>
 

[...]

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 52

Quoted 11 lines

-&cbass_main {

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +3 -6
-	main_esm: esm@700000 {
-		compatible = "ti,j721e-esm";
-		reg = <0x0 0x700000 0x0 0x1000>;
-		ti,esm-pins = <344>, <345>;
-		bootph-pre-ram;
-	};
+&mcu_timer0 {
+	status = "okay";
+	clock-frequency = <250000000>;

Document why clock-frequency

Quoted 4 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -0
+	bootph-pre-ram;
  };

[...]

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 78

Quoted 8 lines
  &mcu_uart0 {
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -6
-	/delete-property/ power-domains;
-	/delete-property/ clocks;
-	/delete-property/ clock-names;
-	pinctrl-names = "default";
-	pinctrl-0 = <&mcu_uart0_pins_default>;
-	status = "okay";
  	clock-frequency = <48000000>;

I have'nt seen us needing this elsewhere.

Quoted 9 lines
  };

-&main_uart0 {

arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -6
-	pinctrl-names = "default";
-	pinctrl-0 = <&main_uart0_pins_default>;
-	status = "okay";
-	power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
-};
-

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 82

Quoted 10 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -8
  &main_sdhci0 {
-	/delete-property/ power-domains;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	clock-names = "clk_xin";
-	clocks = <&clk_200mhz>;
-	ti,driver-strength-ohm = <50>;
-	non-removable;
-	bus-width = <8>;
+	clock-frequency = <200000000>;

I have'nt seen us needing this elsewhere.

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 86

Quoted 12 lines
  };
  
  &main_sdhci1 {
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -8
-	/delete-property/ power-domains;
-	/delete-property/ assigned-clocks;
-	/delete-property/ assigned-clock-parents;
-	pinctrl-names = "default";
-	pinctrl-0 = <&main_mmc1_pins_default>;
-	clock-names = "clk_xin";
-	clocks = <&clk_200mhz>;
-	ti,driver-strength-ohm = <50>;
+	clock-frequency = <19200000>;

I have'nt seen us needing this elsewhere.

arch/arm/dts/k3-j721e-r5-common-proc-board.dts

Quoted 4 lines
  };
  
  &wkup_i2c0 {
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
@@ -293,97 +122,19 @@

I dont like the inclusion of tps659413a which is not in upstream
- document that in commit message.

Quoted 3 lines
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
  };
 
  };

[...]

arch/arm/dts/k3-j721e-r5-common-proc-board.dts line 146

Quoted 6 lines
  
  &mcu_ringacc {
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +0 -0
@@ -393,31 +144,3 @@
  &mcu_udmap {
  	ti,sci = <&dm_tifs>;
  };

Move the ra and udmap nodes ahead of the peripherals.

	[...]

arch/arm/dts/k3-j721e-r5-sk.dts

Quoted 4 lines
arch/arm/dts/k3-j721e-r5-sk.dts +0 -0
index 1cc64d07f7..0274465fa4 100644

Unrelated to this patch: I noticed also that the DDR configuration for J721e-sk is stale (0.6 rev of DDR tool Vs 0.10 for EVM)

Quoted 6 lines

For SK's R5 dts and u-boot.dtsi:
The above pattern of comments from EVM repeat on SK as well, I will skip repeating the comments.

[...]

Thanks for reviewing, all are valid points. Regarding why clock-frequency is mentioned for a bunch of peripherals, I will be looking into it and accordingly posting v4.

Thanking You
Neha Malcom Francis

#12 lore raw

Re: [PATCH v3 6/6] arm: dts: k3-j721e: Sync with v6.6-rc1

Hi Neha,

Quoted 2 lines · Neha Malcom Francis

Hi Nishanth

[..]

Quoted 13 lines
Quoted 13 lines

arch/arm/dts/k3-j721e-r5-sk.dts

Quoted 4 lines
arch/arm/dts/k3-j721e-r5-sk.dts +0 -0
index 1cc64d07f7..0274465fa4 100644

Unrelated to this patch: I noticed also that the DDR configuration for J721e-sk is stale (0.6 rev of DDR tool Vs 0.10 for EVM)

For SK's R5 dts and u-boot.dtsi:
The above pattern of comments from EVM repeat on SK as well, I will skip repeating the comments.

Quoted 6 lines
Quoted 2 lines

[...]

Thanks for reviewing, all are valid points. Regarding why clock-frequency is mentioned for a bunch of peripherals, I will be looking into it and accordingly posting v4.

Not sure but could be that the clk-data.c is not populated with those specified clocks with frequencies due to which we have to provide them here. I could see that autogen does allow us to set some fixed clock frequency so maybe that might be it.

Regards,
Manorit

Quoted 3 lines

Thanking You
Neha Malcom Francis

#13 lore raw

Re: [PATCH v3 6/6] arm: dts: k3-j721e: Sync with v6.6-rc1

Hi Manorit

Quoted 26 lines · Manorit Chawdhry

Hi Neha,

Quoted 2 lines · Neha Malcom Francis

Hi Nishanth

[..]

Quoted 13 lines
Quoted 13 lines

arch/arm/dts/k3-j721e-r5-sk.dts

Quoted 4 lines
arch/arm/dts/k3-j721e-r5-sk.dts +0 -0
index 1cc64d07f7..0274465fa4 100644

Unrelated to this patch: I noticed also that the DDR configuration for J721e-sk is stale (0.6 rev of DDR tool Vs 0.10 for EVM)

For SK's R5 dts and u-boot.dtsi:
The above pattern of comments from EVM repeat on SK as well, I will skip repeating the comments.

Quoted 6 lines
Quoted 2 lines

[...]

Thanks for reviewing, all are valid points. Regarding why clock-frequency is mentioned for a bunch of peripherals, I will be looking into it and accordingly posting v4.

Quoted 8 lines

Not sure but could be that the clk-data.c is not populated with those specified clocks with frequencies due to which we have to provide them here. I could see that autogen does allow us to set some fixed clock frequency so maybe that might be it.

Regards,
Manorit

If it's not already accounted in clk-data.c I can change it using autogen as suggested, thanks!

Quoted 3 lines
Quoted 3 lines

Thanking You
Neha Malcom Francis

Signature · 2 lines
Thanking You
Neha Malcom Francis