All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Menon <nm@ti.com>
To: Simon Glass <sjg@chromium.org>, Roger Quadros <rogerq@kernel.org>,
	Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>,
	Tom Rini <trini@konsulko.com>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
	Anand Gadiyar <gadiyar@ti.com>, Georgi Vlaev <g-vlaev@ti.com>,
	<u-boot@lists.denx.de>, "Neha Malcom Francis" <n-francis@ti.com>,
	Nikhil M Jain <n-jain1@ti.com>
Subject: [PATCH 13/23] arm: dts: k3-am642-evm: Move the mdio pinmux down to evm.dts
Date: Fri, 14 Apr 2023 02:57:16 -0500	[thread overview]
Message-ID: <20230414075726.387461-14-nm@ti.com> (raw)
In-Reply-To: <20230414075726.387461-1-nm@ti.com>

Since networking is needed even for u-boot, lets move the MDIO pinmux
hack down to evm.dts.

Until MDIO is converted to DM model, it won't be possible to probe for
pinmux from the MDIO node. To work around this, hack the board dts
to set the default mux option to include MDIO. This hack is a limitation
for now till we get u-boot MDIO driver into DM model.

Signed-off-by: Nishanth Menon <nm@ti.com>
---
 arch/arm/dts/k3-am642-evm-u-boot.dtsi | 4 ----
 arch/arm/dts/k3-am642-evm.dts         | 3 ++-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/arm/dts/k3-am642-evm-u-boot.dtsi b/arch/arm/dts/k3-am642-evm-u-boot.dtsi
index 64857b09099d..c8fd08885366 100644
--- a/arch/arm/dts/k3-am642-evm-u-boot.dtsi
+++ b/arch/arm/dts/k3-am642-evm-u-boot.dtsi
@@ -113,10 +113,6 @@
 	      <0x0 0x43000200 0x0 0x8>;
 	reg-names = "cpsw_nuss", "mac_efuse";
 	/delete-property/ ranges;
-	pinctrl-0 = <&mdio1_pins_default	/* HACK: as MDIO driver is not DM enabled */
-		     &rgmii1_pins_default
-		     &rgmii2_pins_default>;
-
 	cpsw-phy-sel@04044 {
 		compatible = "ti,am64-phy-gmii-sel";
 		reg = <0x0 0x43004044 0x0 0x8>;
diff --git a/arch/arm/dts/k3-am642-evm.dts b/arch/arm/dts/k3-am642-evm.dts
index 39feea78a084..ed3a6f1341b0 100644
--- a/arch/arm/dts/k3-am642-evm.dts
+++ b/arch/arm/dts/k3-am642-evm.dts
@@ -425,7 +425,8 @@
 
 &cpsw3g {
 	pinctrl-names = "default";
-	pinctrl-0 = <&rgmii1_pins_default
+	pinctrl-0 = <&mdio1_pins_default	/* HACK: as MDIO driver is not DM enabled */
+		     &rgmii1_pins_default
 		     &rgmii2_pins_default>;
 };
 
-- 
2.40.0


  parent reply	other threads:[~2023-04-14  8:01 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-14  7:57 [PATCH 00/23] arm: dts: k3-am64: Sync with kernel.org and Nishanth Menon
2023-04-14  7:57 ` [PATCH 01/23] Revert "ARM: dts: k3-am642-sk-u-boot: add PMIC node" Nishanth Menon
2023-04-14  7:57 ` [PATCH 02/23] arm: dts: k3-am64: Update devicetree to sync with v6.3-rc6 Nishanth Menon
2023-04-14  7:57 ` [PATCH 03/23] arm: dts: k3-am642-sk: Add a note to handle pinmux till MDIO DM conversion is done Nishanth Menon
2023-04-14  7:57 ` [PATCH 04/23] arm: dts: k3-am642-sk: Fix mmc1 pinmux pull polarity Nishanth Menon
2023-04-17 10:42   ` Roger Quadros
2023-04-17 11:12     ` Nishanth Menon
2023-04-17 11:45       ` Roger Quadros
2023-04-17 13:25         ` Nishanth Menon
2023-04-14  7:57 ` [PATCH 05/23] arm: dts: k3-am642-sk: Add main_uart1 description Nishanth Menon
2023-04-14  7:57 ` [PATCH 06/23] arm: dts: k3-am642-sk: Add main_i2c0 and eeprom Nishanth Menon
2023-04-14  7:57 ` [PATCH 07/23] arm: dts: k3-am642-sk-u-boot: Drop the i2c node Nishanth Menon
2023-04-14  7:57 ` [PATCH 08/23] arm: dts: k3-am642-sk-u-boot: Drop redundant usb dr_mode property Nishanth Menon
2023-04-14  7:57 ` [PATCH 09/23] arm: dts: k3-am642-sk-u-boot: Mark main_uart0 to be used for spl Nishanth Menon
2023-04-14  7:57 ` [PATCH 10/23] arm: dts: k3-am642-sk-u-boot: Document timer as missing upstream Nishanth Menon
2023-04-14  7:57 ` [PATCH 11/23] arm: dts: k3-am642-sk-u-boot: Drop aliases and stdout Nishanth Menon
2023-04-14  7:57 ` [PATCH 12/23] arm: dts: k3-am642-r5-sk: Use am642-sk.dts and k3-am642-sk-u-boot.dtsi Nishanth Menon
2023-04-18  9:15   ` Manorit Chawdhry
2023-04-18 12:34     ` Nishanth Menon
2023-04-19  4:53       ` Manorit Chawdhry
2023-04-14  7:57 ` Nishanth Menon [this message]
2023-04-14  7:57 ` [PATCH 14/23] arm: dts: k3-am642-evm: Add DDR vtt regulator Nishanth Menon
2023-04-14  7:57 ` [PATCH 15/23] arm: dts: k3-am642-evm: Add main_uart1 description Nishanth Menon
2023-04-14  7:57 ` [PATCH 16/23] arm: dts: k3-am642-evm: Add main_i2c0 and eeprom Nishanth Menon
2023-04-14  7:57 ` [PATCH 17/23] arm: dts: k3-am642-evm-u-boot: Drop the i2c node Nishanth Menon
2023-04-14  7:57 ` [PATCH 18/23] arm: dts: k3-am642-evm-u-boot: Drop stdout and cosmetic fixups Nishanth Menon
2023-04-14  7:57 ` [PATCH 19/23] arm: dts: k3-am642-evm-u-boot: Re-organize the pinmux Nishanth Menon
2023-04-14  7:57 ` [PATCH 20/23] arm: dts: k3-am642-evm-u-boot: Add missing pinmux notations Nishanth Menon
2023-04-14  7:57 ` [PATCH 21/23] arm: dts: k3-am642-r5-evm: Use am642-evm.dts and k3-am642-evm-u-boot.dtsi Nishanth Menon
2023-04-14  7:57 ` [PATCH 22/23] include: configs: am64x_evm: Change to using .env Nishanth Menon
2023-04-14  7:57 ` [PATCH 23/23] configs: am64x_evm_a53_defconfig: Just use distroboot Nishanth Menon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230414075726.387461-14-nm@ti.com \
    --to=nm@ti.com \
    --cc=g-vlaev@ti.com \
    --cc=gadiyar@ti.com \
    --cc=n-francis@ti.com \
    --cc=n-jain1@ti.com \
    --cc=neil.armstrong@linaro.org \
    --cc=rogerq@kernel.org \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.