~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 8569a1a840b5185a76148ff24e3e1a8fdb62dacb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Sandbox SPMI emulated arbiter.

This is bus driver for Sandbox. It includes part of emulated pm8916 pmic.

Required properties:
- compatible: "sandbox,spmi"
- #address-cells: 0x1 - childs slave ID address
- #size-cells: 0x1

Example:

spmi: spmi@0 {
	compatible = "sandbox,spmi";
	#address-cells = <0x1>;
	#size-cells = <0x1>;
	pm8916@0 {
		compatible = "qcom,spmi-pmic";
		reg = <0x0 0x1>;
		#address-cells = <0x1>;
		#size-cells = <0x1>;

		spmi_gpios: gpios@c000 {
			compatible = "qcom,pm8916-gpio";
			reg = <0xc000 0x400>;
			gpio-controller;
			gpio-count = <4>;
			#gpio-cells = <2>;
			gpio-bank-name="spmi";
		};
	};
};