18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright 2016 ZTE Corporation.
38c2ecf20Sopenharmony_ci * Copyright 2016 Linaro Ltd.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * This file is dual-licensed: you can use it either under the terms
68c2ecf20Sopenharmony_ci * of the GPL or the X11 license, at your option. Note that this dual
78c2ecf20Sopenharmony_ci * licensing only applies to this file, and not this project as a
88c2ecf20Sopenharmony_ci * whole.
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci *  a) This library is free software; you can redistribute it and/or
118c2ecf20Sopenharmony_ci *     modify it under the terms of the GNU General Public License as
128c2ecf20Sopenharmony_ci *     published by the Free Software Foundation; either version 2 of the
138c2ecf20Sopenharmony_ci *     License, or (at your option) any later version.
148c2ecf20Sopenharmony_ci *
158c2ecf20Sopenharmony_ci *     This library is distributed in the hope that it will be useful,
168c2ecf20Sopenharmony_ci *     but WITHOUT ANY WARRANTY; without even the implied warranty of
178c2ecf20Sopenharmony_ci *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
188c2ecf20Sopenharmony_ci *     GNU General Public License for more details.
198c2ecf20Sopenharmony_ci *
208c2ecf20Sopenharmony_ci * Or, alternatively,
218c2ecf20Sopenharmony_ci *
228c2ecf20Sopenharmony_ci *  b) Permission is hereby granted, free of charge, to any person
238c2ecf20Sopenharmony_ci *     obtaining a copy of this software and associated documentation
248c2ecf20Sopenharmony_ci *     files (the "Software"), to deal in the Software without
258c2ecf20Sopenharmony_ci *     restriction, including without limitation the rights to use,
268c2ecf20Sopenharmony_ci *     copy, modify, merge, publish, distribute, sublicense, and/or
278c2ecf20Sopenharmony_ci *     sell copies of the Software, and to permit persons to whom the
288c2ecf20Sopenharmony_ci *     Software is furnished to do so, subject to the following
298c2ecf20Sopenharmony_ci *     conditions:
308c2ecf20Sopenharmony_ci *
318c2ecf20Sopenharmony_ci *     The above copyright notice and this permission notice shall be
328c2ecf20Sopenharmony_ci *     included in all copies or substantial portions of the Software.
338c2ecf20Sopenharmony_ci *
348c2ecf20Sopenharmony_ci *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
358c2ecf20Sopenharmony_ci *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
368c2ecf20Sopenharmony_ci *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
378c2ecf20Sopenharmony_ci *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
388c2ecf20Sopenharmony_ci *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
398c2ecf20Sopenharmony_ci *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
408c2ecf20Sopenharmony_ci *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
418c2ecf20Sopenharmony_ci *     OTHER DEALINGS IN THE SOFTWARE.
428c2ecf20Sopenharmony_ci */
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci/dts-v1/;
458c2ecf20Sopenharmony_ci#include "zx296718.dtsi"
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ci/ {
488c2ecf20Sopenharmony_ci	model = "ZTE zx296718 evaluation board";
498c2ecf20Sopenharmony_ci	compatible = "zte,zx296718-evb", "zte,zx296718";
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci	chosen {
528c2ecf20Sopenharmony_ci		stdout-path = "serial0:115200n8";
538c2ecf20Sopenharmony_ci	};
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci	memory@40000000 {
568c2ecf20Sopenharmony_ci		device_type = "memory";
578c2ecf20Sopenharmony_ci		reg = <0x40000000 0x40000000>;
588c2ecf20Sopenharmony_ci	};
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci	sound-spdif0 {
618c2ecf20Sopenharmony_ci		compatible = "audio-graph-card";
628c2ecf20Sopenharmony_ci		dais = <&spdif0_port>;
638c2ecf20Sopenharmony_ci	};
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci	sound-i2s0 {
668c2ecf20Sopenharmony_ci		compatible = "audio-graph-card";
678c2ecf20Sopenharmony_ci		dais = <&i2s0_port>;
688c2ecf20Sopenharmony_ci		pinctrl-names = "default";
698c2ecf20Sopenharmony_ci		pinctrl-0 = <&amplifier_pins>;
708c2ecf20Sopenharmony_ci		pa-gpios = <&bgpio4 0 GPIO_ACTIVE_HIGH>;
718c2ecf20Sopenharmony_ci		widgets = "Line", "Line Out Jack";
728c2ecf20Sopenharmony_ci		routing = "Amplifier", "LINEOUTL",
738c2ecf20Sopenharmony_ci			  "Amplifier", "LINEOUTR",
748c2ecf20Sopenharmony_ci			  "Line Out Jack", "Amplifier";
758c2ecf20Sopenharmony_ci	};
768c2ecf20Sopenharmony_ci};
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci&aud96p22 {
798c2ecf20Sopenharmony_ci	port {
808c2ecf20Sopenharmony_ci		aud96p22_endpoint: endpoint {
818c2ecf20Sopenharmony_ci			remote-endpoint = <&i2s0_endpoint>;
828c2ecf20Sopenharmony_ci		};
838c2ecf20Sopenharmony_ci	};
848c2ecf20Sopenharmony_ci};
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci&emmc {
878c2ecf20Sopenharmony_ci	status = "okay";
888c2ecf20Sopenharmony_ci};
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ci&hdmi {
918c2ecf20Sopenharmony_ci	status = "okay";
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci	port {
948c2ecf20Sopenharmony_ci		hdmi_endpoint: endpoint {
958c2ecf20Sopenharmony_ci			remote-endpoint = <&spdif0_endpoint>;
968c2ecf20Sopenharmony_ci		};
978c2ecf20Sopenharmony_ci	};
988c2ecf20Sopenharmony_ci};
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci&i2c0 {
1018c2ecf20Sopenharmony_ci	status = "okay";
1028c2ecf20Sopenharmony_ci};
1038c2ecf20Sopenharmony_ci
1048c2ecf20Sopenharmony_ci&i2s0 {
1058c2ecf20Sopenharmony_ci	status = "okay";
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci	i2s0_port: port {
1088c2ecf20Sopenharmony_ci		i2s0_endpoint: endpoint {
1098c2ecf20Sopenharmony_ci			remote-endpoint = <&aud96p22_endpoint>;
1108c2ecf20Sopenharmony_ci			dai-format = "i2s";
1118c2ecf20Sopenharmony_ci			frame-master;
1128c2ecf20Sopenharmony_ci			bitclock-master;
1138c2ecf20Sopenharmony_ci		};
1148c2ecf20Sopenharmony_ci	};
1158c2ecf20Sopenharmony_ci};
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci&pmm {
1188c2ecf20Sopenharmony_ci	amplifier_pins: amplifier {
1198c2ecf20Sopenharmony_ci		pins = "TSI3_DATA";
1208c2ecf20Sopenharmony_ci		function = "BGPIO";
1218c2ecf20Sopenharmony_ci	};
1228c2ecf20Sopenharmony_ci};
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_ci&sd1 {
1258c2ecf20Sopenharmony_ci	status = "okay";
1268c2ecf20Sopenharmony_ci};
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci&spdif0 {
1298c2ecf20Sopenharmony_ci	status = "okay";
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci	spdif0_port: port {
1328c2ecf20Sopenharmony_ci		spdif0_endpoint: endpoint {
1338c2ecf20Sopenharmony_ci			remote-endpoint = <&hdmi_endpoint>;
1348c2ecf20Sopenharmony_ci		};
1358c2ecf20Sopenharmony_ci	};
1368c2ecf20Sopenharmony_ci};
1378c2ecf20Sopenharmony_ci
1388c2ecf20Sopenharmony_ci&tvenc {
1398c2ecf20Sopenharmony_ci	status = "okay";
1408c2ecf20Sopenharmony_ci};
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci&uart0 {
1438c2ecf20Sopenharmony_ci	status = "okay";
1448c2ecf20Sopenharmony_ci};
145