mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions
@ 2023-04-18 21:37 Nishanth Menon
  2023-04-18 21:37 ` [PATCH 1/4] arm64: dts: ti: k3-am62x-sk-common: Drop extra EoL Nishanth Menon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Nishanth Menon @ 2023-04-18 21:37 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Vignesh Raghavendra
  Cc: linux-kernel, devicetree, linux-arm-kernel, Tero Kristo, Nishanth Menon


Hi,

This is a result of looking to cleanup u-boot and realizing there are
pieces missing in kernel that need to be pushed out.

So, minor cleanups and adding a few missing pieces.

Bootlog: https://gist.github.com/nmenon/5e18c8d02c13cf00db649b6f01971d99

Nishanth Menon (4):
  arm64: dts: ti: k3-am62x-sk-common: Drop extra EoL
  arm64: dts: ti: k3-am62x-sk-common: Describe main_uart1 and wkup_uart
  arm64: dts: ti: k3-am62x-sk-common: Add eeprom
  arm64: dts: ti: k3-am62x-sk-common: Improve documentation of
    mcasp1_pins

 .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 39 ++++++++++++++++---
 1 file changed, 34 insertions(+), 5 deletions(-)

-- 
2.40.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] arm64: dts: ti: k3-am62x-sk-common: Drop extra EoL
  2023-04-18 21:37 [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Nishanth Menon
@ 2023-04-18 21:37 ` Nishanth Menon
  2023-04-18 21:37 ` [PATCH 2/4] arm64: dts: ti: k3-am62x-sk-common: Describe main_uart1 and wkup_uart Nishanth Menon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Nishanth Menon @ 2023-04-18 21:37 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Vignesh Raghavendra
  Cc: linux-kernel, devicetree, linux-arm-kernel, Tero Kristo, Nishanth Menon

Drop an extra EoL

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
index 976f8303c84f..9036af82894b 100644
--- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
@@ -32,7 +32,6 @@ memory@80000000 {
 		device_type = "memory";
 		/* 2G RAM */
 		reg = <0x00000000 0x80000000 0x00000000 0x80000000>;
-
 	};
 
 	reserved-memory {
-- 
2.40.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 2/4] arm64: dts: ti: k3-am62x-sk-common: Describe main_uart1 and wkup_uart
  2023-04-18 21:37 [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Nishanth Menon
  2023-04-18 21:37 ` [PATCH 1/4] arm64: dts: ti: k3-am62x-sk-common: Drop extra EoL Nishanth Menon
@ 2023-04-18 21:37 ` Nishanth Menon
  2023-04-18 21:37 ` [PATCH 3/4] arm64: dts: ti: k3-am62x-sk-common: Add eeprom Nishanth Menon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Nishanth Menon @ 2023-04-18 21:37 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Vignesh Raghavendra
  Cc: linux-kernel, devicetree, linux-arm-kernel, Tero Kristo, Nishanth Menon

wkup_uart and main_uart1 on this platform is used by tifs and DM
firmwares. Describe them for completeness including the pinmux.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
index 9036af82894b..dc76529f7aa1 100644
--- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
@@ -126,6 +126,15 @@ AM62X_IOPAD(0x1cc, PIN_OUTPUT, 0) /* (E14/E11) UART0_TXD */
 		>;
 	};
 
+	main_uart1_pins_default: main-uart1-pins-default {
+		pinctrl-single,pins = <
+			AM62X_IOPAD(0x194, PIN_INPUT, 2) /* (B19/B18) MCASP0_AXR3.UART1_CTSn */
+			AM62X_IOPAD(0x198, PIN_OUTPUT, 2) /* (A19/B17) MCASP0_AXR2.UART1_RTSn */
+			AM62X_IOPAD(0x1ac, PIN_INPUT, 2) /* (E19/D15) MCASP0_AFSR.UART1_RXD */
+			AM62X_IOPAD(0x1b0, PIN_OUTPUT, 2) /* (A20/D16) MCASP0_ACLKR.UART1_TXD */
+		>;
+	};
+
 	main_i2c0_pins_default: main-i2c0-pins-default {
 		pinctrl-single,pins = <
 			AM62X_IOPAD(0x1e0, PIN_INPUT_PULLUP, 0) /* (B16/E12) I2C0_SCL */
@@ -220,9 +229,22 @@ AM62X_IOPAD(0x084, PIN_INPUT, 2) /* (L23) GPMC0_ADVN_ALE.MCASP1_AXR2 */
 	};
 };
 
+&mcu_pmx0 {
+	wkup_uart0_pins_default: wkup-uart0-pins-default {
+		pinctrl-single,pins = <
+			AM62X_MCU_IOPAD(0x02c, PIN_INPUT, 0) /* (C6/A7) WKUP_UART0_CTSn */
+			AM62X_MCU_IOPAD(0x030, PIN_OUTPUT, 0) /* (A4/B4) WKUP_UART0_RTSn */
+			AM62X_MCU_IOPAD(0x024, PIN_INPUT, 0) /* (B4/B5) WKUP_UART0_RXD */
+			AM62X_MCU_IOPAD(0x028, PIN_OUTPUT, 0) /* (C5/C6) WKUP_UART0_TXD */
+		>;
+	};
+};
+
 &wkup_uart0 {
 	/* WKUP UART0 is used by DM firmware */
 	status = "reserved";
+	pinctrl-names = "default";
+	pinctrl-0 = <&wkup_uart0_pins_default>;
 };
 
 &main_uart0 {
@@ -234,6 +256,8 @@ &main_uart0 {
 &main_uart1 {
 	/* Main UART1 is used by TIFS firmware */
 	status = "reserved";
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_uart1_pins_default>;
 };
 
 &main_i2c0 {
-- 
2.40.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 3/4] arm64: dts: ti: k3-am62x-sk-common: Add eeprom
  2023-04-18 21:37 [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Nishanth Menon
  2023-04-18 21:37 ` [PATCH 1/4] arm64: dts: ti: k3-am62x-sk-common: Drop extra EoL Nishanth Menon
  2023-04-18 21:37 ` [PATCH 2/4] arm64: dts: ti: k3-am62x-sk-common: Describe main_uart1 and wkup_uart Nishanth Menon
@ 2023-04-18 21:37 ` Nishanth Menon
  2023-04-18 21:37 ` [PATCH 4/4] arm64: dts: ti: k3-am62x-sk-common: Improve documentation of mcasp1_pins Nishanth Menon
  2023-06-15 10:28 ` [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Vignesh Raghavendra
  4 siblings, 0 replies; 6+ messages in thread
From: Nishanth Menon @ 2023-04-18 21:37 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Vignesh Raghavendra
  Cc: linux-kernel, devicetree, linux-arm-kernel, Tero Kristo, Nishanth Menon

Add board EEPROM support to device tree

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
index dc76529f7aa1..68cc0bfc907c 100644
--- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
@@ -265,6 +265,12 @@ &main_i2c0 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&main_i2c0_pins_default>;
 	clock-frequency = <400000>;
+
+	eeprom@51 {
+		/* AT24C512C-MAHM-T or M24512-DFMC6TG */
+		compatible = "atmel,24c512";
+		reg = <0x51>;
+	};
 };
 
 &main_i2c1 {
-- 
2.40.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 4/4] arm64: dts: ti: k3-am62x-sk-common: Improve documentation of mcasp1_pins
  2023-04-18 21:37 [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Nishanth Menon
                   ` (2 preceding siblings ...)
  2023-04-18 21:37 ` [PATCH 3/4] arm64: dts: ti: k3-am62x-sk-common: Add eeprom Nishanth Menon
@ 2023-04-18 21:37 ` Nishanth Menon
  2023-06-15 10:28 ` [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Vignesh Raghavendra
  4 siblings, 0 replies; 6+ messages in thread
From: Nishanth Menon @ 2023-04-18 21:37 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Vignesh Raghavendra
  Cc: linux-kernel, devicetree, linux-arm-kernel, Tero Kristo, Nishanth Menon

Include documentation of the AMC package pin name as well to keep it
consistent with the rest of the pinctrl documentation.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
index 68cc0bfc907c..633ad7103e7a 100644
--- a/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
@@ -221,10 +221,10 @@ AM62X_IOPAD(0x0258, PIN_OUTPUT, 0) /* (F18/E16) USB1_DRVVBUS */
 
 	main_mcasp1_pins_default: main-mcasp1-pins-default {
 		pinctrl-single,pins = <
-			AM62X_IOPAD(0x090, PIN_INPUT, 2) /* (M24) GPMC0_BE0N_CLE.MCASP1_ACLKX */
-			AM62X_IOPAD(0x098, PIN_INPUT, 2) /* (U23) GPMC0_WAIT0.MCASP1_AFSX */
-			AM62X_IOPAD(0x08c, PIN_OUTPUT, 2) /* (L25) GPMC0_WEN.MCASP1_AXR0 */
-			AM62X_IOPAD(0x084, PIN_INPUT, 2) /* (L23) GPMC0_ADVN_ALE.MCASP1_AXR2 */
+			AM62X_IOPAD(0x090, PIN_INPUT, 2) /* (M24/K17) GPMC0_BE0N_CLE.MCASP1_ACLKX */
+			AM62X_IOPAD(0x098, PIN_INPUT, 2) /* (U23/P21) GPMC0_WAIT0.MCASP1_AFSX */
+			AM62X_IOPAD(0x08c, PIN_OUTPUT, 2) /* (L25/J17) GPMC0_WEN.MCASP1_AXR0 */
+			AM62X_IOPAD(0x084, PIN_INPUT, 2) /* (L23/K20) GPMC0_ADVN_ALE.MCASP1_AXR2 */
 		>;
 	};
 };
-- 
2.40.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions
  2023-04-18 21:37 [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Nishanth Menon
                   ` (3 preceding siblings ...)
  2023-04-18 21:37 ` [PATCH 4/4] arm64: dts: ti: k3-am62x-sk-common: Improve documentation of mcasp1_pins Nishanth Menon
@ 2023-06-15 10:28 ` Vignesh Raghavendra
  4 siblings, 0 replies; 6+ messages in thread
From: Vignesh Raghavendra @ 2023-06-15 10:28 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Nishanth Menon
  Cc: Vignesh Raghavendra, linux-kernel, devicetree, linux-arm-kernel,
	Tero Kristo

Hi Nishanth Menon,

On Tue, 18 Apr 2023 16:37:36 -0500, Nishanth Menon wrote:
> This is a result of looking to cleanup u-boot and realizing there are
> pieces missing in kernel that need to be pushed out.
> 
> So, minor cleanups and adding a few missing pieces.
> 
> Bootlog: https://gist.github.com/nmenon/5e18c8d02c13cf00db649b6f01971d99
> 
> [...]

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

[1/4] arm64: dts: ti: k3-am62x-sk-common: Drop extra EoL
      commit: 477d43f6d8546597e007a3a2ebd19f6e4e090fee
[2/4] arm64: dts: ti: k3-am62x-sk-common: Describe main_uart1 and wkup_uart
      commit: 76194aba0c30b1ee25067b34235141443bd078fb
[3/4] arm64: dts: ti: k3-am62x-sk-common: Add eeprom
      commit: f40ed3b39b486ed8fbca7aa4a319c8d1d14ac97d
[4/4] arm64: dts: ti: k3-am62x-sk-common: Improve documentation of mcasp1_pins
      commit: 5cab8abaee22470523a5293994a52784360a7926

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-15 10:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-18 21:37 [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Nishanth Menon
2023-04-18 21:37 ` [PATCH 1/4] arm64: dts: ti: k3-am62x-sk-common: Drop extra EoL Nishanth Menon
2023-04-18 21:37 ` [PATCH 2/4] arm64: dts: ti: k3-am62x-sk-common: Describe main_uart1 and wkup_uart Nishanth Menon
2023-04-18 21:37 ` [PATCH 3/4] arm64: dts: ti: k3-am62x-sk-common: Add eeprom Nishanth Menon
2023-04-18 21:37 ` [PATCH 4/4] arm64: dts: ti: k3-am62x-sk-common: Improve documentation of mcasp1_pins Nishanth Menon
2023-06-15 10:28 ` [PATCH 0/4] arm64: dts: ti: k3-am62x-sk-common: Cleanups and minor additions Vignesh Raghavendra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®