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