MINIEMBPLUG.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "MINIEMBPLUG", "ralink,rt5350-soc";
  5. model = "Omnima MiniEMBPlug";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. wlan {
  9. label = "miniembplug:red:wlan";
  10. gpios = <&gpio0 9 0>;
  11. };
  12. mobile {
  13. label = "miniembplug:green:mobile";
  14. gpios = <&gpio0 13 1>;
  15. };
  16. };
  17. gpio-keys-polled {
  18. compatible = "gpio-keys-polled";
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. poll-interval = <20>;
  22. wps {
  23. label = "wps";
  24. gpios = <&gpio0 0 1>;
  25. linux,code = <0x211>;
  26. };
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio0 10 1>;
  30. linux,code = <0x211>;
  31. };
  32. mode-one {
  33. label = "mode1";
  34. gpios = <&gpio0 11 1>;
  35. linux,code = <0x211>;
  36. };
  37. mode-two {
  38. label = "mode2";
  39. gpios = <&gpio0 12 1>;
  40. linux,code = <0x211>;
  41. };
  42. };
  43. };
  44. &pinctrl {
  45. state_default: pinctrl0 {
  46. gpio {
  47. ralink,group = "i2c", "jtag", "uartf";
  48. ralink,function = "gpio";
  49. };
  50. };
  51. };
  52. &gpio0 {
  53. status = "okay";
  54. };
  55. &spi0 {
  56. status = "okay";
  57. m25p80@0 {
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. compatible = "jedec,spi-nor";
  61. reg = <0>;
  62. linux,modalias = "m25p80", "mx25l6405d";
  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. };