2
0

M4-4M.dts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "M4", "ralink,rt5350-soc";
  6. model = "Poray M4 (4M)";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. status {
  10. label = "m4:blue:status";
  11. gpios = <&gpio0 9 1>;
  12. };
  13. };
  14. gpio-keys-polled {
  15. compatible = "gpio-keys-polled";
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. poll-interval = <20>;
  19. reset {
  20. label = "reset";
  21. gpios = <&gpio0 10 1>;
  22. linux,code = <KEY_RESTART>;
  23. };
  24. };
  25. };
  26. &spi0 {
  27. status = "okay";
  28. m25p80@0 {
  29. #address-cells = <1>;
  30. #size-cells = <1>;
  31. compatible = "jedec,spi-nor";
  32. reg = <0>;
  33. linux,modalias = "m25p80", "pm25lq032";
  34. spi-max-frequency = <10000000>;
  35. partition@0 {
  36. label = "u-boot";
  37. reg = <0x0 0x30000>;
  38. read-only;
  39. };
  40. partition@30000 {
  41. label = "u-boot-env";
  42. reg = <0x30000 0x10000>;
  43. read-only;
  44. };
  45. factory: partition@40000 {
  46. label = "factory";
  47. reg = <0x40000 0x10000>;
  48. read-only;
  49. };
  50. partition@50000 {
  51. label = "firmware";
  52. reg = <0x50000 0x3b0000>;
  53. };
  54. };
  55. };
  56. &pinctrl {
  57. state_default: pinctrl0 {
  58. gpio {
  59. ralink,group = "i2c", "jtag", "uartf";
  60. ralink,function = "gpio";
  61. };
  62. };
  63. };
  64. &ethernet {
  65. mtd-mac-address = <&factory 0x4>;
  66. };
  67. &esw {
  68. mediatek,portmap = <0x2f>;
  69. mediatek,led_polarity = <1>;
  70. };
  71. &ehci {
  72. status = "okay";
  73. };
  74. &ohci {
  75. status = "okay";
  76. };