xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sm6115-fxtec-pro1x.dts (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
2/*
3 * Copyright (c) 2023, Dang Huynh <danct12@riseup.net>
4 */
5
6/dts-v1/;
7
8#include "sm6115.dtsi"
9#include "pm6125.dtsi"
10#include <dt-bindings/arm/qcom,ids.h>
11
12/ {
13	model = "F(x)tec Pro1X (QX1050)";
14	compatible = "fxtec,pro1x", "qcom,sm6115";
15	chassis-type = "handset";
16
17	qcom,msm-id = <QCOM_ID_SM6115 0x10000>;
18
19	chosen {
20		#address-cells = <2>;
21		#size-cells = <2>;
22		ranges;
23
24		framebuffer0: framebuffer@5c000000 {
25			compatible = "simple-framebuffer";
26			reg = <0x0 0x5c000000 0x0 (1080 * 2160 * 4)>;
27			width = <1080>;
28			height = <2160>;
29			stride = <(1080 * 4)>;
30			format = "a8r8g8b8";
31			clocks = <&gcc GCC_DISP_HF_AXI_CLK>;
32		};
33	};
34
35	gpio-keys {
36		compatible = "gpio-keys";
37
38		pinctrl-0 = <&vol_up_n>;
39		pinctrl-names = "default";
40
41		key-volume-up {
42			label = "Volume Up";
43			linux,code = <KEY_VOLUMEUP>;
44			gpios = <&pm6125_gpios 5 GPIO_ACTIVE_LOW>;
45			debounce-interval = <15>;
46			linux,can-disable;
47			wakeup-source;
48		};
49	};
50};
51
52&dispcc {
53	/* HACK: disable until a panel driver is ready to retain simplefb */
54	status = "disabled";
55};
56
57&pm6125_gpios {
58	vol_up_n: vol-up-n-state {
59		pins = "gpio5";
60		function = "normal";
61		power-source = <0>;
62		bias-pull-up;
63		input-enable;
64	};
65};
66
67&pon_pwrkey {
68	status = "okay";
69};
70
71&pon_resin {
72	linux,code = <KEY_VOLUMEDOWN>;
73	status = "okay";
74};
75
76&rpm_requests {
77	regulators-0 {
78		compatible = "qcom,rpm-pm6125-regulators";
79
80		pm6125_s6a: s6 {
81			regulator-min-microvolt = <304000>;
82			regulator-max-microvolt = <1456000>;
83		};
84
85		pm6125_s7a: s7 {
86			regulator-min-microvolt = <1280000>;
87			regulator-max-microvolt = <2040000>;
88		};
89
90		pm6125_s8a: s8 {
91			regulator-min-microvolt = <1064000>;
92			regulator-max-microvolt = <1304000>;
93		};
94
95		pm6125_l1a: l1 {
96			regulator-min-microvolt = <952000>;
97			regulator-max-microvolt = <1152000>;
98		};
99
100		pm6125_l4a: l4 {
101			regulator-min-microvolt = <488000>;
102			regulator-max-microvolt = <1000000>;
103		};
104
105		pm6125_l5a: l5 {
106			regulator-min-microvolt = <1648000>;
107			regulator-max-microvolt = <3056000>;
108		};
109
110		pm6125_l6a: l6 {
111			regulator-min-microvolt = <576000>;
112			regulator-max-microvolt = <656000>;
113		};
114
115		pm6125_l7a: l7 {
116			regulator-min-microvolt = <1200000>;
117			regulator-max-microvolt = <1304000>;
118		};
119
120		pm6125_l8a: l8 {
121			regulator-min-microvolt = <400000>;
122			regulator-max-microvolt = <728000>;
123		};
124
125		pm6125_l9a: l9 {
126			regulator-min-microvolt = <1800000>;
127			regulator-max-microvolt = <2000000>;
128		};
129
130		pm6125_l10a: l10 {
131			regulator-min-microvolt = <1704000>;
132			regulator-max-microvolt = <1904000>;
133		};
134
135		pm6125_l11a: l11 {
136			regulator-min-microvolt = <1704000>;
137			regulator-max-microvolt = <1952000>;
138			regulator-allow-set-load;
139		};
140
141		pm6125_l12a: l12 {
142			regulator-min-microvolt = <1624000>;
143			regulator-max-microvolt = <1984000>;
144		};
145
146		pm6125_l13a: l13 {
147			regulator-min-microvolt = <1504000>;
148			regulator-max-microvolt = <1952000>;
149		};
150
151		pm6125_l14a: l14 {
152			regulator-min-microvolt = <1704000>;
153			regulator-max-microvolt = <1904000>;
154		};
155
156		pm6125_l15a: l15 {
157			regulator-min-microvolt = <2920000>;
158			regulator-max-microvolt = <3232000>;
159		};
160
161		pm6125_l16a: l16 {
162			regulator-min-microvolt = <1704000>;
163			regulator-max-microvolt = <1904000>;
164		};
165
166		pm6125_l17a: l17 {
167			regulator-min-microvolt = <1152000>;
168			regulator-max-microvolt = <1384000>;
169		};
170
171		pm6125_l18a: l18 {
172			regulator-min-microvolt = <1104000>;
173			regulator-max-microvolt = <1312000>;
174		};
175
176		pm6125_l19a: l19 {
177			regulator-min-microvolt = <1624000>;
178			regulator-max-microvolt = <3304000>;
179		};
180
181		pm6125_l20a: l20 {
182			regulator-min-microvolt = <1624000>;
183			regulator-max-microvolt = <3304000>;
184		};
185
186		pm6125_l21a: l21 {
187			regulator-min-microvolt = <2400000>;
188			regulator-max-microvolt = <3600000>;
189		};
190
191		pm6125_l22a: l22 {
192			regulator-min-microvolt = <2952000>;
193			regulator-max-microvolt = <3304000>;
194		};
195
196		pm6125_l23a: l23 {
197			regulator-min-microvolt = <3200000>;
198			regulator-max-microvolt = <3400000>;
199		};
200
201		pm6125_l24a: l24 {
202			regulator-min-microvolt = <2704000>;
203			regulator-max-microvolt = <3600000>;
204			regulator-allow-set-load;
205		};
206	};
207};
208
209&sleep_clk {
210	clock-frequency = <32764>;
211};
212
213&tlmm {
214	gpio-reserved-ranges = <0 4>, <14 4>;
215};
216
217&ufs_mem_hc {
218	vcc-supply = <&pm6125_l24a>;
219	vcc-max-microamp = <600000>;
220	vccq2-supply = <&pm6125_l11a>;
221	vccq2-max-microamp = <600000>;
222	status = "okay";
223};
224
225&ufs_mem_phy {
226	vdda-phy-supply = <&pm6125_l4a>;
227	vdda-pll-supply = <&pm6125_l12a>;
228	vddp-ref-clk-supply = <&pm6125_l18a>;
229	status = "okay";
230};
231
232&usb {
233	status = "okay";
234};
235
236&usb_dwc3 {
237	maximum-speed = "high-speed";
238	dr_mode = "peripheral";
239};
240
241&usb_hsphy {
242	vdd-supply = <&pm6125_l4a>;
243	vdda-pll-supply = <&pm6125_l12a>;
244	vdda-phy-dpdm-supply = <&pm6125_l15a>;
245	status = "okay";
246};
247
248&xo_board {
249	clock-frequency = <19200000>;
250};
251