UBNT-ERX.dts 1.6 KB

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