MT7620a.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /dts-v1/;
  2. /include/ "mt7620a.dtsi"
  3. / {
  4. compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
  5. model = "Ralink MT7620a + MT7610e evaluation board";
  6. palmbus@10000000 {
  7. spi@b00 {
  8. status = "okay";
  9. m25p80@0 {
  10. #address-cells = <1>;
  11. #size-cells = <1>;
  12. compatible = "en25q64";
  13. reg = <0 0>;
  14. linux,modalias = "m25p80", "en25q64";
  15. spi-max-frequency = <10000000>;
  16. partition@0 {
  17. label = "u-boot";
  18. reg = <0x0 0x30000>;
  19. read-only;
  20. };
  21. partition@30000 {
  22. label = "u-boot-env";
  23. reg = <0x30000 0x10000>;
  24. read-only;
  25. };
  26. factory: partition@40000 {
  27. label = "factory";
  28. reg = <0x40000 0x10000>;
  29. read-only;
  30. };
  31. partition@50000 {
  32. label = "firmware";
  33. reg = <0x50000 0x7b0000>;
  34. };
  35. };
  36. };
  37. };
  38. pinctrl {
  39. state_default: pinctrl0 {
  40. gpio {
  41. ralink,group = "i2c", "uartf";
  42. ralink,function = "gpio";
  43. };
  44. };
  45. };
  46. ethernet@10100000 {
  47. status = "okay";
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
  50. ralink,port-map = "llllw";
  51. port@4 {
  52. status = "okay";
  53. phy-mode = "rgmii";
  54. phy-handle = <&phy4>;
  55. };
  56. port@5 {
  57. status = "okay";
  58. phy-mode = "rgmii";
  59. phy-handle = <&phy5>;
  60. };
  61. mdio-bus {
  62. status = "okay";
  63. phy4: ethernet-phy@4 {
  64. reg = <4>;
  65. phy-mode = "rgmii";
  66. };
  67. phy5: ethernet-phy@5 {
  68. reg = <5>;
  69. phy-mode = "rgmii";
  70. };
  71. };
  72. };
  73. gsw@10110000 {
  74. ralink,port4 = "gmac";
  75. };
  76. sdhci@10130000 {
  77. status = "okay";
  78. };
  79. pcie@10140000 {
  80. status = "okay";
  81. };
  82. gpio-keys-polled {
  83. compatible = "gpio-keys";
  84. #address-cells = <1>;
  85. #size-cells = <0>;
  86. poll-interval = <20>;
  87. s2 {
  88. label = "S2";
  89. gpios = <&gpio0 1 1>;
  90. linux,code = <0x100>;
  91. };
  92. s3 {
  93. label = "S3";
  94. gpios = <&gpio0 2 1>;
  95. linux,code = <0x101>;
  96. };
  97. };
  98. ehci@101c0000 {
  99. status = "okay";
  100. };
  101. ohci@101c1000 {
  102. status = "okay";
  103. };
  104. };