UBNT-ERX.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #include <dt-bindings/input/input.h>
  2. /dts-v1/;
  3. #include "mt7621.dtsi"
  4. / {
  5. compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
  6. model = "UBNT-ERX";
  7. memory@0 {
  8. device_type = "memory";
  9. reg = <0x0 0x10000000>;
  10. };
  11. chosen {
  12. bootargs = "console=ttyS0,57600";
  13. };
  14. nand@1e003000 {
  15. status = "okay";
  16. partition@0 {
  17. label = "u-boot";
  18. reg = <0x0 0x80000>;
  19. read-only;
  20. };
  21. partition@80000 {
  22. label = "u-boot-env";
  23. reg = <0x80000 0x60000>;
  24. read-only;
  25. };
  26. factory: partition@e0000 {
  27. label = "factory";
  28. reg = <0xe0000 0x60000>;
  29. };
  30. partition@140000 {
  31. label = "kernel1";
  32. reg = <0x140000 0x300000>;
  33. };
  34. partition@440000 {
  35. label = "kernel2";
  36. reg = <0x440000 0x300000>;
  37. };
  38. partition@740000 {
  39. label = "ubi";
  40. reg = <0x740000 0xf7c0000>;
  41. };
  42. };
  43. gpio-keys-polled {
  44. compatible = "gpio-keys-polled";
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. poll-interval = <20>;
  48. reset {
  49. label = "reset";
  50. gpios = <&gpio0 12 1>;
  51. linux,code = <KEY_RESTART>;
  52. };
  53. };
  54. };
  55. &ethernet {
  56. mtd-mac-address = <&factory 0x22>;
  57. };
  58. &pinctrl {
  59. state_default: pinctrl0 {
  60. gpio {
  61. ralink,group = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag";
  62. ralink,function = "gpio";
  63. };
  64. };
  65. };
  66. &sdhci {
  67. status = "disabled";
  68. };
  69. &pcie {
  70. status = "disabled";
  71. };
  72. &spi0 {
  73. /* This board has 2Mb spi flash soldered in and visible
  74. from manufacturer's firmware.
  75. But this SoC shares spi and nand pins,
  76. and current driver does't handle this sharing well */
  77. status = "disabled";
  78. m25p80@0 {
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. compatible = "jedec,spi-nor";
  82. reg = <1>;
  83. linux,modalias = "m25p80";
  84. spi-max-frequency = <10000000>;
  85. partition@0 {
  86. label = "spi";
  87. reg = <0x0 0x200000>;
  88. read-only;
  89. };
  90. };
  91. };