From: Inochi Amaoto <inochiama@gmail.com>
To: "Andrew Lunn" <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Chen Wang" <unicorn_wang@outlook.com>,
"Inochi Amaoto" <inochiama@outlook.com>,
"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
"Richard Cochran" <richardcochran@gmail.com>,
"Paul Walmsley" <paul.walmsley@sifive.com>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
"Clément Léger" <clement.leger@bootlin.com>,
"Emil Renner Berthing" <emil.renner.berthing@canonical.com>,
"Jan Petrous (OSS)" <jan.petrous@oss.nxp.com>,
"Choong Yong Liang" <yong.liang.choong@linux.intel.com>,
"Jisheng Zhang" <jszhang@kernel.org>,
"Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>,
"Vladimir Oltean" <olteanv@gmail.com>,
"Furong Xu" <0x1207@gmail.com>,
"Romain Gantois" <romain.gantois@bootlin.com>,
"Serge Semin" <fancer.lancer@gmail.com>,
"Joe Hattori" <joe@pf.is.s.u-tokyo.ac.jp>,
"Lothar Rubusch" <l.rubusch@gmail.com>,
"Bartosz Golaszewski" <bartosz.golaszewski@linaro.org>,
"Giuseppe Cavallaro" <peppe.cavallaro@st.com>,
"Jose Abreu" <joabreu@synopsys.com>
Cc: Inochi Amaoto <inochiama@gmail.com>,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-riscv@lists.infradead.org, Yixun Lan <dlan@gentoo.org>,
Longbin Li <looong.bin@gmail.com>
Subject: [PATCH net-next v7 0/4] riscv: sophgo: Add ethernet support for SG2044
Date: Fri, 7 Mar 2025 09:16:13 +0800 [thread overview]
Message-ID: <20250307011623.440792-1-inochiama@gmail.com> (raw)
The ethernet controller of SG2044 is Synopsys DesignWare IP with
custom clock. Add glue layer for it.
Changed from v6:
- https://lore.kernel.org/netdev/20250305063920.803601-1-inochiama@gmail.com/
1. rebase against latest net-next/main
Changed from v5:
- https://lore.kernel.org/netdev/20250216123953.1252523-1-inochiama@gmail.com/
1. apply Andrew's tag for patch 2,3
3. patch 1: add dma-noncoherent property.
2. patch 2,3: separate original patch into 2 part
4. patch 4: adopt new stmmac_set_clk_tx_rate helper function
Changed from v4:
- https://lore.kernel.org/netdev/20250209013054.816580-1-inochiama@gmail.com/
1. apply Romain's tag
2. patch 3: use device variable to replace &pdev->dev.
3. patch 3: remove unused include.
4. patch 3: make error message more useful.
Changed from v3:
- https://lore.kernel.org/netdev/20241223005843.483805-1-inochiama@gmail.com/
1. rebase for 6.14.rc1
2. remove the dependency requirement as it was already merged
into master.
Changed from RFC:
- https://lore.kernel.org/netdev/20241101014327.513732-1-inochiama@gmail.com/
1. patch 1: apply Krzysztof' tag
Changed from v2:
- https://lore.kernel.org/netdev/20241025011000.244350-1-inochiama@gmail.com/
1. patch 1: merge the first and the second bindings patch to show the all
compatible change.
2. patch 2: use of_device_compatible_match helper function to perform check.
2. patch 3: remove unused include and sort the left.
3. patch 3: fix wrong variable usage in sophgo_dwmac_fix_mac_speed
4. patch 3: drop unused variable in the patch.
Changed from v1:
- https://lore.kernel.org/netdev/20241021103617.653386-1-inochiama@gmail.com/
1. patch 2: remove sophgo,syscon as this mac delay is resolved.
2. patch 2: apply all the properties unconditionally.
3. patch 4: remove sophgo,syscon code as this mac delay is resolved.
4. patch 4: use the helper function to compute rgmii clock.
5. patch 4: use remove instead of remove_new for the platform driver.
Inochi Amaoto (4):
dt-bindings: net: Add support for Sophgo SG2044 dwmac
net: stmmac: platform: Group GMAC4 compatible check
net: stmmac: platform: Add snps,dwmac-5.30a IP compatible string
net: stmmac: Add glue layer for Sophgo SG2044 SoC
.../devicetree/bindings/net/snps,dwmac.yaml | 4 +
.../bindings/net/sophgo,sg2044-dwmac.yaml | 126 ++++++++++++++++++
drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 ++
drivers/net/ethernet/stmicro/stmmac/Makefile | 1 +
.../ethernet/stmicro/stmmac/dwmac-sophgo.c | 75 +++++++++++
.../ethernet/stmicro/stmmac/stmmac_platform.c | 17 ++-
6 files changed, 229 insertions(+), 5 deletions(-)
create mode 100644 Documentation/devicetree/bindings/net/sophgo,sg2044-dwmac.yaml
create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c
--
2.48.1
next reply other threads:[~2025-03-07 1:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 1:16 Inochi Amaoto [this message]
2025-03-07 1:16 ` [PATCH net-next v7 1/4] dt-bindings: net: Add support for Sophgo SG2044 dwmac Inochi Amaoto
2025-03-07 1:16 ` [PATCH net-next v7 2/4] net: stmmac: platform: Group GMAC4 compatible check Inochi Amaoto
2025-03-07 15:08 ` Russell King (Oracle)
2025-03-07 1:16 ` [PATCH net-next v7 3/4] net: stmmac: platform: Add snps,dwmac-5.30a IP compatible string Inochi Amaoto
2025-03-07 15:09 ` Russell King (Oracle)
2025-03-07 1:16 ` [PATCH net-next v7 4/4] net: stmmac: Add glue layer for Sophgo SG2044 SoC Inochi Amaoto
2025-03-07 15:06 ` Russell King (Oracle)
2025-03-08 3:40 ` [PATCH net-next v7 0/4] riscv: sophgo: Add ethernet support for SG2044 patchwork-bot+netdevbpf
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=20250307011623.440792-1-inochiama@gmail.com \
--to=inochiama@gmail.com \
--cc=0x1207@gmail.com \
--cc=alex@ghiti.fr \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=aou@eecs.berkeley.edu \
--cc=bartosz.golaszewski@linaro.org \
--cc=clement.leger@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=edumazet@google.com \
--cc=emil.renner.berthing@canonical.com \
--cc=fancer.lancer@gmail.com \
--cc=inochiama@outlook.com \
--cc=jan.petrous@oss.nxp.com \
--cc=joabreu@synopsys.com \
--cc=joe@pf.is.s.u-tokyo.ac.jp \
--cc=jszhang@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=l.rubusch@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=looong.bin@gmail.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=peppe.cavallaro@st.com \
--cc=richardcochran@gmail.com \
--cc=rmk+kernel@armlinux.org.uk \
--cc=robh@kernel.org \
--cc=romain.gantois@bootlin.com \
--cc=unicorn_wang@outlook.com \
--cc=yong.liang.choong@linux.intel.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;
as well as URLs for NNTP newsgroup(s).