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