From: wefu@redhat.com
To: u-boot@lists.denx.de, bmeng@tinylab.org, rick@andestech.com,
trini@konsulko.com, wefu@redhat.com, dlan@gentoo.org,
joe.hershberger@ni.com, rfried.dev@gmail.com, ypron.glpk@gmx.de,
michal.simek@amd.com, randolph@andestech.com,
seashell11234455@gmail.com, peterlin@andestech.com,
samuel@sholland.org, wiagn233@outlook.com, jonas@kwiboo.se,
seanga2@gmail.com, baruch@tkos.co.il, kever.yang@rock-chips.com,
sjg@chromium.org, gilbsgilbert@gmail.com, ycliang@andestech.com
Cc: tekkamanninja@gmail.com, tekkamanninja@163.com
Subject: [PATCH 2/6] riscv/dts: add gmac node for th1520.
Date: Wed, 27 Mar 2024 16:07:23 +0800 [thread overview]
Message-ID: <20240327080817.44501-3-wefu@redhat.com> (raw)
In-Reply-To: <20240327080817.44501-1-wefu@redhat.com>
From: Wei Fu <wefu@redhat.com>
Signed-off-by: Wei Fu <wefu@redhat.com>
Co-authored-by: Yixun Lan <dlan@gentoo.org>
---
arch/riscv/dts/th1520.dtsi | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/arch/riscv/dts/th1520.dtsi b/arch/riscv/dts/th1520.dtsi
index f7bfa42243..d68c446a6b 100644
--- a/arch/riscv/dts/th1520.dtsi
+++ b/arch/riscv/dts/th1520.dtsi
@@ -128,6 +128,13 @@
#clock-cells = <0>;
};
+ dummy_apb: apb-clock {
+ compatible = "fixed-clock";
+ clock-frequency = <62500000>;
+ clock-output-names = "dummy_apb";
+ #clock-cells = <0>;
+ };
+
uart_sclk: uart-sclk-clock {
compatible = "fixed-clock";
clock-output-names = "uart_sclk";
@@ -163,6 +170,32 @@
<&cpu3_intc 3>, <&cpu3_intc 7>;
};
+ gmac0: ethernet@ffe7070000 {
+ compatible = "snps,dwmac";
+ reg = <0xff 0xe7070000 0x0 0x2000>;
+ clocks = <&dummy_apb>;
+ clock-names = "stmmaceth";
+ snps,pbl = <32>;
+ snps,fixed-burst;
+
+ phy-mode = "rgmii-id";
+ phy-handle = <&phy_88E1111_a>;
+ status = "disabled";
+ mdio0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "snps,dwmac-mdio";
+
+ phy_88E1111_a: ethernet-phy@1 {
+ reg = <0x1>;
+ };
+
+ phy_88E1111_b: ethernet-phy@2 {
+ reg = <0x2>;
+ };
+ };
+ };
+
uart0: serial@ffe7014000 {
compatible = "snps,dw-apb-uart";
reg = <0xff 0xe7014000 0x0 0x100>;
--
2.44.0
next prev parent reply other threads:[~2024-03-27 11:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-27 8:07 [PATCH 0/6] riscv: adds T-Head C9xx basic and GMAC support wefu
2024-03-27 8:07 ` [PATCH 1/6] cpu: add t-head's c9xx wefu
2024-03-27 13:30 ` Nils Le Roux
2024-03-27 8:07 ` wefu [this message]
2024-03-27 8:07 ` [PATCH 3/6] riscv/dts: add gmac node for lichee-pi-4a wefu
2024-03-27 8:07 ` [PATCH 4/6] net/designware: add compatible for "snps,dwmac" wefu
2024-03-27 8:07 ` [PATCH 5/6] config/th1520_lpi4a_defconfig:enable designware ethernet & realtek phy wefu
2024-03-27 8:07 ` [PATCH 6/6] config/th1520_lpi4a.h: add more env option for booting linux wefu
2024-03-27 12:07 ` [PATCH 0/6] riscv: adds T-Head C9xx basic and GMAC support 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=20240327080817.44501-3-wefu@redhat.com \
--to=wefu@redhat.com \
--cc=baruch@tkos.co.il \
--cc=bmeng@tinylab.org \
--cc=dlan@gentoo.org \
--cc=gilbsgilbert@gmail.com \
--cc=joe.hershberger@ni.com \
--cc=jonas@kwiboo.se \
--cc=kever.yang@rock-chips.com \
--cc=michal.simek@amd.com \
--cc=peterlin@andestech.com \
--cc=randolph@andestech.com \
--cc=rfried.dev@gmail.com \
--cc=rick@andestech.com \
--cc=samuel@sholland.org \
--cc=seanga2@gmail.com \
--cc=seashell11234455@gmail.com \
--cc=sjg@chromium.org \
--cc=tekkamanninja@163.com \
--cc=tekkamanninja@gmail.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=wiagn233@outlook.com \
--cc=ycliang@andestech.com \
--cc=ypron.glpk@gmx.de \
/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.