From 1b2dafb3b21057e091e44fb38f7d975abd319d0c Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Thu, 19 Nov 2020 17:49:23 -0800 Subject: [PATCH] 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 --- qcom/sdxlemur-mtp-mbb.dtsi | 11 +++++++++++ qcom/sdxlemur-rcm-rc.dtsi | 11 +++++++++++ qcom/sdxlemur.dtsi | 28 ++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/qcom/sdxlemur-mtp-mbb.dtsi b/qcom/sdxlemur-mtp-mbb.dtsi index d477797ee914..de785008447c 100644 --- a/qcom/sdxlemur-mtp-mbb.dtsi +++ b/qcom/sdxlemur-mtp-mbb.dtsi @@ -1,6 +1,7 @@ #include "sdxlemur-mtp.dtsi" #include "pm7250b.dtsi" #include +#include &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 */ diff --git a/qcom/sdxlemur-rcm-rc.dtsi b/qcom/sdxlemur-rcm-rc.dtsi index 4293e321bd09..79a7e4a576da 100644 --- a/qcom/sdxlemur-rcm-rc.dtsi +++ b/qcom/sdxlemur-rcm-rc.dtsi @@ -1,6 +1,7 @@ #include "sdxlemur-pmic-overlay.dtsi" #include "pm7250b.dtsi" #include +#include &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 */ diff --git a/qcom/sdxlemur.dtsi b/qcom/sdxlemur.dtsi index 6aa9e75a2eed..c761d1ea5c55 100644 --- a/qcom/sdxlemur.dtsi +++ b/qcom/sdxlemur.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include / { #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 { };