RB750Gr3.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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,rb750gr3", "mediatek,mt7621-soc";
  7. model = "MikroTik RB750Gr3";
  8. aliases {
  9. led-boot = &led_pwr;
  10. led-failsafe = &led_pwr;
  11. led-running = &led_pwr;
  12. led-upgrade = &led_pwr;
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x10000000>;
  17. };
  18. chosen {
  19. bootargs = "console=ttyS0,57600";
  20. };
  21. gpio-leds {
  22. compatible = "gpio-leds";
  23. led_pwr: pwr {
  24. label = "rb750gr3:blue:pwr";
  25. gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
  26. };
  27. usr {
  28. label = "rb750gr3:green:usr";
  29. gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
  30. };
  31. };
  32. gpio-keys-polled {
  33. compatible = "gpio-keys-polled";
  34. poll-interval = <20>;
  35. mode {
  36. label = "mode";
  37. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_RFKILL>;
  39. };
  40. res {
  41. label = "res";
  42. gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
  43. linux,code = <KEY_RESTART>;
  44. };
  45. };
  46. gpio_export {
  47. compatible = "gpio-export";
  48. #size-cells = <0>;
  49. buzzer {
  50. gpio-export,name = "buzzer";
  51. gpio-export,output = <0>;
  52. gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
  53. };
  54. usb {
  55. gpio-export,name = "usb";
  56. gpio-export,output = <1>;
  57. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  58. };
  59. };
  60. };
  61. &spi0 {
  62. status = "okay";
  63. m25p80@0 {
  64. compatible = "jedec,spi-nor";
  65. reg = <0>;
  66. spi-max-frequency = <10000000>;
  67. m25p,chunked-io = <32>;
  68. partitions {
  69. compatible = "fixed-partitions";
  70. #address-cells = <1>;
  71. #size-cells = <1>;
  72. partition@0 {
  73. label = "u-boot";
  74. reg = <0x0 0x30000>;
  75. read-only;
  76. };
  77. partition@30000 {
  78. label = "u-boot-env";
  79. reg = <0x30000 0x10000>;
  80. read-only;
  81. };
  82. factory: partition@40000 {
  83. label = "factory";
  84. reg = <0x40000 0x10000>;
  85. read-only;
  86. };
  87. partition@50000 {
  88. label = "firmware";
  89. reg = <0x50000 0xfb0000>;
  90. };
  91. };
  92. };
  93. };
  94. &ethernet {
  95. mtd-mac-address = <&factory 0xe000>;
  96. mtd-mac-address-increment = <1>;
  97. };
  98. &pinctrl {
  99. state_default: pinctrl0 {
  100. gpio {
  101. ralink,group = "i2c", "uart2", "uart3", "pcie", "rgmii2", "jtag";
  102. ralink,function = "gpio";
  103. };
  104. };
  105. };
  106. &sdhci {
  107. status = "okay";
  108. };