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

Commit bd487584 authored by Keith Fallows's avatar Keith Fallows
Browse files

ARM: dts: msm: Add mcd device tree data for msm8916 and msm8939



Add the MCD device tree data to dts files by adding mcd device
node with all the necessary parameters.

Change-Id: Ieb80a09ad07b1f8b8234d3f2cac59b5cefc3f95a
Acked-by: default avatarTony Hamilton <tonyh@qti.qualcomm.com>
Signed-off-by: default avatarKeith Fallows <keithf@codeaurora.org>
parent 684e3f06
Loading
Loading
Loading
Loading
+29 −0
Original line number Original line Diff line number Diff line
* MCD (MobiCore Driver)

t-base is an operating system running in the secure world (TrustZone).
The t-base implementation consists of several components in the
secure world and the non-secure world (kernel and user space). The
MobiCore driver communicates with the t-base operating system that
exists in TrustZone.

Required properties:
  - compatible: Should be "qcom,mcd"
  - qcom,ce-hw-instance: should contain crypto HW instance
  - qcom,ce-device: Device number
  - clocks: Array of <clock_controller_phandle clock_reference> listing
            all the clocks that are accesed by this subsystem.
  - qcom,ce-opp-freq: indicates the CE operating frequency in Hz, changes from target to target.

Example:
	mcd {
		compatible = "qcom,mcd";
		qcom,ce-hw-instance = <0>;
		qcom,ce-device = <0>;
		clocks = <&clock_gcc clk_crypto_clk_src>,
			 <&clock_gcc clk_gcc_crypto_clk>,
			 <&clock_gcc clk_gcc_crypto_ahb_clk>,
			 <&clock_gcc clk_gcc_crypto_axi_clk>;
		clock-names = "core_clk_src", "core_clk",
				"iface_clk", "bus_clk";
		qcom,ce-opp-freq = <100000000>;
	};
+14 −1
Original line number Original line Diff line number Diff line
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * 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
 * it under the terms of the GNU General Public License version 2 and
@@ -1786,6 +1786,19 @@
		reg-names = "avtimer_lsb_addr", "avtimer_msb_addr";
		reg-names = "avtimer_lsb_addr", "avtimer_msb_addr";
		qcom,clk_div = <27>;
		qcom,clk_div = <27>;
	};
	};

	mcd {
		compatible = "qcom,mcd";
		qcom,ce-hw-instance = <0>;
		qcom,ce-device = <0>;
		clocks = <&clock_gcc clk_crypto_clk_src>,
			 <&clock_gcc clk_gcc_crypto_clk>,
			 <&clock_gcc clk_gcc_crypto_ahb_clk>,
			 <&clock_gcc clk_gcc_crypto_axi_clk>;
		clock-names = "core_clk_src", "core_clk",
				"iface_clk", "bus_clk";
		qcom,ce-opp-freq = <100000000>;
	};
};
};


&gdsc_venus {
&gdsc_venus {
+14 −1
Original line number Original line Diff line number Diff line
/* Copyright (c) 2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * 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
 * it under the terms of the GNU General Public License version 2 and
@@ -1620,6 +1620,19 @@
		reg-names = "avtimer_lsb_addr", "avtimer_msb_addr";
		reg-names = "avtimer_lsb_addr", "avtimer_msb_addr";
		qcom,clk_div = <27>;
		qcom,clk_div = <27>;
	};
	};

	mcd {
		compatible = "qcom,mcd";
		qcom,ce-hw-instance = <0>;
		qcom,ce-device = <0>;
		clocks = <&clock_gcc clk_crypto_clk_src>,
			 <&clock_gcc clk_gcc_crypto_clk>,
			 <&clock_gcc clk_gcc_crypto_ahb_clk>,
			 <&clock_gcc clk_gcc_crypto_axi_clk>;
		clock-names = "core_clk_src", "core_clk",
				"iface_clk", "bus_clk";
		qcom,ce-opp-freq = <100000000>;
	};
};
};


&gdsc_venus {
&gdsc_venus {