M3.dts 1.7 KB

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