From b558de176a6bee155196df7fbec0c0bd4ad4dbde Mon Sep 17 00:00:00 2001 From: Jun-Hyung Kwon Date: Wed, 18 Sep 2019 15:20:04 -0700 Subject: [PATCH] ARM: dts: msm: Add SSC based sensors with SLPI PIL on Lahaina Add device node for SSC sensor device for Kona. This will create a device node to make userspace clients read sensor related information. Add devicetree node for SLPI PIL which facilitates the loading of SLPI firmware, authentication and bringing it out of reset. Change-Id: I839e33926e4ff2c5adda823604d17543ae84131c --- qcom/lahaina.dtsi | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index 78d96e4a..990132df 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -1692,6 +1692,7 @@ qcom,iommu-group = <>; }; }; + qcom,cvpss@abb0000 { compatible = "qcom,pil-tz-generic"; reg = <0xabb0000 0x2000>; @@ -1701,6 +1702,59 @@ memory-region = <&pil_cvp_mem>; }; + + qcom,ssc@5c00000 { + compatible = "qcom,pil-tz-generic"; + reg = <0x5c00000 0x4000>; + + vdd_cx-supply = <&VDD_LPI_CX_LEVEL>; + qcom,vdd_cx-uV-uA = ; + vdd_mx-supply = <&VDD_LPI_MX_LEVEL>; + qcom,vdd_mx-uV-uA = ; + qcom,proxy-reg-names = "vdd_cx", "vdd_mx"; + + clocks = <&clock_rpmh RPMH_CXO_CLK>; + clock-names = "xo"; + qcom,proxy-clock-names = "xo"; + + qcom,pas-id = <12>; + qcom,proxy-timeout-ms = <10000>; + qcom,smem-id = <424>; + qcom,sysmon-id = <3>; + qcom,ssctl-instance-id = <0x16>; + qcom,firmware-name = "slpi"; + status = "ok"; + memory-region = <&pil_slpi_mem>; + qcom,complete-ramdump; + qcom,signal-aop; + + /* Inputs from ssc */ + interrupts-extended = <&pdc 9 IRQ_TYPE_LEVEL_HIGH>, + <&dsps_smp2p_in 0 0>, + <&dsps_smp2p_in 2 0>, + <&dsps_smp2p_in 1 0>, + <&dsps_smp2p_in 3 0>; + + interrupt-names = "qcom,wdog", + "qcom,err-fatal", + "qcom,proxy-unvote", + "qcom,err-ready", + "qcom,stop-ack"; + + /* Outputs to ssc */ + qcom,smem-states = <&dsps_smp2p_out 0>; + qcom,smem-state-names = "qcom,force-stop"; + + mboxes = <&qmp_aop 0>; + mbox-names = "slpi-pil"; + }; + + ssc_sensors: qcom,msm-ssc-sensors { + compatible = "qcom,msm-ssc-sensors"; + status = "ok"; + qcom,firmware-name = "slpi"; + }; + }; #include "lahaina-regulators.dtsi"