dt-bindings: sram: qcom,ocmem: Add msm8226 support
Add the compatible for the OCMEM found on msm8226 which compared to msm8974 only has a core clock and no iface clock. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Link: https://lore.kernel.org/r/20230506-msm8226-ocmem-v3-4-79da95a2581f@z3ntu.xyz Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
a7e12e7bda
commit
f77b2d7607
|
@ -15,7 +15,9 @@ description: |
|
|||
|
||||
properties:
|
||||
compatible:
|
||||
const: qcom,msm8974-ocmem
|
||||
enum:
|
||||
- qcom,msm8226-ocmem # v1.1.0
|
||||
- qcom,msm8974-ocmem # v1.4.0
|
||||
|
||||
reg:
|
||||
items:
|
||||
|
@ -28,11 +30,13 @@ properties:
|
|||
- const: mem
|
||||
|
||||
clocks:
|
||||
minItems: 1
|
||||
items:
|
||||
- description: Core clock
|
||||
- description: Interface clock
|
||||
|
||||
clock-names:
|
||||
minItems: 1
|
||||
items:
|
||||
- const: core
|
||||
- const: iface
|
||||
|
@ -58,6 +62,26 @@ required:
|
|||
|
||||
additionalProperties: false
|
||||
|
||||
allOf:
|
||||
- if:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- qcom,msm8974-ocmem
|
||||
then:
|
||||
properties:
|
||||
clocks:
|
||||
minItems: 2
|
||||
clock-names:
|
||||
minItems: 2
|
||||
else:
|
||||
properties:
|
||||
clocks:
|
||||
minItems: 1
|
||||
clock-names:
|
||||
minItems: 1
|
||||
|
||||
patternProperties:
|
||||
"-sram@[0-9a-f]+$":
|
||||
type: object
|
||||
|
|
Loading…
Reference in New Issue