Message ID | 1529693129-29817-1-git-send-email-festevam@gmail.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Herbert Xu |
Headers | show |
On Fri, Jun 22, 2018 at 03:45:28PM -0300, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@nxp.com> > > i.MX51 and i.MX53 share the same sahara IP block version, so add > i.MX51 in the list of supported SoCs. > > Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> > --- > Changes since v1: > - Fix typo in commit log "i.MX51 and i.MX53" > > Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt > index e8a35c7..5343a48 100644 > --- a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt > +++ b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt > @@ -1,8 +1,9 @@ > Freescale SAHARA Cryptographic Accelerator included in some i.MX chips. > -Currently only i.MX27 and i.MX53 are supported. > +Currently i.MX27, i.MX51 and i.MX53 are supported. > > Required properties: > -- compatible : Should be "fsl,<soc>-sahara" > +- compatible : Should be "fsl,imx27-sahara", "fsl,imx51-sahara" > +or "fsl,imx53-sahara" Looks like imx51 should be a fallback and you can drop the driver change. > - reg : Should contain SAHARA registers location and length > - interrupts : Should contain SAHARA interrupt number > > -- > 2.7.4 >
Hi Rob, On Mon, Jun 25, 2018 at 5:21 PM, Rob Herring <robh@kernel.org> wrote: > Looks like imx51 should be a fallback and you can drop the driver > change. I thought about that too. If I do like this in imx51.dtsi: compatible = "fsl,imx51-sahara", "fsl,imx53-sahara"; Then the driver works just fine. I was not sure if this was OK or not because imx51 was introduced prior than imx53 was launched. Would it be OK to use: compatible = "fsl,imx51-sahara", "fsl,imx53-sahara"; ? Thanks
On Mon, Jun 25, 2018 at 2:27 PM Fabio Estevam <festevam@gmail.com> wrote: > > Hi Rob, > > On Mon, Jun 25, 2018 at 5:21 PM, Rob Herring <robh@kernel.org> wrote: > > > Looks like imx51 should be a fallback and you can drop the driver > > change. > > I thought about that too. > > If I do like this in imx51.dtsi: > > compatible = "fsl,imx51-sahara", "fsl,imx53-sahara"; > > Then the driver works just fine. > > I was not sure if this was OK or not because imx51 was introduced > prior than imx53 was launched. > > Would it be OK to use: compatible = "fsl,imx51-sahara", "fsl,imx53-sahara"; ? Yes, but the order should be reversed as it should be most specific and newest first. Rob
Hi Rob, On Tue, Jun 26, 2018 at 11:24 AM, Rob Herring <robh@kernel.org> wrote: >> Would it be OK to use: compatible = "fsl,imx51-sahara", "fsl,imx53-sahara"; ? > > Yes, but the order should be reversed as it should be most specific > and newest first. Thanks for the feedback. Just sent a dts patch as you suggested.
diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt index e8a35c7..5343a48 100644 --- a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt +++ b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt @@ -1,8 +1,9 @@ Freescale SAHARA Cryptographic Accelerator included in some i.MX chips. -Currently only i.MX27 and i.MX53 are supported. +Currently i.MX27, i.MX51 and i.MX53 are supported. Required properties: -- compatible : Should be "fsl,<soc>-sahara" +- compatible : Should be "fsl,imx27-sahara", "fsl,imx51-sahara" +or "fsl,imx53-sahara" - reg : Should contain SAHARA registers location and length - interrupts : Should contain SAHARA interrupt number