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

Commit 48f805d3 authored by Firoz Khan's avatar Firoz Khan
Browse files

ARM: dts: msm: add DTBO support for MSM8996pro CDP board



Add device tree blob for overlay support for MSM CDP board.
Divide the initial device tree files into main and overlay
device tree based on soc and board specific information.

Change-Id: Ied6555fbe9451ab64cc53425f77fc68dd7167ee1
Signed-off-by: default avatarFiroz Khan <firozk@codeaurora.org>
parent b7d9f06c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@ dtbo-$(CONFIG_ARCH_MSM8996) += \
	apq8096pro-v1.1-auto-adp-lite-overlay.dtbo \
	msm8996pro-auto-adp-overlay.dtbo \
	msm8996pro-auto-adp-lite-overlay.dtbo \
	apq8096pro-auto-cdp-overlay.dtbo
	apq8096pro-auto-cdp-overlay.dtbo \
	msm8996pro-v1.1-auto-cdp-overlay.dtbo

msm8996-mtp-overlay.dtbo-base :=  msm8996pro-v1.1-pmi8996.dtb \
				msm8996-v3-pmi8996.dtb \
@@ -15,6 +16,7 @@ apq8096pro-v1.1-auto-adp-lite-overlay.dtbo-base := apq8096pro-v1.1-auto.dtb
msm8996pro-auto-adp-overlay.dtbo-base := msm8996pro-auto.dtb
msm8996pro-auto-adp-lite-overlay.dtbo-base := msm8996pro-auto.dtb
apq8096pro-auto-cdp-overlay.dtbo-base := apq8096pro-auto.dtb
msm8996pro-v1.1-auto-cdp-overlay.dtbo-base := msm8996pro-v1.1-auto.dtb
else
dtb-$(CONFIG_ARCH_MSM8996) += msm8996-v2-pmi8994-cdp.dtb \
	msm8996-v2-pmi8994-mtp.dtb \
+23 −0
Original line number Diff line number Diff line
/* Copyright (c) 2019, 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/;
/plugin/;

#include "msm8996pro-v1.1-auto-cdp.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. MSM 8996pro v1.1 AUTO CDP";
	compatible = "qcom,msm8996-cdp", "qcom,msm8996", "qcom,cdp";
	qcom,msm-id = <315 0x10001>;
	qcom,board-id = <0x03010001 0>;
};
+34 −0
Original line number Diff line number Diff line
/* Copyright (c) 2019, 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/clock/msm-clocks-8996.h>
#include "msm8996-pm8994.dtsi"
#include "msm8996-auto-cdp.dtsi"

&spi_9 {
	status = "ok";
	can-controller@0 {
		compatible = "renesas,rh850";
		reg = <0>;
		interrupt-parent = <&tlmm>;
		interrupts = <122 0>;
		spi-max-frequency = <5000000>;
	};
};

&pil_modem {
	pinctrl-names = "default";
	pinctrl-0 = <&modem_mux>;
};

/delete-node/ &qcom_pmi8994_3;
/delete-node/ &qcom_pm8004_5;
+23 −0
Original line number Diff line number Diff line
/* Copyright (c) 2019, 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 "msm8996pro-v1.1-auto.dtsi"

/ {
	model = "Qualcomm Technologies, Inc. MSM 8996pro AUTO SoC";
	compatible = "qcom,msm8996-adp", "qcom,msm8996", "qcom,adp";
	qcom,msm-id = <315 0x10001>;
	qcom,pmic-id = <0x20009 0x0 0x0 0x0>;
	qcom,board-id = <0 0>;
};
+72 −0
Original line number Diff line number Diff line
/* Copyright (c) 2019, 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 "msm8996pro.dtsi"
#include "msm8996pro-auto.dtsi"
#include "msm8996-auto.dtsi"

&spmi_bus {
	/delete-node/ qcom,pmi8994@2;
	/delete-node/ qcom,pmi8994@3;
	/delete-node/ qcom,pm8004@5;
};

&rpm_bus {
	/delete-node/ rpm-regulator-bstb;
	/delete-node/ rpm-regulator-bbyb;
	/delete-node/ rpm-regulator-smpb1;
};

&slim_msm {
	status = "disabled";
};

&mdss_dsi0 {
	/delete-property/ lab-supply;
	/delete-property/ ibb-supply;
};

&mdss_dsi1 {
	/delete-property/ lab-supply;
	/delete-property/ ibb-supply;
};

&usb_otg_switch {
	/delete-property/ vin-supply;
	/delete-property/ gpio;
};

&usb3 {
	/delete-property/ vbus_dwc3-supply;
};

&pcie0 {
	/delete-property/ qcom,l1-supported;
	/delete-property/ qcom,l1ss-supported;
	/delete-property/ qcom,aux-clk-sync;
};

&pcie1 {
	/delete-property/ qcom,boot-option;
	/delete-property/ qcom,l1-supported;
	/delete-property/ qcom,l1ss-supported;
	/delete-property/ qcom,aux-clk-sync;
	/delete-property/ qcom,ep-wakeirq;
};

&pcie2 {
	/delete-property/ qcom,boot-option;
	/delete-property/ qcom,l1-supported;
	/delete-property/ qcom,l1ss-supported;
	/delete-property/ qcom,aux-clk-sync;
	/delete-property/ qcom,ep-wakeirq;
};