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 input-name = "gpio-keys"; 46 #address-cells = <1>; 47 #size-cells = <0>; 48 autorepeat; 49 50 vol-dn { 51 label = "Volume Down"; 52 gpios = <&tlmm 47 GPIO_ACTIVE_LOW>; 53 linux,input-type = <1>; 54 linux,code = <KEY_VOLUMEDOWN>; 55 gpio-key,wakeup; 56 debounce-interval = <15>; 57 }; 58 }; 59 60 reserved_memory { 61 #address-cells = <2>; 62 #size-cells = <2>; 63 debug_mem: memory@ffb00000 { 64 reg = <0x0 0xffb00000 0x0 0xc0000>; 65 no-map; 66 }; 67 68 last_log_mem: memory@ffbc0000 { 69 reg = <0x0 0xffbc0000 0x0 0x80000>; 70 no-map; 71 }; 72 73 pstore_mem: ramoops@ffc00000 { 74 compatible = "ramoops"; 75 reg = <0x0 0xffc40000 0x0 0xc0000>; 76 record-size = <0x1000>; 77 console-size = <0x40000>; 78 msg-size = <0x20000 0x20000>; 79 }; 80 81 cmdline_mem: memory@ffd00000 { 82 reg = <0x0 0xffd40000 0x0 0x1000>; 83 no-map; 84 }; 85 }; 86}; 87 88&hsusb_phy1 { 89 status = "okay"; 90}; 91 92&sdc2_state_off { 93 sd-cd { 94 pins = "gpio98"; 95 bias-disable; 96 drive-strength = <2>; 97 }; 98}; 99 100&sdhc_1 { 101 status = "okay"; 102}; 103 104&tlmm { 105 gpio-reserved-ranges = <22 2>, <28 6>; 106 107 sdc2_state_on: sdc2-on { 108 clk { 109 pins = "sdc2_clk"; 110 bias-disable; 111 drive-strength = <16>; 112 }; 113 114 cmd { 115 pins = "sdc2_cmd"; 116 bias-pull-up; 117 drive-strength = <10>; 118 }; 119 120 data { 121 pins = "sdc2_data"; 122 bias-pull-up; 123 drive-strength = <10>; 124 }; 125 126 sd-cd { 127 pins = "gpio98"; 128 bias-pull-up; 129 drive-strength = <2>; 130 }; 131 }; 132}; 133 134&usb3 { 135 status = "okay"; 136}; 137 138&usb3_dwc3 { 139 extcon = <&extcon_usb>; 140}; 141