xref: /linux/arch/arm64/boot/dts/qcom/msm8939-sony-xperia-kanuti-tulip.dts (revision 78964fcac47fc1525ecb4c37cd5fbc873c28320b)
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&mdss {
43	status = "okay";
44};
45
46&tlmm {
47	sdc2_cd_default: sdc2-cd-default-state {
48		pins = "gpio38";
49		function = "gpio";
50		drive-strength = <2>;
51		bias-pull-up;
52	};
53
54	usb_id_default: usb-id-default-state {
55		pins = "gpio110";
56		function = "gpio";
57		bias-pull-up;
58		drive-strength = <8>;
59	};
60};
61
62&sdhc_1 {
63	status = "okay";
64};
65
66&sdhc_2 {
67	pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
68	pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
69	pinctrl-names = "default", "sleep";
70	cd-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
71	status = "okay";
72};
73
74&usb {
75	extcon = <&usb_id>, <&usb_id>;
76	status = "okay";
77};
78
79&usb_hs_phy {
80	extcon = <&usb_id>;
81};
82
83&wcnss {
84	status = "okay";
85};
86
87&wcnss_iris {
88	compatible = "qcom,wcn3660";
89};
90