xref: /freebsd/sys/contrib/device-tree/src/arm64/zte/zx296718-evb.dts (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot/*
2*c66ec88fSEmmanuel Vadot * Copyright 2016 ZTE Corporation.
3*c66ec88fSEmmanuel Vadot * Copyright 2016 Linaro Ltd.
4*c66ec88fSEmmanuel Vadot *
5*c66ec88fSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms
6*c66ec88fSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual
7*c66ec88fSEmmanuel Vadot * licensing only applies to this file, and not this project as a
8*c66ec88fSEmmanuel Vadot * whole.
9*c66ec88fSEmmanuel Vadot *
10*c66ec88fSEmmanuel Vadot *  a) This library is free software; you can redistribute it and/or
11*c66ec88fSEmmanuel Vadot *     modify it under the terms of the GNU General Public License as
12*c66ec88fSEmmanuel Vadot *     published by the Free Software Foundation; either version 2 of the
13*c66ec88fSEmmanuel Vadot *     License, or (at your option) any later version.
14*c66ec88fSEmmanuel Vadot *
15*c66ec88fSEmmanuel Vadot *     This library is distributed in the hope that it will be useful,
16*c66ec88fSEmmanuel Vadot *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17*c66ec88fSEmmanuel Vadot *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*c66ec88fSEmmanuel Vadot *     GNU General Public License for more details.
19*c66ec88fSEmmanuel Vadot *
20*c66ec88fSEmmanuel Vadot * Or, alternatively,
21*c66ec88fSEmmanuel Vadot *
22*c66ec88fSEmmanuel Vadot *  b) Permission is hereby granted, free of charge, to any person
23*c66ec88fSEmmanuel Vadot *     obtaining a copy of this software and associated documentation
24*c66ec88fSEmmanuel Vadot *     files (the "Software"), to deal in the Software without
25*c66ec88fSEmmanuel Vadot *     restriction, including without limitation the rights to use,
26*c66ec88fSEmmanuel Vadot *     copy, modify, merge, publish, distribute, sublicense, and/or
27*c66ec88fSEmmanuel Vadot *     sell copies of the Software, and to permit persons to whom the
28*c66ec88fSEmmanuel Vadot *     Software is furnished to do so, subject to the following
29*c66ec88fSEmmanuel Vadot *     conditions:
30*c66ec88fSEmmanuel Vadot *
31*c66ec88fSEmmanuel Vadot *     The above copyright notice and this permission notice shall be
32*c66ec88fSEmmanuel Vadot *     included in all copies or substantial portions of the Software.
33*c66ec88fSEmmanuel Vadot *
34*c66ec88fSEmmanuel Vadot *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35*c66ec88fSEmmanuel Vadot *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36*c66ec88fSEmmanuel Vadot *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37*c66ec88fSEmmanuel Vadot *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38*c66ec88fSEmmanuel Vadot *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39*c66ec88fSEmmanuel Vadot *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40*c66ec88fSEmmanuel Vadot *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41*c66ec88fSEmmanuel Vadot *     OTHER DEALINGS IN THE SOFTWARE.
42*c66ec88fSEmmanuel Vadot */
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot/dts-v1/;
45*c66ec88fSEmmanuel Vadot#include "zx296718.dtsi"
46*c66ec88fSEmmanuel Vadot
47*c66ec88fSEmmanuel Vadot/ {
48*c66ec88fSEmmanuel Vadot	model = "ZTE zx296718 evaluation board";
49*c66ec88fSEmmanuel Vadot	compatible = "zte,zx296718-evb", "zte,zx296718";
50*c66ec88fSEmmanuel Vadot
51*c66ec88fSEmmanuel Vadot	chosen {
52*c66ec88fSEmmanuel Vadot		stdout-path = "serial0:115200n8";
53*c66ec88fSEmmanuel Vadot	};
54*c66ec88fSEmmanuel Vadot
55*c66ec88fSEmmanuel Vadot	memory@40000000 {
56*c66ec88fSEmmanuel Vadot		device_type = "memory";
57*c66ec88fSEmmanuel Vadot		reg = <0x40000000 0x40000000>;
58*c66ec88fSEmmanuel Vadot	};
59*c66ec88fSEmmanuel Vadot
60*c66ec88fSEmmanuel Vadot	sound-spdif0 {
61*c66ec88fSEmmanuel Vadot		compatible = "audio-graph-card";
62*c66ec88fSEmmanuel Vadot		dais = <&spdif0_port>;
63*c66ec88fSEmmanuel Vadot	};
64*c66ec88fSEmmanuel Vadot
65*c66ec88fSEmmanuel Vadot	sound-i2s0 {
66*c66ec88fSEmmanuel Vadot		compatible = "audio-graph-card";
67*c66ec88fSEmmanuel Vadot		dais = <&i2s0_port>;
68*c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
69*c66ec88fSEmmanuel Vadot		pinctrl-0 = <&amplifier_pins>;
70*c66ec88fSEmmanuel Vadot		pa-gpios = <&bgpio4 0 GPIO_ACTIVE_HIGH>;
71*c66ec88fSEmmanuel Vadot		widgets = "Line", "Line Out Jack";
72*c66ec88fSEmmanuel Vadot		routing = "Amplifier", "LINEOUTL",
73*c66ec88fSEmmanuel Vadot			  "Amplifier", "LINEOUTR",
74*c66ec88fSEmmanuel Vadot			  "Line Out Jack", "Amplifier";
75*c66ec88fSEmmanuel Vadot	};
76*c66ec88fSEmmanuel Vadot};
77*c66ec88fSEmmanuel Vadot
78*c66ec88fSEmmanuel Vadot&aud96p22 {
79*c66ec88fSEmmanuel Vadot	port {
80*c66ec88fSEmmanuel Vadot		aud96p22_endpoint: endpoint {
81*c66ec88fSEmmanuel Vadot			remote-endpoint = <&i2s0_endpoint>;
82*c66ec88fSEmmanuel Vadot		};
83*c66ec88fSEmmanuel Vadot	};
84*c66ec88fSEmmanuel Vadot};
85*c66ec88fSEmmanuel Vadot
86*c66ec88fSEmmanuel Vadot&emmc {
87*c66ec88fSEmmanuel Vadot	status = "okay";
88*c66ec88fSEmmanuel Vadot};
89*c66ec88fSEmmanuel Vadot
90*c66ec88fSEmmanuel Vadot&hdmi {
91*c66ec88fSEmmanuel Vadot	status = "okay";
92*c66ec88fSEmmanuel Vadot
93*c66ec88fSEmmanuel Vadot	port {
94*c66ec88fSEmmanuel Vadot		hdmi_endpoint: endpoint {
95*c66ec88fSEmmanuel Vadot			remote-endpoint = <&spdif0_endpoint>;
96*c66ec88fSEmmanuel Vadot		};
97*c66ec88fSEmmanuel Vadot	};
98*c66ec88fSEmmanuel Vadot};
99*c66ec88fSEmmanuel Vadot
100*c66ec88fSEmmanuel Vadot&i2c0 {
101*c66ec88fSEmmanuel Vadot	status = "okay";
102*c66ec88fSEmmanuel Vadot};
103*c66ec88fSEmmanuel Vadot
104*c66ec88fSEmmanuel Vadot&i2s0 {
105*c66ec88fSEmmanuel Vadot	status = "okay";
106*c66ec88fSEmmanuel Vadot
107*c66ec88fSEmmanuel Vadot	i2s0_port: port {
108*c66ec88fSEmmanuel Vadot		i2s0_endpoint: endpoint {
109*c66ec88fSEmmanuel Vadot			remote-endpoint = <&aud96p22_endpoint>;
110*c66ec88fSEmmanuel Vadot			dai-format = "i2s";
111*c66ec88fSEmmanuel Vadot			frame-master;
112*c66ec88fSEmmanuel Vadot			bitclock-master;
113*c66ec88fSEmmanuel Vadot		};
114*c66ec88fSEmmanuel Vadot	};
115*c66ec88fSEmmanuel Vadot};
116*c66ec88fSEmmanuel Vadot
117*c66ec88fSEmmanuel Vadot&pmm {
118*c66ec88fSEmmanuel Vadot	amplifier_pins: amplifier {
119*c66ec88fSEmmanuel Vadot		pins = "TSI3_DATA";
120*c66ec88fSEmmanuel Vadot		function = "BGPIO";
121*c66ec88fSEmmanuel Vadot	};
122*c66ec88fSEmmanuel Vadot};
123*c66ec88fSEmmanuel Vadot
124*c66ec88fSEmmanuel Vadot&sd1 {
125*c66ec88fSEmmanuel Vadot	status = "okay";
126*c66ec88fSEmmanuel Vadot};
127*c66ec88fSEmmanuel Vadot
128*c66ec88fSEmmanuel Vadot&spdif0 {
129*c66ec88fSEmmanuel Vadot	status = "okay";
130*c66ec88fSEmmanuel Vadot
131*c66ec88fSEmmanuel Vadot	spdif0_port: port {
132*c66ec88fSEmmanuel Vadot		spdif0_endpoint: endpoint {
133*c66ec88fSEmmanuel Vadot			remote-endpoint = <&hdmi_endpoint>;
134*c66ec88fSEmmanuel Vadot		};
135*c66ec88fSEmmanuel Vadot	};
136*c66ec88fSEmmanuel Vadot};
137*c66ec88fSEmmanuel Vadot
138*c66ec88fSEmmanuel Vadot&tvenc {
139*c66ec88fSEmmanuel Vadot	status = "okay";
140*c66ec88fSEmmanuel Vadot};
141*c66ec88fSEmmanuel Vadot
142*c66ec88fSEmmanuel Vadot&uart0 {
143*c66ec88fSEmmanuel Vadot	status = "okay";
144*c66ec88fSEmmanuel Vadot};
145