zx296718-evb.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /*
  2. * Copyright 2016 ZTE Corporation.
  3. * Copyright 2016 Linaro Ltd.
  4. *
  5. * This file is dual-licensed: you can use it either under the terms
  6. * of the GPL or the X11 license, at your option. Note that this dual
  7. * licensing only applies to this file, and not this project as a
  8. * whole.
  9. *
  10. * a) This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * Or, alternatively,
  21. *
  22. * b) Permission is hereby granted, free of charge, to any person
  23. * obtaining a copy of this software and associated documentation
  24. * files (the "Software"), to deal in the Software without
  25. * restriction, including without limitation the rights to use,
  26. * copy, modify, merge, publish, distribute, sublicense, and/or
  27. * sell copies of the Software, and to permit persons to whom the
  28. * Software is furnished to do so, subject to the following
  29. * conditions:
  30. *
  31. * The above copyright notice and this permission notice shall be
  32. * included in all copies or substantial portions of the Software.
  33. *
  34. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  35. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  36. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  37. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  38. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  39. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  40. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  41. * OTHER DEALINGS IN THE SOFTWARE.
  42. */
  43. /dts-v1/;
  44. #include "zx296718.dtsi"
  45. / {
  46. model = "ZTE zx296718 evaluation board";
  47. compatible = "zte,zx296718-evb", "zte,zx296718";
  48. chosen {
  49. stdout-path = "serial0:115200n8";
  50. };
  51. memory@40000000 {
  52. device_type = "memory";
  53. reg = <0x40000000 0x40000000>;
  54. };
  55. sound-spdif0 {
  56. compatible = "audio-graph-card";
  57. dais = <&spdif0_port>;
  58. };
  59. sound-i2s0 {
  60. compatible = "audio-graph-card";
  61. dais = <&i2s0_port>;
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&amplifier_pins>;
  64. pa-gpios = <&bgpio4 0 GPIO_ACTIVE_HIGH>;
  65. widgets = "Line", "Line Out Jack";
  66. routing = "Amplifier", "LINEOUTL",
  67. "Amplifier", "LINEOUTR",
  68. "Line Out Jack", "Amplifier";
  69. };
  70. };
  71. &aud96p22 {
  72. port {
  73. aud96p22_endpoint: endpoint {
  74. remote-endpoint = <&i2s0_endpoint>;
  75. };
  76. };
  77. };
  78. &emmc {
  79. status = "okay";
  80. };
  81. &hdmi {
  82. status = "okay";
  83. port {
  84. hdmi_endpoint: endpoint {
  85. remote-endpoint = <&spdif0_endpoint>;
  86. };
  87. };
  88. };
  89. &i2c0 {
  90. status = "okay";
  91. };
  92. &i2s0 {
  93. status = "okay";
  94. i2s0_port: port {
  95. i2s0_endpoint: endpoint {
  96. remote-endpoint = <&aud96p22_endpoint>;
  97. dai-format = "i2s";
  98. frame-master;
  99. bitclock-master;
  100. };
  101. };
  102. };
  103. &pmm {
  104. amplifier_pins: amplifier {
  105. pins = "TSI3_DATA";
  106. function = "BGPIO";
  107. };
  108. };
  109. &sd1 {
  110. status = "okay";
  111. };
  112. &spdif0 {
  113. status = "okay";
  114. spdif0_port: port {
  115. spdif0_endpoint: endpoint {
  116. remote-endpoint = <&hdmi_endpoint>;
  117. };
  118. };
  119. };
  120. &tvenc {
  121. status = "okay";
  122. };
  123. &uart0 {
  124. status = "okay";
  125. };