MINIEMBPLUG.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. #address-cells = <1>;
  22. #size-cells = <0>;
  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. #address-cells = <1>;
  61. #size-cells = <1>;
  62. compatible = "jedec,spi-nor";
  63. reg = <0>;
  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. };