1
0

M3.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "M3", "ralink,rt5350-soc";
  6. model = "Poray M3";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. status {
  10. label = "m3:blue:status";
  11. gpios = <&gpio0 9 1>;
  12. };
  13. };
  14. gpio-keys-polled {
  15. compatible = "gpio-keys-polled";
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. poll-interval = <20>;
  19. reset {
  20. label = "reset";
  21. gpios = <&gpio0 10 1>;
  22. linux,code = <KEY_RESTART>;
  23. };
  24. mode {
  25. label = "mode";
  26. gpios = <&gpio0 17 1>;
  27. linux,code = <BTN_0>;
  28. linux,input-type = <EV_SW>;
  29. };
  30. };
  31. };
  32. &spi0 {
  33. status = "okay";
  34. m25p80@0 {
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. compatible = "jedec,spi-nor";
  38. reg = <0>;
  39. linux,modalias = "m25p80", "w25q32";
  40. spi-max-frequency = <10000000>;
  41. partition@0 {
  42. label = "u-boot";
  43. reg = <0x0 0x30000>;
  44. read-only;
  45. };
  46. partition@30000 {
  47. label = "u-boot-env";
  48. reg = <0x30000 0x10000>;
  49. read-only;
  50. };
  51. factory: partition@40000 {
  52. label = "factory";
  53. reg = <0x40000 0x10000>;
  54. read-only;
  55. };
  56. partition@50000 {
  57. label = "firmware";
  58. reg = <0x50000 0x3b0000>;
  59. };
  60. };
  61. };
  62. &pinctrl {
  63. state_default: pinctrl0 {
  64. gpio {
  65. ralink,group = "i2c", "jtag", "uartf";
  66. ralink,function = "gpio";
  67. };
  68. };
  69. };
  70. &ethernet {
  71. mtd-mac-address = <&factory 0x4>;
  72. };
  73. &esw {
  74. mediatek,portmap = <0x2f>;
  75. mediatek,led_polarity = <1>;
  76. };
  77. &wmac {
  78. ralink,mtd-eeprom = <&factory 0>;
  79. ralink,led-polarity = <1>;
  80. };
  81. &ehci {
  82. status = "okay";
  83. };
  84. &ohci {
  85. status = "okay";
  86. };