mt7621_mikrotik_routerboard-m33g.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. #include "mt7621_mikrotik.dtsi"
  2. / {
  3. compatible = "mikrotik,routerboard-m33g", "mediatek,mt7621-soc";
  4. model = "MikroTik RouterBOARD M33G";
  5. aliases {
  6. led-boot = &led_usr;
  7. led-failsafe = &led_usr;
  8. led-running = &led_usr;
  9. led-upgrade = &led_usr;
  10. };
  11. leds {
  12. compatible = "gpio-leds";
  13. led_usr: usr {
  14. label = "green:usr";
  15. gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
  16. };
  17. };
  18. pcie0_vcc_reg {
  19. compatible = "regulator-fixed";
  20. regulator-name = "pcie0_vcc";
  21. regulator-min-microvolt = <3300000>;
  22. regulator-max-microvolt = <3300000>;
  23. gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
  24. enable-active-high;
  25. regulator-boot-on;
  26. regulator-always-on;
  27. };
  28. pcie1_vcc_reg {
  29. compatible = "regulator-fixed";
  30. regulator-name = "pcie1_vcc";
  31. regulator-min-microvolt = <3300000>;
  32. regulator-max-microvolt = <3300000>;
  33. gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
  34. enable-active-high;
  35. regulator-boot-on;
  36. regulator-always-on;
  37. };
  38. pcie2_vcc_reg {
  39. compatible = "regulator-fixed";
  40. regulator-name = "pcie2_vcc";
  41. regulator-min-microvolt = <3300000>;
  42. regulator-max-microvolt = <3300000>;
  43. gpio = <&gpio 11 GPIO_ACTIVE_HIGH>;
  44. enable-active-high;
  45. regulator-boot-on;
  46. regulator-always-on;
  47. };
  48. usb_vcc_reg {
  49. compatible = "regulator-fixed";
  50. regulator-name = "usb_vcc";
  51. regulator-min-microvolt = <5000000>;
  52. regulator-max-microvolt = <5000000>;
  53. gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
  54. enable-active-high;
  55. regulator-always-on;
  56. };
  57. };
  58. &spi0 {
  59. flash@1 {
  60. compatible = "jedec,spi-nor";
  61. reg = <1>;
  62. spi-max-frequency = <33000000>;
  63. partitions {
  64. compatible = "fixed-partitions";
  65. #address-cells = <1>;
  66. #size-cells = <1>;
  67. // Region <0x0 0x40000> seems reserved by OEM
  68. partition@40000 {
  69. compatible = "mikrotik,minor";
  70. label = "firmware";
  71. reg = <0x040000 0xfc0000>;
  72. };
  73. };
  74. };
  75. };
  76. &gmac1 {
  77. status = "okay";
  78. label = "wan";
  79. phy-handle = <&ethphy0>;
  80. };
  81. &ethphy0 {
  82. /delete-property/ interrupts;
  83. };
  84. &switch0 {
  85. ports {
  86. port@1 {
  87. status = "okay";
  88. label = "lan1";
  89. };
  90. port@2 {
  91. status = "okay";
  92. label = "lan2";
  93. };
  94. };
  95. };
  96. &state_default {
  97. gpio {
  98. groups = "uart2", "wdt";
  99. function = "gpio";
  100. };
  101. };
  102. &sdhci {
  103. status = "okay";
  104. };
  105. &i2c {
  106. status = "okay";
  107. };
  108. &pcie {
  109. status = "okay";
  110. };
  111. &uartlite3 {
  112. status = "okay";
  113. };