1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022-2023, Bryan O'Donoghue. 5 * 6 */ 7 8/dts-v1/; 9 10#include "msm8939.dtsi" 11#include "msm8939-pm8916.dtsi" 12#include <dt-bindings/arm/qcom,ids.h> 13#include <dt-bindings/gpio/gpio.h> 14#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 15 16/ { 17 model = "Sony Xperia M4 Aqua"; 18 compatible = "sony,kanuti-tulip", "qcom,msm8939"; 19 chassis-type = "handset"; 20 21 qcom,board-id = <QCOM_BOARD_ID_MTP 0>; 22 qcom,msm-id = <QCOM_ID_MSM8939 0>, <QCOM_ID_MSM8939 0x30000>; 23 24 aliases { 25 mmc0 = &sdhc_1; /* SDC1 eMMC slot */ 26 mmc1 = &sdhc_2; /* SDC2 SD card slot */ 27 serial0 = &blsp_uart2; 28 }; 29 30 chosen { 31 stdout-path = "serial0:115200n8"; 32 }; 33 34 usb_id: usb-id { 35 compatible = "linux,extcon-usb-gpio"; 36 id-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>; 37 pinctrl-0 = <&usb_id_default>; 38 pinctrl-names = "default"; 39 }; 40}; 41 42&gpu { 43 status = "okay"; 44}; 45 46&mdss { 47 status = "okay"; 48}; 49 50&tlmm { 51 sdc2_cd_default: sdc2-cd-default-state { 52 pins = "gpio38"; 53 function = "gpio"; 54 drive-strength = <2>; 55 bias-pull-up; 56 }; 57 58 usb_id_default: usb-id-default-state { 59 pins = "gpio110"; 60 function = "gpio"; 61 bias-pull-up; 62 drive-strength = <8>; 63 }; 64}; 65 66&sdhc_1 { 67 status = "okay"; 68}; 69 70&sdhc_2 { 71 pinctrl-0 = <&sdc2_default &sdc2_cd_default>; 72 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; 73 pinctrl-names = "default", "sleep"; 74 cd-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>; 75 status = "okay"; 76}; 77 78&usb { 79 extcon = <&usb_id>, <&usb_id>; 80 status = "okay"; 81}; 82 83&usb_hs_phy { 84 extcon = <&usb_id>; 85}; 86 87&wcnss { 88 status = "okay"; 89}; 90 91&wcnss_iris { 92 compatible = "qcom,wcn3660"; 93}; 94 95&wcnss_mem { 96 status = "okay"; 97}; 98