meson-sm1-a95xf3-air.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2019 BayLibre SAS. All rights reserved.
  4. * Copyright (c) 2020 Christian Hewitt <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include "meson-sm1-ac2xx.dtsi"
  8. #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
  9. / {
  10. compatible = "cyx,a95xf3-air", "amlogic,sm1";
  11. model = "Shenzhen CYX Industrial Co., Ltd A95XF3-AIR";
  12. sound {
  13. compatible = "amlogic,axg-sound-card";
  14. model = "A95XF3-AIR";
  15. audio-aux-devs = <&tdmout_b>;
  16. audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
  17. "TDMOUT_B IN 1", "FRDDR_B OUT 1",
  18. "TDMOUT_B IN 2", "FRDDR_C OUT 1",
  19. "TDM_B Playback", "TDMOUT_B OUT";
  20. assigned-clocks = <&clkc CLKID_MPLL2>,
  21. <&clkc CLKID_MPLL0>,
  22. <&clkc CLKID_MPLL1>;
  23. assigned-clock-parents = <0>, <0>, <0>;
  24. assigned-clock-rates = <294912000>,
  25. <270950400>,
  26. <393216000>;
  27. status = "okay";
  28. dai-link-0 {
  29. sound-dai = <&frddr_a>;
  30. };
  31. dai-link-1 {
  32. sound-dai = <&frddr_b>;
  33. };
  34. dai-link-2 {
  35. sound-dai = <&frddr_c>;
  36. };
  37. /* 8ch hdmi interface */
  38. dai-link-3 {
  39. sound-dai = <&tdmif_b>;
  40. dai-format = "i2s";
  41. dai-tdm-slot-tx-mask-0 = <1 1>;
  42. dai-tdm-slot-tx-mask-1 = <1 1>;
  43. dai-tdm-slot-tx-mask-2 = <1 1>;
  44. dai-tdm-slot-tx-mask-3 = <1 1>;
  45. mclk-fs = <256>;
  46. codec {
  47. sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
  48. };
  49. };
  50. /* hdmi glue */
  51. dai-link-4 {
  52. sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
  53. codec {
  54. sound-dai = <&hdmi_tx>;
  55. };
  56. };
  57. };
  58. };
  59. &arb {
  60. status = "okay";
  61. };
  62. &clkc_audio {
  63. status = "okay";
  64. };
  65. &ethmac {
  66. status = "okay";
  67. phy-handle = <&internal_ephy>;
  68. phy-mode = "rmii";
  69. };
  70. &frddr_a {
  71. status = "okay";
  72. };
  73. &frddr_b {
  74. status = "okay";
  75. };
  76. &frddr_c {
  77. status = "okay";
  78. };
  79. &tdmif_b {
  80. status = "okay";
  81. };
  82. &tdmout_b {
  83. status = "okay";
  84. };
  85. &tohdmitx {
  86. status = "okay";
  87. };