1
0

M2M.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "intenso,memory2move", "ralink,rt5350-soc";
  7. model = "Intenso Memory 2 Move";
  8. aliases {
  9. led-boot = &led_wifi;
  10. led-failsafe = &led_wifi;
  11. led-running = &led_wifi;
  12. led-upgrade = &led_wifi;
  13. };
  14. chosen {
  15. bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5";
  16. };
  17. gpio-leds {
  18. compatible = "gpio-leds";
  19. led_wifi: wifi {
  20. label = "m2m:blue:wifi";
  21. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  22. };
  23. wan {
  24. label = "m2m:green:wan";
  25. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  26. };
  27. };
  28. gpio-keys-polled {
  29. compatible = "gpio-keys-polled";
  30. poll-interval = <20>;
  31. power {
  32. label = "power";
  33. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  34. linux,code = <KEY_POWER>;
  35. };
  36. reset {
  37. label = "reset";
  38. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  39. linux,code = <KEY_RESTART>;
  40. };
  41. };
  42. };
  43. &spi0 {
  44. status = "okay";
  45. m25p80@0 {
  46. compatible = "jedec,spi-nor";
  47. reg = <0>;
  48. spi-max-frequency = <10000000>;
  49. partitions {
  50. compatible = "fixed-partitions";
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. partition@0 {
  54. label = "Bootloader";
  55. reg = <0x0 0x30000>;
  56. read-only;
  57. };
  58. partition@30000 {
  59. label = "Config";
  60. reg = <0x30000 0x10000>;
  61. read-only;
  62. };
  63. factory: partition@40000 {
  64. label = "Factory";
  65. reg = <0x40000 0x10000>;
  66. read-only;
  67. };
  68. partition@50000 {
  69. label = "firmware";
  70. reg = <0x50000 0x7b0000>;
  71. };
  72. };
  73. };
  74. };
  75. &pinctrl {
  76. state_default: pinctrl0 {
  77. gpio {
  78. ralink,group = "i2c", "uartf";
  79. ralink,function = "gpio";
  80. };
  81. };
  82. };
  83. &ethernet {
  84. mtd-mac-address = <&factory 0x28>;
  85. };
  86. &esw {
  87. mediatek,portmap = <0x2f>;
  88. };
  89. &ehci {
  90. status = "okay";
  91. };
  92. &ohci {
  93. status = "okay";
  94. };
  95. &wmac {
  96. ralink,mtd-eeprom = <&factory 0x0>;
  97. };