MINIEMBWIFI.dts 1.4 KB

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