X5.dts 2.0 KB

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