Re: [PATCH 2/2] dt-bindings: crypto: ti,omap-sham: Add OMAP3 compatible and deprecate ti,hwmods

From: Bhargav Joshi

Date: Tue Sep 15 2026 - 16:20:19 EST


On Fri, Sep 11, 2026 at 11:54 AM Andreas Kemnade <andreas@xxxxxxxxxxxx> wrote:
>
> On Fri, 11 Sep 2026 03:41:58 +0530
> Bhargav Joshi <j.bhargav.u@xxxxxxxxx> wrote:
>
> > The OMAP SHAM driver supports OMAP3 SoCs, and "ti,omap3-sham" is
> > actively used in existing dts. However, it was previously missing from
> > binding. Add "ti,omap3-sham" to the list of valid compatibles.
> >
> > The legacy "ti,hwmods" property is no longer needed as TI OMAP mirgrated
> > to "ti-sysc". Mark it as deprecated and remove it from the required
> > properties.
> >
> > Signed-off-by: Bhargav Joshi <j.bhargav.u@xxxxxxxxx>
>
> What about also removing ti,hwmods usage while you are deprecating it?

Omap 4, 5 and dra7 already use ti,sysc wrapper and don't actually use ti,hwmods.
but legacy omap 2 and 3 still use ti,hwmods but I don't have hardware
to test changes.

Since omap 4,5 etc don't use it,hwmods keeping it in required causes warnings,
Deprecating it and removing it from "required" fixes the warnings for
modern SoCs without
breaking the legacy ones.

Best Regards,
Bhargav

>
> Regards,
> Andreas
> > ---
> > Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml b/Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml
> > index d69b50228009..3ef05890e13a 100644
> > --- a/Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml
> > +++ b/Documentation/devicetree/bindings/crypto/ti,omap-sham.yaml
> > @@ -13,6 +13,7 @@ properties:
> > compatible:
> > enum:
> > - ti,omap2-sham
> > + - ti,omap3-sham
> > - ti,omap4-sham
> > - ti,omap5-sham
> >
> > @@ -32,6 +33,7 @@ properties:
> > description: Name of the hwmod associated with the SHAM module
> > $ref: /schemas/types.yaml#/definitions/string
> > enum: [sham]
> > + deprecated: true
> >
> > dependencies:
> > dmas: [dma-names]
> > @@ -40,7 +42,6 @@ additionalProperties: false
> >
> > required:
> > - compatible
> > - - ti,hwmods
> > - reg
> > - interrupts
> >
> >
>