Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003  * Copyright (c) 2021, Martin Botka <martin.botka@somainline.org>
0004  */
0005 
0006 /dts-v1/;
0007 
0008 #include "sm6125.dtsi"
0009 #include <dt-bindings/gpio/gpio.h>
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/input/gpio-keys.h>
0012 
0013 / {
0014         /* required for bootloader to select correct board */
0015         qcom,msm-id = <394 0x10000>; /* sm6125 v1 */
0016         qcom,board-id = <34 0>;
0017 
0018         model = "Sony Xperia 10 II";
0019         compatible = "sony,pdx201", "qcom,sm6125";
0020         chassis-type = "handset";
0021 
0022         chosen {
0023                 #address-cells = <2>;
0024                 #size-cells = <2>;
0025                 ranges;
0026 
0027                 framebuffer0: framebuffer@5c000000 {
0028                         compatible = "simple-framebuffer";
0029                         reg = <0 0x5c000000 0 (2520 * 1080 * 4)>;
0030                         width = <1080>;
0031                         height = <2520>;
0032                         stride = <(1080 * 4)>;
0033                         format = "a8r8g8b8";
0034                 };
0035         };
0036 
0037         extcon_usb: extcon-usb {
0038                 compatible = "linux,extcon-usb-gpio";
0039                 id-gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
0040         };
0041 
0042         gpio-keys {
0043                 status = "okay";
0044                 compatible = "gpio-keys";
0045                 autorepeat;
0046 
0047                 key-vol-dn {
0048                         label = "Volume Down";
0049                         gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
0050                         linux,input-type = <1>;
0051                         linux,code = <KEY_VOLUMEDOWN>;
0052                         gpio-key,wakeup;
0053                         debounce-interval = <15>;
0054                 };
0055         };
0056 
0057         reserved_memory {
0058                 #address-cells = <2>;
0059                 #size-cells = <2>;
0060                 debug_mem: memory@ffb00000 {
0061                         reg = <0x0 0xffb00000 0x0 0xc0000>;
0062                         no-map;
0063                 };
0064 
0065                 last_log_mem: memory@ffbc0000 {
0066                         reg = <0x0 0xffbc0000 0x0 0x80000>;
0067                         no-map;
0068                 };
0069 
0070                 pstore_mem: ramoops@ffc00000 {
0071                         compatible = "ramoops";
0072                         reg = <0x0 0xffc40000 0x0 0xc0000>;
0073                         record-size = <0x1000>;
0074                         console-size = <0x40000>;
0075                         msg-size = <0x20000 0x20000>;
0076                 };
0077 
0078                 cmdline_mem: memory@ffd00000 {
0079                         reg = <0x0 0xffd40000 0x0 0x1000>;
0080                         no-map;
0081                 };
0082         };
0083 };
0084 
0085 &hsusb_phy1 {
0086         status = "okay";
0087 };
0088 
0089 &sdc2_off_state {
0090         sd-cd {
0091                 pins = "gpio98";
0092                 drive-strength = <2>;
0093                 bias-disable;
0094         };
0095 };
0096 
0097 &sdc2_on_state {
0098         sd-cd {
0099                 pins = "gpio98";
0100                 drive-strength = <2>;
0101                 bias-pull-up;
0102         };
0103 };
0104 
0105 &sdhc_1 {
0106         status = "okay";
0107 };
0108 
0109 &tlmm {
0110         gpio-reserved-ranges = <22 2>, <28 6>;
0111 };
0112 
0113 &usb3 {
0114         status = "okay";
0115 };
0116 
0117 &usb3_dwc3 {
0118         extcon = <&extcon_usb>;
0119 };