Brad Bishop | 4afe708 | 2020-10-01 09:59:26 -0400 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "definitions": { |
| 4 | "IBMCFFPSConnector": { |
| 5 | "title": "IBM Common Form Factor (CFF) Power Supply connectors", |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 6 | "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 Bishop | 4afe708 | 2020-10-01 09:59:26 -0400 | [diff] [blame] | 7 | "type": "object", |
| 8 | "properties": { |
| 9 | "Name": { |
| 10 | "type": "string" |
| 11 | }, |
| 12 | "Type": { |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame] | 13 | "enum": ["IBMCFFPSConnector"] |
Brad Bishop | 4afe708 | 2020-10-01 09:59:26 -0400 | [diff] [blame] | 14 | }, |
| 15 | "I2CBus": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 16 | "description": "The I2C address on which to probe for a CFFPS.", |
Brad Bishop | 4afe708 | 2020-10-01 09:59:26 -0400 | [diff] [blame] | 17 | "type": "number" |
| 18 | }, |
| 19 | "I2CAddress": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 20 | "description": "The I2C bus number on which to probe for a CFFPS.", |
Brad Bishop | 4afe708 | 2020-10-01 09:59:26 -0400 | [diff] [blame] | 21 | "type": "number" |
| 22 | }, |
| 23 | "NamedPresenceGpio": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 24 | "description": "The name of the GPIO to monitor that indicates CFFPS plug state.", |
Brad Bishop | 4afe708 | 2020-10-01 09:59:26 -0400 | [diff] [blame] | 25 | "type": "string" |
| 26 | } |
| 27 | }, |
| 28 | "required": [ |
| 29 | "Name", |
| 30 | "Type", |
| 31 | "I2CBus", |
| 32 | "I2CAddress", |
| 33 | "NamedPresenceGpio" |
| 34 | ] |
Brad Bishop | 648ae63 | 2020-10-09 08:20:12 -0400 | [diff] [blame] | 35 | }, |
| 36 | "IBMCompatibleSystem": { |
| 37 | "title": "System compatibility", |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 38 | "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 Bishop | 648ae63 | 2020-10-09 08:20:12 -0400 | [diff] [blame] | 39 | "type": "object", |
| 40 | "properties": { |
| 41 | "Name": { |
| 42 | "type": "string" |
| 43 | }, |
| 44 | "Type": { |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame] | 45 | "enum": ["IBMCompatibleSystem"] |
Brad Bishop | 648ae63 | 2020-10-09 08:20:12 -0400 | [diff] [blame] | 46 | }, |
| 47 | "Names": { |
| 48 | "type": "array", |
| 49 | "items": { |
| 50 | "enum": [ |
Adriana Kobylak | 0b5b122 | 2023-01-31 14:15:27 -0600 | [diff] [blame] | 51 | "ibm,bonnell", |
Andrew Geissler | c7c5de7 | 2020-12-16 09:47:21 -0600 | [diff] [blame] | 52 | "ibm,everest", |
Matt Spinler | 6ef5f71 | 2024-05-13 11:19:40 -0500 | [diff] [blame^] | 53 | "ibm,fuji", |
Brad Bishop | 5f4a026 | 2020-10-09 08:30:19 -0400 | [diff] [blame] | 54 | "ibm,rainier-2u", |
Andrew Geissler | 3e55ec4 | 2021-03-11 14:04:27 -0600 | [diff] [blame] | 55 | "ibm,rainier-1s4u", |
Brad Bishop | 5f4a026 | 2020-10-09 08:30:19 -0400 | [diff] [blame] | 56 | "ibm,rainier-4u", |
| 57 | "ibm,rainier" |
Brad Bishop | 648ae63 | 2020-10-09 08:20:12 -0400 | [diff] [blame] | 58 | ] |
| 59 | } |
| 60 | } |
| 61 | }, |
Patrick Williams | fa8ee87 | 2022-12-07 07:00:42 -0600 | [diff] [blame] | 62 | "required": ["Name", "Type", "Names"] |
Chris Cain | 04b0b01 | 2021-12-14 16:19:05 -0600 | [diff] [blame] | 63 | }, |
| 64 | "PowerModeProperties": { |
| 65 | "title": "PowerMode Properties", |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 66 | "description": "The default PowerMode properties for the system", |
Chris Cain | 04b0b01 | 2021-12-14 16:19:05 -0600 | [diff] [blame] | 67 | "type": "object", |
| 68 | "properties": { |
| 69 | "PowerMode": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 70 | "description": "The default PowerMode to use prior to being set by a user.", |
Chris Cain | 04b0b01 | 2021-12-14 16:19:05 -0600 | [diff] [blame] | 71 | "enum": ["Static", "PowerSaving", "MaximumPerformance"] |
| 72 | }, |
| 73 | "IdlePowerSaverEnabled": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 74 | "description": "Default state of idle power saver mode. Setting to true will enable idle power saver.", |
Chris Cain | 04b0b01 | 2021-12-14 16:19:05 -0600 | [diff] [blame] | 75 | "type": "boolean" |
| 76 | }, |
| 77 | "EnterUtilizationPercent": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 78 | "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 Cain | 04b0b01 | 2021-12-14 16:19:05 -0600 | [diff] [blame] | 79 | "type": "number", |
| 80 | "minimum": 1, |
| 81 | "maximum": 95 |
| 82 | }, |
| 83 | "EnterUtilizationDwellTime": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 84 | "description": "The default duration in seconds that the system is below the EnterUtilizationPercent before idle power save is activated.", |
Chris Cain | 04b0b01 | 2021-12-14 16:19:05 -0600 | [diff] [blame] | 85 | "type": "number", |
| 86 | "minimum": 10, |
| 87 | "maximum": 600 |
| 88 | }, |
| 89 | "ExitUtilizationPercent": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 90 | "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 Cain | 04b0b01 | 2021-12-14 16:19:05 -0600 | [diff] [blame] | 91 | "type": "number", |
| 92 | "minimum": 5, |
| 93 | "maximum": 95 |
| 94 | }, |
| 95 | "ExitUtilizationDwellTime": { |
Andrew Jeffery | bb8aa37 | 2024-03-20 11:24:32 +1030 | [diff] [blame] | 96 | "description": "The default duration in seconds that the system is above the ExitUtilizationPercent before idle power save is deactivated.", |
Chris Cain | 04b0b01 | 2021-12-14 16:19:05 -0600 | [diff] [blame] | 97 | "type": "number", |
| 98 | "minimum": 10, |
| 99 | "maximum": 600 |
| 100 | } |
| 101 | }, |
| 102 | "required": ["PowerMode", "IdlePowerSaverEnabled"] |
Brad Bishop | 4afe708 | 2020-10-01 09:59:26 -0400 | [diff] [blame] | 103 | } |
| 104 | } |
| 105 | } |