MPRA2.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /dts-v1/;
  2. /include/ "rt5350.dtsi"
  3. / {
  4. compatible = "MPRA2", "ralink,rt5350-soc";
  5. model = "HAME MPR-A2";
  6. memory@0 {
  7. reg = <0x0 0x2000000>;
  8. };
  9. palmbus@10000000 {
  10. sysc@0 {
  11. ralink,pinmux = "i2c", "spi", "uartlite", "mdio", "sdram", "rgmii";
  12. ralink,gpiomux = "jtag";
  13. ralink,uartmux = "gpio";
  14. ralink,wdtmux = <1>;
  15. };
  16. gpio0: gpio@600 {
  17. status = "okay";
  18. };
  19. spi@b00 {
  20. status = "okay";
  21. m25p80@0 {
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. compatible = "s25fl064k";
  25. reg = <0 0>;
  26. linux,modalias = "m25p80", "s25fl064k";
  27. spi-max-frequency = <10000000>;
  28. partition@0 {
  29. label = "u-boot";
  30. reg = <0x0 0x30000>;
  31. read-only;
  32. };
  33. partition@30000 {
  34. label = "u-boot-env";
  35. reg = <0x30000 0x10000>;
  36. read-only;
  37. };
  38. factory: partition@40000 {
  39. label = "factory";
  40. reg = <0x40000 0x10000>;
  41. read-only;
  42. };
  43. partition@50000 {
  44. label = "firmware";
  45. reg = <0x50000 0x7b0000>;
  46. };
  47. };
  48. };
  49. };
  50. ethernet@10100000 {
  51. status = "okay";
  52. };
  53. esw@10110000 {
  54. status = "okay";
  55. ralink,portmap = <0x2f>;
  56. };
  57. wmac@10180000 {
  58. status = "okay";
  59. };
  60. ehci@101c0000 {
  61. status = "okay";
  62. };
  63. ohci@101c1000 {
  64. status = "okay";
  65. };
  66. gpio-leds {
  67. compatible = "gpio-leds";
  68. system {
  69. label = "mpr-a2:blue:system";
  70. gpios = <&gpio0 20 1>;
  71. };
  72. power {
  73. label = "mpr-a2:red:power";
  74. gpios = <&gpio0 17 1>;
  75. };
  76. };
  77. gpio-keys-polled {
  78. compatible = "gpio-keys-polled";
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. poll-interval = <20>;
  82. wps {
  83. label = "reset";
  84. gpios = <&gpio0 0 1>;
  85. linux,code = <0x198>;
  86. };
  87. };
  88. gpio_export {
  89. compatible = "gpio-export";
  90. #size-cells = <0>;
  91. usb {
  92. gpio-export,name = "usb";
  93. gpio-export,output = <1>;
  94. gpios = <&gpio0 7 0>;
  95. };
  96. root_hub {
  97. gpio-export,name = "root_hub";
  98. gpio-export,output = <1>;
  99. gpios = <&gpio0 12 0>;
  100. };
  101. };
  102. };