MPRA1.dts 1.8 KB

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