-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add partition table; and otp permissions, whitelabel, contents and settings JSON schemas * Move example json files into json folder, with schemas in json/schemas
- Loading branch information
Showing
11 changed files
with
512 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/raspberrypi/picotool/develop/json/schemas/partition-table-schema.json", | ||
"version": [1, 0], | ||
"unpartitioned": { | ||
"families": ["absolute"], | ||
"permissions": { | ||
"secure": "rw", | ||
"nonsecure": "rw", | ||
"bootloader": "rw" | ||
} | ||
}, | ||
"partitions": [ | ||
{ | ||
"name": "A", | ||
"id": 0, | ||
"size": "2044K", | ||
"families": ["rp2350-arm-s", "rp2350-riscv"], | ||
"permissions": { | ||
"secure": "rw", | ||
"nonsecure": "rw", | ||
"bootloader": "rw" | ||
} | ||
}, | ||
{ | ||
"name": "B", | ||
"id": 1, | ||
"size": "2044K", | ||
"families": ["rp2350-arm-s", "rp2350-riscv"], | ||
"permissions": { | ||
"secure": "rw", | ||
"nonsecure": "rw", | ||
"bootloader": "rw" | ||
}, | ||
"link": ["a", 0] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "OTP Contents", | ||
"description": "Defined contents of the RP-series device OTP", | ||
"type": "array", | ||
"items": { | ||
"description": "OTP Row", | ||
"type": "object", | ||
"properties": { | ||
"crit": { | ||
"description": "Critical Row (use three-of-eight vote encoding)", | ||
"type": "boolean" | ||
}, | ||
"description": { | ||
"description": "Row Description", | ||
"type": "string" | ||
}, | ||
"ecc": { | ||
"description": "ECC Row", | ||
"type": "boolean" | ||
}, | ||
"fields": { | ||
"description": "Fields within row", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"description": { | ||
"description": "Field Description", | ||
"type": "string" | ||
}, | ||
"mask": { | ||
"description": "Field Bit Mask", | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"description": "Field Name", | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["description", "mask", "name"], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"mask": { | ||
"description": "Row Bit Mask", | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"description": "Row Name", | ||
"type": "string" | ||
}, | ||
"redundancy": { | ||
"description": "Number of redundant rows", | ||
"type": "integer" | ||
}, | ||
"row": { | ||
"description": "OTP Row", | ||
"type": "integer" | ||
}, | ||
"seq_index": { | ||
"description": "Sequence Index", | ||
"type": "integer" | ||
}, | ||
"seq_length": { | ||
"description": "Sequence Length", | ||
"type": "integer" | ||
}, | ||
"seq_prefix": { | ||
"description": "Sequence Prefix", | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["crit", "description"], | ||
"additionalProperties": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"title": "OTP Settings", | ||
"description": "OTP Settings", | ||
"type": "object", | ||
"properties": {"$schema": {}}, | ||
"patternProperties": { | ||
"^\\d{1,2}:\\d{1,2}$": { | ||
"description": "Generic OTP Row", | ||
"type": "object", | ||
"properties": { | ||
"ecc": { | ||
"description": "Protect with ECC", | ||
"type": "boolean" | ||
}, | ||
"value": { | ||
"description": "Value to write", | ||
"type": ["array", "string", "integer"], | ||
"pattern": "^0x[0-9a-fA-F]{1,6}$", | ||
"items": { | ||
"description": "Data Byte", | ||
"type": ["string", "integer"], | ||
"pattern": "^0x[0-9a-fA-F]{1,2}$" | ||
} | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": ["ecc", "value"] | ||
}, | ||
"^[\\d\\w_]+$": { | ||
"description": "Defined OTP Row", | ||
"type": ["object", "array", "string", "integer"], | ||
"pattern": "^0x[0-9a-fA-F]{1,6}$", | ||
"items": { | ||
"description": "Data Byte", | ||
"type": ["string", "integer"], | ||
"pattern": "^0x[0-9a-fA-F]{1,2}$" | ||
}, | ||
"patternProperties": { | ||
"^[\\d\\w_]+$": { | ||
"description": "OTP Field", | ||
"type": ["string", "integer"], | ||
"pattern": "^0x[0-9a-fA-F]{1,6}$" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.