MPRA1.dts 1.8 KB

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