RB750Gr3.dts 1.9 KB

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