1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) << 2 /* 1 /* 3 * Copyright (c) 2016 Endless Computers, Inc. 2 * Copyright (c) 2016 Endless Computers, Inc. 4 * Author: Carlo Caione <carlo@endlessm.com> 3 * Author: Carlo Caione <carlo@endlessm.com> >> 4 * >> 5 * This file is dual-licensed: you can use it either under the terms >> 6 * of the GPL or the X11 license, at your option. Note that this dual >> 7 * licensing only applies to this file, and not this project as a >> 8 * whole. >> 9 * >> 10 * a) This library is free software; you can redistribute it and/or >> 11 * modify it under the terms of the GNU General Public License as >> 12 * published by the Free Software Foundation; either version 2 of the >> 13 * License, or (at your option) any later version. >> 14 * >> 15 * This library is distributed in the hope that it will be useful, >> 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 18 * GNU General Public License for more details. >> 19 * >> 20 * Or, alternatively, >> 21 * >> 22 * b) Permission is hereby granted, free of charge, to any person >> 23 * obtaining a copy of this software and associated documentation >> 24 * files (the "Software"), to deal in the Software without >> 25 * restriction, including without limitation the rights to use, >> 26 * copy, modify, merge, publish, distribute, sublicense, and/or >> 27 * sell copies of the Software, and to permit persons to whom the >> 28 * Software is furnished to do so, subject to the following >> 29 * conditions: >> 30 * >> 31 * The above copyright notice and this permission notice shall be >> 32 * included in all copies or substantial portions of the Software. >> 33 * >> 34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, >> 35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES >> 36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND >> 37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT >> 38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, >> 39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING >> 40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR >> 41 * OTHER DEALINGS IN THE SOFTWARE. 5 */ 42 */ 6 43 7 /dts-v1/; 44 /dts-v1/; 8 45 9 #include "meson-gxl-s905x-p212.dtsi" 46 #include "meson-gxl-s905x-p212.dtsi" 10 #include <dt-bindings/sound/meson-aiu.h> << 11 47 12 / { 48 / { 13 compatible = "amlogic,p212", "amlogic, 49 compatible = "amlogic,p212", "amlogic,s905x", "amlogic,meson-gxl"; 14 model = "Amlogic Meson GXL (S905X) P21 50 model = "Amlogic Meson GXL (S905X) P212 Development Board"; 15 51 16 dio2133: analog-amplifier { << 17 compatible = "simple-audio-amp << 18 sound-name-prefix = "AU2"; << 19 VCC-supply = <&hdmi_5v>; << 20 enable-gpios = <&gpio GPIOH_5 << 21 }; << 22 << 23 cvbs-connector { 52 cvbs-connector { 24 compatible = "composite-video- 53 compatible = "composite-video-connector"; 25 54 26 port { 55 port { 27 cvbs_connector_in: end 56 cvbs_connector_in: endpoint { 28 remote-endpoin 57 remote-endpoint = <&cvbs_vdac_out>; 29 }; 58 }; 30 }; 59 }; 31 }; 60 }; 32 << 33 hdmi-connector { << 34 compatible = "hdmi-connector"; << 35 type = "a"; << 36 << 37 port { << 38 hdmi_connector_in: end << 39 remote-endpoin << 40 }; << 41 }; << 42 }; << 43 << 44 sound { << 45 compatible = "amlogic,gx-sound << 46 model = "S905X-P212"; << 47 audio-aux-devs = <&dio2133>; << 48 audio-widgets = "Line", "Lineo << 49 audio-routing = "AU2 INL", "AC << 50 "AU2 INR", "AC << 51 "Lineout", "AU << 52 "Lineout", "AU << 53 clocks = <&clkc CLKID_MPLL0>, << 54 <&clkc CLKID_MPLL1>, << 55 <&clkc CLKID_MPLL2>; << 56 << 57 assigned-clocks = <&clkc CLKID << 58 <&clkc CLKID << 59 <&clkc CLKID << 60 assigned-clock-parents = <0>, << 61 assigned-clock-rates = <294912 << 62 <270950 << 63 <393216 << 64 dai-link-0 { << 65 sound-dai = <&aiu AIU_ << 66 }; << 67 << 68 dai-link-1 { << 69 sound-dai = <&aiu AIU_ << 70 dai-format = "i2s"; << 71 mclk-fs = <256>; << 72 << 73 codec-0 { << 74 sound-dai = <& << 75 }; << 76 << 77 codec-1 { << 78 sound-dai = <& << 79 }; << 80 }; << 81 << 82 dai-link-2 { << 83 sound-dai = <&aiu AIU_ << 84 << 85 codec-0 { << 86 sound-dai = <& << 87 }; << 88 }; << 89 << 90 dai-link-3 { << 91 sound-dai = <&aiu AIU_ << 92 << 93 codec-0 { << 94 sound-dai = <& << 95 }; << 96 }; << 97 }; << 98 }; << 99 << 100 &acodec { << 101 AVDD-supply = <&vddio_ao18>; << 102 status = "okay"; << 103 }; << 104 << 105 &aiu { << 106 status = "okay"; << 107 }; << 108 << 109 &cec_AO { << 110 status = "okay"; << 111 pinctrl-0 = <&ao_cec_pins>; << 112 pinctrl-names = "default"; << 113 hdmi-phandle = <&hdmi_tx>; << 114 }; 61 }; 115 62 116 &cvbs_vdac_port { 63 &cvbs_vdac_port { 117 cvbs_vdac_out: endpoint { 64 cvbs_vdac_out: endpoint { 118 remote-endpoint = <&cvbs_conne 65 remote-endpoint = <&cvbs_connector_in>; 119 }; << 120 }; << 121 << 122 &hdmi_tx { << 123 status = "okay"; << 124 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i << 125 pinctrl-names = "default"; << 126 hdmi-supply = <&hdmi_5v>; << 127 }; << 128 << 129 &hdmi_tx_tmds_port { << 130 hdmi_tx_tmds_out: endpoint { << 131 remote-endpoint = <&hdmi_conne << 132 }; 66 }; 133 }; 67 }; 134 68 135 /* This UART is brought out to the DB9 connect 69 /* This UART is brought out to the DB9 connector */ 136 &uart_AO { 70 &uart_AO { 137 status = "okay"; 71 status = "okay"; 138 }; 72 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.