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