From: Billy Tsai <billy_tsai@aspeedtech.com>
To: <trini@konsulko.com>, <ryan_chen@aspeedtech.com>,
<chiawei_wang@aspeedtech.com>, <BMC-SW@aspeedtech.com>,
<joel@jms.id.au>, <billy_tsai@aspeedtech.com>,
<fr0st61te@gmail.com>, <clamor95@gmail.com>,
<marek.vasut+renesas@mailbox.org>, <michal.simek@amd.com>,
<paul.barker.ct@bp.renesas.com>, <piotr.wojtaszczyk@timesys.com>,
<andre.przywara@arm.com>, <jim.t90615@gmail.com>,
<kabel@kernel.org>, <caleb.connolly@linaro.org>,
<sjg@chromium.org>, <ye.li@nxp.com>, <pbrobinson@gmail.com>,
<u-boot@lists.denx.de>
Subject: [PATCH v1 2/3] ARM: dts: ast2500: Add SGPIO to device tree
Date: Wed, 16 Oct 2024 16:59:54 +0800 [thread overview]
Message-ID: <20241016085955.314236-3-billy_tsai@aspeedtech.com> (raw)
In-Reply-To: <20241016085955.314236-1-billy_tsai@aspeedtech.com>
Add SGPIO DTS node and enable it for AST2500 EVB.
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
---
arch/arm/dts/ast2500-evb.dts | 5 +++++
arch/arm/dts/ast2500.dtsi | 20 ++++++++++++++++++++
drivers/pinctrl/aspeed/pinctrl_ast2500.c | 1 +
3 files changed, 26 insertions(+)
diff --git a/arch/arm/dts/ast2500-evb.dts b/arch/arm/dts/ast2500-evb.dts
index d481eadfeb0..9a5037deca2 100644
--- a/arch/arm/dts/ast2500-evb.dts
+++ b/arch/arm/dts/ast2500-evb.dts
@@ -129,3 +129,8 @@
reg = <0x4d>;
};
};
+
+&sgpio {
+ status = "okay";
+ ngpios = <80>;
+};
diff --git a/arch/arm/dts/ast2500.dtsi b/arch/arm/dts/ast2500.dtsi
index 320d2e5340a..d677705fe85 100644
--- a/arch/arm/dts/ast2500.dtsi
+++ b/arch/arm/dts/ast2500.dtsi
@@ -255,6 +255,21 @@
interrupt-controller;
};
+ sgpio: sgpio@1e780200 {
+ compatible = "aspeed,ast2500-sgpio";
+ reg = <0x1e780200 0x100>;
+ interrupts = <40>;
+ clocks = <&scu ASPEED_CLK_APB>;
+ #gpio-cells = <2>;
+ gpio-controller;
+ #interrupt-cells = <2>;
+ interrupt-controller;
+ bus-frequency = <1000000>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_sgpm_default>;
+ status = "disabled";
+ };
+
timer: timer@1e782000 {
/* This timer is a Faraday FTTMR010 derivative */
compatible = "aspeed,ast2400-timer";
@@ -1445,4 +1460,9 @@
function = "WDTRST2";
groups = "WDTRST2";
};
+
+ pinctrl_sgpm_default: sgpm_default {
+ function = "SGPM";
+ groups = "SGPM";
+ };
};
diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c
index 9e7c347caf8..5ecd3f262b9 100644
--- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c
+++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c
@@ -62,6 +62,7 @@ static const struct ast2500_group_config ast2500_groups[] = {
{ "SD2", 5, (1 << 1) },
{ "FWSPICS1", 3, (1 << 24) },
{ "SPI1CS1", 1, (1 << 15) },
+ { "SGPM", 2, (1 << 11) | (1 << 10) | (1 << 9) | (1 << 8) },
};
static int ast2500_pinctrl_get_groups_count(struct udevice *dev)
--
2.25.1
next prev parent reply other threads:[~2024-10-16 9:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-16 8:59 [PATCH v1 0/3] Support Aspeed SGPIO controller Billy Tsai
2024-10-16 8:59 ` [PATCH v1 1/3] gpio: Add Aspeed SGPIO driver Billy Tsai
2024-10-16 8:59 ` Billy Tsai [this message]
2024-10-16 8:59 ` [PATCH v1 3/3] ARM: dts: ast2600: Add SGPIO to device tree Billy Tsai
2024-10-29 22:28 ` [PATCH v1 0/3] Support Aspeed SGPIO controller Tom Rini
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=20241016085955.314236-3-billy_tsai@aspeedtech.com \
--to=billy_tsai@aspeedtech.com \
--cc=BMC-SW@aspeedtech.com \
--cc=andre.przywara@arm.com \
--cc=caleb.connolly@linaro.org \
--cc=chiawei_wang@aspeedtech.com \
--cc=clamor95@gmail.com \
--cc=fr0st61te@gmail.com \
--cc=jim.t90615@gmail.com \
--cc=joel@jms.id.au \
--cc=kabel@kernel.org \
--cc=marek.vasut+renesas@mailbox.org \
--cc=michal.simek@amd.com \
--cc=paul.barker.ct@bp.renesas.com \
--cc=pbrobinson@gmail.com \
--cc=piotr.wojtaszczyk@timesys.com \
--cc=ryan_chen@aspeedtech.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=ye.li@nxp.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