xref: /openbmc/linux/Documentation/ABI/testing/sysfs-devices-soc (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1da5a70f3SLee JonesWhat:		/sys/devices/socX
2da5a70f3SLee JonesDate:		January 2012
3*9f9c9090SLee Jonescontact:	Lee Jones <lee@kernel.org>
4da5a70f3SLee JonesDescription:
5da5a70f3SLee Jones		The /sys/devices/ directory contains a sub-directory for each
6da5a70f3SLee Jones		System-on-Chip (SoC) device on a running platform. Information
7da5a70f3SLee Jones		regarding each SoC can be obtained by reading sysfs files. This
8da5a70f3SLee Jones		functionality is only available if implemented by the platform.
9da5a70f3SLee Jones
10da5a70f3SLee Jones		The directory created for each SoC will also house information
11da5a70f3SLee Jones		about devices which are commonly contained in /sys/devices/platform.
12da5a70f3SLee Jones		It has been agreed that if an SoC device exists, its supported
13da5a70f3SLee Jones		devices would be better suited to appear as children of that SoC.
14da5a70f3SLee Jones
15da5a70f3SLee JonesWhat:		/sys/devices/socX/machine
16da5a70f3SLee JonesDate:		January 2012
17*9f9c9090SLee Jonescontact:	Lee Jones <lee@kernel.org>
18da5a70f3SLee JonesDescription:
19da5a70f3SLee Jones		Read-only attribute common to all SoCs. Contains the SoC machine
20da5a70f3SLee Jones		name (e.g. Ux500).
21da5a70f3SLee Jones
22da5a70f3SLee JonesWhat:		/sys/devices/socX/family
23da5a70f3SLee JonesDate:		January 2012
24*9f9c9090SLee Jonescontact:	Lee Jones <lee@kernel.org>
25da5a70f3SLee JonesDescription:
26da5a70f3SLee Jones		Read-only attribute common to all SoCs. Contains SoC family name
27da5a70f3SLee Jones		(e.g. DB8500).
28da5a70f3SLee Jones
29821b67faSSudeep Holla		On many of ARM based silicon with SMCCC v1.2+ compliant firmware
30821b67faSSudeep Holla		this will contain the JEDEC JEP106 manufacturer’s identification
31821b67faSSudeep Holla		code. The format is "jep106:XXYY" where XX is identity code and
32821b67faSSudeep Holla		YY is continuation code.
33821b67faSSudeep Holla
34821b67faSSudeep Holla		This manufacturer’s identification code is defined by one
35821b67faSSudeep Holla		or more eight (8) bit fields, each consisting of seven (7)
36821b67faSSudeep Holla		data bits plus one (1) odd parity bit. It is a single field,
37821b67faSSudeep Holla		limiting the possible number of vendors to 126. To expand
38821b67faSSudeep Holla		the maximum number of identification codes, a continuation
39821b67faSSudeep Holla		scheme has been defined.
40821b67faSSudeep Holla
41821b67faSSudeep Holla		The specified mechanism is that an identity code of 0x7F
42821b67faSSudeep Holla		represents the "continuation code" and implies the presence
43821b67faSSudeep Holla		of an additional identity code field, and this mechanism
44821b67faSSudeep Holla		may be extended to multiple continuation codes followed
45821b67faSSudeep Holla		by the manufacturer's identity code.
46821b67faSSudeep Holla
47821b67faSSudeep Holla		For example, ARM has identity code 0x7F 0x7F 0x7F 0x7F 0x3B,
48821b67faSSudeep Holla		which is code 0x3B on the fifth 'page'. This is shortened
49821b67faSSudeep Holla		as JEP106 identity code of 0x3B and a continuation code of
50821b67faSSudeep Holla		0x4 to represent the four continuation codes preceding the
51821b67faSSudeep Holla		identity code.
52821b67faSSudeep Holla
539aebf4deSBjorn AnderssonWhat:		/sys/devices/socX/serial_number
549aebf4deSBjorn AnderssonDate:		January 2019
559aebf4deSBjorn Anderssoncontact:	Bjorn Andersson <bjorn.andersson@linaro.org>
569aebf4deSBjorn AnderssonDescription:
579aebf4deSBjorn Andersson		Read-only attribute supported by most SoCs. Contains the SoC's
589aebf4deSBjorn Andersson		serial number, if available.
599aebf4deSBjorn Andersson
60da5a70f3SLee JonesWhat:		/sys/devices/socX/soc_id
61da5a70f3SLee JonesDate:		January 2012
62*9f9c9090SLee Jonescontact:	Lee Jones <lee@kernel.org>
63da5a70f3SLee JonesDescription:
64da5a70f3SLee Jones		Read-only attribute supported by most SoCs. In the case of
65da5a70f3SLee Jones		ST-Ericsson's chips this contains the SoC serial number.
66da5a70f3SLee Jones
67821b67faSSudeep Holla		On many of ARM based silicon with SMCCC v1.2+ compliant firmware
68821b67faSSudeep Holla		this will contain the SOC ID appended to the family attribute
69821b67faSSudeep Holla		to ensure there is no conflict in this namespace across various
70821b67faSSudeep Holla		vendors. The format is "jep106:XXYY:ZZZZ" where XX is identity
71821b67faSSudeep Holla		code, YY is continuation code and ZZZZ is the SOC ID.
72821b67faSSudeep Holla
73da5a70f3SLee JonesWhat:		/sys/devices/socX/revision
74da5a70f3SLee JonesDate:		January 2012
75*9f9c9090SLee Jonescontact:	Lee Jones <lee@kernel.org>
76da5a70f3SLee JonesDescription:
77da5a70f3SLee Jones		Read-only attribute supported by most SoCs. Contains the SoC's
78da5a70f3SLee Jones		manufacturing revision number.
79da5a70f3SLee Jones
80da5a70f3SLee JonesWhat:		/sys/devices/socX/process
81da5a70f3SLee JonesDate:		January 2012
82*9f9c9090SLee Jonescontact:	Lee Jones <lee@kernel.org>
83da5a70f3SLee JonesDescription:
84da5a70f3SLee Jones		Read-only attribute supported ST-Ericsson's silicon. Contains the
85da5a70f3SLee Jones		the process by which the silicon chip was manufactured.
86da5a70f3SLee Jones
87da5a70f3SLee JonesWhat:		/sys/bus/soc
88da5a70f3SLee JonesDate:		January 2012
89*9f9c9090SLee Jonescontact:	Lee Jones <lee@kernel.org>
90da5a70f3SLee JonesDescription:
91da5a70f3SLee Jones		The /sys/bus/soc/ directory contains the usual sub-folders
92da5a70f3SLee Jones		expected under most buses. /sys/bus/soc/devices is of particular
93da5a70f3SLee Jones		interest, as it contains a symlink for each SoC device found on
94da5a70f3SLee Jones		the system. Each symlink points back into the aforementioned
95da5a70f3SLee Jones		/sys/devices/socX devices.
96