X5.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /dts-v1/;
  2. #include "rt5350.dtsi"
  3. / {
  4. compatible = "X5", "ralink,rt5350-soc";
  5. model = "Poray X5";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. power {
  9. label = "x5:green:power";
  10. gpios = <&gpio0 13 1>;
  11. };
  12. 20 {
  13. label = "x5:green:20";
  14. gpios = <&gpio0 12 1>;
  15. };
  16. 50 {
  17. label = "x5:green:50";
  18. gpios = <&gpio0 11 1>;
  19. };
  20. 80 {
  21. label = "x5:green:80";
  22. gpios = <&gpio0 7 1>;
  23. };
  24. };
  25. gpio-keys-polled {
  26. compatible = "gpio-keys-polled";
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. poll-interval = <20>;
  30. bat {
  31. label = "bat";
  32. gpios = <&gpio0 9 1>;
  33. linux,code = <0x211>;
  34. };
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 10 1>;
  38. linux,code = <0x198>;
  39. };
  40. mode {
  41. label = "mode";
  42. gpios = <&gpio0 14 1>;
  43. linux,code = <0x100>;
  44. linux,input-type = <5>;
  45. };
  46. };
  47. gpio_export {
  48. compatible = "gpio-export";
  49. #size-cells = <0>;
  50. usb-mode {
  51. gpio-export,name = "usb-mode";
  52. gpio-export,output = <0>;
  53. gpios = <&gpio0 18 0>;
  54. };
  55. };
  56. };
  57. &spi0 {
  58. status = "okay";
  59. m25p80@0 {
  60. #address-cells = <1>;
  61. #size-cells = <1>;
  62. compatible = "jedec,spi-nor";
  63. reg = <0>;
  64. linux,modalias = "m25p80", "gd25q64";
  65. spi-max-frequency = <10000000>;
  66. partition@0 {
  67. label = "u-boot";
  68. reg = <0x0 0x30000>;
  69. read-only;
  70. };
  71. partition@30000 {
  72. label = "u-boot-env";
  73. reg = <0x30000 0x10000>;
  74. read-only;
  75. };
  76. factory: partition@40000 {
  77. label = "factory";
  78. reg = <0x40000 0x10000>;
  79. read-only;
  80. };
  81. partition@50000 {
  82. label = "firmware";
  83. reg = <0x50000 0x7b0000>;
  84. };
  85. };
  86. };
  87. &pinctrl {
  88. state_default: pinctrl0 {
  89. gpio {
  90. ralink,group = "i2c", "jtag", "uartf";
  91. ralink,function = "gpio";
  92. };
  93. };
  94. };
  95. &ethernet {
  96. mtd-mac-address = <&factory 0x4>;
  97. };
  98. &esw {
  99. mediatek,portmap = <0x2f>;
  100. mediatek,led_polarity = <1>;
  101. };
  102. &wmac {
  103. ralink,mtd-eeprom = <&factory 0>;
  104. ralink,led-polarity = <1>;
  105. };
  106. &ehci {
  107. status = "okay";
  108. };
  109. &ohci {
  110. status = "okay";
  111. };