Skip to content

Commit

Permalink
schemas: introduce assigned-clock-sscs
Browse files Browse the repository at this point in the history
To support spread spectrum clock, introduce assigned-clock-sscs

Signed-off-by: Peng Fan <[email protected]>
  • Loading branch information
MrVan committed Jan 24, 2025
1 parent 6f17cbd commit 23acfe4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
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 percentage
- 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

0 comments on commit 23acfe4

Please sign in to comment.