socfpga_n5x_socdk.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2020-2021, Intel Corporation
  4. */
  5. #include "socfpga_agilex.dtsi"
  6. / {
  7. model = "eASIC N5X SoCDK";
  8. aliases {
  9. serial0 = &uart0;
  10. ethernet0 = &gmac0;
  11. ethernet1 = &gmac1;
  12. ethernet2 = &gmac2;
  13. };
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. memory {
  18. device_type = "memory";
  19. /* We expect the bootloader to fill in the reg */
  20. reg = <0 0 0 0>;
  21. };
  22. soc {
  23. clocks {
  24. osc1 {
  25. clock-frequency = <25000000>;
  26. };
  27. };
  28. };
  29. };
  30. &gmac0 {
  31. status = "okay";
  32. phy-mode = "rgmii";
  33. phy-handle = <&phy0>;
  34. max-frame-size = <9000>;
  35. mdio0 {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. compatible = "snps,dwmac-mdio";
  39. phy0: ethernet-phy@0 {
  40. reg = <4>;
  41. txd0-skew-ps = <0>; /* -420ps */
  42. txd1-skew-ps = <0>; /* -420ps */
  43. txd2-skew-ps = <0>; /* -420ps */
  44. txd3-skew-ps = <0>; /* -420ps */
  45. rxd0-skew-ps = <420>; /* 0ps */
  46. rxd1-skew-ps = <420>; /* 0ps */
  47. rxd2-skew-ps = <420>; /* 0ps */
  48. rxd3-skew-ps = <420>; /* 0ps */
  49. txen-skew-ps = <0>; /* -420ps */
  50. txc-skew-ps = <900>; /* 0ps */
  51. rxdv-skew-ps = <420>; /* 0ps */
  52. rxc-skew-ps = <1680>; /* 780ps */
  53. };
  54. };
  55. };
  56. &gpio1 {
  57. status = "okay";
  58. };
  59. &mmc {
  60. status = "okay";
  61. cap-sd-highspeed;
  62. broken-cd;
  63. bus-width = <4>;
  64. };
  65. &qspi {
  66. status = "okay";
  67. flash0: flash@0 {
  68. #address-cells = <1>;
  69. #size-cells = <1>;
  70. compatible = "mt25qu02g";
  71. reg = <0>;
  72. spi-max-frequency = <100000000>;
  73. m25p,fast-read;
  74. cdns,page-size = <256>;
  75. cdns,block-size = <16>;
  76. cdns,read-delay = <3>;
  77. cdns,tshsl-ns = <50>;
  78. cdns,tsd2d-ns = <50>;
  79. cdns,tchsh-ns = <4>;
  80. cdns,tslch-ns = <4>;
  81. partitions {
  82. compatible = "fixed-partitions";
  83. #address-cells = <1>;
  84. #size-cells = <1>;
  85. qspi_boot: partition@0 {
  86. label = "Boot and fpga data";
  87. reg = <0x0 0x034B0000>;
  88. };
  89. qspi_rootfs: partition@34B0000 {
  90. label = "Root Filesystem - JFFS2";
  91. reg = <0x034B0000 0x0EB50000>;
  92. };
  93. };
  94. };
  95. };
  96. &uart0 {
  97. status = "okay";
  98. };
  99. &usb0 {
  100. status = "okay";
  101. };
  102. &usb1 {
  103. status = "okay";
  104. };