Thread (20 messages) 20 messages, 3 authors, 2023-01-18

Re: [PATCH v3 2/7] dt-bindings: net: snps,dwmac: Update the maxitems number of resets and reset-names

From: Krzysztof Kozlowski <hidden>
Date: 2023-01-17 08:43:50
Also in: linux-riscv, lkml, netdev

On 17/01/2023 09:14, yanhong wang wrote:
quoted
quoted
Thanks, refer to the definition of clocks. If it is defined as follows, is it OK?

properties:
  resets:
    minItems: 1
    maxItems: 3
    additionalItems: true
Drop
quoted
    items:
      - description: MAC Reset signal.
Drop both
quoted
  reset-names:
    minItems: 1
    maxItems: 3
    additionalItems: true
Drop
quoted
    contains:
      enum:
        - stmmaceth
Drop all
quoted

allOf:
  - if:
      properties:
        compatible:
          contains:
            const: starfive,jh7110-dwmac
    then:
      properties:
        resets:
          minItems: 2
          maxItems: 2
        reset-names:
          items:
            - const: stmmaceth
            - const: ahb
      required:
        - resets
        - reset-names  
    else:
      properties:
        resets:
          maxItems: 1
          description:
            MAC Reset signal.

        reset-names:
          const: stmmaceth

Do you have any other better suggestions?
More or less like this but the allOf should not be in snps,dwmac schema
but in individual schemas. The snps,dwmac is growing unmaintainable...
Thanks, it is defined as follows, is it right?

properties:
  resets:
    minItems: 1
    maxItems: 3
    additionalItems: true
Read my comments above. Drop.

Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help