mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
spi: dt-bindings: amlogic, meson-gx-spicc: Fix schema for meson-g12a
spi@13000: clock-names: Additional items are not allowed ('pclk' was unexpected) spi@13000: clock-names: ['core', 'pclk'] is too long spi@13000: clocks: [[2, 23], [2, 258]] is too long spi@15000: clock-names: Additional items are not allowed ('pclk' was unexpected) spi@15000: clock-names: ['core', 'pclk'] is too long spi@15000: clocks: [[2, 29], [2, 261]] is too long Conditional schema properties don't overwrite others. Instead of restrictions have to be validated. So general clock amount is 1-2 and depending on the actual device type limit the mount to 1 or 2. Signed-off-by: Alexander Stein <alexander.stein@mailbox.org> Link: https://lore.kernel.org/r/20200609165527.55183-1-alexander.stein@mailbox.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e0fe70051f
commit
a575357b64
1 changed files with 17 additions and 9 deletions
|
@ -34,12 +34,15 @@ properties:
|
||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
clocks:
|
clocks:
|
||||||
maxItems: 1
|
minItems: 1
|
||||||
|
maxItems: 2
|
||||||
|
items:
|
||||||
|
- description: controller register bus clock
|
||||||
|
- description: baud rate generator and delay control clock
|
||||||
|
|
||||||
clock-names:
|
clock-names:
|
||||||
description: input clock for the baud rate generator
|
minItems: 1
|
||||||
items:
|
maxItems: 2
|
||||||
- const: core
|
|
||||||
|
|
||||||
if:
|
if:
|
||||||
properties:
|
properties:
|
||||||
|
@ -51,17 +54,22 @@ if:
|
||||||
then:
|
then:
|
||||||
properties:
|
properties:
|
||||||
clocks:
|
clocks:
|
||||||
contains:
|
minItems: 2
|
||||||
items:
|
|
||||||
- description: controller register bus clock
|
|
||||||
- description: baud rate generator and delay control clock
|
|
||||||
|
|
||||||
clock-names:
|
clock-names:
|
||||||
minItems: 2
|
|
||||||
items:
|
items:
|
||||||
- const: core
|
- const: core
|
||||||
- const: pclk
|
- const: pclk
|
||||||
|
|
||||||
|
else:
|
||||||
|
properties:
|
||||||
|
clocks:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
clock-names:
|
||||||
|
items:
|
||||||
|
- const: core
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
- reg
|
- reg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue