mirror of
https://github.com/Evolution-X-Devices/kernel_oneplus_sm8550-devicetrees
synced 2026-02-01 09:04:24 +00:00
Merge "ARM: dts: msm: Add virtual spmi device tree node for autogvm"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
826e46e1cf
62
qcom/pm8150-vm.dtsi
Normal file
62
qcom/pm8150-vm.dtsi
Normal file
@@ -0,0 +1,62 @@
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/input/qcom,qpnp-power-on.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_rtc: qcom,pm8150_rtc {
|
||||
compatible = "qcom,pm8941-rtc";
|
||||
reg = <0x6000>, <0x6100>;
|
||||
reg-names = "rtc", "alarm";
|
||||
interrupts = <0x0 0x61 0x1 IRQ_TYPE_LEVEL_HIGH>;
|
||||
qcom,disable-alarm-wakeup;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&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>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -203,5 +203,18 @@
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "quin-vm-common.dtsi"
|
||||
#include "pm8150-vm.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. SA8155 Guest Virtual Machine";
|
||||
|
||||
Reference in New Issue
Block a user