1
0

MINIEMBPLUG.dts 2.0 KB

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