1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2021 BayLibre SAS
9 #include "meson-sm1-bananapi.dtsi"
10 #include <dt-bindings/sound/meson-g12a-toacodec.h>
11 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
14 compatible = "bananapi,bpi-m5", "amlogic,sm1";
15 model = "Banana Pi BPI-M5";
17 /* TOFIX: handle CVBS_DET on SARADC channel 0 */
19 compatible = "composite-video-connector";
22 cvbs_connector_in: endpoint {
23 remote-endpoint = <&cvbs_vdac_out>;
29 compatible = "amlogic,axg-sound-card";
31 audio-widgets = "Line", "Lineout";
32 audio-aux-devs = <&tdmout_b>, <&tdmout_c>,
33 <&tdmin_a>, <&tdmin_b>, <&tdmin_c>;
34 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
35 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
36 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
37 "TDM_B Playback", "TDMOUT_B OUT",
38 "TDMOUT_C IN 0", "FRDDR_A OUT 2",
39 "TDMOUT_C IN 1", "FRDDR_B OUT 2",
40 "TDMOUT_C IN 2", "FRDDR_C OUT 2",
41 "TDM_C Playback", "TDMOUT_C OUT",
42 "TDMIN_A IN 4", "TDM_B Loopback",
43 "TDMIN_B IN 4", "TDM_B Loopback",
44 "TDMIN_C IN 4", "TDM_B Loopback",
45 "TDMIN_A IN 5", "TDM_C Loopback",
46 "TDMIN_B IN 5", "TDM_C Loopback",
47 "TDMIN_C IN 5", "TDM_C Loopback",
48 "TODDR_A IN 0", "TDMIN_A OUT",
49 "TODDR_B IN 0", "TDMIN_A OUT",
50 "TODDR_C IN 0", "TDMIN_A OUT",
51 "TODDR_A IN 1", "TDMIN_B OUT",
52 "TODDR_B IN 1", "TDMIN_B OUT",
53 "TODDR_C IN 1", "TDMIN_B OUT",
54 "TODDR_A IN 2", "TDMIN_C OUT",
55 "TODDR_B IN 2", "TDMIN_C OUT",
56 "TODDR_C IN 2", "TDMIN_C OUT",
57 "Lineout", "ACODEC LOLP",
58 "Lineout", "ACODEC LORP";
60 clocks = <&clkc CLKID_MPLL2>,
64 assigned-clocks = <&clkc CLKID_MPLL2>,
67 assigned-clock-parents = <0>, <0>, <0>;
68 assigned-clock-rates = <294912000>,
73 sound-dai = <&frddr_a>;
77 sound-dai = <&frddr_b>;
81 sound-dai = <&frddr_c>;
85 sound-dai = <&toddr_a>;
89 sound-dai = <&toddr_b>;
93 sound-dai = <&toddr_c>;
96 /* 8ch hdmi interface */
98 sound-dai = <&tdmif_b>;
100 dai-tdm-slot-tx-mask-0 = <1 1>;
101 dai-tdm-slot-tx-mask-1 = <1 1>;
102 dai-tdm-slot-tx-mask-2 = <1 1>;
103 dai-tdm-slot-tx-mask-3 = <1 1>;
107 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
111 sound-dai = <&toacodec TOACODEC_IN_B>;
115 /* i2s jack output interface */
117 sound-dai = <&tdmif_c>;
119 dai-tdm-slot-tx-mask-0 = <1 1>;
123 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>;
127 sound-dai = <&toacodec TOACODEC_IN_C>;
133 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
136 sound-dai = <&hdmi_tx>;
142 sound-dai = <&toacodec TOACODEC_OUT>;
145 sound-dai = <&acodec>;
152 AVDD-supply = <&vddao_1v8>;
162 cvbs_vdac_out: endpoint {
163 remote-endpoint = <&cvbs_connector_in>;