1
0

UBNT-ER-e50.dtsi 1.8 KB

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