DUZUN-DM06.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. #address-cells = <1>;
  15. #size-cells = <0>;
  16. poll-interval = <100>;
  17. reset {
  18. label = "reset";
  19. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_RESTART>;
  21. };
  22. wps {
  23. label = "wps";
  24. gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_WPS_BUTTON>;
  26. };
  27. };
  28. sound {
  29. compatible = "simple-audio-card";
  30. simple-audio-card,name = "Audio-I2S";
  31. simple-audio-card,format = "i2s";
  32. simple-audio-card,bitclock-master = <&dailink0_master>;
  33. simple-audio-card,frame-master = <&dailink0_master>;
  34. simple-audio-card,widgets =
  35. "Headphone", "Headphones";
  36. simple-audio-card,routing =
  37. "Headphones", "HP_L",
  38. "Headphones", "HP_R";
  39. simple-audio-card,mclk-fs = <256>;
  40. simple-audio-card,cpu {
  41. sound-dai = <&i2s>;
  42. };
  43. dailink0_master: simple-audio-card,codec {
  44. sound-dai = <&codec>;
  45. };
  46. };
  47. };
  48. &pinctrl {
  49. state_default: pinctrl0 {
  50. gpio {
  51. ralink,group = "wdt", "uart1";
  52. ralink,function = "gpio";
  53. };
  54. };
  55. };
  56. &gpio1 {
  57. status = "okay";
  58. };
  59. &i2c {
  60. status = "okay";
  61. codec: wm8960@1a {
  62. #sound-dai-cells = <0>;
  63. compatible = "wlf,wm8960";
  64. reg = <0x1a>;
  65. wlf,shared-lrclk;
  66. };
  67. };
  68. &ethernet {
  69. mtd-mac-address = <&factory 0x4>;
  70. };
  71. &esw {
  72. mediatek,portmap = <0x3>;
  73. mediatek,portdisable = <0x3c>;
  74. };
  75. &i2s {
  76. #sound-dai-cells = <0>;
  77. status = "okay";
  78. pinctrl-names = "default";
  79. pinctrl-0 = <&i2s_pins>, <&refclk_pins>;
  80. };
  81. &sdhci {
  82. status = "okay";
  83. };
  84. &gdma {
  85. status = "okay";
  86. };
  87. &spi0 {
  88. status = "okay";
  89. m25p80@0 {
  90. #address-cells = <1>;
  91. #size-cells = <1>;
  92. compatible = "jedec,spi-nor";
  93. reg = <0>;
  94. spi-max-frequency = <60000000>;
  95. m25p,chunked-io = <32>;
  96. m25p,fast-read;
  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. };