rt3052_omnima_miniembwifi.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #include "rt3050.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "omnima,miniembwifi", "ralink,rt3052-soc";
  6. model = "Omnima MiniEMBWiFi";
  7. aliases {
  8. led-boot = &led_status;
  9. led-failsafe = &led_status;
  10. led-running = &led_status;
  11. led-upgrade = &led_status;
  12. };
  13. leds {
  14. compatible = "gpio-leds";
  15. led_status: status {
  16. label = "green:status";
  17. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  18. };
  19. wlan {
  20. label = "green:wlan";
  21. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  22. };
  23. };
  24. keys {
  25. compatible = "gpio-keys-polled";
  26. poll-interval = <20>;
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_RESTART>;
  31. };
  32. };
  33. flash@1f000000 {
  34. compatible = "cfi-flash";
  35. reg = <0x1f000000 0x800000>;
  36. bank-width = <2>;
  37. device-width = <2>;
  38. partitions {
  39. compatible = "fixed-partitions";
  40. #address-cells = <1>;
  41. #size-cells = <1>;
  42. partition@0 {
  43. label = "u-boot";
  44. reg = <0x0 0x30000>;
  45. read-only;
  46. };
  47. partition@30000 {
  48. label = "u-boot-env";
  49. reg = <0x30000 0x10000>;
  50. read-only;
  51. };
  52. factory: partition@40000 {
  53. label = "factory";
  54. reg = <0x40000 0x10000>;
  55. read-only;
  56. nvmem-layout {
  57. compatible = "fixed-layout";
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. eeprom_factory_0: eeprom@0 {
  61. reg = <0x0 0x200>;
  62. };
  63. macaddr_factory_28: macaddr@28 {
  64. reg = <0x28 0x6>;
  65. };
  66. };
  67. };
  68. partition@50000 {
  69. compatible = "denx,uimage";
  70. label = "firmware";
  71. reg = <0x50000 0x7b0000>;
  72. };
  73. };
  74. };
  75. };
  76. &state_default {
  77. gpio {
  78. groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  79. function = "gpio";
  80. };
  81. };
  82. &ethernet {
  83. nvmem-cells = <&macaddr_factory_28>;
  84. nvmem-cell-names = "mac-address";
  85. };
  86. &esw {
  87. mediatek,portmap = <0x2f>;
  88. };
  89. &wmac {
  90. nvmem-cells = <&eeprom_factory_0>;
  91. nvmem-cell-names = "eeprom";
  92. };
  93. &otg {
  94. status = "okay";
  95. };