M2M.dts 1.7 KB

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