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 = "ugoos,am6", "amlogic,s92 14 compatible = "ugoos,am6", "amlogic,s922x", "amlogic,g12b"; 15 model = "Ugoos AM6"; 15 model = "Ugoos AM6"; 16 16 17 spdif_dit: audio-codec-1 { 17 spdif_dit: audio-codec-1 { 18 #sound-dai-cells = <0>; 18 #sound-dai-cells = <0>; 19 compatible = "linux,spdif-dit" 19 compatible = "linux,spdif-dit"; >> 20 status = "okay"; 20 sound-name-prefix = "DIT"; 21 sound-name-prefix = "DIT"; 21 }; 22 }; 22 23 23 sound { 24 sound { 24 compatible = "amlogic,axg-soun 25 compatible = "amlogic,axg-sound-card"; 25 model = "UGOOS-AM6"; 26 model = "UGOOS-AM6"; 26 audio-aux-devs = <&tdmout_b>; 27 audio-aux-devs = <&tdmout_b>; 27 audio-routing = "TDMOUT_B IN 0 28 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1", 28 "TDMOUT_B IN 1 29 "TDMOUT_B IN 1", "FRDDR_B OUT 1", 29 "TDMOUT_B IN 2 30 "TDMOUT_B IN 2", "FRDDR_C OUT 1", 30 "TDM_B Playbac 31 "TDM_B Playback", "TDMOUT_B OUT", 31 "SPDIFOUT_A IN !! 32 "SPDIFOUT IN 0", "FRDDR_A OUT 3", 32 "SPDIFOUT_A IN !! 33 "SPDIFOUT IN 1", "FRDDR_B OUT 3", 33 "SPDIFOUT_A IN !! 34 "SPDIFOUT IN 2", "FRDDR_C OUT 3"; 34 << 35 clocks = <&clkc CLKID_MPLL2>, << 36 <&clkc CLKID_MPLL0>, << 37 <&clkc CLKID_MPLL1>; << 38 35 39 assigned-clocks = <&clkc CLKID 36 assigned-clocks = <&clkc CLKID_MPLL2>, 40 <&clkc CLKID 37 <&clkc CLKID_MPLL0>, 41 <&clkc CLKID 38 <&clkc CLKID_MPLL1>; 42 assigned-clock-parents = <0>, 39 assigned-clock-parents = <0>, <0>, <0>; 43 assigned-clock-rates = <294912 40 assigned-clock-rates = <294912000>, 44 <270950 41 <270950400>, 45 <393216 42 <393216000>; >> 43 status = "okay"; 46 44 47 dai-link-0 { 45 dai-link-0 { 48 sound-dai = <&frddr_a> 46 sound-dai = <&frddr_a>; 49 }; 47 }; 50 48 51 dai-link-1 { 49 dai-link-1 { 52 sound-dai = <&frddr_b> 50 sound-dai = <&frddr_b>; 53 }; 51 }; 54 52 55 dai-link-2 { 53 dai-link-2 { 56 sound-dai = <&frddr_c> 54 sound-dai = <&frddr_c>; 57 }; 55 }; 58 56 59 /* 8ch hdmi interface */ 57 /* 8ch hdmi interface */ 60 dai-link-3 { 58 dai-link-3 { 61 sound-dai = <&tdmif_b> 59 sound-dai = <&tdmif_b>; 62 dai-format = "i2s"; 60 dai-format = "i2s"; 63 dai-tdm-slot-tx-mask-0 61 dai-tdm-slot-tx-mask-0 = <1 1>; 64 dai-tdm-slot-tx-mask-1 62 dai-tdm-slot-tx-mask-1 = <1 1>; 65 dai-tdm-slot-tx-mask-2 63 dai-tdm-slot-tx-mask-2 = <1 1>; 66 dai-tdm-slot-tx-mask-3 64 dai-tdm-slot-tx-mask-3 = <1 1>; 67 mclk-fs = <256>; 65 mclk-fs = <256>; 68 66 69 codec { 67 codec { 70 sound-dai = <& 68 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>; 71 }; 69 }; 72 }; 70 }; 73 71 74 /* spdif hdmi or toslink inter 72 /* spdif hdmi or toslink interface */ 75 dai-link-4 { 73 dai-link-4 { 76 sound-dai = <&spdifout !! 74 sound-dai = <&spdifout>; 77 75 78 codec-0 { 76 codec-0 { 79 sound-dai = <& 77 sound-dai = <&spdif_dit>; 80 }; 78 }; 81 79 82 codec-1 { 80 codec-1 { 83 sound-dai = <& 81 sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_A>; 84 }; 82 }; 85 }; 83 }; 86 84 87 /* spdif hdmi interface */ 85 /* spdif hdmi interface */ 88 dai-link-5 { 86 dai-link-5 { 89 sound-dai = <&spdifout 87 sound-dai = <&spdifout_b>; 90 88 91 codec { 89 codec { 92 sound-dai = <& 90 sound-dai = <&tohdmitx TOHDMITX_SPDIF_IN_B>; 93 }; 91 }; 94 }; 92 }; 95 93 96 /* hdmi glue */ 94 /* hdmi glue */ 97 dai-link-6 { 95 dai-link-6 { 98 sound-dai = <&tohdmitx 96 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>; 99 97 100 codec { 98 codec { 101 sound-dai = <& 99 sound-dai = <&hdmi_tx>; 102 }; 100 }; 103 }; 101 }; 104 }; 102 }; 105 }; 103 }; 106 104 107 &arb { 105 &arb { 108 status = "okay"; 106 status = "okay"; 109 }; 107 }; 110 108 111 &clkc_audio { 109 &clkc_audio { 112 status = "okay"; 110 status = "okay"; 113 }; 111 }; 114 112 115 &frddr_a { 113 &frddr_a { 116 status = "okay"; 114 status = "okay"; 117 }; 115 }; 118 116 119 &frddr_b { 117 &frddr_b { 120 status = "okay"; 118 status = "okay"; 121 }; 119 }; 122 120 123 &frddr_c { 121 &frddr_c { 124 status = "okay"; 122 status = "okay"; 125 }; 123 }; 126 124 127 &ir { 125 &ir { 128 linux,rc-map-name = "rc-khadas"; 126 linux,rc-map-name = "rc-khadas"; 129 }; 127 }; 130 128 131 &spdifout_a { !! 129 &spdifout { 132 pinctrl-0 = <&spdif_out_h_pins>; 130 pinctrl-0 = <&spdif_out_h_pins>; 133 pinctrl-names = "default"; 131 pinctrl-names = "default"; 134 status = "okay"; 132 status = "okay"; 135 }; 133 }; 136 134 137 &spdifout_b { 135 &spdifout_b { 138 status = "okay"; 136 status = "okay"; 139 }; 137 }; 140 138 141 &tdmif_b { 139 &tdmif_b { 142 status = "okay"; 140 status = "okay"; 143 }; 141 }; 144 142 145 &tdmout_b { 143 &tdmout_b { 146 status = "okay"; 144 status = "okay"; 147 }; 145 }; 148 146 149 &tohdmitx { 147 &tohdmitx { 150 status = "okay"; 148 status = "okay"; 151 }; 149 }; 152 150 153 &uart_A { 151 &uart_A { 154 status = "okay"; 152 status = "okay"; 155 pinctrl-0 = <&uart_a_pins>, <&uart_a_c 153 pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; 156 pinctrl-names = "default"; 154 pinctrl-names = "default"; 157 uart-has-rtscts; 155 uart-has-rtscts; 158 156 159 bluetooth { 157 bluetooth { 160 compatible = "brcm,bcm43438-bt 158 compatible = "brcm,bcm43438-bt"; 161 shutdown-gpios = <&gpio GPIOX_ 159 shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; 162 max-speed = <2000000>; 160 max-speed = <2000000>; 163 clocks = <&wifi32k>; 161 clocks = <&wifi32k>; 164 clock-names = "lpo"; 162 clock-names = "lpo"; 165 }; 163 }; 166 }; 164 }; 167 165 168 &uart_AO { 166 &uart_AO { 169 status = "okay"; 167 status = "okay"; 170 pinctrl-0 = <&uart_ao_a_pins>; 168 pinctrl-0 = <&uart_ao_a_pins>; 171 pinctrl-names = "default"; 169 pinctrl-names = "default"; 172 }; 170 }; 173 171 174 &usb { 172 &usb { 175 status = "okay"; 173 status = "okay"; 176 dr_mode = "host"; 174 dr_mode = "host"; 177 vbus-supply = <&usb_pwr_en>; 175 vbus-supply = <&usb_pwr_en>; 178 }; 176 }; 179 177 180 &usb2_phy0 { 178 &usb2_phy0 { 181 phy-supply = <&usb1_pow>; 179 phy-supply = <&usb1_pow>; 182 }; 180 }; 183 181 184 &usb2_phy1 { 182 &usb2_phy1 { 185 phy-supply = <&usb1_pow>; 183 phy-supply = <&usb1_pow>; 186 }; 184 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.