aboutsummaryrefslogtreecommitdiffstats
path: root/data/schemas
diff options
context:
space:
mode:
authorJoel Challis2025-08-17 02:14:48 +0200
committerGitHub2025-08-17 02:14:48 +0200
commitcc696a2ae838a9639335ca8eb3cb3b794c06bc33 (patch)
tree901b54bda536acb5503c6cf924b0f30bca1a174e /data/schemas
parentf29d8117bf877a4df1f88f40e0131f4465748540 (diff)
Refactor battery driver (#25550)
Diffstat (limited to 'data/schemas')
-rw-r--r--data/schemas/keyboard.jsonschema22
1 files changed, 22 insertions, 0 deletions
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 3775b66c1a..93b1c82b1c 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -188,6 +188,28 @@
"as_caps_lock": {"type": "boolean"}
}
},
+ "battery": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "driver": {
+ "type": "string",
+ "enum": ["adc", "custom", "vendor"]
+ },
+ "adc": {
+ "type": "object",
+ "additionalProperties": false,
+ "properties": {
+ "pin": {"$ref": "./definitions.jsonschema#/mcu_pin"},
+ "reference_voltage": {"type": "integer"},
+ "divider_r1": {"type": "integer"},
+ "divider_r2": {"type": "integer"},
+ "resolution": {"type": "integer"}
+ }
+ },
+ "sample_interval": {"type": "integer"}
+ }
+ },
"bluetooth": {
"type": "object",
"additionalProperties": false,