M7350/kernel/arch/arm/boot/dts/m7350-un-v3/msm9625-mtp.dtsi
2024-09-09 08:54:06 +00:00

112 lines
2.5 KiB
Plaintext
Executable File

/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
&soc {
i2c@f9925000 {
};
wlan0: qca,wlan {
cell-index = <0>;
compatible = "qca,ar6004-hsic";
qca,chip-pwd-l-gpios = <&msmgpio 62 0>;
qca,pm-enable-gpios = <&pm8019_gpios 3 0x0>;
qca,vdd-io-supply = <&pm8019_l11>;
};
qca,wlan_ar6003 {
cell-index = <0>;
compatible = "qca,ar6003-sdio";
qca,chip-pwd-l-gpios = <&msmgpio 62 0>;
qca,pm-enable-gpios = <&pm8019_gpios 3 0x0>;
qca,vdd-io-supply = <&pm8019_l11>;
};
mp2617 {
cell-index = <0>;
compatible = "mps,mp2617";
mps,chg-current-ma = <1000>;
mps,chg-vbat-div = <3>; /* Divided by 3 before input */
mps,chg-en-gpio = <&msmgpio 13 0>; /* refer to board-9625-gpiomux.c */
mps,chg-ok-gpio = <&msmgpio 71 0>;
mps,chg-m0-gpio = <&msmgpio 12 0>;
mps,chg-m1-gpio = <&msmgpio 17 0>;
};
};
/* PM8019 GPIO and MPP configuration */
&pm8019_gpios {
gpio@c000 { /* GPIO 1 */
};
gpio@c100 { /* GPIO 2 */
};
gpio@c200 { /* GPIO 3 */
};
gpio@c300 { /* GPIO 4 */
/* ext_2p95v regulator enable config */
qcom,mode = <1>; /* Digital output */
qcom,output-type = <0>; /* CMOS */
qcom,invert = <0>; /* Output low */
qcom,out-strength = <1>; /* Low */
qcom,vin-sel = <2>; /* PM8019 L11 - 1.8V */
qcom,src-sel = <0>; /* Constant */
qcom,master-en = <1>; /* Enable GPIO */
};
gpio@c400 { /* GPIO 5 */
};
gpio@c500 { /* GPIO 6 */
};
};
&pm8019_mpps {
mpp@a000 { /* MPP 1 */
};
/* [linyunfeng] Detect battery voltage */
mpp@a100 { /* MPP 2 */
/* channel 17 */
qcom,mode = <4>;
qcom,ain-route = <1>; /* AMUX 6 */
qcom,master-en = <1>;
qcom,src-sel = <0>; /* Function constant */
qcom,invert = <1>;
};
mpp@a200 { /* MPP 3 */
};
mpp@a300 { /* MPP 4 */
/* VADC channel 19 */
qcom,mode = <4>;
qcom,ain-route = <3>; /* AMUX 8 */
qcom,master-en = <1>;
qcom,src-sel = <0>; /* Function constant */
qcom,invert = <1>;
};
mpp@a400 { /* MPP 5 */
};
mpp@a500 { /* MPP 6 */
/* channel 21 */
qcom,mode = <4>;
qcom,ain-route = <1>; /* AMUX 6 */
qcom,master-en = <1>;
qcom,src-sel = <0>; /* Function constant */
qcom,invert = <1>;
};
};