blob: 84f9cd4bb296886dde149e8bd82ac2c2af13ec63 [file] [log] [blame]
Brad Bishop4afe7082020-10-01 09:59:26 -04001{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "definitions": {
4 "IBMCFFPSConnector": {
5 "title": "IBM Common Form Factor (CFF) Power Supply connectors",
6 "description": [
7 "A schema associating an I2C endpoint and a GPIO for IBM CFF",
8 "power supplies. In the entity-manager",
9 "detector-configuration-reactor architecture, the daemon that",
10 "supports IBM CFFPS is both a detector and reactor. It probes",
11 "the endpoints described by this schema (reactor) and publishes",
12 "the CFFPS FRU information (detector)."
13 ],
14 "type": "object",
15 "properties": {
16 "Name": {
17 "type": "string"
18 },
19 "Type": {
20 "enum": [
21 "IBMCFFPSConnector"
22 ]
23 },
24 "I2CBus": {
25 "description": [
26 "The I2C address on which to probe for a CFFPS."
27 ],
28 "type": "number"
29 },
30 "I2CAddress": {
31 "description": [
32 "The I2C bus number on which to probe for a CFFPS."
33 ],
34 "type": "number"
35 },
36 "NamedPresenceGpio": {
37 "description": [
38 "The name of the GPIO to monitor that indicates CFFPS",
39 "plug state."
40 ],
41 "type": "string"
42 }
43 },
44 "required": [
45 "Name",
46 "Type",
47 "I2CBus",
48 "I2CAddress",
49 "NamedPresenceGpio"
50 ]
Brad Bishop648ae632020-10-09 08:20:12 -040051 },
52 "IBMCompatibleSystem": {
53 "title": "System compatibility",
54 "description": [
55 "Devicetree-like compatibility strings for systems, where a",
56 "'system' is roughly defined as the combination of a chassis and a",
57 "mainboard.",
58 "",
59 "The strings should be used by applications to match the",
60 "entity with entries or configuration in a hardware database.",
61 "Strings appear in the list from most specific to most",
62 "general. This allows an entity to express compatibility with",
Brad Bishopdef29272020-10-14 13:16:43 -040063 "a family of similar systems, in turn allowing an application",
64 "to match a variety of systems with a single",
65 "IBMCompatibleSystem entry.",
Brad Bishop648ae632020-10-09 08:20:12 -040066 "",
67 "The recommended entry format is 'manufacturer,model' where",
68 "the manufacturer is a string describing the name of the",
69 "manufacturer and model specifies the model number."
70
71 ],
72 "type": "object",
73 "properties": {
74 "Name": {
75 "type": "string"
76 },
77 "Type": {
78 "enum": [
79 "IBMCompatibleSystem"
80 ]
81 },
82 "Names": {
83 "type": "array",
84 "items": {
85 "enum": [
Andrew Geisslerc7c5de72020-12-16 09:47:21 -060086 "ibm,everest",
Brad Bishop5f4a0262020-10-09 08:30:19 -040087 "ibm,rainier-2u",
Andrew Geissler3e55ec42021-03-11 14:04:27 -060088 "ibm,rainier-1s4u",
Brad Bishop5f4a0262020-10-09 08:30:19 -040089 "ibm,rainier-4u",
90 "ibm,rainier"
Brad Bishop648ae632020-10-09 08:20:12 -040091 ]
92 }
93 }
94 },
95 "required": [
96 "Name",
97 "Type",
98 "Names"
99 ]
Brad Bishop4afe7082020-10-01 09:59:26 -0400100 }
101 }
102}