MINIEMBWIFI.dts 1.6 KB

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