1c9ccf3a3SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2c9ccf3a3SEmmanuel Vadot/* 3c9ccf3a3SEmmanuel Vadot * Copyright (c) 2019 BayLibre SAS. All rights reserved. 4c9ccf3a3SEmmanuel Vadot * Copyright (c) 2020 Christian Hewitt <christianshewitt@gmail.com> 5c9ccf3a3SEmmanuel Vadot */ 6c9ccf3a3SEmmanuel Vadot 7c9ccf3a3SEmmanuel Vadot/dts-v1/; 8c9ccf3a3SEmmanuel Vadot 9c9ccf3a3SEmmanuel Vadot#include "meson-sm1-ac2xx.dtsi" 10c9ccf3a3SEmmanuel Vadot#include <dt-bindings/sound/meson-g12a-tohdmitx.h> 11c9ccf3a3SEmmanuel Vadot 12c9ccf3a3SEmmanuel Vadot/ { 13c9ccf3a3SEmmanuel Vadot compatible = "amediatech,x96-air", "amlogic,sm1"; 14c9ccf3a3SEmmanuel Vadot model = "Shenzhen Amediatech Technology Co., Ltd X96 Air"; 15c9ccf3a3SEmmanuel Vadot 16c9ccf3a3SEmmanuel Vadot sound { 17c9ccf3a3SEmmanuel Vadot compatible = "amlogic,axg-sound-card"; 18c9ccf3a3SEmmanuel Vadot model = "X96-AIR"; 19c9ccf3a3SEmmanuel Vadot audio-aux-devs = <&tdmout_b>; 20c9ccf3a3SEmmanuel Vadot audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", 21c9ccf3a3SEmmanuel Vadot "TDMOUT_B IN 1", "FRDDR_B OUT 1", 22c9ccf3a3SEmmanuel Vadot "TDMOUT_B IN 2", "FRDDR_C OUT 1", 23c9ccf3a3SEmmanuel Vadot "TDM_B Playback", "TDMOUT_B OUT"; 24c9ccf3a3SEmmanuel Vadot 25*b2d2a78aSEmmanuel Vadot clocks = <&clkc CLKID_MPLL2>, 26*b2d2a78aSEmmanuel Vadot <&clkc CLKID_MPLL0>, 27*b2d2a78aSEmmanuel Vadot <&clkc CLKID_MPLL1>; 28*b2d2a78aSEmmanuel Vadot 29c9ccf3a3SEmmanuel Vadot assigned-clocks = <&clkc CLKID_MPLL2>, 30c9ccf3a3SEmmanuel Vadot <&clkc CLKID_MPLL0>, 31c9ccf3a3SEmmanuel Vadot <&clkc CLKID_MPLL1>; 32c9ccf3a3SEmmanuel Vadot assigned-clock-parents = <0>, <0>, <0>; 33c9ccf3a3SEmmanuel Vadot assigned-clock-rates = <294912000>, 34c9ccf3a3SEmmanuel Vadot <270950400>, 35c9ccf3a3SEmmanuel Vadot <393216000>; 36c9ccf3a3SEmmanuel Vadot 37c9ccf3a3SEmmanuel Vadot dai-link-0 { 38c9ccf3a3SEmmanuel Vadot sound-dai = <&frddr_a>; 39c9ccf3a3SEmmanuel Vadot }; 40c9ccf3a3SEmmanuel Vadot 41c9ccf3a3SEmmanuel Vadot dai-link-1 { 42c9ccf3a3SEmmanuel Vadot sound-dai = <&frddr_b>; 43c9ccf3a3SEmmanuel Vadot }; 44c9ccf3a3SEmmanuel Vadot 45c9ccf3a3SEmmanuel Vadot dai-link-2 { 46c9ccf3a3SEmmanuel Vadot sound-dai = <&frddr_c>; 47c9ccf3a3SEmmanuel Vadot }; 48c9ccf3a3SEmmanuel Vadot 49c9ccf3a3SEmmanuel Vadot /* 8ch hdmi interface */ 50c9ccf3a3SEmmanuel Vadot dai-link-3 { 51c9ccf3a3SEmmanuel Vadot sound-dai = <&tdmif_b>; 52c9ccf3a3SEmmanuel Vadot dai-format = "i2s"; 53c9ccf3a3SEmmanuel Vadot dai-tdm-slot-tx-mask-0 = <1 1>; 54c9ccf3a3SEmmanuel Vadot dai-tdm-slot-tx-mask-1 = <1 1>; 55c9ccf3a3SEmmanuel Vadot dai-tdm-slot-tx-mask-2 = <1 1>; 56c9ccf3a3SEmmanuel Vadot dai-tdm-slot-tx-mask-3 = <1 1>; 57c9ccf3a3SEmmanuel Vadot mclk-fs = <256>; 58c9ccf3a3SEmmanuel Vadot 59c9ccf3a3SEmmanuel Vadot codec { 60c9ccf3a3SEmmanuel Vadot sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; 61c9ccf3a3SEmmanuel Vadot }; 62c9ccf3a3SEmmanuel Vadot }; 63c9ccf3a3SEmmanuel Vadot 64c9ccf3a3SEmmanuel Vadot /* hdmi glue */ 65c9ccf3a3SEmmanuel Vadot dai-link-4 { 66c9ccf3a3SEmmanuel Vadot sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; 67c9ccf3a3SEmmanuel Vadot 68c9ccf3a3SEmmanuel Vadot codec { 69c9ccf3a3SEmmanuel Vadot sound-dai = <&hdmi_tx>; 70c9ccf3a3SEmmanuel Vadot }; 71c9ccf3a3SEmmanuel Vadot }; 72c9ccf3a3SEmmanuel Vadot }; 73c9ccf3a3SEmmanuel Vadot}; 74c9ccf3a3SEmmanuel Vadot 75c9ccf3a3SEmmanuel Vadot&arb { 76c9ccf3a3SEmmanuel Vadot status = "okay"; 77c9ccf3a3SEmmanuel Vadot}; 78c9ccf3a3SEmmanuel Vadot 79c9ccf3a3SEmmanuel Vadot&clkc_audio { 80c9ccf3a3SEmmanuel Vadot status = "okay"; 81c9ccf3a3SEmmanuel Vadot}; 82c9ccf3a3SEmmanuel Vadot 83c9ccf3a3SEmmanuel Vadotðmac { 84c9ccf3a3SEmmanuel Vadot status = "okay"; 85c9ccf3a3SEmmanuel Vadot phy-handle = <&internal_ephy>; 86c9ccf3a3SEmmanuel Vadot phy-mode = "rmii"; 87c9ccf3a3SEmmanuel Vadot}; 88c9ccf3a3SEmmanuel Vadot 89c9ccf3a3SEmmanuel Vadot&frddr_a { 90c9ccf3a3SEmmanuel Vadot status = "okay"; 91c9ccf3a3SEmmanuel Vadot}; 92c9ccf3a3SEmmanuel Vadot 93c9ccf3a3SEmmanuel Vadot&frddr_b { 94c9ccf3a3SEmmanuel Vadot status = "okay"; 95c9ccf3a3SEmmanuel Vadot}; 96c9ccf3a3SEmmanuel Vadot 97c9ccf3a3SEmmanuel Vadot&frddr_c { 98c9ccf3a3SEmmanuel Vadot status = "okay"; 99c9ccf3a3SEmmanuel Vadot}; 100c9ccf3a3SEmmanuel Vadot 101c9ccf3a3SEmmanuel Vadot&ir { 102c9ccf3a3SEmmanuel Vadot linux,rc-map-name = "rc-beelink-gs1"; 103c9ccf3a3SEmmanuel Vadot}; 104c9ccf3a3SEmmanuel Vadot 105c9ccf3a3SEmmanuel Vadot&tdmif_b { 106c9ccf3a3SEmmanuel Vadot status = "okay"; 107c9ccf3a3SEmmanuel Vadot}; 108c9ccf3a3SEmmanuel Vadot 109c9ccf3a3SEmmanuel Vadot&tdmout_b { 110c9ccf3a3SEmmanuel Vadot status = "okay"; 111c9ccf3a3SEmmanuel Vadot}; 112c9ccf3a3SEmmanuel Vadot 113c9ccf3a3SEmmanuel Vadot&tohdmitx { 114c9ccf3a3SEmmanuel Vadot status = "okay"; 115c9ccf3a3SEmmanuel Vadot}; 116