rt5350_omnima_miniembplug.dts 1.8 KB

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