2
0

DUZUN-DM06.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "duzun,dm06-mt7628an", "mediatek,mt7628an-soc";
  6. model = "DuZun DM06";
  7. memory@0 {
  8. device_type = "memory";
  9. reg = <0x0 0x4000000>;
  10. };
  11. gpio-keys-polled {
  12. compatible = "gpio-keys-polled";
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. poll-interval = <100>;
  16. reset {
  17. label = "reset";
  18. gpios = <&gpio1 14 1>;
  19. linux,code = <KEY_RESTART>;
  20. };
  21. wps {
  22. label = "wps";
  23. gpios = <&gpio1 6 1>;
  24. linux,code = <KEY_WPS_BUTTON>;
  25. };
  26. };
  27. sound {
  28. compatible = "simple-audio-card";
  29. simple-audio-card,name = "Audio-I2S";
  30. simple-audio-card,format = "i2s";
  31. simple-audio-card,bitclock-master = <&dailink0_master>;
  32. simple-audio-card,frame-master = <&dailink0_master>;
  33. simple-audio-card,widgets =
  34. "Headphone", "Headphones";
  35. simple-audio-card,routing =
  36. "Headphones", "HP_L",
  37. "Headphones", "HP_R";
  38. simple-audio-card,mclk-fs = <256>;
  39. simple-audio-card,cpu {
  40. sound-dai = <&i2s>;
  41. };
  42. dailink0_master: simple-audio-card,codec {
  43. sound-dai = <&codec>;
  44. };
  45. };
  46. };
  47. &pinctrl {
  48. state_default: pinctrl0 {
  49. gpio {
  50. ralink,group = "wdt", "uart1";
  51. ralink,function = "gpio";
  52. };
  53. };
  54. i2s_pins: i2s {
  55. i2s {
  56. ralink,group = "i2s";
  57. ralink,function = "i2s";
  58. };
  59. };
  60. wm8960_mclk_pins: wm8960_mclk {
  61. wm8960_mclk {
  62. ralink,group = "refclk";
  63. ralink,function = "reclk";
  64. };
  65. };
  66. };
  67. &gpio1 {
  68. status = "okay";
  69. };
  70. &i2c {
  71. status = "okay";
  72. codec: wm8960@1a {
  73. #sound-dai-cells = <0>;
  74. compatible = "wlf,wm8960";
  75. reg = <0x1a>;
  76. wlf,shared-lrclk;
  77. };
  78. };
  79. &ethernet {
  80. mtd-mac-address = <&factory 0x4>;
  81. };
  82. &esw {
  83. mediatek,portmap = <0x3>;
  84. mediatek,portdisable = <0x3c>;
  85. };
  86. &i2s {
  87. #sound-dai-cells = <0>;
  88. status = "okay";
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&i2s_pins>, <&wm8960_mclk_pins>;
  91. };
  92. &sdhci {
  93. status = "okay";
  94. };
  95. &gdma {
  96. status = "okay";
  97. };
  98. &spi0 {
  99. status = "okay";
  100. m25p80@0 {
  101. #address-cells = <1>;
  102. #size-cells = <1>;
  103. compatible = "jedec,spi-nor";
  104. reg = <0>;
  105. linux,modalias = "m25p80";
  106. spi-max-frequency = <60000000>;
  107. m25p,chunked-io = <32>;
  108. m25p,fast-read;
  109. partition@0 {
  110. label = "u-boot";
  111. reg = <0x0 0x30000>;
  112. read-only;
  113. };
  114. partition@30000 {
  115. label = "u-boot-env";
  116. reg = <0x30000 0x10000>;
  117. read-only;
  118. };
  119. factory: partition@40000 {
  120. label = "factory";
  121. reg = <0x40000 0x10000>;
  122. read-only;
  123. };
  124. partition@50000 {
  125. label = "firmware";
  126. reg = <0x50000 0x7b0000>;
  127. };
  128. };
  129. };