mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yixun Lan <dlan@kernel.org>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Paul Walmsley <pjw@kernel.org>,
	 Palmer Dabbelt <palmer@dabbelt.com>,
	Albert Ou <aou@eecs.berkeley.edu>,
	 Alexandre Ghiti <alex@ghiti.fr>,
	 Troy Mitchell <troy.mitchell@linux.spacemit.com>
Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org,
	 spacemit@lists.linux.dev, linux-kernel@vger.kernel.org,
	 Yixun Lan <dlan@kernel.org>
Subject: [PATCH 2/4] riscv: dts: spacemit: k3: Use Pin Macro
Date: Wed, 25 Nov 2026 07:46:15 +0000	[thread overview]
Message-ID: <20261125-09-k3-dt-minor-misc-v1-2-dd887a8eb326@kernel.org> (raw)
In-Reply-To: <20261125-09-k3-dt-minor-misc-v1-0-dd887a8eb326@kernel.org>

Use Macro for the GPIO Pin definition, which match enumeration from
pinctrl driver and make people easy to grep for debugging purpose.

Signed-off-by: Yixun Lan <dlan@kernel.org>
---
 arch/riscv/boot/dts/spacemit/k3-com260.dtsi  | 2 +-
 arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
index d8e94d538bf1..65c6f49f8591 100644
--- a/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k3-com260.dtsi
@@ -228,7 +228,7 @@ mdio {
 		phy1: ethernet-phy@1 {
 			compatible = "ethernet-phy-id001c.c916";
 			reg = <1>;
-			reset-gpios = <&gpio 1 5 GPIO_ACTIVE_LOW>;
+			reset-gpios = <&gpio K3_GPIO(37) GPIO_ACTIVE_LOW>;
 			reset-assert-us = <10000>;
 			reset-deassert-us = <50000>;
 		};
diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
index a4afe24130ae..a74e76ee75e4 100644
--- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
+++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts
@@ -48,14 +48,14 @@ rfkill-pcie-wlan {
 		compatible = "rfkill-gpio";
 		label = "rfkill-pcie-wlan";
 		radio-type = "wlan";
-		shutdown-gpios = <&gpio 1 3 GPIO_ACTIVE_HIGH>;
+		shutdown-gpios = <&gpio K3_GPIO(35) GPIO_ACTIVE_HIGH>;
 	};
 
 	rfkill-usb-bt {
 		compatible = "rfkill-gpio";
 		label = "rfkill-usb-bt";
 		radio-type = "bluetooth";
-		shutdown-gpios = <&gpio 0 30 GPIO_ACTIVE_HIGH>;
+		shutdown-gpios = <&gpio K3_GPIO(30) GPIO_ACTIVE_HIGH>;
 	};
 };
 
@@ -250,7 +250,7 @@ mdio {
 		phy0: ethernet-phy@1 {
 			compatible = "ethernet-phy-id001c.c916";
 			reg = <1>;
-			reset-gpios = <&gpio 0 15 GPIO_ACTIVE_LOW>;
+			reset-gpios = <&gpio K3_GPIO(15) GPIO_ACTIVE_LOW>;
 			reset-assert-us = <10000>;
 			reset-deassert-us = <50000>;
 			realtek,aldps-enable;

-- 
2.56.0


  parent reply	other threads:[~2026-11-25  7:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  7:46 [PATCH 0/4] riscv: dts: spacemit: Some minor improvements to K3 Yixun Lan
2026-11-25  7:46 ` [PATCH 1/4] riscv: dts: spacemit: k3: Rename PMIC node Yixun Lan
2026-11-27  6:03   ` Troy Mitchell
2026-11-25  7:46 ` Yixun Lan [this message]
2026-11-27  6:03   ` [PATCH 2/4] riscv: dts: spacemit: k3: Use Pin Macro Troy Mitchell
2026-11-25  7:46 ` [PATCH 3/4] riscv: dts: spacemit: k3: Add alias for MicroSD Card Yixun Lan
2026-11-27  6:04   ` Troy Mitchell
2026-11-25  7:46 ` [PATCH 4/4] riscv: dts: spacemit: k3: Set CD pin bias Yixun Lan
2026-11-27  6:10   ` Troy Mitchell

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=20261125-09-k3-dt-minor-misc-v1-2-dd887a8eb326@kernel.org \
    --to=dlan@kernel.org \
    --cc=alex@ghiti.fr \
    --cc=aou@eecs.berkeley.edu \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=robh@kernel.org \
    --cc=spacemit@lists.linux.dev \
    --cc=troy.mitchell@linux.spacemit.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 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®