arm64: dts: qcom: msm8994: Add support for SMD RPM
authorKonrad Dybcio <konradybcio@gmail.com>
Wed, 24 Jun 2020 15:01:04 +0000 (17:01 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 28 Jul 2020 06:36:51 +0000 (23:36 -0700)
Add support for SMD RPM, including pm8994 and pmi8994
regulators.

Signed-off-by: Konrad Dybcio <konradybcio@gmail.com>
Link: https://lore.kernel.org/r/20200624150107.76234-7-konradybcio@gmail.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
arch/arm64/boot/dts/qcom/msm8994.dtsi

index 4e23ec3..6707f89 100644 (file)
                };
        };
 
+       smd {
+               compatible = "qcom,smd";
+               rpm {
+                       interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
+                       qcom,ipc = <&apcs 8 0>;
+                       qcom,smd-edge = <15>;
+                       qcom,local-pid = <0>;
+                       qcom,remote-pid = <6>;
+
+                       rpm_requests: rpm-requests {
+                               compatible = "qcom,rpm-msm8994";
+                               qcom,smd-channels = "rpm_requests";
+
+                               rpmcc: rpmcc {
+                                       compatible = "qcom,rpmcc-msm8994";
+                                       #clock-cells = <1>;
+                               };
+                       };
+               };
+       };
+
        smem {
                compatible = "qcom,smem";
                memory-region = <&smem_mem>;
+               qcom,rpm-msg-ram = <&rpm_msg_ram>;
                hwlocks = <&tcsr_mutex 3>;
        };
 
                              <0xf9002000 0x1000>;
                };
 
+               apcs: mailbox@f900d000 {
+                       compatible = "qcom,msm8994-apcs-kpss-global", "syscon";
+                       reg = <0xf900d000 0x2000>;
+                       #mbox-cells = <1>;
+               };
+
                timer@f9020000 {
                        #address-cells = <1>;
                        #size-cells = <1>;
                        reg = <0xfc400000 0x2000>;
                };
 
+               rpm_msg_ram: memory@fc428000 {
+                       compatible = "qcom,rpm-msg-ram";
+                       reg = <0xfc428000 0x4000>;
+               };
+
                restart@fc4ab000 {
                        compatible = "qcom,pshold";
                        reg = <0xfc4ab000 0x4>;
                             <GIC_PPI 4 0xff08>,
                             <GIC_PPI 1 0xff08>;
        };
+
+       vreg_vph_pwr: vreg-vph-pwr {
+               compatible = "regulator-fixed";
+               regulator-name = "vph-pwr";
+
+               regulator-min-microvolt = <3600000>;
+               regulator-max-microvolt = <3600000>;
+
+               regulator-always-on;
+       };
 };