From patchwork Fri Feb 22 12:21:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Konieczny X-Patchwork-Id: 10825809 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A85D8139A for ; Fri, 22 Feb 2019 12:22:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90B2D32281 for ; Fri, 22 Feb 2019 12:22:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60DB9323D1; Fri, 22 Feb 2019 12:22:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C754B32307 for ; Fri, 22 Feb 2019 12:22:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727073AbfBVMWH (ORCPT ); Fri, 22 Feb 2019 07:22:07 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:58099 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727027AbfBVMWH (ORCPT ); Fri, 22 Feb 2019 07:22:07 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190222122205euoutp016c65476461c3220573ec180d5f9b51c9~Frw74ZNAU0126801268euoutp01a for ; Fri, 22 Feb 2019 12:22:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190222122205euoutp016c65476461c3220573ec180d5f9b51c9~Frw74ZNAU0126801268euoutp01a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550838125; bh=xlSz81GvCZhztdwAJRu4Jfn6laXgQkbfkvEaBLXtFvA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rmGnXphbaWCK2888Ub8Bh9TmUaI0NHkJ2agW6r+eRbZlnz/eVOqZ/SVqr0T7o4o0r u46hL5b/u7ZaHeW0iRfaaCaxVHclNjiPvuPvLvOTs4Rgv58bOmBbpUPtVqK2M7iIM1 iZ3wdfIC4IzqgtdZvuzNR7ltl62dOWKQVtFhW6iU= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190222122204eucas1p2d211c78ea7698f473e7d8ae3990dde08~Frw7G4F5Y2782227822eucas1p2D; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 0B.4D.04806.C69EF6C5; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190222122203eucas1p19a77c1cb72526ce36e99542926fd5a17~Frw6V_ZsV2682126821eucas1p1f; Fri, 22 Feb 2019 12:22:03 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190222122203eusmtrp2183da97cfd1865b021a7069258dd8883~Frw6HVGU22907329073eusmtrp2R; Fri, 22 Feb 2019 12:22:03 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-92-5c6fe96c7390 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7A.77.04284.B69EF6C5; Fri, 22 Feb 2019 12:22:03 +0000 (GMT) Received: from AMDC3218.DIGITAL.local (unknown [106.120.51.18]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190222122202eusmtip1c9270701b75d7b53637a359d77c2ca84~Frw5hYwzu1239012390eusmtip1F; Fri, 22 Feb 2019 12:22:02 +0000 (GMT) From: Kamil Konieczny To: k.konieczny@partner.samsung.com Cc: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: [PATCH v4 1/3] arm64: dts: exynos: add SlimSSS for Exynos5433 Date: Fri, 22 Feb 2019 13:21:42 +0100 Message-Id: <20190222122144.19024-2-k.konieczny@partner.samsung.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190222122144.19024-1-k.konieczny@partner.samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA01Se0hTcRjtd+92dx1eu07JD42ipfQAXz1vWpFksfqnCBI0wWZeVNIpm9NM KCk1H6SpkY98FUayzMfSpaZiS5TyMcWcErlM85FZIlooisvtzvK/833nnN/5DvxIXNTCdyTD ZTGsXCaNEBNCnqZjWeca8T0q0GMiDZja/Go+U9rey2cyW42IyRr/gTM6XY2AUY/r+cwXwzLG DDQVEUy+rhVjXraPCJhnQ/0Yk9zSLjhlLaksqUQStSqNkLwqvy15+6sZk2TWqZBkQb3jIhEg PB7CRoTHsnL3k1eFYYbFNiw6i7zRr9JgiWiCSEdWJNCH4MW8Hk9HQlJEVyCY/DRtGRYRNPau YdywgMC4ZBBsWFb78giOeI5grGGa98/S9aSfb1IR9FEYe92NmbA9vRtyDXnmd3G6GIfysSVz uh19FmYGVLgJ82gXqBgZ4JkwRftC09cqnIvbCbr7Ve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gvbQw+xCjAwajEw2uxMS9GiDWxrLgy 9xCjBAezkggvw/P8GCHelMTKqtSi/Pii0pzU4kOMpkA/TGSWEk3OB8Z6Xkm8oamhuYWlobmx ubGZhZI473mDyighgfTEktTs1NSC1CKYPiYOTqkGxrnuud8V6h//3LzZXu78F/9zUo7TFjhy RF5Z8/P0c4/3i/eE3uC8FrW92mtJePeX/U+/K8+NvvHG4nltVelD0eU/lte8UGh5//zm7SP5 n4WWnyw3+PHk+YviTVzPrkfXzTHZccklUGbHXxX1dp6lp1jWdnwIOW11infFg11TpNc5i1X5 8N63zjqvxFKckWioxVxUnAgA8/DUVL0CAAA= X-CMS-MailID: 20190222122203eucas1p19a77c1cb72526ce36e99542926fd5a17 X-Msg-Generator: CA X-RootMTR: 20190222122203eucas1p19a77c1cb72526ce36e99542926fd5a17 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190222122203eucas1p19a77c1cb72526ce36e99542926fd5a17 References: <20190222122144.19024-1-k.konieczny@partner.samsung.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add DT node for SlimSSS (aka Slim SecuritySubSystem) in Exynos5433 SoC. The users can use compatibility "samsung,exynos5433-slim-sss". Signed-off-by: Kamil Konieczny --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index e7cd3b67d818..9e5fcb6c7776 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -559,6 +559,15 @@ <&cmu_top CLK_DIV_ACLK_IMEM_200>; }; + slim_sss: slim-sss@11140000 { + compatible = "samsung,exynos5433-slim-sss"; + reg = <0x11140000 0x1000>; + interrupts = ; + clock-names = "aclk", "pclk"; + clocks = <&cmu_imem CLK_ACLK_SLIMSSS>, + <&cmu_imem CLK_PCLK_SLIMSSS>; + }; + pd_gscl: power-domain@105c4000 { compatible = "samsung,exynos5433-pd"; reg = <0x105c4000 0x20>; From patchwork Fri Feb 22 12:21:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Konieczny X-Patchwork-Id: 10825811 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3DC1184E for ; Fri, 22 Feb 2019 12:22:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1F0C32290 for ; Fri, 22 Feb 2019 12:22:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B5D5132362; Fri, 22 Feb 2019 12:22:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50B613234E for ; Fri, 22 Feb 2019 12:22:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726356AbfBVMW1 (ORCPT ); Fri, 22 Feb 2019 07:22:27 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:58106 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727049AbfBVMWH (ORCPT ); Fri, 22 Feb 2019 07:22:07 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190222122205euoutp0144b240bc9a9dd76c65bed69a8b2f1e04~Frw8MNYVO0136801368euoutp01H for ; Fri, 22 Feb 2019 12:22:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190222122205euoutp0144b240bc9a9dd76c65bed69a8b2f1e04~Frw8MNYVO0136801368euoutp01H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550838125; bh=Mgc6BuPHG36agn925U0fFTtJA8SwkU3GacY/L83V0NY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HHO0kanhtmPhmkKUQ39YAR2b7ieMbb3qlPdIv5VNIntmTOo09txq7D8895CbXHD4P YBLU6Hue7zN8bdejV8KxT91deUf0cqpHydHhvyQ5aqZWQAx/wGLTZyjuRPN0xuh6k4 9aRJ7gZEdqCLJ/NPy+svPcA7BQhF/64rW0NKp5DE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190222122205eucas1p10a2e475ef2f1d10394bc8e587ad510de~Frw7loTD42681726817eucas1p1Z; Fri, 22 Feb 2019 12:22:05 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id BD.BF.04441.C69EF6C5; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190222122204eucas1p15e0e00e9b044d41d44c0d2e55cb6af9c~Frw6zzNEn2682126821eucas1p1g; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190222122204eusmtrp22c105b9c52e91d1ed268ef4ad7820465~Frw6lK8bW2907329073eusmtrp2S; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-c3-5c6fe96cad63 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 5B.77.04284.C69EF6C5; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) Received: from AMDC3218.DIGITAL.local (unknown [106.120.51.18]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190222122203eusmtip142521965e5f2d568b323673bf23d9a30~Frw6FIHxt1160711607eusmtip1J; Fri, 22 Feb 2019 12:22:03 +0000 (GMT) From: Kamil Konieczny To: k.konieczny@partner.samsung.com Cc: Herbert Xu , "David S. Miller" , Rob Herring , Mark Rutland , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: [PATCH v4 2/3] dt-bindings: crypto: document Exynos5433 SlimSSS Date: Fri, 22 Feb 2019 13:21:43 +0100 Message-Id: <20190222122144.19024-3-k.konieczny@partner.samsung.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190222122144.19024-1-k.konieczny@partner.samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJKsWRmVeSWpSXmKPExsWy7djP87o5L/NjDCbNtLDYOGM9q8Wc8y0s FvOPnGO16H4lY9G37z+jxfnzG9gt7t/7yWRxedccNou1R+6yWyy9fpHJonXvEXYHbo8189Yw emxZeZPJY9sBVY9NqzrZPA6+28Pk0bdlFaPH501yAexRXDYpqTmZZalF+nYJXBnfu48wF+zm rmg4VtLAeI+zi5GTQ0LAROLP67OsXYxcHEICKxglvt6bwAbhfGGUuNC3kR2kSkjgM6PEt870 LkYOsI7Jj8UhapYzSnz6fJ0RrmHWmoeMIA1sAuYSj7afYQKxRQSUJSbfm84MUsQs0MEs8fbI bLCpwgIeEuufngZrYBFQlTi7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Ph9hxHkOiGgmgf7qyDKBSVOznzCAmIzA5U3b53NPIFRYBaS1CwkqQWMTKsY RVJLi3PTc4sN9YoTc4tL89L1kvNzNzECI2nbsZ+bdzBe2hh8iFGAg1GJh9diY16MEGtiWXFl 7iFGCQ5mJRFehuf5MUK8KYmVValF+fFFpTmpxYcYTYF+mMgsJZqcD4zyvJJ4Q1NDcwtLQ3Nj c2MzCyVx3vMGlVFCAumJJanZqakFqUUwfUwcnFINjAbJDTt7/yTq3n7S+lpF93iAa/Kkk9ck 56aw3Z13JlF/upXe7+iD9kztEjtKPfV5e3TWrVJIWFXeL9X0e/IRdQ6XA+Urc1JS5oRl7OPj rJadV6pV4/n4scaKv2e99gcsLRZ+sOFPzfqXL8VZGW/zzPLmsnhoWHR/lrJo1dWqf18rJ+1k TGe2UmIpzkg01GIuKk4EAOkVsrS6AgAA X-CMS-MailID: 20190222122204eucas1p15e0e00e9b044d41d44c0d2e55cb6af9c X-Msg-Generator: CA X-RootMTR: 20190222122204eucas1p15e0e00e9b044d41d44c0d2e55cb6af9c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190222122204eucas1p15e0e00e9b044d41d44c0d2e55cb6af9c References: <20190222122144.19024-1-k.konieczny@partner.samsung.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document DT bindings for crypto Samsung Exynos5433 SlimSSS (Slim Security SubSystem) IP. Signed-off-by: Kamil Konieczny --- .../bindings/crypto/samsung-slimsss.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/samsung-slimsss.txt diff --git a/Documentation/devicetree/bindings/crypto/samsung-slimsss.txt b/Documentation/devicetree/bindings/crypto/samsung-slimsss.txt new file mode 100644 index 000000000000..7ec9a5a7727a --- /dev/null +++ b/Documentation/devicetree/bindings/crypto/samsung-slimsss.txt @@ -0,0 +1,19 @@ +Samsung SoC SlimSSS (Slim Security SubSystem) module + +The SlimSSS module in Exynos5433 SoC supports the following: +-- Feeder (FeedCtrl) +-- Advanced Encryption Standard (AES) with ECB,CBC,CTR,XTS and (CBC/XTS)/CTS +-- SHA-1/SHA-256 and (SHA-1/SHA-256)/HMAC + +Required properties: + +- compatible : Should contain entry for slimSSS version: + - "samsung,exynos5433-slim-sss" for Exynos5433 SoC. +- reg : Offset and length of the register set for the module +- interrupts : interrupt specifiers of SlimSSS module interrupts (one feed + control interrupt). + +- clocks : list of clock phandle and specifier pairs for all clocks listed in + clock-names property. +- clock-names : list of device clock input names; should contain "pclk" and + "aclk" for slim-sss in Exynos5433. From patchwork Fri Feb 22 12:21:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamil Konieczny X-Patchwork-Id: 10825807 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6B5891823 for ; Fri, 22 Feb 2019 12:22:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56F47323D9 for ; Fri, 22 Feb 2019 12:22:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 246343237E; Fri, 22 Feb 2019 12:22:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8206B321C6 for ; Fri, 22 Feb 2019 12:22:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727099AbfBVMWS (ORCPT ); Fri, 22 Feb 2019 07:22:18 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:33272 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbfBVMWI (ORCPT ); Fri, 22 Feb 2019 07:22:08 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190222122206euoutp0226fa6595718a1ee0038c8ba206003df4~Frw8hm85B0090000900euoutp02C for ; Fri, 22 Feb 2019 12:22:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190222122206euoutp0226fa6595718a1ee0038c8ba206003df4~Frw8hm85B0090000900euoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550838126; bh=VG6oAC5U9XTdjvMniG4O/CFb//GFZSZ9LzVAmwE443c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PJpNeavyTvvuf7BNF9OP4tkGco4mef6DF69kUjaOLJKpUZU8VrXY/Ro55FmjkEY6Z 9A6cBYnyav1G71cYBb0i8Fc+ppl+SSCd1OdylpbG0smMITBqv/5xfFpSWyvtkLU/d/ Yx3j89BV3+i7F8Q0nX8bsAWQ1Z4o15UmcDGviB90= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190222122205eucas1p1fc5c2e5d5e76efead31ca6e8d6af7209~Frw8Jf-W-2093320933eucas1p1D; Fri, 22 Feb 2019 12:22:05 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id EE.BF.04441.D69EF6C5; Fri, 22 Feb 2019 12:22:05 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190222122204eucas1p1ee66c9d937bdf328588ececb1f005526~Frw7VHecE1233312333eucas1p1C; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190222122204eusmtrp11c8f8dec82bcb08e4fa381ec79d109cf~Frw7Gmifj1040810408eusmtrp12; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-c7-5c6fe96d0e63 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 16.6F.04128.C69EF6C5; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) Received: from AMDC3218.DIGITAL.local (unknown [106.120.51.18]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190222122204eusmtip15dd7560288b814ad81af00aa6ad82deb~Frw6kiR6-1159911599eusmtip1W; Fri, 22 Feb 2019 12:22:04 +0000 (GMT) From: Kamil Konieczny To: k.konieczny@partner.samsung.com Cc: Krzysztof Kozlowski , Vladimir Zapolskiy , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: [PATCH v4 3/3] crypto: s5p: add AES support for Exynos5433 Date: Fri, 22 Feb 2019 13:21:44 +0100 Message-Id: <20190222122144.19024-4-k.konieczny@partner.samsung.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190222122144.19024-1-k.konieczny@partner.samsung.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCKsWRmVeSWpSXmKPExsWy7djPc7q5L/NjDDa8UbDYOGM9q8Wc8y0s Ft2vZCz69v1ntDh/fgO7xf17P5ksLu+aw2Yx4/w+Jou1R+6yW/z/1czswOWxZeVNJo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0JFUhI7+4xFYp2tDCSM/Q0kLPyMRS z9DYPNbKyFRJ384mJTUnsyy1SN8uQS9j4qbrjAWv5Cq2PnzG2MB4Q6KLkZNDQsBE4vWM3cwg tpDAUkaJSV+MIOLSEo2nVzNB2MISf651sXUxcgHVfGKU+DhjBgtIgk3AXOLR9jNgRSICyhKT 700HG8Qs8JFJ4s8qbhBbWMBZ4sWue2D1LAKqEve6WthBbF4BF4m10x4wQyyQlzjfuw4szing KtHw+w5jFyMH0DIXiQf7qyDKBSVOznzCAjFeXqJ562zmCYwCs5CkZiFJLWBkWsUoklpanJue W2ykV5yYW1yal66XnJ+7iREYP9uO/dyyg7HrXfAhRgEORiUeXouNeTFCrIllxZW5hxglOJiV RHgZnufHCPGmJFZWpRblxxeV5qQWH2I0BfphIrOUaHI+MLbzSuINTQ3NLSwNzY3Njc0slMR5 zxtURgkJpCeWpGanphakFsH0MXFwSjUw9qZEdc5aeszYe75EV1y/OqvH260a29VsbCbz1Byd fJ5J5cKOSTxNCy6xsrIGXbztpVznXnua80muaoFd3StfybdFEdfXad5WFb+gw/L5uutGvvNH JrcdTzC/wbO42jamv4j//CplVqne2edsav9PbLA1e2N/2rL9qZFbntOzRxPjA7a7fv6ixFKc kWioxVxUnAgAmsFr/rUCAAA= X-CMS-MailID: 20190222122204eucas1p1ee66c9d937bdf328588ececb1f005526 X-Msg-Generator: CA X-RootMTR: 20190222122204eucas1p1ee66c9d937bdf328588ececb1f005526 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190222122204eucas1p1ee66c9d937bdf328588ececb1f005526 References: <20190222122144.19024-1-k.konieczny@partner.samsung.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add AES crypto HW acceleration for Exynos5433, with the help of SlimSSS IP. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kamil Konieczny --- drivers/crypto/s5p-sss.c | 50 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index 0064be0e3941..3f45cc5cb94a 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -232,6 +232,7 @@ * struct samsung_aes_variant - platform specific SSS driver data * @aes_offset: AES register offset from SSS module's base. * @hash_offset: HASH register offset from SSS module's base. + * @clk_names: names of clocks needed to run SSS IP * * Specifies platform specific configuration of SSS module. * Note: A structure for driver specific platform data is used for future @@ -240,6 +241,7 @@ struct samsung_aes_variant { unsigned int aes_offset; unsigned int hash_offset; + const char *clk_names[]; }; struct s5p_aes_reqctx { @@ -296,6 +298,7 @@ struct s5p_aes_ctx { struct s5p_aes_dev { struct device *dev; struct clk *clk; + struct clk *pclk; void __iomem *ioaddr; void __iomem *aes_ioaddr; int irq_fc; @@ -384,11 +387,19 @@ struct s5p_hash_ctx { static const struct samsung_aes_variant s5p_aes_data = { .aes_offset = 0x4000, .hash_offset = 0x6000, + .clk_names = { "secss", }, }; static const struct samsung_aes_variant exynos_aes_data = { .aes_offset = 0x200, .hash_offset = 0x400, + .clk_names = { "secss", }, +}; + +static const struct samsung_aes_variant exynos5433_slim_aes_data = { + .aes_offset = 0x400, + .hash_offset = 0x800, + .clk_names = { "pclk", "aclk", }, }; static const struct of_device_id s5p_sss_dt_match[] = { @@ -400,6 +411,10 @@ static const struct of_device_id s5p_sss_dt_match[] = { .compatible = "samsung,exynos4210-secss", .data = &exynos_aes_data, }, + { + .compatible = "samsung,exynos5433-slim-sss", + .data = &exynos5433_slim_aes_data, + }, { }, }; MODULE_DEVICE_TABLE(of, s5p_sss_dt_match); @@ -2208,18 +2223,39 @@ static int s5p_aes_probe(struct platform_device *pdev) return PTR_ERR(pdata->ioaddr); } - pdata->clk = devm_clk_get(dev, "secss"); + pdata->clk = devm_clk_get(dev, variant->clk_names[0]); if (IS_ERR(pdata->clk)) { - dev_err(dev, "failed to find secss clock source\n"); + dev_err(dev, "failed to find secss clock %s\n", + variant->clk_names[0]); return -ENOENT; } err = clk_prepare_enable(pdata->clk); if (err < 0) { - dev_err(dev, "Enabling SSS clk failed, err %d\n", err); + dev_err(dev, "Enabling clock %s failed, err %d\n", + variant->clk_names[0], err); return err; } + if (variant->clk_names[1]) { + pdata->pclk = devm_clk_get(dev, variant->clk_names[1]); + if (IS_ERR(pdata->pclk)) { + dev_err(dev, "failed to find clock %s\n", + variant->clk_names[1]); + err = -ENOENT; + goto err_clk; + } + + err = clk_prepare_enable(pdata->pclk); + if (err < 0) { + dev_err(dev, "Enabling clock %s failed, err %d\n", + variant->clk_names[0], err); + goto err_clk; + } + } else { + pdata->pclk = NULL; + } + spin_lock_init(&pdata->lock); spin_lock_init(&pdata->hash_lock); @@ -2295,8 +2331,11 @@ static int s5p_aes_probe(struct platform_device *pdev) tasklet_kill(&pdata->tasklet); err_irq: - clk_disable_unprepare(pdata->clk); + if (pdata->pclk) + clk_disable_unprepare(pdata->pclk); +err_clk: + clk_disable_unprepare(pdata->clk); s5p_dev = NULL; return err; @@ -2323,6 +2362,9 @@ static int s5p_aes_remove(struct platform_device *pdev) pdata->use_hash = false; } + if (pdata->pclk) + clk_disable_unprepare(pdata->pclk); + clk_disable_unprepare(pdata->clk); s5p_dev = NULL;