Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ccc3100 authored by Runmin Wang's avatar Runmin Wang
Browse files

ARM: dts: msm: add support for sdx20 V2



Add device tree support for sdx20 v2 for mtp, cdp,
and update the makefle to build them.

Change-Id: Ib0d77701b4038ca01a22423e8f8dcfeadf8e4754
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent 79459f1b
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -169,7 +169,13 @@ dtb-$(CONFIG_ARCH_SDX20) += sdx20-emmc-cdp.dtb \
	sdx20-nand-cdp.dtb \
	sdx20-nand-cdp.dtb \
	sdx20-nand-mtp.dtb \
	sdx20-nand-mtp.dtb \
	sdx20-nand-dualwifi-mtp.dtb \
	sdx20-nand-dualwifi-mtp.dtb \
	sdx20-nand-dualwifi-cdp.dtb
	sdx20-nand-dualwifi-cdp.dtb \
	sdx20-v2-emmc-cdp.dtb \
	sdx20-v2-emmc-mtp.dtb \
	sdx20-v2-nand-cdp.dtb \
	sdx20-v2-nand-mtp.dtb \
	sdx20-v2-nand-dualwifi-mtp.dtb \
	sdx20-v2-nand-dualwifi-cdp.dtb


dtb-$(CONFIG_ARCH_MSM8937) += msm8937-rumi.dtb \
dtb-$(CONFIG_ARCH_MSM8937) += msm8937-rumi.dtb \
	msm8937-pmi8950-cdp.dtb \
	msm8937-pmi8950-cdp.dtb \
+51 −0
Original line number Original line Diff line number Diff line
/* Copyright (c) 2017, 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.
 */

/dts-v1/;

#include "sdx20-cdp.dtsi"
#include "sdx20-v2.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. SDX20 V2 CDP (eMMC)";
	compatible = "qcom,sdx20-cdp", "qcom,sdx20",
		     "qcom,cdp";
	qcom,board-id = <1 0x00030000>, <1 0x00030100>;

	qcom,rmtfs_sharedmem@0 {
		compatible = "qcom,sharedmem-uio";
		reg = <0x0 0x00100000>;
		reg-names = "rmtfs";
		qcom,client-id = <0x00000001>;
	};
};

&sdhc_1 {
	vdd-supply = <&sdc_vreg>;

	vdd-io-supply = <&pmd9650_l6>;
	qcom,vdd-io-voltage-level = <1800000 1800000>;
	qcom,vdd-io-current-level = <100 200000>;

	pinctrl-names = "active", "sleep";
	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;

	qcom,bus-width = <8>;
	qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
			  200000000>;
	qcom,devfreq,freq-table = <50000000 200000000>;
	qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
	qcom,nonremovable;

	status = "ok";
};
+55 −0
Original line number Original line Diff line number Diff line
/* Copyright (c) 2017, 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.
 */

/dts-v1/;

#include "sdx20-mtp.dtsi"
#include "sdx20-v2.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. SDX20 V2 MTP (eMMC)";
	compatible = "qcom,sdx20-mtp", "qcom,sdx20",
		     "qcom,mtp";
	qcom,board-id = <8 0x00030000>, <8 0x00030100>;

	qcom,rmtfs_sharedmem@0 {
		compatible = "qcom,sharedmem-uio";
		reg = <0x0 0x00100000>;
		reg-names = "rmtfs";
		qcom,client-id = <0x00000001>;
	};
};

&qnand_1 {
	status = "disabled";
};

&sdhc_1 {
	vdd-supply = <&sdc_vreg>;

	vdd-io-supply = <&pmd9650_l6>;
	qcom,vdd-io-voltage-level = <1800000 1800000>;
	qcom,vdd-io-current-level = <100 200000>;

	pinctrl-names = "active", "sleep";
	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;

	qcom,bus-width = <8>;
	qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
			  200000000>;
	qcom,devfreq,freq-table = <50000000 200000000>;
	qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
	qcom,nonremovable;

	status = "ok";
};
+48 −0
Original line number Original line Diff line number Diff line
/* Copyright (c) 2017, 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.
 */

/dts-v1/;

#include "sdx20-cdp.dtsi"
#include "sdx20-v2.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. SDX20 V2 CDP (NAND)";
	compatible = "qcom,sdx20-cdp", "qcom,sdx20",
		     "qcom,cdp";
	qcom,board-id = <1 0x0>, <1 0x100>;
};

&qnand_1 {
	status = "ok";
};

&sdhc_1 {
	vdd-supply = <&sdc_vreg>;

	vdd-io-supply = <&pmd9650_l7>;
	qcom,vdd-io-voltage-level = <1800000 2848000>;
	qcom,vdd-io-current-level = <200 10000>;

	pinctrl-names = "active", "sleep";
	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;

	qcom,bus-width = <4>;
	qcom,clk-rates = <400000 20000000 25000000 50000000 100000000
			  200000000>;
	qcom,devfreq,freq-table = <50000000 200000000>;

	/* TODO: Add card detect GPIO */

	status = "ok";
};
+69 −0
Original line number Original line Diff line number Diff line
/* Copyright (c) 2017, 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.
 */

/dts-v1/;

#include "sdx20-cdp.dtsi"
#include "sdx20-v2.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. SDX20 V2 CDP - DWIFI";
	compatible = "qcom,sdx20-cdp", "qcom,sdx20",
		     "qcom,cdp";
	qcom,board-id = <1 0x2>, <1 0x102>;
};

&qnand_1 {
	status = "ok";
};

&smb1351_otg_supply {
	status = "disabled";
};

&sdhc_1 {
	vdd-supply = <&sdc_vreg>;
	vdd-io-supply = <&pmd9650_l6>;
	qcom,vdd-io-voltage-level = <1800000 1800000>;
	qcom,vdd-io-always-on;
	qcom,vdd-io-current-level = <200 10000>;

	qcom,clk-rates = <400000 20000000 25000000 50000000>;
	qcom,bus-width = <4>;
	qcom,core_3_0v_support;
	qcom,nonremovable;

	pinctrl-names = "active", "sleep";
	pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on
				&sdc1_wlan_gpio_active>;
	pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off
				&sdc1_wlan_gpio_sleep>;
	#address-cells = <0>;
	interrupt-parent = <&sdhc_1>;
	interrupts = <0 1 2>;
	#interrupt-cells = <1>;
	interrupt-map-mask = <0xffffffff>;
	interrupt-map = <0 &intc 0 123 0
			1 &intc 0 138 0
			2 &tlmm_pinmux 81 0x4>;
	interrupt-names = "hc_irq", "pwr_irq", "sdiowakeup_irq";

	status = "ok";
};

&cnss_pcie {
	qcom,is-dual-wifi-enabled;
};

&cnss_sdio {
	status = "ok";
};
Loading