MINIEMBPLUG.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. };
  18. };
  19. gpio-keys-polled {
  20. compatible = "gpio-keys-polled";
  21. poll-interval = <20>;
  22. wps {
  23. label = "wps";
  24. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_WPS_BUTTON>;
  26. };
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_WPS_BUTTON>;
  31. };
  32. mode-one {
  33. label = "mode1";
  34. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_WPS_BUTTON>;
  36. };
  37. mode-two {
  38. label = "mode2";
  39. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  40. linux,code = <KEY_WPS_BUTTON>;
  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. compatible = "jedec,spi-nor";
  59. reg = <0>;
  60. spi-max-frequency = <10000000>;
  61. partitions {
  62. compatible = "fixed-partitions";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  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. };
  87. &ethernet {
  88. mtd-mac-address = <&factory 0x4>;
  89. };
  90. &esw {
  91. mediatek,portmap = <0x2f>;
  92. };
  93. &wmac {
  94. ralink,mtd-eeprom = <&factory 0>;
  95. };
  96. &ehci {
  97. status = "okay";
  98. };
  99. &ohci {
  100. status = "okay";
  101. };