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 21 chosen { 22 #address-cells = <2>; 23 #size-cells = <2>; 24 ranges; 25 26 framebuffer0: framebuffer@5c000000 { 27 compatible = "simple-framebuffer"; 28 reg = <0 0x5c000000 0 (2520 * 1080 * 4)>; 29 width = <1080>; 30 height = <2520>; 31 stride = <(1080 * 4)>; 32 format = "a8r8g8b8"; 33 }; 34 }; 35 36 extcon_usb: extcon-usb { 37 compatible = "linux,extcon-usb-gpio"; 38 id-gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>; 39 }; 40 41 gpio-keys { 42 status = "okay"; 43 compatible = "gpio-keys"; 44 input-name = "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_state_off { 92 sd-cd { 93 pins = "gpio98"; 94 bias-disable; 95 drive-strength = <2>; 96 }; 97}; 98 99&sdhc_1 { 100 status = "okay"; 101}; 102 103&tlmm { 104 gpio-reserved-ranges = <22 2>, <28 6>; 105 106 sdc2_state_on: sdc2-on { 107 clk { 108 pins = "sdc2_clk"; 109 bias-disable; 110 drive-strength = <16>; 111 }; 112 113 cmd { 114 pins = "sdc2_cmd"; 115 bias-pull-up; 116 drive-strength = <10>; 117 }; 118 119 data { 120 pins = "sdc2_data"; 121 bias-pull-up; 122 drive-strength = <10>; 123 }; 124 125 sd-cd { 126 pins = "gpio98"; 127 bias-pull-up; 128 drive-strength = <2>; 129 }; 130 }; 131}; 132 133&usb3 { 134 status = "okay"; 135}; 136 137&usb3_dwc3 { 138 extcon = <&extcon_usb>; 139}; 140