On Wed, Sep 25, 2019 at 12:14 PM Adam Ford <aford173@xxxxxxxxx> wrote: > > The AES and SHA engines for the OMAP3 are currently not functional. > When the stopped working is unknown, but we have a regression. > > This patch uses the ti,sysc-omap2 to address the issue and enables > to the AES and SHA engines on the DM3730 and OMAP3530 to work once > again. > This can be dropped. I am not sure what I did wrong, but the hwmods are working on 5.4-RC3. adam > Signed-off-by: Adam Ford <aford173@xxxxxxxxx> > > diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boot/dts/omap3.dtsi > index 4043ecb38016..5123dc80b694 100644 > --- a/arch/arm/boot/dts/omap3.dtsi > +++ b/arch/arm/boot/dts/omap3.dtsi > @@ -156,13 +156,28 @@ > }; > }; > > - aes: aes@480c5000 { > - compatible = "ti,omap3-aes"; > - ti,hwmods = "aes"; > - reg = <0x480c5000 0x50>; > - interrupts = <0>; > - dmas = <&sdma 65 &sdma 66>; > - dma-names = "tx", "rx"; > + aes_target: target-module@480c5000 { > + compatible = "ti,sysc-omap2", "ti,sysc"; > + reg = <0x480c5044 0x4>, > + <0x480c5048 0x4>, > + <0x480c504c 0x4>; > + reg-names = "rev", "sysc", "syss"; > + ti,sysc-mask = <(SYSC_OMAP2_AUTOIDLE)>; > + ti,sysc-sidle = <SYSC_IDLE_FORCE>, > + <SYSC_IDLE_NO>; > + ti,syss-mask = <1>; > + clocks = <&aes2_ick>; > + clock-names = "ick"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0x480c5000 0x2000>; > + aes: aes@0 { > + compatible = "ti,omap3-aes"; > + reg = <0 0x50>; > + interrupts = <0>; > + dmas = <&sdma 65 &sdma 66>; > + dma-names = "tx", "rx"; > + }; > }; > > prm: prm@48306000 { > @@ -579,13 +594,28 @@ > status = "disabled"; > }; > > - sham: sham@480c3000 { > - compatible = "ti,omap3-sham"; > - ti,hwmods = "sham"; > - reg = <0x480c3000 0x64>; > - interrupts = <49>; > - dmas = <&sdma 69>; > - dma-names = "rx"; > + sham_target: target-module@480c3000 { > + compatible = "ti,sysc-omap2", "ti,sysc"; > + reg = <0x480c3056 0x4>, > + <0x480c3060 0x4>, > + <0x480c3064 0x4>; > + reg-names = "rev", "sysc", "syss"; > + ti,sysc-mask = <(SYSC_OMAP2_AUTOIDLE)>; > + ti,sysc-sidle = <SYSC_IDLE_FORCE>, > + <SYSC_IDLE_NO>; > + ti,syss-mask = <1>; > + clocks = <&sha12_ick>; > + clock-names = "ick"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0x480c3000 0x2000>; > + sham: sham@0 { > + compatible = "ti,omap3-sham"; > + reg = <0 0x64>; > + interrupts = <49>; > + dmas = <&sdma 69>; > + dma-names = "rx"; > + }; > }; > > timer1: timer@48318000 { > -- > 2.17.1 >