Skip to content

Commit

Permalink
package/hw-c860: Disable 860 fpga test and correct an.dts.txt
Browse files Browse the repository at this point in the history
Signed-off-by: Guo Ren <[email protected]>
  • Loading branch information
guoren83 committed Jun 19, 2020
1 parent 880f316 commit f648fe0
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 18 deletions.
24 changes: 12 additions & 12 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -394,20 +394,20 @@ wait_for_trigger:
<<: *860_qemu_test

# fpga
.860_fpga_before_test: &860_fpga_before_test
- RUN="run_test_fpga.sh"
# .860_fpga_before_test: &860_fpga_before_test
# - RUN="run_test_fpga.sh"

.860_fpga_test: &860_fpga_test
stage: chip-test
before_script: *860_fpga_before_test
<<: *common_tests
# .860_fpga_test: &860_fpga_test
# stage: chip-test
# before_script: *860_fpga_before_test
# <<: *common_tests

860_4.9_glibc_fpga_test:
tags:
- csky-860-fpga
dependencies:
- 860_4.9_glibc_compat
<<: *860_fpga_test
# 860_4.9_glibc_fpga_test:
# tags:
# - csky-860-fpga
# dependencies:
# - 860_4.9_glibc_compat
# <<: *860_fpga_test

# chip test
.an_chip_before_test: &an_chip_before_test
Expand Down
44 changes: 38 additions & 6 deletions package/hw-c860/hw/an.dts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,49 @@
reg-io-width = <4>;
};

gmac: ethernet@FFFC0000 {
compatible = "snps,dwmac";
reg = <0xfffc0000 0x2000>;
gmac_pll_out_clk: gmac_pll_out_clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <1000000000>;
clock-output-names = "gmac_pll_out_clk";
};

stmmac_axi_setup: stmmac-axi-config {
snps,wr_osr_lmt = <3>;
snps,rd_osr_lmt = <3>;
snps,blen = <16 8 4 0 0 0 0>;
};

gmac: ethernet@fffc0000 {
compatible = "thead,dwmac";
reg = < 0xfffc0000 0x2000
0xfe83025c 0x4
0xfe83031c 0x4
0xfff770c0 0x1c>;
reg-names = "gmac", "phy_if_reg", "txclk_dir_reg", "clk_mgr_reg";
interrupt-parent = <&intc>;
interrupts = <56>;
interrupt-names = "macirq";
clocks = <&dummy_ahb>;
clock-names = "stmmaceth";
clocks = <&dummy_ahb>, <&gmac_pll_out_clk>;
clock-names = "stmmaceth", "gmac_pll_clk";
snps,pbl = <32>;
snps,fixed-burst;
phy-mode = "mii";
snps,axi-config = <&stmmac_axi_setup>;

phy-mode = "rgmii-txid";
rx-clk-delay = <0x0>; /* for RGMII */
tx-clk-delay = <0>; /* for RGMII */

phy-handle = <&eth_phy_0>;
mdio0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";

eth_phy_0: ethernet-phy@0 {
reg = <0>;
};
};
};
};

Expand Down

0 comments on commit f648fe0

Please sign in to comment.