1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
4 */
5
6/dts-v1/;
7
8#include "sdm845-sony-xperia-tama.dtsi"
9
10/* XZ3 uses an Atmel touchscreen instead. */
11/delete-node/ &touchscreen;
12
13/ {
14	model = "Sony Xperia XZ3";
15	compatible = "sony,akatsuki-row", "qcom,sdm845";
16
17	/* Fixed DCDC for the OLED panel */
18	ts_vddio_supply: ts-vddio-regulator {
19		compatible = "regulator-fixed";
20		regulator-name = "ts_vddio";
21
22		regulator-min-microvolt = <1840000>;
23		regulator-max-microvolt = <1840000>;
24
25		gpio = <&tlmm 133 GPIO_ACTIVE_HIGH>;
26		enable-active-high;
27		regulator-boot-on;
28	};
29};
30
31&ibb {
32	status = "disabled";
33};
34
35&lab {
36	status = "disabled";
37};
38
39&panel {
40	/* Akatsuki uses an OLED panel. */
41	/delete-property/ backlight;
42	/delete-property/ vsp-supply;
43	/delete-property/ vsn-supply;
44	/delete-property/ touch-reset-gpios;
45};
46
47&pmi8998_wled {
48	status = "disabled";
49};
50
51&tlmm {
52	ts_vddio_en: ts-vddio-en-state {
53		pins = "gpio133";
54		function = "gpio";
55		drive-strength = <2>;
56		bias-disable;
57		output-high;
58	};
59};
60
61&vreg_l14a_1p8 {
62	regulator-min-microvolt = <1840000>;
63	regulator-max-microvolt = <1840000>;
64};
65
66&vreg_l22a_2p8 {
67	/* Note: Round-down from 2700000 to be a multiple of PLDO step-size 8000 */
68	regulator-min-microvolt = <2696000>;
69	regulator-max-microvolt = <2696000>;
70};
71
72&vreg_l28a_2p8 {
73	regulator-min-microvolt = <3000000>;
74	regulator-max-microvolt = <3000000>;
75};
76