Merge "ARM: dts: msm: Add virtual spmi device tree node for sa8155"

This commit is contained in:
qctecmdr 2021-02-25 22:06:52 -08:00 • committed by Gerrit - the friendly Code Review server
commit 3940190eb6
3 changed files with 70 additions and 0 deletions

56
qcom/pm8150-vm.dtsi Normal file
View file

@ -0,0 +1,56 @@
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/qcom,qpnp-power-on.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/spmi/spmi.h>
#include <dt-bindings/iio/qcom,spmi-vadc.h>
&spmi_bus {
qcom,pm8150@0 {
compatible = "qcom,spmi-pmic";
reg = <0 SPMI_USID>;
#address-cells = <1>;
#size-cells = <0>;
pm8150_gpios: pinctrl@c000 {
compatible = "qcom,pm8150-gpio";
reg = <0xc000>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
};
&pm8150_gpios {
key_home {
key_home_default: key_home_default {
pins = "gpio1";
function = "normal";
input-enable;
bias-pull-up;
power-source = <0>;
};
};
storage_sd_detect {
storage_cd_default: storage_cd_default {
pins = "gpio4";
function = "normal";
input-enable;
bias-pull-up;
power-source = <0>;
};
};
key_vol_up {
key_vol_up_default: key_vol_up_default {
pins = "gpio6";
function = "normal";
input-enable;
bias-pull-up;
power-source = <1>;
};
};
};

View file

@ -266,4 +266,17 @@
reg = <0xc221000 0x1000>;
clock-frequency = <32768>;
};
spmi_bus: virtio-spmi@1c800000 {
compatible = "virtio,mmio";
#address-cells = <1>;
#size-cells = <1>;
reg = <0x1c800000 0x1100>;
interrupt-names = "periph_irq";
interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
#interrupt-cells = <4>;
cell-index = <0>;
status = "okay";
};
};

View file

@ -393,6 +393,7 @@
#include "sa8155-vm-pcie.dtsi"
#include "sm8150-qupv3.dtsi"
#include "sm8150-ssc-qupv3.dtsi"
#include "pm8150-vm.dtsi"
&tlmm {
/delete-property/ wakeup-parent;