1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 * Copyright (c) 2019 Christian Hewitt <christianshewitt@gmail.com>
8 #include <dt-bindings/sound/meson-g12a-tohdmitx.h>
11 vddcpu_a: regulator-vddcpu-a {
15 compatible = "pwm-regulator";
17 regulator-name = "VDDCPU_A";
18 regulator-min-microvolt = <690000>;
19 regulator-max-microvolt = <1050000>;
21 vin-supply = <&dc_in>;
23 pwms = <&pwm_ab 0 1250 0>;
24 pwm-dutycycle-range = <100 0>;
30 vddcpu_b: regulator-vddcpu-b {
32 * Silergy SY8030DEC Regulator.
34 compatible = "pwm-regulator";
36 regulator-name = "VDDCPU_B";
37 regulator-min-microvolt = <690000>;
38 regulator-max-microvolt = <1050000>;
40 vin-supply = <&vsys_3v3>;
42 pwms = <&pwm_AO_cd 1 1250 0>;
43 pwm-dutycycle-range = <100 0>;
50 compatible = "amlogic,axg-sound-card";
51 model = "G12A-KHADAS-VIM3";
52 audio-aux-devs = <&tdmout_b>;
53 audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
54 "TDMOUT_B IN 1", "FRDDR_B OUT 1",
55 "TDMOUT_B IN 2", "FRDDR_C OUT 1",
56 "TDM_B Playback", "TDMOUT_B OUT";
58 assigned-clocks = <&clkc CLKID_MPLL2>,
61 assigned-clock-parents = <0>, <0>, <0>;
62 assigned-clock-rates = <294912000>,
68 sound-dai = <&frddr_a>;
72 sound-dai = <&frddr_b>;
76 sound-dai = <&frddr_c>;
79 /* 8ch hdmi interface */
81 sound-dai = <&tdmif_b>;
83 dai-tdm-slot-tx-mask-0 = <1 1>;
84 dai-tdm-slot-tx-mask-1 = <1 1>;
85 dai-tdm-slot-tx-mask-2 = <1 1>;
86 dai-tdm-slot-tx-mask-3 = <1 1>;
90 sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
96 sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
99 sound-dai = <&hdmi_tx>;
114 cpu-supply = <&vddcpu_b>;
115 operating-points-v2 = <&cpu_opp_table_0>;
116 clocks = <&clkc CLKID_CPU_CLK>;
117 clock-latency = <50000>;
121 cpu-supply = <&vddcpu_b>;
122 operating-points-v2 = <&cpu_opp_table_0>;
123 clocks = <&clkc CLKID_CPU_CLK>;
124 clock-latency = <50000>;
128 cpu-supply = <&vddcpu_a>;
129 operating-points-v2 = <&cpub_opp_table_1>;
130 clocks = <&clkc CLKID_CPUB_CLK>;
131 clock-latency = <50000>;
135 cpu-supply = <&vddcpu_a>;
136 operating-points-v2 = <&cpub_opp_table_1>;
137 clocks = <&clkc CLKID_CPUB_CLK>;
138 clock-latency = <50000>;
142 cpu-supply = <&vddcpu_a>;
143 operating-points-v2 = <&cpub_opp_table_1>;
144 clocks = <&clkc CLKID_CPUB_CLK>;
145 clock-latency = <50000>;
149 cpu-supply = <&vddcpu_a>;
150 operating-points-v2 = <&cpub_opp_table_1>;
151 clocks = <&clkc CLKID_CPUB_CLK>;
152 clock-latency = <50000>;
164 pinctrl-0 = <&pwm_a_e_pins>;
165 pinctrl-names = "default";
167 clock-names = "clkin0";
172 pinctrl-0 = <&pwm_ao_d_e_pins>;
173 pinctrl-names = "default";
175 clock-names = "clkin1";