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

Commit 43e99a0c authored by Yadu MG's avatar Yadu MG
Browse files

ARM: dts: msm: Add common device tree for SA8195 ADP



SA8195 ADP board has three variants. Reorganize common
entries present in multiple adp board files to a
common file and include it.

Change-Id: I842784442791be05562ece297e61a4592139d7b6
Signed-off-by: default avatarYadu MG <ymg@codeaurora.org>
parent 4c326afe
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ sa8195p-adp-star-overlay.dtbo-base := sa8195p.dtb
sa8195p-v2-adp-air-overlay.dtbo-base := sa8195p.dtb
else
dtb-$(CONFIG_ARCH_SDMSHRIKE)	+= sdmshrike-cdp.dtb \
	sa8195p-adp-star.dtb
	sa8195p-adp-star.dtb \
	sa8195p-v2-adp-air.dtb
endif

@@ -74,7 +74,9 @@ dtb-$(CONFIG_ARCH_SM6150) += sa6155-adp-star.dtb \
	sa6155p-v2-adp-air-lpass.dtb

endif
else

else # TARGET_BOARD_TYPE != auto

dtb-$(CONFIG_ARCH_QCOM)	+= apq8016-sbc.dtb
dtb-$(CONFIG_ARCH_QCOM)	+= apq8096-db820c.dtb
dtb-$(CONFIG_ARCH_QCOM)	+= ipq8074-hk01.dtb
@@ -547,8 +549,8 @@ dtb-$(CONFIG_ARCH_SDM429W) += sdm429-wtp.dtb\
	sda429-bg-dvt2-wtp.dtb
endif


endif

ifeq ($(CONFIG_ARM64),y)
always		:= $(dtb-y)
subdir-y	:= $(dts-dirs)
+142 −0
Original line number Diff line number Diff line
/* Copyright (c) 2020, 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 <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "sa8195p-cnss.dtsi"

&qupv3_se0_spi {
	status = "ok";

#address-cells = <1>;
#size-cells = <0>;

	can-controller@0 {
		compatible = "qcom,nxp,mpc5746c";
		reg = <0>;
		interrupt-parent = <&tlmm>;
		interrupts = <38 0>;
		spi-max-frequency = <5000000>;
		qcom,clk-freq-mhz = <40000000>;
		qcom,max-can-channels = <1>;
		qcom,bits-per-word = <8>;
		qcom,support-can-fd;
	};
};

&qupv3_se12_2uart {
	status = "ok";
};

&qupv3_se13_4uart {
	status = "ok";
};

&qupv3_se4_i2c {
	status = "ok";
};

&pil_lpass {
	status = "ok";
};

&pil_ssc {
	status = "disabled";
};

&pil_spss {
	status = "ok";
};

&pil_turing {
	status = "ok";
};

&pil_venus {
	status = "ok";
};

&pil_npu {
	status = "ok";
};

&glink_modem {
	status = "disabled";
};

&ssc_sensors {
	status = "disabled";
};

&soc {
	qcom,msm-cdsp-loader {
		status = "ok";
	};
};

&sdhc_2 {
	vdd-supply = <&pm8195_1_l10>;
	qcom,vdd-voltage-level = <2950000 2960000>;
	qcom,vdd-current-level = <200 800000>;

	vdd-io-supply = <&pm8195_1_l2>;
	qcom,vdd-io-voltage-level = <1808000 2960000>;
	qcom,vdd-io-current-level = <200 22000>;

	pinctrl-names = "active", "sleep";
	pinctrl-0 = <&sdc2_clk_on
		&sdc2_cmd_on &sdc2_data_on &storage_cd_default>;
	pinctrl-1 = <&sdc2_clk_off
		&sdc2_cmd_off &sdc2_data_off &storage_cd_default>;

	cd-gpios = <&pm8195_1_gpios 4 GPIO_ACTIVE_LOW>;

	status = "ok";
};

&pcie2 {
	qcom,boot-option = <0x0>;
};

&pcie_rc2 {
nvme_x8: qcom,nvme@pcie_rc2 {
		 reg = <0 0 0 0 0>;
		 compatible = "qcom,nvme";
		 pci-ids =
			 "8086:0953",
			 "8086:0a54",
			 "8086:0a55",
			 "8086:f1a5",
			 "8086:f1a5",
			 "1c58:0003",
			 "1c58:0023",
			 "1c5c:1327",
			 "1c5f:0540",
			 "144d:a821",
			 "144d:a822",
			 "144d:a808",
			 "1d1d:1f1f",
			 "1d1d:2807",
			 "1d1d:2601",
			 "106b:2001",
			 "106b:2003",
			 "1179:0115",
			 "1179:0116";

		 qcom,smmu;
		 qcom,smmu-iova-base = /bits/ 64 <0x20000000>;
		 qcom,smmu-iova-size = /bits/ 64 <0x40000000>;

		 qcom,smmu-attr-atomic;
		 qcom,smmu-attr-s1-bypass;
	 };
};
+2 −119
Original line number Diff line number Diff line
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2020, 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
@@ -11,122 +11,5 @@
 */

#include <dt-bindings/gpio/gpio.h>
#include "sa8195p-adp-common.dtsi"
#include "sa8195p-adp-star-display.dtsi"
#include "sa8195p-cnss.dtsi"

&qupv3_se0_spi {
	status = "ok";

	#address-cells = <1>;
	#size-cells = <0>;

	can-controller@0 {
		compatible = "qcom,nxp,mpc5746c";
		reg = <0>;
		interrupt-parent = <&tlmm>;
		interrupts = <38 0>;
		spi-max-frequency = <5000000>;
		qcom,clk-freq-mhz = <40000000>;
		qcom,max-can-channels = <1>;
		qcom,bits-per-word = <8>;
		qcom,support-can-fd;
	};
};

&qupv3_se12_2uart {
	status = "ok";
};

&qupv3_se13_4uart{
	status = "ok";
};

&sdhc_2 {
	vdd-supply = <&pm8195_1_l10>;
	qcom,vdd-voltage-level = <2950000 2960000>;
	qcom,vdd-current-level = <200 800000>;

	vdd-io-supply = <&pm8195_1_l2>;
	qcom,vdd-io-voltage-level = <1808000 2960000>;
	qcom,vdd-io-current-level = <200 22000>;

	pinctrl-names = "active", "sleep";
	pinctrl-0 = <&sdc2_clk_on
		&sdc2_cmd_on &sdc2_data_on &storage_cd_default>;
	pinctrl-1 = <&sdc2_clk_off
		&sdc2_cmd_off &sdc2_data_off &storage_cd_default>;

	cd-gpios = <&pm8195_1_gpios 4 GPIO_ACTIVE_LOW>;

	status = "ok";
};

&pil_lpass {
	status = "ok";
};

&pil_ssc {
	status = "disabled";
};

&pil_spss {
	status = "ok";
};

&pil_turing {
	status = "ok";
};

&pil_venus {
	status = "ok";
};

&pil_npu {
	status = "ok";
};

&glink_modem {
	status = "disabled";
};

&ssc_sensors {
	status = "disabled";
};

&pcie2 {
	qcom,boot-option = <0x0>;
};

&pcie_rc2 {
	nvme_x8: qcom,nvme@pcie_rc2 {
		reg = <0 0 0 0 0>;
		compatible = "qcom,nvme";
		pci-ids =
			"8086:0953",
			"8086:0a54",
			"8086:0a55",
			"8086:f1a5",
			"8086:f1a5",
			"1c58:0003",
			"1c58:0023",
			"1c5c:1327",
			"1c5f:0540",
			"144d:a821",
			"144d:a822",
			"144d:a808",
			"1d1d:1f1f",
			"1d1d:2807",
			"1d1d:2601",
			"106b:2001",
			"106b:2003",
			"1179:0115",
			"1179:0116";

		qcom,smmu;
		qcom,smmu-iova-base = /bits/ 64 <0x20000000>;
		qcom,smmu-iova-size = /bits/ 64 <0x40000000>;

		qcom,smmu-attr-atomic;
		qcom,smmu-attr-s1-bypass;
	};
};
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
/dts-v1/;

#include "sa8195p.dtsi"
#include "sa8195p-adp-common.dtsi"
#include "sa8195p-adp-star-display.dtsi"

/ {