DUZUN-DM06.dts 2.4 KB

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