| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2016 Endless Computers, Inc. |
| 4 |
* Author: Carlo Caione <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
|
| 9 |
#include "meson-gxl-s905x-p212.dtsi" |
| 10 |
#include <dt-bindings/sound/meson-aiu.h> |
| 11 |
|
| 12 |
/ { |
| 13 |
compatible = "amlogic,p212", "amlogic,s905x", "amlogic,meson-gxl"; |
| 14 |
model = "Amlogic Meson GXL (S905X) P212 Development Board"; |
| 15 |
|
| 16 |
dio2133: analog-amplifier { |
| 17 |
compatible = "simple-audio-amplifier"; |
| 18 |
sound-name-prefix = "AU2"; |
| 19 |
VCC-supply = <&hdmi_5v>; |
| 20 |
enable-gpios = <&gpio GPIOH_5 GPIO_ACTIVE_HIGH>; |
| 21 |
}; |
| 22 |
|
| 23 |
cvbs-connector { |
| 24 |
compatible = "composite-video-connector"; |
| 25 |
|
| 26 |
port { |
| 27 |
cvbs_connector_in: endpoint { |
| 28 |
remote-endpoint = <&cvbs_vdac_out>; |
| 29 |
}; |
| 30 |
}; |
| 31 |
}; |
| 32 |
|
| 33 |
hdmi-connector { |
| 34 |
compatible = "hdmi-connector"; |
| 35 |
type = "a"; |
| 36 |
|
| 37 |
port { |
| 38 |
hdmi_connector_in: endpoint { |
| 39 |
remote-endpoint = <&hdmi_tx_tmds_out>; |
| 40 |
}; |
| 41 |
}; |
| 42 |
}; |
| 43 |
|
| 44 |
sound { |
| 45 |
compatible = "amlogic,gx-sound-card"; |
| 46 |
model = "S905X-P212"; |
| 47 |
audio-aux-devs = <&dio2133>; |
| 48 |
audio-widgets = "Line", "Lineout"; |
| 49 |
audio-routing = "AU2 INL", "ACODEC LOLN", |
| 50 |
"AU2 INR", "ACODEC LORN", |
| 51 |
"Lineout", "AU2 OUTL", |
| 52 |
"Lineout", "AU2 OUTR"; |
| 53 |
clocks = <&clkc CLKID_MPLL0>, |
| 54 |
<&clkc CLKID_MPLL1>, |
| 55 |
<&clkc CLKID_MPLL2>; |
| 56 |
|
| 57 |
assigned-clocks = <&clkc CLKID_MPLL0>, |
| 58 |
<&clkc CLKID_MPLL1>, |
| 59 |
<&clkc CLKID_MPLL2>; |
| 60 |
assigned-clock-rates = <294912000>, |
| 61 |
<270950400>, |
| 62 |
<393216000>; |
| 63 |
dai-link-0 { |
| 64 |
sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>; |
| 65 |
}; |
| 66 |
|
| 67 |
dai-link-1 { |
| 68 |
sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>; |
| 69 |
dai-format = "i2s"; |
| 70 |
mclk-fs = <256>; |
| 71 |
|
| 72 |
codec-0 { |
| 73 |
sound-dai = <&aiu AIU_HDMI CTRL_I2S>; |
| 74 |
}; |
| 75 |
|
| 76 |
codec-1 { |
| 77 |
sound-dai = <&aiu AIU_ACODEC CTRL_I2S>; |
| 78 |
}; |
| 79 |
}; |
| 80 |
|
| 81 |
dai-link-2 { |
| 82 |
sound-dai = <&aiu AIU_HDMI CTRL_OUT>; |
| 83 |
|
| 84 |
codec-0 { |
| 85 |
sound-dai = <&hdmi_tx>; |
| 86 |
}; |
| 87 |
}; |
| 88 |
|
| 89 |
dai-link-3 { |
| 90 |
sound-dai = <&aiu AIU_ACODEC CTRL_OUT>; |
| 91 |
|
| 92 |
codec-0 { |
| 93 |
sound-dai = <&acodec>; |
| 94 |
}; |
| 95 |
}; |
| 96 |
}; |
| 97 |
}; |
| 98 |
|
| 99 |
&acodec { |
| 100 |
AVDD-supply = <&vddio_ao18>; |
| 101 |
status = "okay"; |
| 102 |
}; |
| 103 |
|
| 104 |
&aiu { |
| 105 |
status = "okay"; |
| 106 |
}; |
| 107 |
|
| 108 |
&cec_AO { |
| 109 |
status = "okay"; |
| 110 |
pinctrl-0 = <&ao_cec_pins>; |
| 111 |
pinctrl-names = "default"; |
| 112 |
hdmi-phandle = <&hdmi_tx>; |
| 113 |
}; |
| 114 |
|
| 115 |
&cvbs_vdac_port { |
| 116 |
cvbs_vdac_out: endpoint { |
| 117 |
remote-endpoint = <&cvbs_connector_in>; |
| 118 |
}; |
| 119 |
}; |
| 120 |
|
| 121 |
&hdmi_tx { |
| 122 |
status = "okay"; |
| 123 |
pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; |
| 124 |
pinctrl-names = "default"; |
| 125 |
hdmi-supply = <&hdmi_5v>; |
| 126 |
}; |
| 127 |
|
| 128 |
&hdmi_tx_tmds_port { |
| 129 |
hdmi_tx_tmds_out: endpoint { |
| 130 |
remote-endpoint = <&hdmi_connector_in>; |
| 131 |
}; |
| 132 |
}; |
| 133 |
|
| 134 |
/* This UART is brought out to the DB9 connector */ |
| 135 |
&uart_AO { |
| 136 |
status = "okay"; |
| 137 |
}; |