Re: [PATCH] dt-bindings: timer: Update TI timer to yaml and add compatible for am6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11:12-20220408, Tony Lindgren wrote:
[...]

> +  ti,hwmods:
> +    description:
> +      Name of the HWMOD associated with timer. This is for legacy
> +      omap2/3 platforms only.
> +    $ref: /schemas/types.yaml#/definitions/string
> +    deprecated: true
> +
> +required:
> +  - compatible
> +  - reg
> +
> +additionalProperties: false
> +

Should we strengthen the check like in 8250_omap.yaml - something to the
effect of:

if:
  properties:
    compatible:
      contains:
        enum:
          - ti,omap2420-timer
          - ti,omap3430-timer
          - ti,omap4430-timer

then:
  properties:
    ti,hwmods:
      items:
        - pattern: "^timer([1-9]+)$"

else:
  properties:
    ti,hwmods: false
-- 
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux