summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/zte/zx296718-pcbox.dts
blob: e02509f7082b1d69ac918e4145b43c6dc598523d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
 * Copyright (C) 2017 Sanechips Technology Co., Ltd.
 * Copyright 2017 Linaro Ltd.
 *
 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
 */

/dts-v1/;
#include "zx296718.dtsi"
#include <dt-bindings/pwm/pwm.h>

/ {
	model = "ZTE ZX296718 PCBOX Board";
	compatible = "zte,zx296718-pcbox", "zte,zx296718";

	chosen {
		stdout-path = "serial0:115200n8";
	};

	memory@80000000 {
		device_type = "memory";
		reg = <0x80000000 0x80000000>;
	};

	a53_vdd0v9: regulator-a53 {
		compatible = "pwm-regulator";
		pwms = <&pwm 3 1250 PWM_POLARITY_INVERTED>;
		regulator-name = "A53_VDD0V9";
		regulator-min-microvolt = <855000>;
		regulator-max-microvolt = <1183000>;
		pwm-dutycycle-unit = <100>;
		pwm-dutycycle-range = <0 100>;
		regulator-always-on;
		regulator-boot-on;
	};

	sound-spdif0 {
		compatible = "audio-graph-card";
		dais = <&spdif0_port>;
	};

	sound-i2s0 {
		compatible = "audio-graph-card";
		dais = <&i2s0_port>;
	};
};

&aud96p22 {
	port {
		aud96p22_endpoint: endpoint {
			remote-endpoint = <&i2s0_endpoint>;
		};
	};
};

&cpu0 {
	cpu-supply = <&a53_vdd0v9>;
};

&emmc {
	status = "okay";
};

&hdmi {
	status = "disabled";

	port {
		hdmi_endpoint: endpoint {
			remote-endpoint = <&spdif0_endpoint>;
		};
	};
};

&i2c0 {
	status = "okay";
};

&i2s0 {
	status = "okay";

	i2s0_port: port {
		i2s0_endpoint: endpoint {
			remote-endpoint = <&aud96p22_endpoint>;
			dai-format = "i2s";
			frame-master;
			bitclock-master;
		};
	};
};

&irdec {
	status = "okay";
};

&pmm {
	pwm3_pins: pwm3 {
		pins = "KEY_ROW2";
		function = "PWM";
	};

	vga_pins: vga {
		pins = "KEY_COL1", "KEY_COL2", "VGA_HS", "VGA_VS";
		function = "VGA";
	};
};

&pwm {
	pinctrl-names = "default";
	pinctrl-0 = <&pwm3_pins>;
	status = "okay";
};

&sd0 {
	status = "okay";
};

&sd1 {
	status = "okay";
};

&spdif0 {
	status = "okay";

	spdif0_port: port {
		spdif0_endpoint: endpoint {
			remote-endpoint = <&hdmi_endpoint>;
		};
	};
};

&tvenc {
	status = "disabled";
};

&uart0 {
	status = "okay";
};

&vga {
	pinctrl-names = "default";
	pinctrl-0 = <&vga_pins>;
	status = "okay";
};