2023-06-01 18:47:51

by Nishanth Menon

[permalink] [raw]
Subject: [PATCH 0/9] arm64: dts: ti: k3-j721e-*: Fix up pinmux and aliases

Hi,

This series cleansup k3-j721e platforms for pinmuxes and aliases.
Provide complete description of uart and i2c instead of piggy-backing on
bootloader configurations, ensure board detection eeproms are defined,
aliases be defined in the board files as well.

Many of these changes were maintained in u-boot tree, and this moves
those orphan changes to the super set definition in kernel.

Sample bootlog: j721e-common-proc-board in idk-gw configuration:
https://gist.github.com/nmenon/65fee02cb7a5207ac0d078f6abac6b6e

Nishanth Menon (9):
arm64: dts: ti: k3-j721e-sk: Add missing uart pinmuxes
arm64: dts: ti: k3-j721e-sk: Enable wakeup_i2c0 and eeprom
arm64: dts: ti: j721e-som/common-proc-board: Add product links
arm64: dts: ti: j721e-common-proc-board: Add uart pinmux
arm64: dts: ti: k3-j721e-som-p0: Enable wakeup_i2c0 and eeprom
arm64: dts: ti: k3-j721e-beagleboneai64: Add wakeup_uart pinmux
arm64: dts: ti: k3-j721e-sk: Define aliases at board level
arm64: dts: ti: k3-j721e-common-proc-board: Define aliases at board
level
arm64: dts: ti: k3-j721e: Drop SoC level aliases

.../boot/dts/ti/k3-j721e-beagleboneai64.dts | 9 +++
.../dts/ti/k3-j721e-common-proc-board.dts | 76 ++++++++++++++++++-
arch/arm64/boot/dts/ti/k3-j721e-sk.dts | 53 ++++++++++++-
arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi | 15 ++++
arch/arm64/boot/dts/ti/k3-j721e.dtsi | 19 -----
5 files changed, 147 insertions(+), 25 deletions(-)

--
2.40.0



2023-06-01 18:48:54

by Nishanth Menon

[permalink] [raw]
Subject: [PATCH 8/9] arm64: dts: ti: k3-j721e-common-proc-board: Define aliases at board level

Define the aliases at the board level instead of using generic aliases
at SoC level.

Signed-off-by: Nishanth Menon <[email protected]>
---
.../arm64/boot/dts/ti/k3-j721e-common-proc-board.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
index 25111c86511f..b524a65ab43f 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
+++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts
@@ -17,6 +17,18 @@ / {
compatible = "ti,j721e-evm", "ti,j721e";
model = "Texas Instruments J721e EVM";

+ aliases {
+ serial0 = &wkup_uart0;
+ serial1 = &mcu_uart0;
+ serial2 = &main_uart0;
+ serial3 = &main_uart1;
+ serial4 = &main_uart2;
+ serial6 = &main_uart4;
+ ethernet0 = &cpsw_port1;
+ mmc0 = &main_sdhci0;
+ mmc1 = &main_sdhci1;
+ };
+
chosen {
stdout-path = "serial2:115200n8";
};
--
2.40.0


2023-06-01 18:50:23

by Nishanth Menon

[permalink] [raw]
Subject: [PATCH 5/9] arm64: dts: ti: k3-j721e-som-p0: Enable wakeup_i2c0 and eeprom

Enable wakeup_i2c and use un-used pinmux. While at it, describe the
board detection eeprom present on the board.

Signed-off-by: Nishanth Menon <[email protected]>
---
arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi
index b6dca6e4501c..a0be8d2edac6 100644
--- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi
@@ -169,6 +169,19 @@ J721E_WKUP_IOPAD(0x002c, PIN_OUTPUT, 0) /* MCU_OSPI0_CSn0 */
};
};

+&wkup_i2c0 {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wkup_i2c0_pins_default>;
+ clock-frequency = <400000>;
+
+ eeprom@50 {
+ /* CAV24C256WE-GT3 */
+ compatible = "atmel,24c256";
+ reg = <0x50>;
+ };
+};
+
&ospi0 {
pinctrl-names = "default";
pinctrl-0 = <&mcu_fss0_ospi0_pins_default>;
--
2.40.0


2023-06-15 14:31:49

by Vignesh Raghavendra

[permalink] [raw]
Subject: Re: [PATCH 0/9] arm64: dts: ti: k3-j721e-*: Fix up pinmux and aliases

Hi Nishanth Menon,

On Thu, 01 Jun 2023 13:31:42 -0500, Nishanth Menon wrote:
> This series cleansup k3-j721e platforms for pinmuxes and aliases.
> Provide complete description of uart and i2c instead of piggy-backing on
> bootloader configurations, ensure board detection eeproms are defined,
> aliases be defined in the board files as well.
>
> Many of these changes were maintained in u-boot tree, and this moves
> those orphan changes to the super set definition in kernel.
>
> [...]


I have applied the following to branch ti-k3-dts-next on [1].
Thank you!

[1/9] arm64: dts: ti: k3-j721e-sk: Add missing uart pinmuxes
commit: acfb362a9c78d6708080cdd850b036225c78371b
[2/9] arm64: dts: ti: k3-j721e-sk: Enable wakeup_i2c0 and eeprom
commit: 1b4b376c878b36d1a1c848ebc885487e4cad2546
[3/9] arm64: dts: ti: j721e-som/common-proc-board: Add product links
commit: 26efc8d1ad0cc14e2740d310935fa146b1fc5a58
[4/9] arm64: dts: ti: j721e-common-proc-board: Add uart pinmux
commit: 86718345b4d3c0d386b3f73ef43e7f72ff04cf4a
[5/9] arm64: dts: ti: k3-j721e-som-p0: Enable wakeup_i2c0 and eeprom
commit: b04b18ccb3d5c19c864c10f7cc7b014218aecb22
[6/9] arm64: dts: ti: k3-j721e-beagleboneai64: Add wakeup_uart pinmux
commit: 4c2c99026ca1525912b40cbc1b69306145ce7082
[7/9] arm64: dts: ti: k3-j721e-sk: Define aliases at board level
commit: d1a4304c149d1a26a912d532501ead42e5952501
[8/9] arm64: dts: ti: k3-j721e-common-proc-board: Define aliases at board level
commit: ff59580bf2580ec262098399aab03dfca537bec8
[9/9] arm64: dts: ti: k3-j721e: Drop SoC level aliases
commit: 8be20986e0c54420e52048d20bdc31e3a8aec93f

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent up the chain during
the next merge window (or sooner if it is a relevant bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
--
Vignesh