M3.dts 1.6 KB

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