RBM33G.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/gpio/gpio.h>
  5. / {
  6. compatible = "mikrotik,rbm33g", "mediatek,mt7621-soc";
  7. model = "MikroTik RouterBOARD M33G";
  8. aliases {
  9. led-status = &led_usr;
  10. };
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x0 0x10000000>;
  14. };
  15. chosen {
  16. bootargs = "console=ttyS0,115200";
  17. };
  18. gpio-leds {
  19. compatible = "gpio-leds";
  20. led_usr: usr {
  21. label = "rbm33g:green:usr";
  22. gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. poll-interval = <20>;
  28. res {
  29. label = "res";
  30. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. };
  34. pcie0_vcc_reg {
  35. compatible = "regulator-fixed";
  36. regulator-name = "pcie0_vcc";
  37. regulator-min-microvolt = <3300000>;
  38. regulator-max-microvolt = <3300000>;
  39. gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
  40. enable-active-high;
  41. regulator-boot-on;
  42. regulator-always-on;
  43. };
  44. pcie1_vcc_reg {
  45. compatible = "regulator-fixed";
  46. regulator-name = "pcie1_vcc";
  47. regulator-min-microvolt = <3300000>;
  48. regulator-max-microvolt = <3300000>;
  49. gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
  50. enable-active-high;
  51. regulator-boot-on;
  52. regulator-always-on;
  53. };
  54. pcie2_vcc_reg {
  55. compatible = "regulator-fixed";
  56. regulator-name = "pcie2_vcc";
  57. regulator-min-microvolt = <3300000>;
  58. regulator-max-microvolt = <3300000>;
  59. gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;
  60. enable-active-high;
  61. regulator-boot-on;
  62. regulator-always-on;
  63. };
  64. usb_vcc_reg {
  65. compatible = "regulator-fixed";
  66. regulator-name = "usb_vcc";
  67. regulator-min-microvolt = <5000000>;
  68. regulator-max-microvolt = <5000000>;
  69. gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  70. enable-active-high;
  71. regulator-always-on;
  72. };
  73. };
  74. &spi0 {
  75. status = "okay";
  76. w25q40@0 {
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. compatible = "jedec,spi-nor";
  80. reg = <0>;
  81. spi-max-frequency = <3125000>;
  82. partition@0 {
  83. label = "routerboot";
  84. reg = <0x0 0xf000>;
  85. read-only;
  86. };
  87. factory: partition@f000 {
  88. label = "factory";
  89. reg = <0xf000 0x71000>;
  90. read-only;
  91. };
  92. };
  93. w25q128@1 {
  94. #address-cells = <1>;
  95. #size-cells = <1>;
  96. compatible = "jedec,spi-nor";
  97. reg = <1>;
  98. spi-max-frequency = <3125000>;
  99. partition@40000 {
  100. label = "firmware";
  101. reg = <0x040000 0xFC0000>;
  102. };
  103. };
  104. };
  105. &ethernet {
  106. mtd-mac-address = <&factory 0x0010>;
  107. mtd-mac-address-increment = <1>;
  108. };
  109. &pinctrl {
  110. state_default: pinctrl0 {
  111. gpio {
  112. ralink,group = "uart2", "wdt";
  113. ralink,function = "gpio";
  114. };
  115. };
  116. };
  117. &sdhci {
  118. status = "okay";
  119. };
  120. &i2c {
  121. status = "okay";
  122. };
  123. &pcie {
  124. status = "okay";
  125. };