MINIEMBWIFI.dts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. gpio-leds {
  9. compatible = "gpio-leds";
  10. status {
  11. label = "miniembwifi:green:status";
  12. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  13. };
  14. wlan {
  15. label = "miniembwifi:green:wlan";
  16. gpios = <&gpio0 14 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. reset {
  25. label = "reset";
  26. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  27. linux,code = <KEY_RESTART>;
  28. };
  29. };
  30. cfi@1f000000 {
  31. compatible = "cfi-flash";
  32. reg = <0x1f000000 0x800000>;
  33. bank-width = <2>;
  34. device-width = <2>;
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. partition@0 {
  38. label = "u-boot";
  39. reg = <0x0 0x30000>;
  40. read-only;
  41. };
  42. partition@30000 {
  43. label = "u-boot-env";
  44. reg = <0x30000 0x10000>;
  45. read-only;
  46. };
  47. factory: partition@40000 {
  48. label = "factory";
  49. reg = <0x40000 0x10000>;
  50. read-only;
  51. };
  52. partition@50000 {
  53. label = "firmware";
  54. reg = <0x50000 0x7b0000>;
  55. };
  56. };
  57. };
  58. &pinctrl {
  59. state_default: pinctrl0 {
  60. gpio {
  61. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  62. ralink,function = "gpio";
  63. };
  64. };
  65. };
  66. &ethernet {
  67. mtd-mac-address = <&factory 0x28>;
  68. };
  69. &esw {
  70. mediatek,portmap = <0x2f>;
  71. };
  72. &wmac {
  73. ralink,mtd-eeprom = <&factory 0>;
  74. };
  75. &otg {
  76. status = "okay";
  77. };