1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2021, Konrad Dybcio <konrad.dybcio@somainline.org>
4 */
5/dts-v1/;
6
7#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
8#include "sm6350.dtsi"
9#include "pm6350.dtsi"
10
11/ {
12	model = "Sony Xperia 10 III";
13	compatible = "sony,pdx213", "qcom,sm6350";
14	chassis-type = "handset";
15	qcom,msm-id = <434 0x10000>, <459 0x10000>;
16	qcom,board-id = <0x1000B 0>;
17
18	chosen {
19		#address-cells = <2>;
20		#size-cells = <2>;
21		ranges;
22
23		framebuffer: framebuffer@a0000000 {
24			compatible = "simple-framebuffer";
25			reg = <0 0xa0000000 0 0x2300000>;
26			width = <1080>;
27			height = <2520>;
28			stride = <(1080 * 4)>;
29			format = "a8r8g8b8";
30			clocks = <&gcc GCC_DISP_AXI_CLK>;
31		};
32	};
33
34	gpio-keys {
35		compatible = "gpio-keys";
36		pinctrl-names = "default";
37		pinctrl-0 = <&gpio_keys_state>;
38
39		key-volume-down {
40			label = "volume_down";
41			linux,code = <KEY_VOLUMEDOWN>;
42			gpios = <&pm6350_gpios 2 GPIO_ACTIVE_LOW>;
43		};
44	};
45};
46
47&pm6350_gpios {
48	gpio_keys_state: gpio-keys-state {
49		key-volume-down-pins {
50			pins = "gpio2";
51			function = PMIC_GPIO_FUNC_NORMAL;
52			power-source = <0>;
53			bias-disable;
54			input-enable;
55		};
56	};
57};
58
59&pm6350_resin {
60	linux,code = <KEY_VOLUMEUP>;
61	status = "okay";
62};
63
64&sdc2_off_state {
65	sd-cd-pins {
66		pins = "gpio94";
67		function = "gpio";
68		drive-strength = <2>;
69		bias-disable;
70	};
71};
72
73&sdc2_on_state {
74	sd-cd-pins {
75		pins = "gpio94";
76		function = "gpio";
77		drive-strength = <2>;
78		bias-pull-up;
79	};
80};
81
82&sdhc_2 {
83	status = "okay";
84
85	cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>;
86};
87
88&tlmm {
89	gpio-reserved-ranges = <13 4>, <45 2>, <56 2>;
90};
91
92&usb_1 {
93	status = "okay";
94};
95
96&usb_1_dwc3 {
97	maximum-speed = "super-speed";
98	dr_mode = "peripheral";
99};
100
101&usb_1_hsphy {
102	status = "okay";
103};
104
105&usb_1_qmpphy {
106	status = "okay";
107};
108