public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/4] net: ti: am65-cpsw-nuss: Fix DT binding handling of pinctrl
@ 2023-07-20  9:55 Maxime Ripard
  2023-07-20  9:55 ` [PATCH 1/4] pinctrl: Create a select_state variant with the ofnode Maxime Ripard
                   ` (4 more replies)
  0 siblings, 5 replies; 24+ messages in thread
From: Maxime Ripard @ 2023-07-20  9:55 UTC (permalink / raw)
  To: Simon Glass, Joe Hershberger, Ramon Fried, Nishanth Menon,
	Ravi Gunasekaran
  Cc: Javier Martinez Canillas, Peter Robinson, u-boot, Maxime Ripard

Hi,

This series is based on:
https://lore.kernel.org/all/20230713072019.3153871-1-nm@ti.com/

It fixes the issue of Linux booting from the DT embedded by U-boot. The
main issue there is that U-Boot doesn't handle the MDIO child node that
might have resources attached to it.

Thus, any pinctrl configuration that could be attached to the MDIO
child node is effectively ignored. Unfortunately, starting with 6.5-rc1,
Linux does just that.

This was solved by duplicating the pinctrl configuration onto the MAC
device node. Unfortunately, this doesn't work for Linux since now it has
two devices competing for the same pins.

Let me know what you think,
Maxime

Signed-off-by: Maxime Ripard <mripard@kernel.org>
---
Maxime Ripard (4):
      pinctrl: Create a select_state variant with the ofnode
      net: ti: am65-cpsw-nuss: Enforce pinctrl state on the MDIO child node
      fixup! arm: dts: k3-am62: Bump dtsi from linux v6.5-rc1
      fixup! arm: dts: k3-am62: Bump dtsi from linux v6.5-rc1

 arch/arm/dts/k3-am625-sk-u-boot.dtsi |  7 ++++--
 drivers/net/ti/am65-cpsw-nuss.c      | 49 ++++++++++++++++++++++++++++++++++++
 drivers/pinctrl/pinctrl-uclass.c     | 15 ++++++-----
 include/dm/pinctrl.h                 | 26 ++++++++++++++-----
 4 files changed, 83 insertions(+), 14 deletions(-)
---
base-commit: acff6e7c553d5a839e885730a4018465a34ba5a7
change-id: 20230720-ti-mdio-pinmux-a12525dba973

Best regards,
-- 
Maxime Ripard <mripard@kernel.org>


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

end of thread, other threads:[~2023-07-27  7:10 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-20  9:55 [PATCH 0/4] net: ti: am65-cpsw-nuss: Fix DT binding handling of pinctrl Maxime Ripard
2023-07-20  9:55 ` [PATCH 1/4] pinctrl: Create a select_state variant with the ofnode Maxime Ripard
2023-07-20 15:56   ` Roger Quadros
2023-07-20  9:55 ` [PATCH 2/4] net: ti: am65-cpsw-nuss: Enforce pinctrl state on the MDIO child node Maxime Ripard
2023-07-20 15:47   ` Roger Quadros
2023-07-21 12:17     ` Maxime Ripard
2023-07-20  9:55 ` [PATCH 3/4] fixup! arm: dts: k3-am62: Bump dtsi from linux v6.5-rc1 Maxime Ripard
2023-07-20  9:55 ` [PATCH 4/4] " Maxime Ripard
2023-07-20 15:27   ` Roger Quadros
2023-07-21  7:46     ` Maxime Ripard
2023-07-21  9:14       ` Roger Quadros
2023-07-21  9:23         ` Maxime Ripard
2023-07-20 13:33 ` [PATCH 0/4] net: ti: am65-cpsw-nuss: Fix DT binding handling of pinctrl Ravi Gunasekaran
2023-07-20 13:56   ` Roger Quadros
2023-07-20 14:00     ` Nishanth Menon
2023-07-20 14:12       ` Maxime Ripard
2023-07-20 14:41         ` Roger Quadros
2023-07-20 14:52           ` Nishanth Menon
2023-07-26  9:14         ` Ravi Gunasekaran
2023-07-26 12:49           ` Maxime Ripard
2023-07-27  5:27             ` Ravi Gunasekaran
2023-07-26 12:52           ` Nishanth Menon
2023-07-27  5:36             ` Ravi Gunasekaran
2023-07-27  7:10               ` Roger Quadros

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