2
0

CS-QR10.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "ralink,mt7620a-soc";
  6. model = "Planex CS-QR10";
  7. sound {
  8. compatible = "mediatek,mt7620-audio-wm8960";
  9. model = "mt7620-wm8960";
  10. i2s-controller = <&i2s>;
  11. audio-routing =
  12. "Ext Spk", "SPK_LP",
  13. "Ext Spk", "SPK_LN",
  14. "Ext Spk", "SPK_RP",
  15. "Ext Spk", "SPK_RN";
  16. };
  17. gpio-leds {
  18. compatible = "gpio-leds";
  19. power {
  20. label = "cs-qr10:red:power";
  21. gpios = <&gpio1 4 1>;
  22. };
  23. };
  24. gpio-keys-polled {
  25. compatible = "gpio-keys-polled";
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. poll-interval = <20>;
  29. s1 {
  30. label = "reset";
  31. gpios = <&gpio1 1 1>;
  32. linux,code = <KEY_RESTART>;
  33. };
  34. s2 {
  35. label = "wps";
  36. gpios = <&gpio1 3 1>;
  37. linux,code = <KEY_WPS_BUTTON>;
  38. };
  39. };
  40. };
  41. &gpio0 {
  42. status = "okay";
  43. };
  44. &gpio1 {
  45. status = "okay";
  46. };
  47. &gpio2 {
  48. status = "okay";
  49. };
  50. &gpio3 {
  51. status = "okay";
  52. };
  53. &i2c {
  54. status = "okay";
  55. };
  56. &i2s {
  57. status = "okay";
  58. pinctrl-names = "default";
  59. pinctrl-0 = <&pcm_i2s_pins>;
  60. };
  61. &spi0 {
  62. status = "okay";
  63. m25p80@0 {
  64. #address-cells = <1>;
  65. #size-cells = <1>;
  66. compatible = "jedec,spi-nor";
  67. reg = <0>;
  68. linux,modalias = "m25p80", "mx25l6405d";
  69. spi-max-frequency = <10000000>;
  70. partition@0 {
  71. label = "u-boot";
  72. reg = <0x0 0x30000>;
  73. read-only;
  74. };
  75. partition@30000 {
  76. label = "u-boot-env";
  77. reg = <0x30000 0x10000>;
  78. read-only;
  79. };
  80. factory: partition@40000 {
  81. label = "factory";
  82. reg = <0x40000 0x10000>;
  83. read-only;
  84. };
  85. partition@50000 {
  86. label = "firmware";
  87. reg = <0x50000 0x7b0000>;
  88. };
  89. };
  90. };
  91. &pcm {
  92. status = "okay";
  93. };
  94. &gdma {
  95. status = "okay";
  96. };
  97. &pinctrl {
  98. state_default: pinctrl0 {
  99. gpio {
  100. ralink,group = "spi refclk", "rgmii1";
  101. ralink,function = "gpio";
  102. };
  103. wdt {
  104. ralink,group = "wdt";
  105. ralink,function = "wdt refclk";
  106. };
  107. };
  108. };
  109. &ethernet {
  110. pinctrl-names = "default";
  111. pinctrl-0 = <&ephy_pins>;
  112. mtd-mac-address = <&factory 0x4>;
  113. mediatek,portmap = "llllw";
  114. };
  115. &gsw {
  116. ralink,port4 = "ephy";
  117. };
  118. &sdhci {
  119. status = "okay";
  120. };
  121. &ehci {
  122. status = "okay";
  123. };
  124. &ohci {
  125. status = "okay";
  126. };
  127. &wmac {
  128. ralink,mtd-eeprom = <&factory 0>;
  129. };
  130. &pcie {
  131. status = "okay";
  132. };