From patchwork Wed Jul 1 08:05:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 192117 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp257899ilg; Wed, 1 Jul 2020 01:06:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvLlSUgJOXNX0eK4gnvv70KZuE6KgRBSsnbewcI44ve69BB+2mk1L0ifYVWIrs0dqVUynj X-Received: by 2002:a17:906:b45:: with SMTP id v5mr21153897ejg.464.1593590774656; Wed, 01 Jul 2020 01:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593590774; cv=none; d=google.com; s=arc-20160816; b=IAx5W4B/Y0d47xxrLm4ue3Xiouc5tDPTQSQOd6Zx4k7Bm9N+GXWdZ83+RcmnoxNeI3 u8pZgW+UXVgjaDy1uH+U2iSWAyEeAl2bi2+abXEqIx4juiV4KvttBM3LbErsSAUnqUs8 H8qVphhMrf2gTAq9ZWyeaoTBfK06SxJx1ME7aNOQQWtIkR1gJebL3ub1mlfCwvqTsiFe v0eoQU+bOSeeKOIzjX/fDzvZcuUHnfChoTsUqBxZsOBpLDF0nt7S8SX9uE6T8DDjOtbV lcVGcIOIzg33t0FGR3n6oHqOOfPg7qWpJAV0OjdSTC3z9fpiyDfgK9xFHsFadW9kquKv ck8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=2Ex8zWOQ9MvwkFDcxGmCY4L/ueAkXeZ/a+kFsegWaiI=; b=n3hHE21+XCZeDLtHgZGli4tbFDyaxO4sD8Wxm8Cv2ndKntmBDapIeb8V6xrftEMGDt pB/3ttQwtzc4ahZd8cNNcRe8dgpDS+3ubn9fKZKQ/lW60Li6EYxRmn8Hjt+5VlhY+iR2 gBYPz56Nc6azCvalF21ei1b+FN15M2ZiQhLBe35p/z5kDZAFtGBwVmzO6O8spZrE2KKw /FvFKRCN/C62kg8ew9BdjaEy9Mfbs7NEefBF686Stry+eNI3v1iDmpOewfwH9u7vY0GV ZQGOngDpWVmYNtSU5JxLuQ3dNwy2esxOsdjsJ0zYqvHumpGKA33/7cKbOTiSl2yDcyAc dbxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gVabImQs; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si3321474ejr.68.2020.07.01.01.06.14; Wed, 01 Jul 2020 01:06:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gVabImQs; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728580AbgGAIGL (ORCPT + 1 other); Wed, 1 Jul 2020 04:06:11 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:50510 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728579AbgGAIGJ (ORCPT ); Wed, 1 Jul 2020 04:06:09 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 061863Ca020483; Wed, 1 Jul 2020 03:06:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1593590763; bh=2Ex8zWOQ9MvwkFDcxGmCY4L/ueAkXeZ/a+kFsegWaiI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gVabImQs4tijewCw+5GK26sz96ME8eReDV/Ca24M7LwSSCG3l23p+9PdRCWTQZDDB NSQdr4SE2JAmukZCmvPlyi4LfAjkeJgHdZ0nNSySa2q5cf064NT0bLin/0LMdSgi3V iWhTjcY1/Tv2c5xeQ2svye5aGrkakVVXNyLnZMr4= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 061862FV089333 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 1 Jul 2020 03:06:02 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 1 Jul 2020 03:06:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 1 Jul 2020 03:06:02 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06185wUd078048; Wed, 1 Jul 2020 03:06:01 -0500 From: Tero Kristo To: , , CC: Subject: [PATCHv5 1/7] dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation Date: Wed, 1 Jul 2020 11:05:47 +0300 Message-ID: <20200701080553.22604-2-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200701080553.22604-1-t-kristo@ti.com> References: <20200701080553.22604-1-t-kristo@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Keerthy The Security Accelerator Ultra Lite (SA2UL) subsystem provides hardware cryptographic acceleration for the following use cases: * Encryption and authentication for secure boot * Encryption and authentication of content in applications requiring DRM (digital rights management) and content/asset protection SA2UL provides support for number of different cryptographic algorithms including SHA1, SHA256, SHA512, AES, 3DES, and various combinations of the previous for AEAD use. Reviewed-by: Rob Herring Signed-off-by: Keerthy [t-kristo@ti.com: converted documentation to yaml] Signed-off-by: Tero Kristo --- .../devicetree/bindings/crypto/ti,sa2ul.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml b/Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml new file mode 100644 index 000000000000..85ef69ffebed --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/crypto/ti,sa2ul.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: K3 SoC SA2UL crypto module + +maintainers: + - Tero Kristo + +properties: + compatible: + enum: + - ti,j721e-sa2ul + - ti,am654-sa2ul + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + dmas: + items: + - description: TX DMA Channel + - description: RX DMA Channel #1 + - description: RX DMA Channel #2 + + dma-names: + items: + - const: tx + - const: rx1 + - const: rx2 + + dma-coherent: true + + "#address-cells": + const: 2 + + "#size-cells": + const: 2 + + ranges: + description: + Address translation for the possible RNG child node for SA2UL + +patternProperties: + "^rng@[a-f0-9]+$": + type: object + description: + Child RNG node for SA2UL + +required: + - compatible + - reg + - power-domains + - dmas + - dma-names + - dma-coherent + +additionalProperties: false + +examples: + - | + #include + + main_crypto: crypto@4e00000 { + compatible = "ti,j721-sa2ul"; + reg = <0x0 0x4e00000 0x0 0x1200>; + power-domains = <&k3_pds 264 TI_SCI_PD_EXCLUSIVE>; + dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>, + <&main_udmap 0x4001>; + dma-names = "tx", "rx1", "rx2"; + dma-coherent; + };