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

Commit 703b8491 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge changes I076ea069,I550452e3,Ibb3016ca,I029c7a8b,I72bea13f,I607dcc51 into msm-next

* changes:
  ARM: dts: msm: add SPMI and PMIC simulator devices for SDM855 RUMI
  defconfig: sdm855: enable SPMI and PMIC simulator drivers
  spmi: add PM855L PMIC simulator
  spmi: add PM855B PMIC simulator
  spmi: add PM855 PMIC simulator
  spmi: add spmi controller simulator
parents b8750c6e c034f357
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
PM855 PMIC Simulator

This device simulates the registers found within a Qualcomm Technologies, Inc.
PM855 PMIC chip.

Supported Properties:

- compatible
	Usage:      required
	Value type: <string>
	Definition: Must be "qcom,pm855-sim".

- qcom,sid-offset
	Usage:      required
	Value type: <u32>
	Definition: Global slave ID (SID) offset of PM855 local SID 0.
		    Supported values: 0 - 14
		    Typical values: 0, 2, or 4

- qcom,spmi-sim
	Usage:      required
	Value type: <phandle>
	Definition: phandle of the spmi-sim bus device that the simulated PMIC
		    device should be used with.

Example:

pm855-sim {
	compatible = "qcom,pm855-sim";
	qcom,spmi-sim = <&spmi_sim>;
	qcom,sid-offset = <0>;
};
+32 −0
Original line number Diff line number Diff line
PM855B PMIC Simulator

This device simulates the registers found within a Qualcomm Technologies, Inc.
PM855B PMIC chip.

Supported Properties:

- compatible
	Usage:      required
	Value type: <string>
	Definition: Must be "qcom,pm855b-sim".

- qcom,sid-offset
	Usage:      required
	Value type: <u32>
	Definition: Global slave ID (SID) offset of PM855B local SID 0.
		    Supported values: 0 - 14
		    Typical values: 0, 2, or 4

- qcom,spmi-sim
	Usage:      required
	Value type: <phandle>
	Definition: phandle of the spmi-sim bus device that the simulated PMIC
		    device should be used with.

Example:

pm855b-sim {
	compatible = "qcom,pm855b-sim";
	qcom,spmi-sim = <&spmi_sim>;
	qcom,sid-offset = <2>;
};
+32 −0
Original line number Diff line number Diff line
PM855L PMIC Simulator

This device simulates the registers found within a Qualcomm Technologies, Inc.
PM855L PMIC chip.

Supported Properties:

- compatible
	Usage:      required
	Value type: <string>
	Definition: Must be "qcom,pm855l-sim".

- qcom,sid-offset
	Usage:      required
	Value type: <u32>
	Definition: Global slave ID (SID) offset of PM855L local SID 0.
		    Supported values: 0 - 14
		    Typical values: 0, 2, or 4

- qcom,spmi-sim
	Usage:      required
	Value type: <phandle>
	Definition: phandle of the spmi-sim bus device that the simulated PMIC
		    device should be used with.

Example:

pm855l-sim {
	compatible = "qcom,pm855l-sim";
	qcom,spmi-sim = <&spmi_sim>;
	qcom,sid-offset = <4>;
};
+87 −0
Original line number Diff line number Diff line
SPMI Controller Simulator

The SPMI Controller Simulator simulates an SPMI bus with PMIC devices attached
to it.

See spmi.txt for the generic SPMI controller binding requirements for child
nodes.

Supported Properties:

- compatible
	Usage:      required
	Value type: <string>
	Definition: Must be "qcom,spmi-sim".

- reg
	Usage:      required
	Value type: <prop-encoded-array>
	Definition: List of SPMI address and size pairs.  These addresses are
		    the ones to be simulated.

- #address-cells
	Usage:      required
	Value type: <u32>
	Definition: Must be 2.

- #size-cells
	Usage:      required
	Value type: <u32>
	Definition: Must be 0.

- interrupt-controller
	Usage:      required
	Value type: boolean
	Definition: Boolean indicating that the SPMI Controller Simulator is an
		    interrupt controller.

- #interrupt-cells
	Usage:      required
	Value type: <u32>
	Definition: Must be 4.
		    Interrupts are specified as a 4-tuple:
			Cell 1: Slave ID for the requested interrupt (0-15)
			Cell 2: Peripheral ID for requested interrupt (0-255)
			Cell 3: The requested peripheral interrupt (0-7)
			Cell 4: Interrupt flags indicating level-sense
				information, as defined in:
				dt-bindings/interrupt-controller/irq.h

- qcom,reg-defaults
	Usage:      optional
	Value type: <prop-encoded-array>
	Definition: List of SPMI address and value pairs.  These define the
		    default values read back from the simulated registers.  The
		    values must be between 0 and 255.

Simulated PMIC Device Supported Properties:

- qcom,spmi-sim
	Usage:      required
	Value type: <phandle>
	Definition: phandle of the spmi-sim bus device that the simulated PMIC
		    device should be used with.

Example:

spmi_sim: spmi-sim {
	compatible = "qcom,spmi-sim";
	reg = <0x00000 0x20000>,
	      <0x40000 0x20000>;
	#address-cells = <2>;
	#size-cells = <0>;
	interrupt-controller;
	#interrupt-cells = <4>;

	qcom,reg-defaults =
		<0x00104 0x51>,
		<0x00105 0x14>,
		<0x40104 0x51>,
		<0x40105 0x18>;
};

pm855-sim {
	compatible = "qcom,pm855-sim";
	qcom,spmi-sim = <&spmi_sim>;
	qcom,sid-offset = <0>;
};
+27 −0
Original line number Diff line number Diff line
@@ -55,6 +55,33 @@
			     <0 425 0 /* CE11 */ >;
		qcom,wlan-msa-memory = <0x100000>;
	};

	spmi_bus: spmi-sim {
		compatible = "qcom,spmi-sim";
		reg = <0x00000 0x60000>;
		#address-cells = <2>;
		#size-cells = <0>;
		interrupt-controller;
		#interrupt-cells = <4>;
	};

	pm855-sim {
		compatible = "qcom,pm855-sim";
		qcom,spmi-sim = <&spmi_bus>;
		qcom,sid-offset = <0>;
	};

	pm855b-sim {
		compatible = "qcom,pm855b-sim";
		qcom,spmi-sim = <&spmi_bus>;
		qcom,sid-offset = <2>;
	};

	pm855l-sim {
		compatible = "qcom,pm855l-sim";
		qcom,spmi-sim = <&spmi_bus>;
		qcom,sid-offset = <4>;
	};
};

&qupv3_se12_2uart {
Loading