X5.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. 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. };