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