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