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