blob: 904fd0884fe83a641dabdcd028137483e5a699ec [file] [log] [blame]
Brad Bishop4afe7082020-10-01 09:59:26 -04001{
2 "$schema": "http://json-schema.org/draft-07/schema#",
Patrick Williams7d6080d2024-09-04 12:54:45 -04003 "$defs": {
Brad Bishop4afe7082020-10-01 09:59:26 -04004 "IBMCFFPSConnector": {
5 "title": "IBM Common Form Factor (CFF) Power Supply connectors",
Andrew Jefferybb8aa372024-03-20 11:24:32 +10306 "description": "A schema associating an I2C endpoint and a GPIO for IBM CFF power supplies. In the entity-manager detector-configuration-reactor architecture, the daemon that supports IBM CFFPS is both a detector and reactor. It probes the endpoints described by this schema (reactor) and publishes the CFFPS FRU information (detector).",
Brad Bishop4afe7082020-10-01 09:59:26 -04007 "type": "object",
Alexander Hansen5e0409b2025-04-11 15:45:10 +02008 "additionalProperties": false,
Brad Bishop4afe7082020-10-01 09:59:26 -04009 "properties": {
10 "Name": {
11 "type": "string"
12 },
13 "Type": {
Patrick Williamsfa8ee872022-12-07 07:00:42 -060014 "enum": ["IBMCFFPSConnector"]
Brad Bishop4afe7082020-10-01 09:59:26 -040015 },
16 "I2CBus": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103017 "description": "The I2C address on which to probe for a CFFPS.",
Brad Bishop4afe7082020-10-01 09:59:26 -040018 "type": "number"
19 },
20 "I2CAddress": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103021 "description": "The I2C bus number on which to probe for a CFFPS.",
Brad Bishop4afe7082020-10-01 09:59:26 -040022 "type": "number"
23 },
24 "NamedPresenceGpio": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103025 "description": "The name of the GPIO to monitor that indicates CFFPS plug state.",
Brad Bishop4afe7082020-10-01 09:59:26 -040026 "type": "string"
27 }
28 },
29 "required": [
30 "Name",
31 "Type",
32 "I2CBus",
33 "I2CAddress",
34 "NamedPresenceGpio"
35 ]
Brad Bishop648ae632020-10-09 08:20:12 -040036 },
37 "IBMCompatibleSystem": {
38 "title": "System compatibility",
Andrew Jefferybb8aa372024-03-20 11:24:32 +103039 "description": "Devicetree-like compatibility strings for systems, where a 'system' is roughly defined as the combination of a chassis and a mainboard. The strings should be used by applications to match the entity with entries or configuration in a hardware database. Strings appear in the list from most specific to most general. This allows an entity to express compatibility with a family of similar systems, in turn allowing an application to match a variety of systems with a single IBMCompatibleSystem entry. The recommended entry format is 'manufacturer,model' where the manufacturer is a string describing the name of the manufacturer and model specifies the model number.",
Brad Bishop648ae632020-10-09 08:20:12 -040040 "type": "object",
Alexander Hansen5e0409b2025-04-11 15:45:10 +020041 "additionalProperties": false,
Brad Bishop648ae632020-10-09 08:20:12 -040042 "properties": {
43 "Name": {
44 "type": "string"
45 },
46 "Type": {
Patrick Williamsfa8ee872022-12-07 07:00:42 -060047 "enum": ["IBMCompatibleSystem"]
Brad Bishop648ae632020-10-09 08:20:12 -040048 },
49 "Names": {
50 "type": "array",
51 "items": {
52 "enum": [
Faisal Awadadf8ed5f2025-04-02 16:09:26 -050053 "ibm,balcones",
Matt Spinler513976b2024-05-13 11:24:03 -050054 "ibm,blueridge",
55 "ibm,blueridge-1s4u",
56 "ibm,blueridge-2u",
57 "ibm,blueridge-4u",
Adriana Kobylak0b5b1222023-01-31 14:15:27 -060058 "ibm,bonnell",
Andrew Geisslerc7c5de72020-12-16 09:47:21 -060059 "ibm,everest",
Matt Spinler6ef5f712024-05-13 11:19:40 -050060 "ibm,fuji",
Brad Bishop5f4a0262020-10-09 08:30:19 -040061 "ibm,rainier-2u",
Andrew Geissler3e55ec42021-03-11 14:04:27 -060062 "ibm,rainier-1s4u",
Brad Bishop5f4a0262020-10-09 08:30:19 -040063 "ibm,rainier-4u",
64 "ibm,rainier"
Brad Bishop648ae632020-10-09 08:20:12 -040065 ]
66 }
67 }
68 },
Patrick Williamsfa8ee872022-12-07 07:00:42 -060069 "required": ["Name", "Type", "Names"]
Chris Cain04b0b012021-12-14 16:19:05 -060070 },
71 "PowerModeProperties": {
72 "title": "PowerMode Properties",
Andrew Jefferybb8aa372024-03-20 11:24:32 +103073 "description": "The default PowerMode properties for the system",
Chris Cain04b0b012021-12-14 16:19:05 -060074 "type": "object",
Alexander Hansen5e0409b2025-04-11 15:45:10 +020075 "additionalProperties": false,
Chris Cain04b0b012021-12-14 16:19:05 -060076 "properties": {
Alexander Hansen5e0409b2025-04-11 15:45:10 +020077 "Name": {
78 "type": "string"
79 },
80 "Type": {
81 "const": "PowerModeProperties"
82 },
Chris Cain04b0b012021-12-14 16:19:05 -060083 "PowerMode": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103084 "description": "The default PowerMode to use prior to being set by a user.",
Chris Cain04b0b012021-12-14 16:19:05 -060085 "enum": ["Static", "PowerSaving", "MaximumPerformance"]
86 },
87 "IdlePowerSaverEnabled": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103088 "description": "Default state of idle power saver mode. Setting to true will enable idle power saver.",
Chris Cain04b0b012021-12-14 16:19:05 -060089 "type": "boolean"
90 },
91 "EnterUtilizationPercent": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103092 "description": "The default percentage of utilization that the system shall be lower than to enter idle power save. The value is in integer percentage values (10 = 10%). EnterUtilizationPercent must be <= ExitUtilizationPercent",
Chris Cain04b0b012021-12-14 16:19:05 -060093 "type": "number",
94 "minimum": 1,
95 "maximum": 95
96 },
97 "EnterUtilizationDwellTime": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +103098 "description": "The default duration in seconds that the system is below the EnterUtilizationPercent before idle power save is activated.",
Chris Cain04b0b012021-12-14 16:19:05 -060099 "type": "number",
100 "minimum": 10,
101 "maximum": 600
102 },
103 "ExitUtilizationPercent": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +1030104 "description": "The default percentage of utilization that the system shall be above in order to exit idle power save. The value is in integer percentage values (10 = 10%). ExitUtilizationPercent must be >= EnterUtilizationPercent",
Chris Cain04b0b012021-12-14 16:19:05 -0600105 "type": "number",
106 "minimum": 5,
107 "maximum": 95
108 },
109 "ExitUtilizationDwellTime": {
Andrew Jefferybb8aa372024-03-20 11:24:32 +1030110 "description": "The default duration in seconds that the system is above the ExitUtilizationPercent before idle power save is deactivated.",
Chris Cain04b0b012021-12-14 16:19:05 -0600111 "type": "number",
112 "minimum": 10,
113 "maximum": 600
114 }
115 },
Alexander Hansen5e0409b2025-04-11 15:45:10 +0200116 "required": ["PowerMode", "IdlePowerSaverEnabled", "Name", "Type"]
Brad Bishop4afe7082020-10-01 09:59:26 -0400117 }
118 }
119}