1
0

MINIEMBPLUG.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. spi-max-frequency = <10000000>;
  64. partition@0 {
  65. label = "u-boot";
  66. reg = <0x0 0x30000>;
  67. read-only;
  68. };
  69. partition@30000 {
  70. label = "u-boot-env";
  71. reg = <0x30000 0x10000>;
  72. read-only;
  73. };
  74. factory: partition@40000 {
  75. label = "factory";
  76. reg = <0x40000 0x10000>;
  77. read-only;
  78. };
  79. partition@50000 {
  80. label = "firmware";
  81. reg = <0x50000 0x7b0000>;
  82. };
  83. };
  84. };
  85. &ethernet {
  86. mtd-mac-address = <&factory 0x4>;
  87. };
  88. &esw {
  89. mediatek,portmap = <0x2f>;
  90. };
  91. &wmac {
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };
  94. &ehci {
  95. status = "okay";
  96. };
  97. &ohci {
  98. status = "okay";
  99. };