Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2415977ybk; Mon, 11 May 2020 21:48:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLq0mOTHbcmTA7YETcQ/2EYL1pCtvq9VpUWAQIxhmRG6p6CAStrfM3Kj2DkusvmOy4bKgUc X-Received: by 2002:a1c:668a:: with SMTP id a132mr36595452wmc.46.1589258884679; Mon, 11 May 2020 21:48:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589258884; cv=none; d=google.com; s=arc-20160816; b=uPoKed14ndG5OAVUdkH7kqCi+WnZlf+k2D7nrATaKQhGW73YRwPyhWt71lVC/Iltn5 a6i/SD5icc342q/7lNxAOT6zCGJahuZxyf/pmhVMDujOasPkAriInXmbhLJEQSAb4aqA z1vvAMT06BN08bGHGqkUrFzb7zEtg218+9QY1WB2wopQP4butiaxPsi15H6NYoGlpRZh W9CbsyOw3TG15+WzNS+7u2TvHSIATqZlSfSa61o/VOPaI5bPM7Jmn/Fuwjd3l0dq/fto vZOwl1l9IFBl81wHnjFP/XMW3x5EgZnfbltOW7bmdPG3GPcIjPi66igpcjnzuOB28K/Q C8FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=F2po6cA8J2YoKFQUHOGkUFydfctsX1xseR/bWF+m5+k=; b=iNd7cMZmKjlfn1kRU736VkBx99VbaHCUc/Iix3l4BL5D4wvMAxXUB1Nj2qYA6Kgegr BchxW3eVqi8O5fXjeDxWWY45B9h7XZhHSrROfvHWIbnnuHEOloxjazufCs0bkTRZmeja 9jk2rHvI2Oow0aXVR+sLkRrWNCgpm3VO/5FYeUXV+jOCSb4lBKIOz2HztkH8HCo6nOtw tIXRt2ItTobzpT/K3aWbqTcidlUi7gL70HXM+kRkmMljtBRkfaaXmJY0wD29btpxrYKr +t6HjANKqPolOXoz4/IRH9IuZXDzErZmGt2I6EhCyycpeWaN1LoZGj1JIiG5Bfo9K/2k YTGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UW+7t1lQ; 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 u15si1395812edb.348.2020.05.11.21.47.30; Mon, 11 May 2020 21:48:04 -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=UW+7t1lQ; 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 S1725816AbgELErO (ORCPT + 99 others); Tue, 12 May 2020 00:47:14 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:50348 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725814AbgELErO (ORCPT ); Tue, 12 May 2020 00:47:14 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04C4l64K097041; Mon, 11 May 2020 23:47:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1589258826; bh=F2po6cA8J2YoKFQUHOGkUFydfctsX1xseR/bWF+m5+k=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=UW+7t1lQMZmzsTZ/Rg2C8DGHJkg9uCRI3zwSxB4mSbIpavbbpJXXX3R6Ny6ETM8lf qhcpaKhQb9X+k0a5gXAxh3wY8fy/98Pdg7AaHuTID3p5bZPomCQ+eFafCJBahNV6X8 o2DJXs8DcAmuGNxjJy7X7557i8HyQBWZjl4TXltw= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04C4l5rU082372 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 11 May 2020 23:47:05 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) 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; Mon, 11 May 2020 23:47:05 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE111.ent.ti.com (157.170.170.22) 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; Mon, 11 May 2020 23:47:05 -0500 Received: from [127.0.0.1] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04C4l2YK121221; Mon, 11 May 2020 23:47:04 -0500 Subject: Re: [PATCHv2 1/7] dt-bindings: crypto: Add TI SA2UL crypto accelerator documentation To: Rob Herring CC: , , , Keerthy , References: <20200424164430.3288-1-t-kristo@ti.com> <20200424164430.3288-2-t-kristo@ti.com> <20200511215343.GA10123@bogus> From: Tero Kristo Message-ID: <53c7c7db-9357-c2fa-c792-64261489d32c@ti.com> Date: Tue, 12 May 2020 07:47:02 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200511215343.GA10123@bogus> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 12/05/2020 00:53, Rob Herring wrote: > On Fri, Apr 24, 2020 at 07:44:24PM +0300, Tero Kristo wrote: >> 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. >> >> Cc: Rob Herring >> Cc: devicetree@vger.kernel.org >> 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 >> >> diff --git a/Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml b/Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml >> new file mode 100644 >> index 000000000000..27bb3a7e2b87 >> --- /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-lf0-9]+$": > > a-l? Ooops, thats a typo right here. Will fix that. > >> + type: object >> + description: >> + Child RNG node for SA2UL > > Does this child node have a binding? Yes, it is here: Documentation/devicetree/bindings/rng/omap_rng.txt. It is an old one so not converted to yaml yet though. -Tero > >> + >> +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; >> + }; >> -- >> 2.17.1 >> >> -- -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki