M3.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "M3", "ralink,rt5350-soc";
  5. model = "Poray M3";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. status {
  9. label = "m3:blue:status";
  10. gpios = <&gpio0 9 1>;
  11. };
  12. };
  13. gpio-keys-polled {
  14. compatible = "gpio-keys-polled";
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. poll-interval = <20>;
  18. reset {
  19. label = "reset";
  20. gpios = <&gpio0 10 1>;
  21. linux,code = <0x198>;
  22. };
  23. mode {
  24. label = "mode";
  25. gpios = <&gpio0 17 1>;
  26. linux,code = <0x100>;
  27. linux,input-type = <5>;
  28. };
  29. };
  30. };
  31. &spi0 {
  32. status = "okay";
  33. m25p80@0 {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. compatible = "jedec,spi-nor";
  37. reg = <0>;
  38. linux,modalias = "m25p80", "w25q32";
  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. };