From 60338e0dd436a9b45da7eda26d7a30419d8ca9c6 Mon Sep 17 00:00:00 2001 From: Anirudh Ghayal Date: Mon, 12 Dec 2016 10:03:50 +0530 Subject: [PATCH] ARM: dts: msm: Add SPMI and PMIC nodes for msmtriton SPMI enables communication with PMIC peripherals. Add the device tree node for it. While at it, include the supported PMIC configuration. CRs-Fixed: 1100152 Change-Id: Ib892e3c550e7486d615e9d29e701d2b0c19c45f0 Signed-off-by: Anirudh Ghayal --- .../boot/dts/qcom/msmtriton-regulator.dtsi | 10 ++++++++ arch/arm/boot/dts/qcom/msmtriton.dtsi | 23 +++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/qcom/msmtriton-regulator.dtsi b/arch/arm/boot/dts/qcom/msmtriton-regulator.dtsi index 323024278406..89369cc3ca6d 100644 --- a/arch/arm/boot/dts/qcom/msmtriton-regulator.dtsi +++ b/arch/arm/boot/dts/qcom/msmtriton-regulator.dtsi @@ -363,3 +363,13 @@ regulator-max-microvolt = <7>; }; }; + +&pmfalcon_charger { + smb2_vbus: qcom,smb2-vbus { + regulator-name = "smb2-vbus"; + }; + + smb2_vconn: qcom,smb2-vconn { + regulator-name = "smb2-vconn"; + }; +}; diff --git a/arch/arm/boot/dts/qcom/msmtriton.dtsi b/arch/arm/boot/dts/qcom/msmtriton.dtsi index dfa592c16643..b5472ec9cd46 100644 --- a/arch/arm/boot/dts/qcom/msmtriton.dtsi +++ b/arch/arm/boot/dts/qcom/msmtriton.dtsi @@ -1003,9 +1003,32 @@ qcom,config-arr = <0x178880b8 0x178980b8 0x178a80b8 0x178b80b8>; }; + + spmi_bus: qcom,spmi@800f000 { + compatible = "qcom,spmi-pmic-arb"; + reg = <0x800f000 0x1000>, + <0x8400000 0x1000000>, + <0x9400000 0x1000000>, + <0xa400000 0x220000>, + <0x800a000 0x3000>; + reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; + interrupt-names = "periph_irq"; + interrupts = ; + qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + cell-index = <0>; + qcom,not-wakeup; /* Needed until Full-boot-chain enabled */ + status = "ok"; + }; }; #include "msmtriton-ion.dtsi" +#include "msm-pmfalcon.dtsi" +#include "msm-pm2falcon.dtsi" #include "msmtriton-regulator.dtsi" #include "msm-gdsc-falcon.dtsi" #include "msmfalcon-common.dtsi"