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

Commit 1b2dafb3 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

ARM: dts: msm: add spmi_debug_bus for sdxlemur

Add spmi_debug_bus so that PMIC peripherals can be accessed via
debug bus on sdxlemur devices where the fuse is not blown. This
is useful for debugging.

Change-Id: Ica647e8eee31028d25363aec88dd102cc0780ab6
parent 78408768
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
#include "sdxlemur-mtp.dtsi"
#include "pm7250b.dtsi"
#include <dt-bindings/iio/qti_power_supply_iio.h>
#include <dt-bindings/spmi/spmi.h>

&pm7250b_clkdiv {
	clocks = <&rpmhcc RPMH_CXO_CLK>;
@@ -14,6 +15,16 @@
	};
};

&spmi_debug_bus {
	qcom,pm7250b-debug@2 {
		compatible = "qcom,spmi-pmic";
		reg = <2 SPMI_USID>;
		#address-cells = <2>;
		#size-cells = <0>;
		qcom,can-sleep;
	};
};

&pcie0 {
	qcom,boot-option = <0x1>;
	qcom,l1-2-th-scale = <2>; /* 1us */
+11 −0
Original line number Diff line number Diff line
#include "sdxlemur-pmic-overlay.dtsi"
#include "pm7250b.dtsi"
#include <dt-bindings/iio/qti_power_supply_iio.h>
#include <dt-bindings/spmi/spmi.h>

&pm7250b_clkdiv {
	clocks = <&rpmhcc RPMH_CXO_CLK>;
@@ -14,6 +15,16 @@
	};
};

&spmi_debug_bus {
	qcom,pm7250b-debug@2 {
		compatible = "qcom,spmi-pmic";
		reg = <2 SPMI_USID>;
		#address-cells = <2>;
		#size-cells = <0>;
		qcom,can-sleep;
	};
};

&pcie0 {
	qcom,boot-option = <0x1>;
	qcom,l1-2-th-scale = <2>; /* 1us */
+28 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
#include <dt-bindings/interconnect/qcom,sdxlemur.h>
#include <dt-bindings/soc/qcom,rpmh-rsc.h>
#include <dt-bindings/regulator/qcom,rpmh-regulator-levels.h>
#include <dt-bindings/spmi/spmi.h>

/ {
	#address-cells = <1>;
@@ -904,6 +905,33 @@
		qcom,ee = <0>;
	};

	spmi_debug_bus: qcom,spmi-debug@6b12000 {
		compatible = "qcom,spmi-pmic-arb-debug";
		reg = <0x6b12000 0x60>, <0x7820a8 0x4>;
		reg-names = "core", "fuse";
		clocks = <&aopcc QDSS_CLK>;
		clock-names = "core_clk";
		qcom,fuse-disable-bit = <24>;
		#address-cells = <2>;
		#size-cells = <0>;

		qcom,pmk8350-debug@0 {
			compatible = "qcom,spmi-pmic";
			reg = <0 SPMI_USID>;
			#address-cells = <2>;
			#size-cells = <0>;
			qcom,can-sleep;
		};

		qcom,pmx65-debug@1 {
			compatible = "qcom,spmi-pmic";
			reg = <1 SPMI_USID>;
			#address-cells = <2>;
			#size-cells = <0>;
			qcom,can-sleep;
		};
	};

	thermal_zones: thermal-zones {
	};