ARM: dts: omap5: add DES crypto accelerator node
authorTero Kristo <t-kristo@ti.com>
Wed, 29 Apr 2020 14:30:00 +0000 (17:30 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 5 May 2020 18:16:05 +0000 (11:16 -0700)
OMAP5 contains a single DES crypto accelerator instance. Add node for
this in DT to enable it.

We keep the node disabled for now, as it appears OMAP5 platform is
running out of available DMA channels, and DES is the least interesting
crypto accelerator available on the device.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap5-l4.dtsi

index f68740a..5599965 100644 (file)
                         <0x00090000 0x00090000 0x002000>,      /* ap 55 */
                         <0x00092000 0x00092000 0x001000>,      /* ap 56 */
                         <0x000a4000 0x000a4000 0x001000>,      /* ap 57 */
+                        <0x000a5000 0x000a5000 0x001000>,
                         <0x000a6000 0x000a6000 0x001000>,      /* ap 58 */
                         <0x000a8000 0x000a8000 0x004000>,      /* ap 59 */
                         <0x000ac000 0x000ac000 0x001000>,      /* ap 60 */
                                 <0x00001000 0x000a5000 0x00001000>;
                };
 
+               des_target: target-module@a5000 {       /* 0x480a5000 */
+                       compatible = "ti,sysc-omap2", "ti,sysc";
+                       reg = <0xa5030 0x4>,
+                             <0xa5034 0x4>,
+                             <0xa5038 0x4>;
+                       reg-names = "rev", "sysc", "syss";
+                       ti,sysc-mask = <(SYSC_OMAP2_SOFTRESET |
+                                        SYSC_OMAP2_AUTOIDLE)>;
+                       ti,sysc-sidle = <SYSC_IDLE_FORCE>,
+                                       <SYSC_IDLE_NO>,
+                                       <SYSC_IDLE_SMART>,
+                                       <SYSC_IDLE_SMART_WKUP>;
+                       ti,syss-mask = <1>;
+                       /* Domains (P, C): l4per_pwrdm, l4sec_clkdm */
+                       clocks = <&l4sec_clkctrl OMAP5_DES3DES_CLKCTRL 0>;
+                       clock-names = "fck";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0 0xa5000 0x00001000>;
+                       status = "disabled";
+
+                       des: des@0 {
+                               compatible = "ti,omap4-des";
+                               reg = <0 0xa0>;
+                               interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
+                               dmas = <&sdma 117>, <&sdma 116>;
+                               dma-names = "tx", "rx";
+                       };
+               };
+
                target-module@a8000 {                   /* 0x480a8000, ap 59 2a.0 */
                        compatible = "ti,sysc";
                        status = "disabled";