From patchwork Mon Dec 4 12:53:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 10090203 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7C3EC60327 for ; Mon, 4 Dec 2017 12:55:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97F8A29119 for ; Mon, 4 Dec 2017 12:55:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C5DB2916B; Mon, 4 Dec 2017 12:55:12 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 EB4BB29119 for ; Mon, 4 Dec 2017 12:55:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752360AbdLDMzK (ORCPT ); Mon, 4 Dec 2017 07:55:10 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:48201 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752231AbdLDMyU (ORCPT ); Mon, 4 Dec 2017 07:54:20 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171204125418euoutp0269663749138ab4aa2e1086a623fe0ad6~9GJBZXisR0163401634euoutp02G; Mon, 4 Dec 2017 12:54:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171204125418euoutp0269663749138ab4aa2e1086a623fe0ad6~9GJBZXisR0163401634euoutp02G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1512392058; bh=JA1FcpVcdYTmRQj98DkTYHyQvMVTKKR2ToEvrrBlDg8=; h=From:To:Cc:Subject:Date:In-reply-to:In-reply-to:References:From; b=axcW9RBHYJRW3qF7gYuFf3CzJqLl/LYPzq/HZuhxMy9epYMKGdDBn74SLbMeXpuCx ellG3TA9T3Ixewy9vZBnOctFB8h+um2/sAZc8B6x4qRDzQCGR52AfwcbsgQEAU7iPY XChRR2p8yC7ysr1LTEZlQQRlhGJkHWDQEEvyX4PY= Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171204125417eucas1p2eecbf3166842df0e8db41b900996c4fd~9GJAmgjtA2731727317eucas1p22; Mon, 4 Dec 2017 12:54:17 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 3B.0D.12743.875452A5; Mon, 4 Dec 2017 12:54:16 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171204125416eucas1p141878ea587d807a2559c90f590eab7fb~9GI-6IZ-b1826018260eucas1p1L; Mon, 4 Dec 2017 12:54:16 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-7b-5a254578f8e0 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9A.C2.20118.875452A5; Mon, 4 Dec 2017 12:54:16 +0000 (GMT) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset="UTF-8" Received: from localhost ([106.116.147.110]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P0F00BTLT6F6G90@eusync1.samsung.com>; Mon, 04 Dec 2017 12:54:16 +0000 (GMT) From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= To: "Andrew F . Davis" , PrasannaKumar Muralidharan , Rob Herring , Matt Mackall , Herbert Xu , Krzysztof Kozlowski , Kukjin Kim , devicetree@vger.kernel.org, linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?=C5=81ukasz=20Stelmach?= , Marek Szyprowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v3 3/3] ARM: dts: exynos: Add nodes for True Random Number Generator Date: Mon, 04 Dec 2017 13:53:51 +0100 Message-id: <20171204125351.26805-4-l.stelmach@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20171204125351.26805-1-l.stelmach@samsung.com> In-reply-to: <20171204120429.22892-1-l.stelmach@samsung.com> Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOKsWRmVeSWpSXmKPExsWy7djP87oVrqpRBsef2li8PzWR3WLjjPWs FvOPnGO16H4lY9H/+DWzxfnzG9gtbh5awWhx/95PJovLu+awWcw4v4/JYu2Ru+wWC7b1MVos 7T/OaNG69wi7A5/Hzll32T22HVD12LSqk82jb8sqRo++lxsYPY7f2M7k8XmTXAB7FJdNSmpO Zllqkb5dAlfG89PSBT/5K+4cO83ewDiVt4uRk0NCwETiyKG97BC2mMSFe+vZuhi5OIQEljJK HGw5wgrhfGaU6Ho6hx2m4+/MDVCJZYwSaxbuYARJ8AoISvyYfI+li5GDg1lAXuLIpWyQMLOA psTW3evZIeq/MEpsPP6GDSTBJuAo0b/0BNggEYHJzBJ39rwDq2IGmXpw20mwKmGBMIkX73eC rWYRUJV42LgYapu1xNkZP1kgTpKX2NV2kRXE5hSwkXjYvpkFxp4/6zLYHH4BLYk1TddZQBZI CKxil7h6eS4rRLOLxINvT6BsYYlXx7dA/SkjcXlyN1RDP6PE4fnfoRJTG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E11NfNUqINyWxsiq1KD++qDQntfgQozQHi5I4b++e1ZFCAumJ JanZqakFqUUwWSYOTqkGxuKQe5bW28LzhPmX51rUO7tffd65dvUR6yN3C5We1KSEbrvjNTXk nnPPFaFHx0+Y//iyyXB+Re1p/s7df6aEztsUIx31Ou0mW2rklxOi5ybtFJoTP2EDu/r0sycr tNc2nNnT3v1AeMLq7WmGO22TwwudbjFOCFz/6sjzlp6Zp5aYz6hUDolz11diKc5INNRiLipO BABRXE/NvAIAAA== X-CMS-MailID: 20171204125416eucas1p141878ea587d807a2559c90f590eab7fb X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171204125416eucas1p141878ea587d807a2559c90f590eab7fb X-RootMTR: 20171204125416eucas1p141878ea587d807a2559c90f590eab7fb References: <20171204125351.26805-1-l.stelmach@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add nodes for the True Random Number Generator found in Samsung Exynos 5250+ SoCs. Signed-off-by: Ɓukasz Stelmach --- arch/arm/boot/dts/exynos5.dtsi | 5 +++++ arch/arm/boot/dts/exynos5250.dtsi | 5 +++++ arch/arm/boot/dts/exynos5410.dtsi | 5 +++++ arch/arm/boot/dts/exynos5420.dtsi | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/exynos5.dtsi b/arch/arm/boot/dts/exynos5.dtsi index 33f929c1dda9..e0c91ff4442c 100644 --- a/arch/arm/boot/dts/exynos5.dtsi +++ b/arch/arm/boot/dts/exynos5.dtsi @@ -215,5 +215,10 @@ compatible = "samsung,exynos5250-prng"; reg = <0x10830400 0x200>; }; + + trng: rng@10830600 { + compatible = "samsung,exynos5250-trng"; + reg = <0x10830600 0x100>; + }; }; }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 51aa83ba8c87..38627e8164a0 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -1086,4 +1086,9 @@ clock-names = "secss"; }; +&trng { + clocks = <&clock CLK_SSS>; + clock-names = "secss"; +}; + #include "exynos5250-pinctrl.dtsi" diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi index 1604cb1b837d..aa8b14eda662 100644 --- a/arch/arm/boot/dts/exynos5410.dtsi +++ b/arch/arm/boot/dts/exynos5410.dtsi @@ -384,6 +384,11 @@ 3 0 0x07000000 0x20000>; }; +&trng { + clocks = <&clock CLK_SSS>; + clock-names = "secss"; +}; + &usbdrd3_0 { clocks = <&clock CLK_USBD300>; clock-names = "usbdrd30"; diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 31c77ea9123d..6c8cec9d564a 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -1459,6 +1459,11 @@ clock-names = "secss"; }; +&trng { + clocks = <&clock CLK_SSS>; + clock-names = "secss"; +}; + &usbdrd3_0 { clocks = <&clock CLK_USBD300>; clock-names = "usbdrd30";