Advertisement
Guest User

OMEGA2.dtsi

a guest
Jul 14th, 2017
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. #include "mt7628an.dtsi"
  2.  
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5.  
  6. / {
  7. compatible = "onion,omega", "mediatek,mt7628an-soc";
  8.  
  9. chosen {
  10. bootargs = "console=ttyS0,115200";
  11. };
  12.  
  13. gpio-leds {
  14. compatible = "gpio-leds";
  15.  
  16. system_led: system {
  17. gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  18. };
  19. };
  20.  
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. poll-interval = <20>;
  26.  
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
  30. linux,code = <KEY_RESTART>;
  31. };
  32. };
  33.  
  34. sound {
  35. compatible = "simple-audio-card";
  36. simple-audio-card,name = "Audio-I2S";
  37. simple-audio-card,format = "i2s";
  38. simple-audio-card,bitclock-master = <&cpu_dai_master>;
  39. simple-audio-card,frame-master = <&cpu_dai_master>;
  40. simple-audio-card,widgets =
  41. "Speaker", "External Speaker";
  42.  
  43. cpu_dai_master: simple-audio-card,cpu {
  44. sound-dai = <&i2s>;
  45. };
  46.  
  47. dailink0_master: simple-audio-card,codec {
  48. sound-dai = <&codec>;
  49. };
  50. };
  51.  
  52. codec: max98357a {
  53. #sound-dai-cells = <0>;
  54. compatible = "maxim,max98357a";
  55. sdmode-gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
  56. };
  57.  
  58. };
  59.  
  60. &pinctrl {
  61. state_default: pinctrl0 {
  62. gpio {
  63. ralink,group = "gpio";
  64. ralink,function = "gpio";
  65. };
  66.  
  67. perst {
  68. ralink,group = "perst";
  69. ralink,function = "gpio";
  70. };
  71.  
  72. refclk {
  73. ralink,group = "refclk";
  74. ralink,function = "gpio";
  75. };
  76.  
  77. i2s {
  78. ralink,group = "i2s";
  79. ralink,function = "i2s";
  80. };
  81.  
  82. spis {
  83. ralink,group = "spis";
  84. ralink,function = "gpio";
  85. };
  86.  
  87. wled_kn {
  88. ralink,group = "wled_kn";
  89. ralink,function = "gpio";
  90. };
  91.  
  92. wled_an {
  93. ralink,group = "wled_an";
  94. ralink,function = "gpio";
  95. };
  96.  
  97. wdt {
  98. ralink,group = "wdt";
  99. ralink,function = "gpio";
  100. };
  101.  
  102. pwm0 {
  103. ralink,group = "pwm0";
  104. ralink,function = "gpio";
  105. };
  106.  
  107. pwm1 {
  108. ralink,group = "pwm1";
  109. ralink,function = "gpio";
  110. };
  111. };
  112. };
  113.  
  114. &gpio1 {
  115. status = "okay";
  116. };
  117.  
  118. &gpio2 {
  119. status = "okay";
  120. };
  121.  
  122. &spi0 {
  123. status = "okay";
  124.  
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
  127.  
  128. m25p80@0 {
  129. #address-cells = <1>;
  130. #size-cells = <1>;
  131. compatible = "jedec,spi-nor";
  132. reg = <0>;
  133. spi-max-frequency = <40000000>;
  134. m25p,chunked-io = <31>;
  135.  
  136. partition@0 {
  137. label = "u-boot";
  138. reg = <0x0 0x30000>;
  139. read-only;
  140. };
  141.  
  142. partition@30000 {
  143. label = "u-boot-env";
  144. reg = <0x30000 0x10000>;
  145. read-only;
  146. };
  147.  
  148. factory: partition@40000 {
  149. label = "factory";
  150. reg = <0x40000 0x10000>;
  151. read-only;
  152. };
  153.  
  154. firmware: partition@50000 {
  155. label = "firmware";
  156. };
  157. };
  158.  
  159. spidev@1 {
  160. #address-cells = <1>;
  161. #size-cells = <1>;
  162. compatible = "linux,spidev";
  163. reg = <1>;
  164. spi-max-frequency = <40000000>;
  165. };
  166. };
  167.  
  168. &i2c {
  169. status = "okay";
  170. };
  171.  
  172. &uart1 {
  173. status = "okay";
  174. };
  175.  
  176. &uart2 {
  177. status = "okay";
  178. };
  179.  
  180. &ethernet {
  181. mtd-mac-address = <&factory 0x28>;
  182. };
  183.  
  184. &sdhci {
  185. status = "okay";
  186. mediatek,cd-low;
  187. };
  188.  
  189. &wmac {
  190. status = "okay";
  191. };
  192.  
  193. &gdma {
  194. status = "okay";
  195. };
  196.  
  197. &i2s {
  198. #sound-dai-cells = <0>;
  199. status = "okay";
  200. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement