M3.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. leds {
  15. compatible = "gpio-leds";
  16. led_status: status {
  17. label = "m3:blue:status";
  18. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  19. };
  20. };
  21. keys {
  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. compatible = "denx,uimage";
  64. label = "firmware";
  65. reg = <0x50000 0x3b0000>;
  66. };
  67. };
  68. };
  69. };
  70. &pinctrl {
  71. state_default: pinctrl0 {
  72. gpio {
  73. ralink,group = "i2c", "jtag", "uartf";
  74. ralink,function = "gpio";
  75. };
  76. };
  77. };
  78. &ethernet {
  79. mtd-mac-address = <&factory 0x4>;
  80. };
  81. &esw {
  82. mediatek,portmap = <0x2f>;
  83. mediatek,led_polarity = <1>;
  84. };
  85. &wmac {
  86. ralink,mtd-eeprom = <&factory 0>;
  87. ralink,led-polarity = <1>;
  88. };
  89. &ehci {
  90. status = "okay";
  91. };
  92. &ohci {
  93. status = "okay";
  94. };