M2M.dts 1.5 KB

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