On 17/03/2023 04:47, Jacky Huang wrote:
I have doubts why PLL mode is a property of DT. Is this a board-specificI will use strings instead.+Why exactly this is suitable for DT?
+ nuvoton,pll-mode:
+ description:
+ A list of PLL operation mode corresponding to CAPLL, DDRPLL, APLL,
+ EPLL, and VPLL in sequential. The operation mode value 0 is for
+ integer mode, 1 is for fractional mode, and 2 is for spread
+ spectrum mode.
+ $ref: /schemas/types.yaml#/definitions/uint32-array
+ maxItems: 5
+ items:
+ minimum: 0
+ maximum: 2
property?
In such case you do not have array. Just make it phandle and drop the items.I would like to modify this as:+Drop quotes.
+ nuvoton,sys:
+ description:
+ Phandle to the system management controller.
+ $ref: "/schemas/types.yaml#/definitions/phandle-array"
You need here constraints, look for existing examples.
nuvoton,sys:
description:
Use to unlock and lock some clock controller registers. The lock
control register is in system controller.
$ref: /schemas/types.yaml#/definitions/phandle-array
items:
- items:
- description: phandle to the system controller.
Best regards,
Krzysztof