M3.dts 1.6 KB

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