X5.dts 2.0 KB

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