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
20	qcom,board-id = <QCOM_BOARD_ID_MTP 0>;
21	qcom,msm-id = <QCOM_ID_MSM8939 0>, <QCOM_ID_MSM8939 0x30000>;
22
23	aliases {
24		mmc0 = &sdhc_1; /* SDC1 eMMC slot */
25		mmc1 = &sdhc_2; /* SDC2 SD card slot */
26		serial0 = &blsp_uart2;
27	};
28
29	chosen {
30		stdout-path = "serial0:115200n8";
31	};
32
33	usb_id: usb-id {
34		compatible = "linux,extcon-usb-gpio";
35		id-gpio = <&tlmm 110 GPIO_ACTIVE_HIGH>;
36		pinctrl-0 = <&usb_id_default>;
37		pinctrl-names = "default";
38	};
39};
40
41&mdss {
42	status = "okay";
43};
44
45&tlmm {
46	sdc2_cd_default: sdc2-cd-default-state {
47		pins = "gpio38";
48		function = "gpio";
49		drive-strength = <2>;
50		bias-pull-up;
51	};
52
53	usb_id_default: usb-id-default-state {
54		pins = "gpio110";
55		function = "gpio";
56		bias-pull-up;
57		drive-strength = <8>;
58	};
59};
60
61&sdhc_1 {
62	status = "okay";
63};
64
65&sdhc_2 {
66	pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
67	pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
68	pinctrl-names = "default", "sleep";
69	cd-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
70	status = "okay";
71};
72
73&usb {
74	extcon = <&usb_id>, <&usb_id>;
75	status = "okay";
76};
77
78&usb_hs_phy {
79	extcon = <&usb_id>;
80};
81
82&wcnss {
83	status = "okay";
84};
85
86&wcnss_iris {
87	compatible = "qcom,wcn3660";
88};
89