1
0

DUZUN-DM06.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /dts-v1/;
  2. #include "mt7628an.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "duzun,dm06", "mediatek,mt7628an-soc";
  7. model = "DuZun DM06";
  8. memory@0 {
  9. device_type = "memory";
  10. reg = <0x0 0x4000000>;
  11. };
  12. gpio-keys-polled {
  13. compatible = "gpio-keys-polled";
  14. poll-interval = <100>;
  15. reset {
  16. label = "reset";
  17. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RESTART>;
  19. };
  20. wps {
  21. label = "wps";
  22. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  23. linux,code = <KEY_WPS_BUTTON>;
  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. };
  54. &gpio1 {
  55. status = "okay";
  56. };
  57. &i2c {
  58. status = "okay";
  59. codec: wm8960@1a {
  60. #sound-dai-cells = <0>;
  61. compatible = "wlf,wm8960";
  62. reg = <0x1a>;
  63. wlf,shared-lrclk;
  64. };
  65. };
  66. &ethernet {
  67. mtd-mac-address = <&factory 0x4>;
  68. };
  69. &esw {
  70. mediatek,portmap = <0x3>;
  71. mediatek,portdisable = <0x3c>;
  72. };
  73. &i2s {
  74. #sound-dai-cells = <0>;
  75. status = "okay";
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&i2s_pins>, <&refclk_pins>;
  78. };
  79. &sdhci {
  80. status = "okay";
  81. };
  82. &gdma {
  83. status = "okay";
  84. };
  85. &spi0 {
  86. status = "okay";
  87. m25p80@0 {
  88. compatible = "jedec,spi-nor";
  89. reg = <0>;
  90. spi-max-frequency = <60000000>;
  91. m25p,chunked-io = <32>;
  92. m25p,fast-read;
  93. partitions {
  94. compatible = "fixed-partitions";
  95. #address-cells = <1>;
  96. #size-cells = <1>;
  97. partition@0 {
  98. label = "u-boot";
  99. reg = <0x0 0x30000>;
  100. read-only;
  101. };
  102. partition@30000 {
  103. label = "u-boot-env";
  104. reg = <0x30000 0x10000>;
  105. read-only;
  106. };
  107. factory: partition@40000 {
  108. label = "factory";
  109. reg = <0x40000 0x10000>;
  110. read-only;
  111. };
  112. partition@50000 {
  113. label = "firmware";
  114. reg = <0x50000 0x7b0000>;
  115. };
  116. };
  117. };
  118. };