Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edd45d07 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ARM: dts: msm: Add virtual subsystem notification nodes for SA8155 VM"

parents 4120a5fa fc5d81ca
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
Subsystem Notification Virtual Driver

The guest VM uses this driver to communicate
subsystem state notifications to a backend driver
via the virtual device's registers.

[Root level node]
Required Properties:
-compatible : Should be "qcom,subsys-notif-virt"
-reg : The start and size of the virtual device's
	register set.
-reg-names :  Should be "vdev_base" for virtual device's
	base address.

[Child nodes]
-subsys-names : The name of the subsystem that the
	driver is registering to notifications for.
-offset : The offset from the virtual device's register
	base where the subsystem state will be written.
-type : The type of the subsystem.
	"virtual" - When the subsystem is loaded by the host VM.
	"native" - When the subsystem is loaded by the guest VM.

Required Property for "virtual" subsystem types:
-interrupts : Tuple defining the interrupt which the driver must
		register for to receive subsystem state notifications
		from the backend.
-interrupt-names: Must be "state-irq"

Example:

	subsys_notif_virt: qcom,subsys_notif_virt@2D000000 {
		compatible = "qcom,subsys-notif-virt";
		reg = <0x2D000000 0x400>;
		reg-names = "vdev_base";
		adsp {
			subsys-name = "adsp";
			interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "state-irq";
			type = "virtual";
			offset = <0>;
		};
		modem {
			subsys-name = "modem";
			type = "native";
			offset = <256>;
		};
	};
+18 −0
Original line number Diff line number Diff line
@@ -275,6 +275,24 @@
		qcom,qsee-reentrancy-support = <2>;
	};

	subsys_notif_virt: qcom,subsys_notif_virt@2D000000 {
		compatible = "qcom,subsys-notif-virt";
		reg = <0x2D000000 0x400>;
		reg-names = "vdev_base";
		adsp {
			subsys-name = "adsp";
			interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "state-irq";
			type = "virtual";
			offset = <0>;
		};

		wlan {
			subsys-name = "wlan";
			type = "native";
			offset = <512>;
		};
	};
};

&regulator {