AP-MT7621A-V60.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /dts-v1/;
  2. #include "mt7621.dtsi"
  3. / {
  4. compatible = "mediatek,ap-mt7621a-v60", "mediatek,mt7621-soc";
  5. model = "Mediatek AP-MT7621A-V60 EVB";
  6. memory@0 {
  7. device_type = "memory";
  8. reg = <0x0 0x8000000>;
  9. };
  10. chosen {
  11. bootargs = "console=ttyS0,57600";
  12. };
  13. sound {
  14. compatible = "simple-audio-card";
  15. simple-audio-card,name = "Audio-I2S";
  16. simple-audio-card,format = "i2s";
  17. simple-audio-card,bitclock-master = <&dailink0_master>;
  18. simple-audio-card,frame-master = <&dailink0_master>;
  19. simple-audio-card,widgets =
  20. "Microphone", "Microphone Jack",
  21. "Headphone", "Headphone Jack";
  22. simple-audio-card,routing =
  23. "LINPUT1", "Microphone Jack",
  24. "RINPUT1", "Microphone Jack",
  25. "Headphone Jack", "HP_L",
  26. "Headphone Jack", "HP_R";
  27. simple-audio-card,mclk-fs = <256>;
  28. simple-audio-card,cpu {
  29. sound-dai = <&i2s>;
  30. };
  31. dailink0_master: simple-audio-card,codec {
  32. sound-dai = <&codec>;
  33. };
  34. };
  35. };
  36. &pinctrl {
  37. state_default: pinctrl0 {
  38. gpio {
  39. ralink,group = "uart2", "rgmii2";
  40. ralink,function = "gpio";
  41. };
  42. };
  43. i2s_pins: i2s {
  44. i2s {
  45. ralink,group = "uart3";
  46. ralink,function = "i2s";
  47. };
  48. };
  49. };
  50. &i2c {
  51. status = "okay";
  52. codec: wm8960@1a {
  53. #sound-dai-cells = <0>;
  54. compatible = "wlf,wm8960";
  55. reg = <0x1a>;
  56. wlf,shared-lrclk;
  57. };
  58. };
  59. &gdma {
  60. status = "okay";
  61. };
  62. &i2s {
  63. #sound-dai-cells = <0>;
  64. status = "okay";
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&i2s_pins>;
  67. };
  68. &spi0 {
  69. status = "okay";
  70. mx25l6405d@0 {
  71. compatible = "mx25l6405d","jedec,spi-nor";
  72. reg = <0 0>;
  73. spi-max-frequency = <10000000>;
  74. m25p,chunked-io = <32>;
  75. partitions {
  76. compatible = "fixed-partitions";
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. partition@0 {
  80. label = "u-boot";
  81. reg = <0x0 0x30000>;
  82. read-only;
  83. };
  84. partition@30000 {
  85. label = "u-boot-env";
  86. reg = <0x30000 0x10000>;
  87. read-only;
  88. };
  89. factory: partition@40000 {
  90. label = "factory";
  91. reg = <0x40000 0x10000>;
  92. read-only;
  93. };
  94. partition@50000 {
  95. label = "firmware";
  96. reg = <0x50000 0x7b0000>;
  97. };
  98. };
  99. };
  100. };
  101. &sdhci {
  102. status = "okay";
  103. };
  104. &ethernet {
  105. mtd-mac-address = <&factory 0x5>;
  106. };
  107. &pcie {
  108. status = "okay";
  109. };