Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemas: introduce assigned-clock-sscs #154

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dtschema/fixups.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def fixup_node_props(schema):
schema['properties']['assigned-clock-rates-u64'] = True
schema['properties']['assigned-clock-rates'] = True
schema['properties']['assigned-clock-parents'] = True
schema['properties']['assigned-clock-sscs'] = True


# Convert to standard types from ruamel's CommentedMap/Seq
Expand Down
3 changes: 3 additions & 0 deletions dtschema/meta-schemas/clocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ properties:
$ref: cell.yaml#/array
assigned-clock-rates-u64:
$ref: cell.yaml#/array
assigned-clock-sscs:
$ref: cell.yaml#/array

clock-frequency:
$ref: cell.yaml#/single
Expand All @@ -38,3 +40,4 @@ dependentRequired:
assigned-clock-parents: [assigned-clocks]
assigned-clock-rates: [assigned-clocks]
assigned-clock-rates-u64: [assigned-clocks]
assigned-clock-sscs: [assigned-clocks]
10 changes: 10 additions & 0 deletions dtschema/schemas/clock/clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,15 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32-array
assigned-clock-rates-u64:
$ref: /schemas/types.yaml#/definitions/uint64-array
assigned-clock-sscs:
$ref: /schemas/types.yaml#/definitions/uint32-matrix
items:
items:
- description: The modulation frequency
- description: The modulation depth in permyriad
- description: The modulation method, down(2), up(1), center(0)
minimum: 0
maximum: 2

protected-clocks:
$ref: /schemas/types.yaml#/definitions/uint32-array
Expand All @@ -150,6 +159,7 @@ dependentRequired:
assigned-clock-parents: [assigned-clocks]
assigned-clock-rates: [assigned-clocks]
assigned-clock-rates-u64: [assigned-clocks]
assigned-clock-sscs: [assigned-clocks]
protected-clocks: ["#clock-cells"]

dependentSchemas:
Expand Down