mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
ARM: dts: sync amlogic G12A/SM1 DT from Linux 5.9-rc1
This imports the G12A & SM1 SoC and boards DT changes from the Linux commit 9123e3a74ec7 ("Linux 5.9-rc1"). Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Tested-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
7570ad6b6e
commit
1110e49e34
|
@ -52,6 +52,39 @@
|
||||||
secure-monitor = <&sm>;
|
secure-monitor = <&sm>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gpu_opp_table: gpu-opp-table {
|
||||||
|
compatible = "operating-points-v2";
|
||||||
|
|
||||||
|
opp-124999998 {
|
||||||
|
opp-hz = /bits/ 64 <124999998>;
|
||||||
|
opp-microvolt = <800000>;
|
||||||
|
};
|
||||||
|
opp-249999996 {
|
||||||
|
opp-hz = /bits/ 64 <249999996>;
|
||||||
|
opp-microvolt = <800000>;
|
||||||
|
};
|
||||||
|
opp-285714281 {
|
||||||
|
opp-hz = /bits/ 64 <285714281>;
|
||||||
|
opp-microvolt = <800000>;
|
||||||
|
};
|
||||||
|
opp-399999994 {
|
||||||
|
opp-hz = /bits/ 64 <399999994>;
|
||||||
|
opp-microvolt = <800000>;
|
||||||
|
};
|
||||||
|
opp-499999992 {
|
||||||
|
opp-hz = /bits/ 64 <499999992>;
|
||||||
|
opp-microvolt = <800000>;
|
||||||
|
};
|
||||||
|
opp-666666656 {
|
||||||
|
opp-hz = /bits/ 64 <666666656>;
|
||||||
|
opp-microvolt = <800000>;
|
||||||
|
};
|
||||||
|
opp-799999987 {
|
||||||
|
opp-hz = /bits/ 64 <799999987>;
|
||||||
|
opp-microvolt = <800000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
psci {
|
psci {
|
||||||
compatible = "arm,psci-1.0";
|
compatible = "arm,psci-1.0";
|
||||||
method = "smc";
|
method = "smc";
|
||||||
|
@ -185,8 +218,10 @@
|
||||||
interrupt-names = "macirq";
|
interrupt-names = "macirq";
|
||||||
clocks = <&clkc CLKID_ETH>,
|
clocks = <&clkc CLKID_ETH>,
|
||||||
<&clkc CLKID_FCLK_DIV2>,
|
<&clkc CLKID_FCLK_DIV2>,
|
||||||
<&clkc CLKID_MPLL2>;
|
<&clkc CLKID_MPLL2>,
|
||||||
clock-names = "stmmaceth", "clkin0", "clkin1";
|
<&clkc CLKID_FCLK_DIV2>;
|
||||||
|
clock-names = "stmmaceth", "clkin0", "clkin1",
|
||||||
|
"timing-adjustment";
|
||||||
rx-fifo-depth = <4096>;
|
rx-fifo-depth = <4096>;
|
||||||
tx-fifo-depth = <2048>;
|
tx-fifo-depth = <2048>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
|
@ -2360,21 +2395,7 @@
|
||||||
interrupt-names = "job", "mmu", "gpu";
|
interrupt-names = "job", "mmu", "gpu";
|
||||||
clocks = <&clkc CLKID_MALI>;
|
clocks = <&clkc CLKID_MALI>;
|
||||||
resets = <&reset RESET_DVALIN_CAPB3>, <&reset RESET_DVALIN>;
|
resets = <&reset RESET_DVALIN_CAPB3>, <&reset RESET_DVALIN>;
|
||||||
|
operating-points-v2 = <&gpu_opp_table>;
|
||||||
/*
|
|
||||||
* Mali clocking is provided by two identical clock paths
|
|
||||||
* MALI_0 and MALI_1 muxed to a single clock by a glitch
|
|
||||||
* free mux to safely change frequency while running.
|
|
||||||
*/
|
|
||||||
assigned-clocks = <&clkc CLKID_MALI_0_SEL>,
|
|
||||||
<&clkc CLKID_MALI_0>,
|
|
||||||
<&clkc CLKID_MALI>; /* Glitch free mux */
|
|
||||||
assigned-clock-parents = <&clkc CLKID_FCLK_DIV2P5>,
|
|
||||||
<0>, /* Do Nothing */
|
|
||||||
<&clkc CLKID_MALI_0>;
|
|
||||||
assigned-clock-rates = <0>, /* Do Nothing */
|
|
||||||
<800000000>,
|
|
||||||
<0>; /* Do Nothing */
|
|
||||||
#cooling-cells = <2>;
|
#cooling-cells = <2>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include "meson-g12b-s922x.dtsi"
|
#include "meson-g12b-s922x.dtsi"
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||||
|
#include <dt-bindings/sound/meson-g12a-toacodec.h>
|
||||||
#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
|
#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
@ -20,6 +21,14 @@
|
||||||
ethernet0 = ðmac;
|
ethernet0 = ðmac;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dioo2133: audio-amplifier-0 {
|
||||||
|
compatible = "simple-audio-amplifier";
|
||||||
|
enable-gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>;
|
||||||
|
VCC-supply = <&vcc_5v>;
|
||||||
|
sound-name-prefix = "U19";
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
@ -209,11 +218,42 @@
|
||||||
sound {
|
sound {
|
||||||
compatible = "amlogic,axg-sound-card";
|
compatible = "amlogic,axg-sound-card";
|
||||||
model = "G12B-ODROID-N2";
|
model = "G12B-ODROID-N2";
|
||||||
audio-aux-devs = <&tdmout_b>;
|
audio-widgets = "Line", "Lineout";
|
||||||
|
audio-aux-devs = <&tdmout_b>, <&tdmout_c>, <&tdmin_a>,
|
||||||
|
<&tdmin_b>, <&tdmin_c>, <&tdmin_lb>,
|
||||||
|
<&dioo2133>;
|
||||||
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
|
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
|
||||||
"TDMOUT_B IN 1", "FRDDR_B OUT 1",
|
"TDMOUT_B IN 1", "FRDDR_B OUT 1",
|
||||||
"TDMOUT_B IN 2", "FRDDR_C OUT 1",
|
"TDMOUT_B IN 2", "FRDDR_C OUT 1",
|
||||||
"TDM_B Playback", "TDMOUT_B OUT";
|
"TDM_B Playback", "TDMOUT_B OUT",
|
||||||
|
"TDMOUT_C IN 0", "FRDDR_A OUT 2",
|
||||||
|
"TDMOUT_C IN 1", "FRDDR_B OUT 2",
|
||||||
|
"TDMOUT_C IN 2", "FRDDR_C OUT 2",
|
||||||
|
"TDM_C Playback", "TDMOUT_C OUT",
|
||||||
|
"TDMIN_A IN 4", "TDM_B Loopback",
|
||||||
|
"TDMIN_B IN 4", "TDM_B Loopback",
|
||||||
|
"TDMIN_C IN 4", "TDM_B Loopback",
|
||||||
|
"TDMIN_LB IN 1", "TDM_B Loopback",
|
||||||
|
"TDMIN_A IN 5", "TDM_C Loopback",
|
||||||
|
"TDMIN_B IN 5", "TDM_C Loopback",
|
||||||
|
"TDMIN_C IN 5", "TDM_C Loopback",
|
||||||
|
"TDMIN_LB IN 2", "TDM_C Loopback",
|
||||||
|
"TODDR_A IN 0", "TDMIN_A OUT",
|
||||||
|
"TODDR_B IN 0", "TDMIN_A OUT",
|
||||||
|
"TODDR_C IN 0", "TDMIN_A OUT",
|
||||||
|
"TODDR_A IN 1", "TDMIN_B OUT",
|
||||||
|
"TODDR_B IN 1", "TDMIN_B OUT",
|
||||||
|
"TODDR_C IN 1", "TDMIN_B OUT",
|
||||||
|
"TODDR_A IN 2", "TDMIN_C OUT",
|
||||||
|
"TODDR_B IN 2", "TDMIN_C OUT",
|
||||||
|
"TODDR_C IN 2", "TDMIN_C OUT",
|
||||||
|
"TODDR_A IN 6", "TDMIN_LB OUT",
|
||||||
|
"TODDR_B IN 6", "TDMIN_LB OUT",
|
||||||
|
"TODDR_C IN 6", "TDMIN_LB OUT",
|
||||||
|
"U19 INL", "ACODEC LOLP",
|
||||||
|
"U19 INR", "ACODEC LORP",
|
||||||
|
"Lineout", "U19 OUTL",
|
||||||
|
"Lineout", "U19 OUTR";
|
||||||
|
|
||||||
assigned-clocks = <&clkc CLKID_MPLL2>,
|
assigned-clocks = <&clkc CLKID_MPLL2>,
|
||||||
<&clkc CLKID_MPLL0>,
|
<&clkc CLKID_MPLL0>,
|
||||||
|
@ -236,8 +276,20 @@
|
||||||
sound-dai = <&frddr_c>;
|
sound-dai = <&frddr_c>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* 8ch hdmi interface */
|
|
||||||
dai-link-3 {
|
dai-link-3 {
|
||||||
|
sound-dai = <&toddr_a>;
|
||||||
|
};
|
||||||
|
|
||||||
|
dai-link-4 {
|
||||||
|
sound-dai = <&toddr_b>;
|
||||||
|
};
|
||||||
|
|
||||||
|
dai-link-5 {
|
||||||
|
sound-dai = <&toddr_c>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 8ch hdmi interface */
|
||||||
|
dai-link-6 {
|
||||||
sound-dai = <&tdmif_b>;
|
sound-dai = <&tdmif_b>;
|
||||||
dai-format = "i2s";
|
dai-format = "i2s";
|
||||||
dai-tdm-slot-tx-mask-0 = <1 1>;
|
dai-tdm-slot-tx-mask-0 = <1 1>;
|
||||||
|
@ -246,22 +298,56 @@
|
||||||
dai-tdm-slot-tx-mask-3 = <1 1>;
|
dai-tdm-slot-tx-mask-3 = <1 1>;
|
||||||
mclk-fs = <256>;
|
mclk-fs = <256>;
|
||||||
|
|
||||||
codec {
|
codec-0 {
|
||||||
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
|
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
codec-1 {
|
||||||
|
sound-dai = <&toacodec TOACODEC_IN_B>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/* i2s jack output interface */
|
||||||
|
dai-link-7 {
|
||||||
|
sound-dai = <&tdmif_c>;
|
||||||
|
dai-format = "i2s";
|
||||||
|
dai-tdm-slot-tx-mask-0 = <1 1>;
|
||||||
|
mclk-fs = <256>;
|
||||||
|
|
||||||
|
codec-0 {
|
||||||
|
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_C>;
|
||||||
|
};
|
||||||
|
|
||||||
|
codec-1 {
|
||||||
|
sound-dai = <&toacodec TOACODEC_IN_C>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/* hdmi glue */
|
/* hdmi glue */
|
||||||
dai-link-4 {
|
dai-link-8 {
|
||||||
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
|
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
|
||||||
|
|
||||||
codec {
|
codec {
|
||||||
sound-dai = <&hdmi_tx>;
|
sound-dai = <&hdmi_tx>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* acodec glue */
|
||||||
|
dai-link-9 {
|
||||||
|
sound-dai = <&toacodec TOACODEC_OUT>;
|
||||||
|
|
||||||
|
codec {
|
||||||
|
sound-dai = <&acodec>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&acodec {
|
||||||
|
AVDD-supply = <&vddao_1v8>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&arb {
|
&arb {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
@ -476,14 +562,54 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&tdmif_c {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tdmin_a {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tdmin_b {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tdmin_c {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tdmin_lb {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&tdmout_b {
|
&tdmout_b {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&tdmout_c {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&toacodec {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&tohdmitx {
|
&tohdmitx {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&toddr_a {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&toddr_b {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&toddr_c {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&uart_AO {
|
&uart_AO {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-0 = <&uart_ao_a_pins>;
|
pinctrl-0 = <&uart_ao_a_pins>;
|
||||||
|
|
|
@ -183,6 +183,23 @@
|
||||||
hdmi-phandle = <&hdmi_tx>;
|
hdmi-phandle = <&hdmi_tx>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&cpu_thermal {
|
||||||
|
trips {
|
||||||
|
cpu_active: cpu-active {
|
||||||
|
temperature = <80000>; /* millicelsius */
|
||||||
|
hysteresis = <2000>; /* millicelsius */
|
||||||
|
type = "active";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cooling-maps {
|
||||||
|
map {
|
||||||
|
trip = <&cpu_active>;
|
||||||
|
cooling-device = <&khadas_mcu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
&ext_mdio {
|
&ext_mdio {
|
||||||
external_phy: ethernet-phy@0 {
|
external_phy: ethernet-phy@0 {
|
||||||
/* Realtek RTL8211F (0x001cc916) */
|
/* Realtek RTL8211F (0x001cc916) */
|
||||||
|
@ -222,6 +239,12 @@
|
||||||
pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;
|
pinctrl-0 = <&i2c_ao_sck_pins>, <&i2c_ao_sda_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
khadas_mcu: system-controller@18 {
|
||||||
|
compatible = "khadas,mcu";
|
||||||
|
reg = <0x18>;
|
||||||
|
#cooling-cells = <2>;
|
||||||
|
};
|
||||||
|
|
||||||
gpio_expander: gpio-controller@20 {
|
gpio_expander: gpio-controller@20 {
|
||||||
compatible = "ti,tca6408";
|
compatible = "ti,tca6408";
|
||||||
reg = <0x20>;
|
reg = <0x20>;
|
||||||
|
@ -270,7 +293,6 @@
|
||||||
|
|
||||||
bus-width = <4>;
|
bus-width = <4>;
|
||||||
cap-sd-highspeed;
|
cap-sd-highspeed;
|
||||||
sd-uhs-sdr50;
|
|
||||||
max-frequency = <100000000>;
|
max-frequency = <100000000>;
|
||||||
|
|
||||||
non-removable;
|
non-removable;
|
||||||
|
@ -337,7 +359,7 @@
|
||||||
pinctrl-0 = <&nor_pins>;
|
pinctrl-0 = <&nor_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
w25q32: spi-flash@0 {
|
w25q128: spi-flash@0 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
compatible = "winbond,w25q128fw", "jedec,spi-nor";
|
compatible = "winbond,w25q128fw", "jedec,spi-nor";
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#include "meson-sm1.dtsi"
|
#include "meson-sm1.dtsi"
|
||||||
#include "meson-khadas-vim3.dtsi"
|
#include "meson-khadas-vim3.dtsi"
|
||||||
|
#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "khadas,vim3l", "amlogic,sm1";
|
compatible = "khadas,vim3l", "amlogic,sm1";
|
||||||
|
@ -31,6 +32,69 @@
|
||||||
regulator-boot-on;
|
regulator-boot-on;
|
||||||
regulator-always-on;
|
regulator-always-on;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sound {
|
||||||
|
compatible = "amlogic,axg-sound-card";
|
||||||
|
model = "SM1-KHADAS-VIM3L";
|
||||||
|
audio-aux-devs = <&tdmout_a>;
|
||||||
|
audio-routing = "TDMOUT_A IN 0", "FRDDR_A OUT 0",
|
||||||
|
"TDMOUT_A IN 1", "FRDDR_B OUT 0",
|
||||||
|
"TDMOUT_A IN 2", "FRDDR_C OUT 0",
|
||||||
|
"TDM_A Playback", "TDMOUT_A OUT";
|
||||||
|
|
||||||
|
assigned-clocks = <&clkc CLKID_MPLL2>,
|
||||||
|
<&clkc CLKID_MPLL0>,
|
||||||
|
<&clkc CLKID_MPLL1>;
|
||||||
|
assigned-clock-parents = <0>, <0>, <0>;
|
||||||
|
assigned-clock-rates = <294912000>,
|
||||||
|
<270950400>,
|
||||||
|
<393216000>;
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
dai-link-0 {
|
||||||
|
sound-dai = <&frddr_a>;
|
||||||
|
};
|
||||||
|
|
||||||
|
dai-link-1 {
|
||||||
|
sound-dai = <&frddr_b>;
|
||||||
|
};
|
||||||
|
|
||||||
|
dai-link-2 {
|
||||||
|
sound-dai = <&frddr_c>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 8ch hdmi interface */
|
||||||
|
dai-link-3 {
|
||||||
|
sound-dai = <&tdmif_a>;
|
||||||
|
dai-format = "i2s";
|
||||||
|
dai-tdm-slot-tx-mask-0 = <1 1>;
|
||||||
|
dai-tdm-slot-tx-mask-1 = <1 1>;
|
||||||
|
dai-tdm-slot-tx-mask-2 = <1 1>;
|
||||||
|
dai-tdm-slot-tx-mask-3 = <1 1>;
|
||||||
|
mclk-fs = <256>;
|
||||||
|
|
||||||
|
codec {
|
||||||
|
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_A>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/* hdmi glue */
|
||||||
|
dai-link-4 {
|
||||||
|
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
|
||||||
|
|
||||||
|
codec {
|
||||||
|
sound-dai = <&hdmi_tx>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&arb {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&clkc_audio {
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&cpu0 {
|
&cpu0 {
|
||||||
|
@ -61,6 +125,18 @@
|
||||||
clock-latency = <50000>;
|
clock-latency = <50000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&frddr_a {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&frddr_b {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&frddr_c {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&pwm_AO_cd {
|
&pwm_AO_cd {
|
||||||
pinctrl-0 = <&pwm_ao_d_e_pins>;
|
pinctrl-0 = <&pwm_ao_d_e_pins>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
@ -88,8 +164,24 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&sd_emmc_a {
|
||||||
|
sd-uhs-sdr50;
|
||||||
|
};
|
||||||
|
|
||||||
&usb {
|
&usb {
|
||||||
phys = <&usb2_phy0>, <&usb2_phy1>;
|
phys = <&usb2_phy0>, <&usb2_phy1>;
|
||||||
phy-names = "usb2-phy0", "usb2-phy1";
|
phy-names = "usb2-phy0", "usb2-phy1";
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
&tdmif_a {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tdmout_a {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tohdmitx {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "meson-sm1.dtsi"
|
#include "meson-sm1.dtsi"
|
||||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||||
#include <dt-bindings/leds/common.h>
|
#include <dt-bindings/leds/common.h>
|
||||||
|
#include <dt-bindings/sound/meson-g12a-tohdmitx.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "hardkernel,odroid-c4", "amlogic,sm1";
|
compatible = "hardkernel,odroid-c4", "amlogic,sm1";
|
||||||
|
@ -186,6 +187,69 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sound {
|
||||||
|
compatible = "amlogic,axg-sound-card";
|
||||||
|
model = "SM1-ODROID-C4";
|
||||||
|
audio-aux-devs = <&tdmout_b>;
|
||||||
|
audio-routing = "TDMOUT_B IN 0", "FRDDR_A OUT 1",
|
||||||
|
"TDMOUT_B IN 1", "FRDDR_B OUT 1",
|
||||||
|
"TDMOUT_B IN 2", "FRDDR_C OUT 1",
|
||||||
|
"TDM_B Playback", "TDMOUT_B OUT";
|
||||||
|
|
||||||
|
assigned-clocks = <&clkc CLKID_MPLL2>,
|
||||||
|
<&clkc CLKID_MPLL0>,
|
||||||
|
<&clkc CLKID_MPLL1>;
|
||||||
|
assigned-clock-parents = <0>, <0>, <0>;
|
||||||
|
assigned-clock-rates = <294912000>,
|
||||||
|
<270950400>,
|
||||||
|
<393216000>;
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
dai-link-0 {
|
||||||
|
sound-dai = <&frddr_a>;
|
||||||
|
};
|
||||||
|
|
||||||
|
dai-link-1 {
|
||||||
|
sound-dai = <&frddr_b>;
|
||||||
|
};
|
||||||
|
|
||||||
|
dai-link-2 {
|
||||||
|
sound-dai = <&frddr_c>;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 8ch hdmi interface */
|
||||||
|
dai-link-3 {
|
||||||
|
sound-dai = <&tdmif_b>;
|
||||||
|
dai-format = "i2s";
|
||||||
|
dai-tdm-slot-tx-mask-0 = <1 1>;
|
||||||
|
dai-tdm-slot-tx-mask-1 = <1 1>;
|
||||||
|
dai-tdm-slot-tx-mask-2 = <1 1>;
|
||||||
|
dai-tdm-slot-tx-mask-3 = <1 1>;
|
||||||
|
mclk-fs = <256>;
|
||||||
|
|
||||||
|
codec {
|
||||||
|
sound-dai = <&tohdmitx TOHDMITX_I2S_IN_B>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/* hdmi glue */
|
||||||
|
dai-link-4 {
|
||||||
|
sound-dai = <&tohdmitx TOHDMITX_I2S_OUT>;
|
||||||
|
|
||||||
|
codec {
|
||||||
|
sound-dai = <&hdmi_tx>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&arb {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&clkc_audio {
|
||||||
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&cpu0 {
|
&cpu0 {
|
||||||
|
@ -237,6 +301,18 @@
|
||||||
amlogic,tx-delay-ns = <2>;
|
amlogic,tx-delay-ns = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&frddr_a {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&frddr_b {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&frddr_c {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&gpio {
|
&gpio {
|
||||||
gpio-line-names =
|
gpio-line-names =
|
||||||
/* GPIOZ */
|
/* GPIOZ */
|
||||||
|
@ -381,6 +457,18 @@
|
||||||
vqmmc-supply = <&flash_1v8>;
|
vqmmc-supply = <&flash_1v8>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&tdmif_b {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tdmout_b {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&tohdmitx {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&uart_AO {
|
&uart_AO {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-0 = <&uart_ao_a_pins>;
|
pinctrl-0 = <&uart_ao_a_pins>;
|
||||||
|
|
|
@ -145,5 +145,7 @@
|
||||||
#define CLKID_CPU3_CLK 255
|
#define CLKID_CPU3_CLK 255
|
||||||
#define CLKID_SPICC0_SCLK 258
|
#define CLKID_SPICC0_SCLK 258
|
||||||
#define CLKID_SPICC1_SCLK 261
|
#define CLKID_SPICC1_SCLK 261
|
||||||
|
#define CLKID_NNA_AXI_CLK 264
|
||||||
|
#define CLKID_NNA_CORE_CLK 267
|
||||||
|
|
||||||
#endif /* __G12A_CLKC_H */
|
#endif /* __G12A_CLKC_H */
|
||||||
|
|
10
include/dt-bindings/sound/meson-g12a-toacodec.h
Normal file
10
include/dt-bindings/sound/meson-g12a-toacodec.h
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||||||
|
#ifndef __DT_MESON_G12A_TOACODEC_H
|
||||||
|
#define __DT_MESON_G12A_TOACODEC_H
|
||||||
|
|
||||||
|
#define TOACODEC_IN_A 0
|
||||||
|
#define TOACODEC_IN_B 1
|
||||||
|
#define TOACODEC_IN_C 2
|
||||||
|
#define TOACODEC_OUT 3
|
||||||
|
|
||||||
|
#endif /* __DT_MESON_G12A_TOACODEC_H */
|
Loading…
Reference in New Issue
Block a user