M3.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. spi-max-frequency = <10000000>;
  40. partition@0 {
  41. label = "u-boot";
  42. reg = <0x0 0x30000>;
  43. read-only;
  44. };
  45. partition@30000 {
  46. label = "u-boot-env";
  47. reg = <0x30000 0x10000>;
  48. read-only;
  49. };
  50. factory: partition@40000 {
  51. label = "factory";
  52. reg = <0x40000 0x10000>;
  53. read-only;
  54. };
  55. partition@50000 {
  56. label = "firmware";
  57. reg = <0x50000 0x3b0000>;
  58. };
  59. };
  60. };
  61. &pinctrl {
  62. state_default: pinctrl0 {
  63. gpio {
  64. ralink,group = "i2c", "jtag", "uartf";
  65. ralink,function = "gpio";
  66. };
  67. };
  68. };
  69. &ethernet {
  70. mtd-mac-address = <&factory 0x4>;
  71. };
  72. &esw {
  73. mediatek,portmap = <0x2f>;
  74. mediatek,led_polarity = <1>;
  75. };
  76. &wmac {
  77. ralink,mtd-eeprom = <&factory 0>;
  78. ralink,led-polarity = <1>;
  79. };
  80. &ehci {
  81. status = "okay";
  82. };
  83. &ohci {
  84. status = "okay";
  85. };