2
0

MINIEMBPLUG.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "MINIEMBPLUG", "ralink,rt5350-soc";
  6. model = "Omnima MiniEMBPlug";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. wlan {
  10. label = "miniembplug:red:wlan";
  11. gpios = <&gpio0 9 0>;
  12. };
  13. mobile {
  14. label = "miniembplug:green:mobile";
  15. gpios = <&gpio0 13 1>;
  16. };
  17. };
  18. gpio-keys-polled {
  19. compatible = "gpio-keys-polled";
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. poll-interval = <20>;
  23. wps {
  24. label = "wps";
  25. gpios = <&gpio0 0 1>;
  26. linux,code = <KEY_WPS_BUTTON>;
  27. };
  28. reset {
  29. label = "reset";
  30. gpios = <&gpio0 10 1>;
  31. linux,code = <KEY_WPS_BUTTON>;
  32. };
  33. mode-one {
  34. label = "mode1";
  35. gpios = <&gpio0 11 1>;
  36. linux,code = <KEY_WPS_BUTTON>;
  37. };
  38. mode-two {
  39. label = "mode2";
  40. gpios = <&gpio0 12 1>;
  41. linux,code = <KEY_WPS_BUTTON>;
  42. };
  43. };
  44. };
  45. &pinctrl {
  46. state_default: pinctrl0 {
  47. gpio {
  48. ralink,group = "i2c", "jtag", "uartf";
  49. ralink,function = "gpio";
  50. };
  51. };
  52. };
  53. &gpio0 {
  54. status = "okay";
  55. };
  56. &spi0 {
  57. status = "okay";
  58. m25p80@0 {
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. compatible = "jedec,spi-nor";
  62. reg = <0>;
  63. linux,modalias = "m25p80", "mx25l6405d";
  64. spi-max-frequency = <10000000>;
  65. partition@0 {
  66. label = "u-boot";
  67. reg = <0x0 0x30000>;
  68. read-only;
  69. };
  70. partition@30000 {
  71. label = "u-boot-env";
  72. reg = <0x30000 0x10000>;
  73. read-only;
  74. };
  75. factory: partition@40000 {
  76. label = "factory";
  77. reg = <0x40000 0x10000>;
  78. read-only;
  79. };
  80. partition@50000 {
  81. label = "firmware";
  82. reg = <0x50000 0x7b0000>;
  83. };
  84. };
  85. };
  86. &ethernet {
  87. mtd-mac-address = <&factory 0x4>;
  88. };
  89. &esw {
  90. mediatek,portmap = <0x2f>;
  91. };
  92. &wmac {
  93. ralink,mtd-eeprom = <&factory 0>;
  94. };
  95. &ehci {
  96. status = "okay";
  97. };
  98. &ohci {
  99. status = "okay";
  100. };