About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / spmi




Custom Search

Based on kernel version 3.16. Page generated on 2014-08-06 21:38 EST.

1	System Power Management Interface (SPMI) Controller
2	
3	This document defines a generic set of bindings for use by SPMI controllers.  A
4	controller is modelled in device tree as a node with zero or more child nodes,
5	each representing a unique slave on the bus.
6	
7	Required properties:
8	- #address-cells : must be set to 2
9	- #size-cells : must be set to 0
10	
11	Child nodes:
12	
13	An SPMI controller node can contain zero or more child nodes representing slave
14	devices on the bus.  Child 'reg' properties are specified as an address, type
15	pair.  The address must be in the range 0-15 (4 bits).  The type must be one of
16	SPMI_USID (0) or SPMI_GSID (1) for Unique Slave ID or Group Slave ID respectively.
17	These are the identifiers "statically assigned by the system integrator", as
18	per the SPMI spec.
19	
20	Each child node must have one and only one 'reg' entry of type SPMI_USID.
21	
22	#include <dt-bindings/spmi/spmi.h>
23	
24		spmi@.. {
25			compatible = "...";
26			reg = <...>;
27	
28			#address-cells = <2>;
29			#size-cells = <0>;
30	
31			child@0 {
32				compatible = "...";
33				reg = <0 SPMI_USID>;
34			};
35	
36			child@7 {
37				compatible = "...";
38				reg = <7 SPMI_USID
39				       3 SPMI_GSID>;
40			};
41		};
Hide Line Numbers
About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Information is copyright its respective author. All material is available from the Linux Kernel Source distributed under a GPL License. This page is provided as a free service by mjmwired.net.