xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sm6125-sony-xperia-seine-pdx201.dts (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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		autorepeat;
46
47		key-vol-dn {
48			label = "Volume Down";
49			gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
50			linux,input-type = <1>;
51			linux,code = <KEY_VOLUMEDOWN>;
52			gpio-key,wakeup;
53			debounce-interval = <15>;
54		};
55	};
56
57	reserved_memory {
58		#address-cells = <2>;
59		#size-cells = <2>;
60		debug_mem: memory@ffb00000 {
61			reg = <0x0 0xffb00000 0x0 0xc0000>;
62			no-map;
63		};
64
65		last_log_mem: memory@ffbc0000 {
66			reg = <0x0 0xffbc0000 0x0 0x80000>;
67			no-map;
68		};
69
70		pstore_mem: ramoops@ffc00000 {
71			compatible = "ramoops";
72			reg = <0x0 0xffc40000 0x0 0xc0000>;
73			record-size = <0x1000>;
74			console-size = <0x40000>;
75			msg-size = <0x20000 0x20000>;
76		};
77
78		cmdline_mem: memory@ffd00000 {
79			reg = <0x0 0xffd40000 0x0 0x1000>;
80			no-map;
81		};
82	};
83};
84
85&hsusb_phy1 {
86	status = "okay";
87};
88
89&sdc2_off_state {
90	sd-cd {
91		pins = "gpio98";
92		drive-strength = <2>;
93		bias-disable;
94	};
95};
96
97&sdc2_on_state {
98	sd-cd {
99		pins = "gpio98";
100		drive-strength = <2>;
101		bias-pull-up;
102	};
103};
104
105&sdhc_1 {
106	status = "okay";
107};
108
109&tlmm {
110	gpio-reserved-ranges = <22 2>, <28 6>;
111};
112
113&usb3 {
114	status = "okay";
115};
116
117&usb3_dwc3 {
118	extcon = <&extcon_usb>;
119};
120