171 lines
4.3 KiB
Plaintext
171 lines
4.3 KiB
Plaintext
/*
|
|
* Copyright (c) 2015-2016, 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.
|
|
*/
|
|
|
|
#include "msm8937-pinctrl.dtsi"
|
|
#include "msm8937-camera-sensor-qrd.dtsi"
|
|
|
|
&soc {
|
|
gpio_keys {
|
|
compatible = "gpio-keys";
|
|
input-name = "gpio-keys";
|
|
pinctrl-names = "tlmm_gpio_key_active","tlmm_gpio_key_suspend";
|
|
pinctrl-0 = <&gpio_key_active>;
|
|
pinctrl-1 = <&gpio_key_suspend>;
|
|
|
|
vol_up {
|
|
label = "volume_up";
|
|
gpios = <&tlmm 91 0x1>;
|
|
linux,input-type = <1>;
|
|
linux,code = <115>;
|
|
debounce-interval = <15>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&int_codec {
|
|
status = "okay";
|
|
qcom,msm-mbhc-hphl-swh = <1>;
|
|
qcom,msm-gpios =
|
|
"pri_i2s";
|
|
qcom,pinctrl-names =
|
|
"all_off",
|
|
"pri_i2s_act";
|
|
pinctrl-names =
|
|
"all_off",
|
|
"pri_i2s_act";
|
|
pinctrl-0 = <&cdc_pdm_lines_sus &cdc_pdm_lines_2_sus>;
|
|
pinctrl-1 = <&cdc_pdm_lines_act &cdc_pdm_lines_2_act>;
|
|
qcom,cdc-us-euro-gpios;
|
|
qcom,msm-hs-micbias-type = "internal";
|
|
qcom,audio-routing =
|
|
"RX_BIAS", "MCLK",
|
|
"SPK_RX_BIAS", "MCLK",
|
|
"INT_LDO_H", "MCLK",
|
|
"MIC BIAS External", "Handset Mic",
|
|
"MIC BIAS Internal2", "Headset Mic",
|
|
"MIC BIAS External", "Secondary Mic",
|
|
"AMIC1", "MIC BIAS External",
|
|
"AMIC2", "MIC BIAS Internal2",
|
|
"AMIC3", "MIC BIAS External";
|
|
};
|
|
|
|
|
|
&pm8937_cajon_dig {
|
|
status = "okay";
|
|
};
|
|
|
|
&pm8937_cajon_analog {
|
|
status = "okay";
|
|
};
|
|
|
|
&blsp1_uart2 {
|
|
status = "ok";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart_console_active>;
|
|
};
|
|
|
|
&sdhc_1 {
|
|
/* device core power supply */
|
|
vdd-supply = <&pm8937_l8>;
|
|
qcom,vdd-voltage-level = <2900000 2900000>;
|
|
qcom,vdd-current-level = <200 570000>;
|
|
|
|
/* device communication power supply */
|
|
vdd-io-supply = <&pm8937_l5>;
|
|
qcom,vdd-io-always-on;
|
|
qcom,vdd-io-lpm-sup;
|
|
qcom,vdd-io-voltage-level = <1800000 1800000>;
|
|
qcom,vdd-io-current-level = <200 325000>;
|
|
|
|
pinctrl-names = "active", "sleep";
|
|
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>;
|
|
pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>;
|
|
|
|
qcom,clk-rates = <400000 20000000 25000000 50000000 192000000
|
|
384000000>;
|
|
qcom,nonremovable;
|
|
qcom,bus-speed-mode = "HS400_1p8v", "HS200_1p8v", "DDR_1p8v";
|
|
|
|
status = "ok";
|
|
};
|
|
|
|
&sdhc_2 {
|
|
/* device core power supply */
|
|
vdd-supply = <&pm8937_l11>;
|
|
qcom,vdd-voltage-level = <2950000 2950000>;
|
|
qcom,vdd-current-level = <15000 800000>;
|
|
|
|
/* device communication power supply */
|
|
vdd-io-supply = <&pm8937_l12>;
|
|
qcom,vdd-io-voltage-level = <1800000 2950000>;
|
|
qcom,vdd-io-current-level = <200 22000>;
|
|
|
|
pinctrl-names = "active", "sleep";
|
|
pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
|
|
pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
|
|
|
|
#address-cells = <0>;
|
|
interrupt-parent = <&sdhc_2>;
|
|
interrupts = <0 1 2>;
|
|
#interrupt-cells = <1>;
|
|
interrupt-map-mask = <0xffffffff>;
|
|
interrupt-map = <0 &intc 0 125 0
|
|
1 &intc 0 221 0
|
|
2 &tlmm 67 0>;
|
|
interrupt-names = "hc_irq", "pwr_irq", "status_irq";
|
|
cd-gpios = <&tlmm 67 0x1>;
|
|
|
|
qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
|
|
200000000>;
|
|
qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
|
|
|
|
status = "ok";
|
|
};
|
|
|
|
&i2c_5 { /* BLSP2 QUP1 */
|
|
nq@28 {
|
|
compatible = "qcom,nq-nci";
|
|
reg = <0x28>;
|
|
qcom,nq-irq = <&tlmm 17 0x00>;
|
|
qcom,nq-ven = <&tlmm 16 0x00>;
|
|
qcom,nq-firm = <&tlmm 130 0x00>;
|
|
qcom,nq-clkreq = <&pm8937_gpios 5 0x00>;
|
|
interrupt-parent = <&tlmm>;
|
|
qcom,clk-src = "BBCLK2";
|
|
interrupts = <17 0>;
|
|
interrupt-names = "nfc_irq";
|
|
pinctrl-names = "nfc_active", "nfc_suspend";
|
|
pinctrl-0 = <&nfc_int_active &nfc_disable_active>;
|
|
pinctrl-1 = <&nfc_int_suspend &nfc_disable_suspend>;
|
|
clocks = <&clock_gcc clk_bb_clk2_pin>;
|
|
clock-names = "ref_clk";
|
|
};
|
|
};
|
|
|
|
&pm8937_gpios {
|
|
gpio@c400 {
|
|
qcom,mode = <0>;
|
|
qcom,output-type = <0>;
|
|
qcom,pull = <0>;
|
|
qcom,vin-sel = <2>;
|
|
qcom,out-strength = <3>;
|
|
qcom,src-sel = <0>;
|
|
qcom,master-en = <1>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
&pm8937_vadc {
|
|
/delete-node/ chan@11;
|
|
};
|