M3.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /dts-v1/;
  2. /include/ "rt5350.dtsi"
  3. / {
  4. compatible = "M3", "ralink,rt5350-soc";
  5. model = "Poray M3";
  6. palmbus@10000000 {
  7. sysc@0 {
  8. ralink,pinmux = "i2c", "spi", "uartlite", "mdio", "sdram", "rgmii";
  9. ralink,gpiomux = "jtag";
  10. ralink,uartmux = "gpio";
  11. ralink,wdtmux = <1>;
  12. };
  13. gpio0: gpio@600 {
  14. status = "okay";
  15. };
  16. spi@b00 {
  17. status = "okay";
  18. m25p80@0 {
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. compatible = "w25q32";
  22. reg = <0 0>;
  23. linux,modalias = "m25p80", "w25q32";
  24. spi-max-frequency = <10000000>;
  25. partition@0 {
  26. label = "u-boot";
  27. reg = <0x0 0x30000>;
  28. read-only;
  29. };
  30. partition@30000 {
  31. label = "u-boot-env";
  32. reg = <0x30000 0x10000>;
  33. read-only;
  34. };
  35. factory: partition@40000 {
  36. label = "factory";
  37. reg = <0x40000 0x10000>;
  38. read-only;
  39. };
  40. partition@50000 {
  41. label = "firmware";
  42. reg = <0x50000 0x3b0000>;
  43. };
  44. };
  45. };
  46. };
  47. ethernet@10100000 {
  48. status = "okay";
  49. };
  50. esw@10110000 {
  51. status = "okay";
  52. ralink,portmap = <0x2f>;
  53. ralink,led_polarity = <1>;
  54. };
  55. gpio-leds {
  56. compatible = "gpio-leds";
  57. status {
  58. label = "m3:blue:status";
  59. gpios = <&gpio0 9 1>;
  60. };
  61. };
  62. gpio-keys-polled {
  63. compatible = "gpio-keys-polled";
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. poll-interval = <20>;
  67. reset {
  68. label = "reset";
  69. gpios = <&gpio0 10 1>;
  70. linux,code = <0x198>;
  71. };
  72. mode {
  73. label = "mode";
  74. gpios = <&gpio0 17 1>;
  75. linux,code = <0x100>;
  76. linux,input-type = <5>;
  77. };
  78. };
  79. wmac@10180000 {
  80. status = "okay";
  81. ralink,mtd-eeprom = <&factory 0>;
  82. ralink,led-polarity = <1>;
  83. };
  84. ehci@101c0000 {
  85. status = "okay";
  86. };
  87. ohci@101c1000 {
  88. status = "okay";
  89. };
  90. };