Re: [PATCH 1/2] dt-bindings: crypto: eip93: add clock gate and reset line

From: Conor Dooley

Date: Wed Mar 04 2026 - 17:29:52 EST


On Wed, Mar 04, 2026 at 10:46:41PM +0100, Aleksander Jan Bajkowski wrote:
> Hi Conor,
>
> On 3/4/26 20:08, Conor Dooley wrote:
> > On Tue, Mar 03, 2026 at 08:39:17PM +0100, Aleksander Jan Bajkowski wrote:
> > > Add the clock gate and reset line, both of which are available
> > > on the Airoha AN7581. Both properties are optional.
> > Why are they optional?
>
> No reason. In theory, a hardware designer could connect the reset
> to a fixed input signal. In practice, all SoCs on the market have
> a built-in reset and clock controller. I can mark them as required
> in the next revision.

Right, the reset could be optional on some systems, but sounds like it
is always there on the an7581. The clock is probably mandatory always.
I think you should make it required in the binding, but not in the
driver since that needs to work with existing devicetrees.
Technically this is an ABI break (new required property), so at least
mention in the commit message that you're aware of this.


>
> > > Signed-off-by: Aleksander Jan Bajkowski <olek2@xxxxx>
> > > ---
> > > .../crypto/inside-secure,safexcel-eip93.yaml | 12 ++++++++++++
> > > 1 file changed, 12 insertions(+)
> > >
> > > diff --git a/Documentation/devicetree/bindings/crypto/inside-secure,safexcel-eip93.yaml b/Documentation/devicetree/bindings/crypto/inside-secure,safexcel-eip93.yaml
> > > index 997bf9717f9e..058454b679b4 100644
> > > --- a/Documentation/devicetree/bindings/crypto/inside-secure,safexcel-eip93.yaml
> > > +++ b/Documentation/devicetree/bindings/crypto/inside-secure,safexcel-eip93.yaml
> > > @@ -48,6 +48,12 @@ properties:
> > > interrupts:
> > > maxItems: 1
> > > + clocks:
> > > + maxItems: 1
> > > +
> > > + resets:
> > > + maxItems: 1
> > > +
> > > required:
> > > - compatible
> > > - reg
> > > @@ -57,11 +63,17 @@ additionalProperties: false
> > > examples:
> > > - |
> > > + #include <dt-bindings/clock/en7523-clk.h>
> > > #include <dt-bindings/interrupt-controller/arm-gic.h>
> > > + #include <dt-bindings/reset/airoha,en7581-reset.h>
> > > crypto@1e004000 {
> > > compatible = "airoha,en7581-eip93", "inside-secure,safexcel-eip93ies";
> > > reg = <0x1fb70000 0x1000>;
> > > + clocks = <&scuclk EN7523_CLK_CRYPTO>;
> > > +
> > > interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
> > > +
> > > + resets = <&scuclk EN7581_CRYPTO_RST>;
> > > };
> > > --
> > > 2.47.3
> > >
> Best regards,
> Aleksander
>
>

Attachment: signature.asc
Description: PGP signature