1
0

BOCCO.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "planex,cs-qr10", "ralink,mt7620a-soc";
  7. model = "YUKAI Engineering BOCCO";
  8. gpio-keys-polled {
  9. compatible = "gpio-keys-polled";
  10. poll-interval = <20>;
  11. reset {
  12. label = "reset";
  13. gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
  14. linux,code = <KEY_RESTART>;
  15. };
  16. };
  17. gpio_export {
  18. compatible = "gpio-export";
  19. #size-cells = <0>;
  20. s1 {
  21. gpio-export,name = "rec";
  22. gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
  23. };
  24. s2 {
  25. gpio-export,name = "play";
  26. gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
  27. };
  28. };
  29. sound {
  30. compatible = "simple-audio-card";
  31. simple-audio-card,name = "Audio-I2S";
  32. simple-audio-card,format = "i2s";
  33. simple-audio-card,bitclock-master = <&dailink0_master>;
  34. simple-audio-card,frame-master = <&dailink0_master>;
  35. simple-audio-card,widgets =
  36. "Headphone", "Headphones";
  37. simple-audio-card,routing =
  38. "Headphones", "HP_L",
  39. "Headphones", "HP_R";
  40. simple-audio-card,mclk-fs = <256>;
  41. simple-audio-card,cpu {
  42. sound-dai = <&i2s>;
  43. };
  44. dailink0_master: simple-audio-card,codec {
  45. sound-dai = <&codec>;
  46. };
  47. };
  48. };
  49. &gpio0 {
  50. status = "okay";
  51. };
  52. &gpio1 {
  53. status = "okay";
  54. };
  55. &gpio2 {
  56. status = "okay";
  57. };
  58. &gpio3 {
  59. status = "okay";
  60. };
  61. &i2c {
  62. status = "okay";
  63. codec: wm8960@1a {
  64. #sound-dai-cells = <0>;
  65. compatible = "wlf,wm8960";
  66. reg = <0x1a>;
  67. wlf,shared-lrclk;
  68. };
  69. };
  70. &i2s {
  71. #sound-dai-cells = <0>;
  72. status = "okay";
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&pcm_i2s_pins>;
  75. };
  76. &spi0 {
  77. status = "okay";
  78. m25p80@0 {
  79. compatible = "jedec,spi-nor";
  80. reg = <0>;
  81. spi-max-frequency = <10000000>;
  82. partitions {
  83. compatible = "fixed-partitions";
  84. #address-cells = <1>;
  85. #size-cells = <1>;
  86. partition@0 {
  87. label = "u-boot";
  88. reg = <0x0 0x30000>;
  89. read-only;
  90. };
  91. partition@30000 {
  92. label = "u-boot-env";
  93. reg = <0x30000 0x10000>;
  94. read-only;
  95. };
  96. factory: partition@40000 {
  97. label = "factory";
  98. reg = <0x40000 0x10000>;
  99. read-only;
  100. };
  101. partition@50000 {
  102. label = "firmware";
  103. reg = <0x50000 0x7b0000>;
  104. };
  105. };
  106. };
  107. };
  108. &pcm {
  109. status = "okay";
  110. };
  111. &gdma {
  112. status = "okay";
  113. };
  114. &pinctrl {
  115. state_default: pinctrl0 {
  116. gpio {
  117. ralink,group = "spi refclk", "rgmii1";
  118. ralink,function = "gpio";
  119. };
  120. };
  121. };
  122. &ethernet {
  123. pinctrl-names = "default";
  124. pinctrl-0 = <&ephy_pins>;
  125. mtd-mac-address = <&factory 0x4>;
  126. mediatek,portmap = "llllw";
  127. };
  128. &gsw {
  129. ralink,port4 = "ephy";
  130. };
  131. &wmac {
  132. ralink,mtd-eeprom = <&factory 0>;
  133. };