1
0

MPRA2.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "hame,mpr-a2", "ralink,rt5350-soc";
  7. model = "HAME MPR-A2";
  8. aliases {
  9. led-boot = &led_system;
  10. led-failsafe = &led_system;
  11. led-running = &led_system;
  12. led-upgrade = &led_system;
  13. };
  14. gpio-leds {
  15. compatible = "gpio-leds";
  16. led_system: system {
  17. label = "mpr-a2:blue:system";
  18. gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
  19. };
  20. power {
  21. label = "mpr-a2:red:power";
  22. gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. poll-interval = <20>;
  28. wps {
  29. label = "reset";
  30. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_RESTART>;
  32. };
  33. };
  34. gpio_export {
  35. compatible = "gpio-export";
  36. #size-cells = <0>;
  37. usb {
  38. gpio-export,name = "usb";
  39. gpio-export,output = <1>;
  40. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  41. };
  42. root_hub {
  43. gpio-export,name = "root_hub";
  44. gpio-export,output = <1>;
  45. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  46. };
  47. };
  48. };
  49. &spi0 {
  50. status = "okay";
  51. m25p80@0 {
  52. compatible = "jedec,spi-nor";
  53. reg = <0>;
  54. spi-max-frequency = <10000000>;
  55. partitions {
  56. compatible = "fixed-partitions";
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. partition@0 {
  60. label = "u-boot";
  61. reg = <0x0 0x30000>;
  62. read-only;
  63. };
  64. partition@30000 {
  65. label = "u-boot-env";
  66. reg = <0x30000 0x10000>;
  67. read-only;
  68. };
  69. factory: partition@40000 {
  70. label = "factory";
  71. reg = <0x40000 0x10000>;
  72. read-only;
  73. };
  74. partition@50000 {
  75. label = "firmware";
  76. reg = <0x50000 0x7b0000>;
  77. };
  78. };
  79. };
  80. };
  81. &pinctrl {
  82. state_default: pinctrl0 {
  83. gpio {
  84. ralink,group = "i2c", "jtag", "uartf";
  85. ralink,function = "gpio";
  86. };
  87. };
  88. };
  89. &ethernet {
  90. mtd-mac-address = <&factory 0x4>;
  91. };
  92. &esw {
  93. mediatek,portmap = <0x1>;
  94. mediatek,portdisable = <0x3e>;
  95. };
  96. &wmac {
  97. ralink,mtd-eeprom = <&factory 0>;
  98. };
  99. &ehci {
  100. status = "okay";
  101. };
  102. &ohci {
  103. status = "okay";
  104. };