Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 51 additions & 6 deletions Documentation/devicetree/bindings/net/eswin,eic7700-eth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,25 @@ properties:
- const: stmmaceth

rx-internal-delay-ps:
enum: [0, 200, 600, 1200, 1600, 1800, 2000, 2200, 2400]
enum: [0, 20, 60, 100, 200, 400, 800, 1600, 2400]

tx-internal-delay-ps:
enum: [0, 200, 600, 1200, 1600, 1800, 2000, 2200, 2400]
enum: [0, 20, 60, 100, 200, 400, 800, 1600, 2400]

eswin,rx-clk-invert:
description:
Invert the receive clock sampling polarity at the MAC input.
This property may be used to compensate for SoC-specific
receive clock to data skew and help ensure correct RX data
sampling at high speed.
type: boolean

eswin,tx-clk-invert:
description:
Invert the transmit clock polarity driven by the MAC.
This property provides SoC-specific transmit clock control
when required by the platform.
type: boolean

eswin,hsp-sp-csr:
description:
Expand All @@ -81,7 +96,9 @@ properties:
or external clock selection
- description: Offset of AXI clock controller Low-Power request
register
- description: Offset of register controlling TXD delay
- description: Offset of register controlling TX/RX clock delay
- description: Offset of register controlling RXD delay

required:
- compatible
Expand Down Expand Up @@ -111,17 +128,45 @@ examples:
interrupts = <61>;
interrupt-names = "macirq";
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
phy-handle = <&gmac0_phy0>;
resets = <&reset 95>;
reset-names = "stmmaceth";
rx-internal-delay-ps = <20>;
tx-internal-delay-ps = <100>;
eswin,hsp-sp-csr = <&hsp_sp_csr 0x100 0x108 0x114 0x118 0x11c>;
snps,axi-config = <&stmmac_axi_setup_gmac0>;
snps,aal;
snps,fixed-burst;
snps,tso;
stmmac_axi_setup_gmac0: stmmac-axi-config {
snps,blen = <0 0 0 0 16 8 4>;
snps,rd_osr_lmt = <2>;
snps,wr_osr_lmt = <2>;
};
};

ethernet@50410000 {
compatible = "eswin,eic7700-qos-eth", "snps,dwmac-5.20";
reg = <0x50410000 0x10000>;
clocks = <&d0_clock 186>, <&d0_clock 171>, <&d0_clock 40>,
<&d0_clock 194>;
clock-names = "axi", "cfg", "stmmaceth", "tx";
interrupt-parent = <&plic>;
interrupts = <70>;
interrupt-names = "macirq";
phy-mode = "rgmii-rxid";
phy-handle = <&gmac1_phy0>;
resets = <&reset 94>;
reset-names = "stmmaceth";
rx-internal-delay-ps = <200>;
tx-internal-delay-ps = <200>;
eswin,hsp-sp-csr = <&hsp_sp_csr 0x100 0x108 0x118>;
snps,axi-config = <&stmmac_axi_setup>;
eswin,rx-clk-invert;
eswin,hsp-sp-csr = <&hsp_sp_csr 0x200 0x208 0x214 0x218 0x21c>;
snps,axi-config = <&stmmac_axi_setup_gmac1>;
snps,aal;
snps,fixed-burst;
snps,tso;
stmmac_axi_setup: stmmac-axi-config {
stmmac_axi_setup_gmac1: stmmac-axi-config {
snps,blen = <0 0 0 0 16 8 4>;
snps,rd_osr_lmt = <2>;
snps,wr_osr_lmt = <2>;
Expand Down
8 changes: 8 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -9248,6 +9248,14 @@ T: git https://github.com/eswincomputing/linux-next.git
F: Documentation/devicetree/bindings/riscv/eswin.yaml
F: arch/riscv/boot/dts/eswin/

ESWIN EIC7700 CLOCK DRIVER
M: Yifeng Huang <huangyifeng@eswincomputing.com>
M: Xuyang Dong <dongxuyang@eswincomputing.com>
S: Maintained
F: Documentation/devicetree/bindings/clock/eswin,eic7700-clock.yaml
F: drivers/clk/eswin/
F: include/dt-bindings/clock/eswin,eic7700-clock.h

ET131X NETWORK DRIVER
M: Mark Einon <mark.einon@gmail.com>
S: Odd Fixes
Expand Down
14 changes: 7 additions & 7 deletions arch/riscv/boot/dts/eswin/eic7700.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@
phy-handle = <&phy0>;
resets = <&reset 95>;
reset-names = "stmmaceth";
rx-internal-delay-ps = <200>;
tx-internal-delay-ps = <900>;
eswin,hsp-sp-csr = <&hsp_sp_csr 0x100 0x108 0x118>;
rx-internal-delay-ps = <100>;
tx-internal-delay-ps = <500>;
eswin,hsp-sp-csr = <&hsp_sp_csr 0x100 0x108 0x114 0x118 0x11c>;
dma-noncoherent;
snps,axi-config = <&stmmac_axi_setup>;
snps,aal;
Expand Down Expand Up @@ -463,8 +463,8 @@
sdhci_emmc: mmc@50450000 {
compatible = "eswin,eic7700-dwcmshc";
reg = <0x0 0x50450000 0x0 0x10000>;
clocks = <&clk 190>, <&clk 171>;
clock-names = "core", "bus";
clocks = <&clk 190>, <&clk 171>, <&clk 186>;
clock-names = "core", "bus", "axi";
assigned-clocks = <&clk 190>;
assigned-clock-rates = <200000000>;
interrupt-parent = <&plic>;
Expand All @@ -491,8 +491,8 @@
reg = <0x0 0x50460000 0x0 0x10000>;
interrupt-parent = <&plic>;
interrupts = <81>;
clocks =<&clk 191>, <&clk 171>;
clock-names ="core","bus";
clocks =<&clk 191>, <&clk 171>, <&clk 186>;
clock-names ="core","bus", "axi";
resets = <&reset 76>,
<&reset 73>,
<&reset 87>,
Expand Down
Loading