About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog

Documentation / devicetree / bindings / mfd / syscon.txt


Based on kernel version 4.16.1. Page generated on 2018-04-09 11:52 EST.

1	* System Controller Registers R/W driver
2	
3	System controller node represents a register region containing a set
4	of miscellaneous registers. The registers are not cohesive enough to
5	represent as any specific type of device. The typical use-case is for
6	some other node's driver, or platform-specific code, to acquire a
7	reference to the syscon node (e.g. by phandle, node path, or search
8	using a specific compatible value), interrogate the node (or associated
9	OS driver) to determine the location of the registers, and access the
10	registers directly.
11	
12	Required properties:
13	- compatible: Should contain "syscon".
14	- reg: the register region can be accessed from syscon
15	
16	Optional property:
17	- reg-io-width: the size (in bytes) of the IO accesses that should be
18	  performed on the device.
19	- hwlocks: reference to a phandle of a hardware spinlock provider node.
20	
21	Examples:
22	gpr: iomuxc-gpr@20e0000 {
23		compatible = "fsl,imx6q-iomuxc-gpr", "syscon";
24		reg = <0x020e0000 0x38>;
25		hwlocks = <&hwlock1 1>;
26	};
27	
28	hwlock1: hwspinlock@40500000 {
29		...
30		reg = <0x40500000 0x1000>;
31		#hwlock-cells = <1>;
32	};
Hide Line Numbers


About Kernel Documentation Linux Kernel Contact Linux Resources Linux Blog