M2M.dts 1.6 KB

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