GNU Linux-libre 6.1.90-gnu
[releases.git] / arch / arm64 / boot / dts / qcom / sm6125-sony-xperia-seine-pdx201.dts
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                 compatible = "gpio-keys";
44
45                 pinctrl-0 = <&vol_down_n>;
46                 pinctrl-names = "default";
47
48                 key-volume-down {
49                         label = "Volume Down";
50                         gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
51                         linux,code = <KEY_VOLUMEDOWN>;
52                         debounce-interval = <15>;
53                         linux,can-disable;
54                         wakeup-source;
55                 };
56         };
57
58         reserved_memory {
59                 #address-cells = <2>;
60                 #size-cells = <2>;
61                 debug_mem: memory@ffb00000 {
62                         reg = <0x0 0xffb00000 0x0 0xc0000>;
63                         no-map;
64                 };
65
66                 last_log_mem: memory@ffbc0000 {
67                         reg = <0x0 0xffbc0000 0x0 0x80000>;
68                         no-map;
69                 };
70
71                 pstore_mem: ramoops@ffc00000 {
72                         compatible = "ramoops";
73                         reg = <0x0 0xffc40000 0x0 0xc0000>;
74                         record-size = <0x1000>;
75                         console-size = <0x40000>;
76                         pmsg-size = <0x20000>;
77                 };
78
79                 cmdline_mem: memory@ffd00000 {
80                         reg = <0x0 0xffd40000 0x0 0x1000>;
81                         no-map;
82                 };
83         };
84 };
85
86 &hsusb_phy1 {
87         status = "okay";
88 };
89
90 &sdc2_off_state {
91         sd-cd-pins {
92                 pins = "gpio98";
93                 drive-strength = <2>;
94                 bias-disable;
95         };
96 };
97
98 &sdc2_on_state {
99         sd-cd-pins {
100                 pins = "gpio98";
101                 drive-strength = <2>;
102                 bias-pull-up;
103         };
104 };
105
106 &sdhc_1 {
107         status = "okay";
108 };
109
110 &tlmm {
111         gpio-reserved-ranges = <22 2>, <28 6>;
112
113         vol_down_n: vol-down-n-state {
114                 pins = "gpio47";
115                 function = "gpio";
116                 drive-strength = <2>;
117                 bias-disable;
118                 input-enable;
119         };
120 };
121
122 &usb3 {
123         status = "okay";
124 };
125
126 &usb3_dwc3 {
127         extcon = <&extcon_usb>;
128 };