From patchwork Mon Nov 27 09:58:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 10076239 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 5CCE46028E for ; Mon, 27 Nov 2017 09:59:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E94C26CFC for ; Mon, 27 Nov 2017 09:59:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5258128CCB; Mon, 27 Nov 2017 09:59:31 +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 1E3D626CFC for ; Mon, 27 Nov 2017 09:59:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751544AbdK0J7O (ORCPT ); Mon, 27 Nov 2017 04:59:14 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:55887 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbdK0J6O (ORCPT ); Mon, 27 Nov 2017 04:58:14 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171127095812euoutp02a84f14f4d55f38770e516de91526e55e~66ORmgmUu3257832578euoutp025; Mon, 27 Nov 2017 09:58:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171127095812euoutp02a84f14f4d55f38770e516de91526e55e~66ORmgmUu3257832578euoutp025 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511776692; bh=5viik+a8KhaoxiGbOqJrOXGWlKKrXYSGIfw8xlURBmk=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=u3rkfgsUAPetgLcxqRkyYbSxDP0AxJUFtFxSCMDiz16X1RlfvqHW3Lt6F3cbt6RdT yavmH96aiEYniAbghltXr90w0IscwqDzbtCY3b5vBFTLOAycMLoRl/VxNp6I+VAvN3 oWJ0b5jzIWTs0+lyOekrd4r1dde/z2dj8iS2XpQk= Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171127095811eucas1p11fcb22fca7414c1fdc927f962edf8e6c~66OQqz38u2063620636eucas1p1j; Mon, 27 Nov 2017 09:58:11 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 38.44.12907.3B1EB1A5; Mon, 27 Nov 2017 09:58:11 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171127095810eucas1p2f580db5216f419551e4b530adcf9a41f~66OP9cm_k0648206482eucas1p2B; Mon, 27 Nov 2017 09:58:10 +0000 (GMT) X-AuditID: cbfec7f1-f793a6d00000326b-ca-5a1be1b3d276 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 9E.47.18832.2B1EB1A5; Mon, 27 Nov 2017 09:58:10 +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 <0P02000NFMCY0G00@eusync1.samsung.com>; Mon, 27 Nov 2017 09:58:10 +0000 (GMT) From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= To: "Andrew F. Davis" , PrasannaKumar Muralidharan , Rob Herring , Matt Mackall , Herbert Xu , Krzysztof Kozlowski , 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 v2 3/3] ARM: dts: exynos: Add nodes for True Random Number Generator Date: Mon, 27 Nov 2017 10:58:04 +0100 Message-id: <20171127095804.7128-4-l.stelmach@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20171127095804.7128-1-l.stelmach@samsung.com> Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKKsWRmVeSWpSXmKPExsWy7djPc7qbH0pHGVx7JmLx/tREdouNM9az Wsw/co7VovuVjMX58xvYLW4eWsFocf/eTyaLy7vmsFnMOL+PyWLtkbvsFgu29TFaLO0/zmjR uvcIuwOvx85Zd9k9th1Q9di0qpPNo2/LKkaPvpcbGD2O39jO5PF5k1wAexSXTUpqTmZZapG+ XQJXxp+9hQU/+CuablxkbGCcw9vFyMkhIWAi8e3dTXYIW0ziwr31bF2MXBxCAksZJRbf/cQI 4XxmlHizbDtLFyMHWMfvXaEQ8WWMEq+vLGcD6eYVEJT4MfkeWA2zgLzEkUvZIGFmAU2JrbvX gy0QEvjCKLFrjjSIzSbgKNG/9AQriC0i8JlJ4vKGQpCZzCAzD247CTZTWCBM4v+d2WA2i4Cq xP6+WewQu6wktsy9wwxxtbzErraLYIM4Bawltt08xghi8wtoSaxpus4CMlRCoJ9d4v22a4wQ DS4S+w6sg3pZWOLV8S1QtoxEZ8dBJqgGRonD879DJaYAw2KhA4RtLfFn1UQ2iNf4JCZtm84M CRVeiY42IYgSD4l7vZ/YIGxHiT/rJ7ND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daPo/dPC43S/O9Tvqe5N8WQp1P319x7r/6WCH+ZlX7W2i9WNiNYWYZ/F+5Nv xfnCsvY8p0VfSxPrPlbttOe/tvDJP4llXzcfMWc44v9D1KZPUz5X7VhenOmKeoZFZqzv9+4r efbIxGOHR2fB03fzr3l9OL4p96/UbqHYJ4w9SizFGYmGWsxFxYkAtyAK054CAAA= X-CMS-MailID: 20171127095810eucas1p2f580db5216f419551e4b530adcf9a41f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171127095810eucas1p2f580db5216f419551e4b530adcf9a41f X-RootMTR: 20171127095810eucas1p2f580db5216f419551e4b530adcf9a41f References: <20171127095804.7128-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 7da4a4285b24..6a298b536e1c 100644 --- a/arch/arm/boot/dts/exynos5.dtsi +++ b/arch/arm/boot/dts/exynos5.dtsi @@ -210,5 +210,10 @@ reg = <0x10830000 0x300>; interrupts = ; }; + + trng: trng@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 8032d7e567fc..332fe04b772b 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -1081,4 +1081,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 7eab4bc07cec..f3991206a562 100644 --- a/arch/arm/boot/dts/exynos5410.dtsi +++ b/arch/arm/boot/dts/exynos5410.dtsi @@ -379,6 +379,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 02d2f898efa6..2f4e5542f354 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -1454,6 +1454,11 @@ clock-names = "secss"; }; +&trng { + clocks = <&clock CLK_SSS>; + clock-names = "secss"; +}; + &usbdrd3_0 { clocks = <&clock CLK_USBD300>; clock-names = "usbdrd30";