1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2019 BayLibre, SAS 3 * Copyright (c) 2019 BayLibre, SAS 4 * Author: Neil Armstrong <narmstrong@baylibre. 4 * Author: Neil Armstrong <narmstrong@baylibre.com> 5 * Copyright (c) 2019 Christian Hewitt <christi 5 * Copyright (c) 2019 Christian Hewitt <christianshewitt@gmail.com> 6 */ 6 */ 7 7 8 /dts-v1/; 8 /dts-v1/; 9 9 10 #include "meson-g12b-w400.dtsi" 10 #include "meson-g12b-w400.dtsi" 11 #include <dt-bindings/sound/meson-g12a-tohdmit 11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h> 12 12 13 / { 13 / { 14 compatible = "azw,gtking", "amlogic,s9 !! 14 compatible = "azw,gtking", "amlogic,g12b"; 15 model = "Beelink GT-King"; 15 model = "Beelink GT-King"; 16 16 17 aliases { << 18 rtc0 = &rtc; << 19 rtc1 = &vrtc; << 20 }; << 21 << 22 spdif_dit: audio-codec-1 { 17 spdif_dit: audio-codec-1 { 23 #sound-dai-cells = <0>; 18 #sound-dai-cells = <0>; 24 compatible = "linux,spdif-dit" 19 compatible = "linux,spdif-dit"; >> 20 status = "okay"; 25 sound-name-prefix = "DIT"; 21 sound-name-prefix = "DIT"; 26 }; 22 }; 27 23 28 sound { 24 sound { 29 compatible = "amlogic,axg-soun 25 compatible = "amlogic,axg-sound-card"; 30 model = "GTKING"; !! 26 model = "G12B-GTKING"; 31 audio-aux-devs = <&tdmout_b>; 27 audio-aux-devs = <&tdmout_b>; 32 audio-routing = "TDMOUT_B IN 0 28 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", 33 "TDMOUT_B IN 1 29 "TDMOUT_B IN 1", "FRDDR_B OUT 1", 34 "TDMOUT_B IN 2 30 "TDMOUT_B IN 2", "FRDDR_C OUT 1", 35 "TDM_B Playbac 31 "TDM_B Playback", "TDMOUT_B OUT", 36 "SPDIFOUT_A IN !! 32 "SPDIFOUT IN 0", "FRDDR_A OUT 3", 37 "SPDIFOUT_A IN !! 33 "SPDIFOUT IN 1", "FRDDR_B OUT 3", 38 "SPDIFOUT_A IN !! 34 "SPDIFOUT IN 2", "FRDDR_C OUT 3"; 39 << 40 clocks = <&clkc CLKID_MPLL2>, << 41 <&clkc CLKID_MPLL0>, << 42 <&clkc CLKID_MPLL1>; << 43 35 44 assigned-clocks = <&clkc CLKID 36 assigned-clocks = <&clkc CLKID_MPLL2>, 45 <&clkc CLKID 37 <&clkc CLKID_MPLL0>, 46 <&clkc CLKID 38 <&clkc CLKID_MPLL1>; 47 assigned-clock-parents = <0>, 39 assigned-clock-parents = <0>, <0>, <0>; 48 assigned-clock-rates = <294912 40 assigned-clock-rates = <294912000>, 49 <270950 41 <270950400>, 50 <393216 42 <393216000>; >> 43 status = "okay"; 51 44 52 dai-link-0 { 45 dai-link-0 { 53 sound-dai = <&frddr_a> 46 sound-dai = <&frddr_a>; 54 }; 47 }; 55 48 56 dai-link-1 { 49 dai-link-1 { 57 sound-dai = <&frddr_b> 50 sound-dai = <&frddr_b>; 58 }; 51 }; 59 52 60 dai-link-2 { 53 dai-link-2 { 61 sound-dai = <&frddr_c> 54 sound-dai = <&frddr_c>; 62 }; 55 }; 63 56 64 /* 8ch hdmi interface */ 57 /* 8ch hdmi interface */ 65 dai-link-3 { 58 dai-link-3 { 66 sound-dai = <&tdmif_b> 59 sound-dai = <&tdmif_b>; 67 dai-format = "i2s"; 60 dai-format = "i2s"; 68 dai-tdm-slot-tx-mask-0 61 dai-tdm-slot-tx-mask-0 = <1 1>; 69 dai-tdm-slot-tx-mask-1 62 dai-tdm-slot-tx-mask-1 = <1 1>; 70 dai-tdm-slot-tx-mask-2 63 dai-tdm-slot-tx-mask-2 = <1 1>; 71 dai-tdm-slot-tx-mask-3 64 dai-tdm-slot-tx-mask-3 = <1 1>; 72 mclk-fs = <256>; 65 mclk-fs = <256>; 73 66 74 codec { 67 codec { 75 sound-dai = <& 68 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; 76 }; 69 }; 77 }; 70 }; 78 71 79 /* spdif hdmi or toslink inter 72 /* spdif hdmi or toslink interface */ 80 dai-link-4 { 73 dai-link-4 { 81 sound-dai = <&spdifout !! 74 sound-dai = <&spdifout>; 82 75 83 codec-0 { 76 codec-0 { 84 sound-dai = <& 77 sound-dai = <&spdif_dit>; 85 }; 78 }; 86 79 87 codec-1 { 80 codec-1 { 88 sound-dai = <& 81 sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_A>; 89 }; 82 }; 90 }; 83 }; 91 84 92 /* spdif hdmi interface */ 85 /* spdif hdmi interface */ 93 dai-link-5 { 86 dai-link-5 { 94 sound-dai = <&spdifout 87 sound-dai = <&spdifout_b>; 95 88 96 codec { 89 codec { 97 sound-dai = <& 90 sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_B>; 98 }; 91 }; 99 }; 92 }; 100 93 101 /* hdmi glue */ 94 /* hdmi glue */ 102 dai-link-6 { 95 dai-link-6 { 103 sound-dai = <&tohdmitx 96 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; 104 97 105 codec { 98 codec { 106 sound-dai = <& 99 sound-dai = <&hdmi_tx>; 107 }; 100 }; 108 }; 101 }; 109 }; 102 }; 110 }; 103 }; 111 104 112 &arb { 105 &arb { 113 status = "okay"; 106 status = "okay"; 114 }; 107 }; 115 108 116 &clkc_audio { 109 &clkc_audio { 117 status = "okay"; 110 status = "okay"; 118 }; 111 }; 119 112 120 &frddr_a { 113 &frddr_a { 121 status = "okay"; 114 status = "okay"; 122 }; 115 }; 123 116 124 &frddr_b { 117 &frddr_b { 125 status = "okay"; 118 status = "okay"; 126 }; 119 }; 127 120 128 &frddr_c { 121 &frddr_c { 129 status = "okay"; 122 status = "okay"; 130 }; 123 }; 131 124 132 !! 125 &spdifout { 133 &i2c3 { << 134 status = "okay"; << 135 pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3 << 136 pinctrl-names = "default"; << 137 << 138 rtc: rtc@51 { << 139 compatible = "nxp,pcf8563"; << 140 reg = <0x51>; << 141 wakeup-source; << 142 }; << 143 }; << 144 << 145 &spdifout_a { << 146 pinctrl-0 = <&spdif_out_h_pins>; 126 pinctrl-0 = <&spdif_out_h_pins>; 147 pinctrl-names = "default"; 127 pinctrl-names = "default"; 148 status = "okay"; 128 status = "okay"; 149 }; 129 }; 150 130 151 &spdifout_b { 131 &spdifout_b { 152 status = "okay"; 132 status = "okay"; 153 }; 133 }; 154 134 155 &tdmif_b { 135 &tdmif_b { 156 status = "okay"; 136 status = "okay"; 157 }; 137 }; 158 138 159 &tdmout_b { 139 &tdmout_b { 160 status = "okay"; 140 status = "okay"; 161 }; 141 }; 162 142 163 &tohdmitx { 143 &tohdmitx { 164 status = "okay"; 144 status = "okay"; 165 }; 145 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.