1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, Martin Botka <martin.botka@somainline.org>
4 */
5
6/dts-v1/;
7
8#include "sm6125.dtsi"
9#include <dt-bindings/gpio/gpio.h>
10#include <dt-bindings/input/input.h>
11#include <dt-bindings/input/gpio-keys.h>
12
13/ {
14	/* required for bootloader to select correct board */
15	qcom,msm-id = <394 0x10000>; /* sm6125 v1 */
16	qcom,board-id = <34 0>;
17
18	model = "Sony Xperia 10 II";
19	compatible = "sony,pdx201", "qcom,sm6125";
20	chassis-type = "handset";
21
22	chosen {
23		#address-cells = <2>;
24		#size-cells = <2>;
25		ranges;
26
27		framebuffer0: framebuffer@5c000000 {
28			compatible = "simple-framebuffer";
29			reg = <0 0x5c000000 0 (2520 * 1080 * 4)>;
30			width = <1080>;
31			height = <2520>;
32			stride = <(1080 * 4)>;
33			format = "a8r8g8b8";
34		};
35	};
36
37	extcon_usb: extcon-usb {
38		compatible = "linux,extcon-usb-gpio";
39		id-gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
40	};
41
42	gpio-keys {
43		status = "okay";
44		compatible = "gpio-keys";
45		#address-cells = <1>;
46		#size-cells = <0>;
47		autorepeat;
48
49		vol-dn {
50			label = "Volume Down";
51			gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
52			linux,input-type = <1>;
53			linux,code = <KEY_VOLUMEDOWN>;
54			gpio-key,wakeup;
55			debounce-interval = <15>;
56		};
57	};
58
59	reserved_memory {
60		#address-cells = <2>;
61		#size-cells = <2>;
62		debug_mem: memory@ffb00000 {
63			reg = <0x0 0xffb00000 0x0 0xc0000>;
64			no-map;
65		};
66
67		last_log_mem: memory@ffbc0000 {
68			reg = <0x0 0xffbc0000 0x0 0x80000>;
69			no-map;
70		};
71
72		pstore_mem: ramoops@ffc00000 {
73			compatible = "ramoops";
74			reg = <0x0 0xffc40000 0x0 0xc0000>;
75			record-size = <0x1000>;
76			console-size = <0x40000>;
77			msg-size = <0x20000 0x20000>;
78		};
79
80		cmdline_mem: memory@ffd00000 {
81			reg = <0x0 0xffd40000 0x0 0x1000>;
82			no-map;
83		};
84	};
85};
86
87&hsusb_phy1 {
88	status = "okay";
89};
90
91&sdc2_off_state {
92	sd-cd {
93		pins = "gpio98";
94		drive-strength = <2>;
95		bias-disable;
96	};
97};
98
99&sdc2_on_state {
100	sd-cd {
101		pins = "gpio98";
102		drive-strength = <2>;
103		bias-pull-up;
104	};
105};
106
107&sdhc_1 {
108	status = "okay";
109};
110
111&tlmm {
112	gpio-reserved-ranges = <22 2>, <28 6>;
113};
114
115&usb3 {
116	status = "okay";
117};
118
119&usb3_dwc3 {
120	extcon = <&extcon_usb>;
121};
122