From patchwork Thu Nov 23 15:09:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 10072965 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 5E41460353 for ; Thu, 23 Nov 2017 15:10:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4D3E52A004 for ; Thu, 23 Nov 2017 15:10:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41D412A111; Thu, 23 Nov 2017 15:10: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 696AD2A051 for ; Thu, 23 Nov 2017 15:10:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753122AbdKWPKP (ORCPT ); Thu, 23 Nov 2017 10:10:15 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:58937 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752791AbdKWPKM (ORCPT ); Thu, 23 Nov 2017 10:10:12 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171123151009euoutp02c881e720eb487446d079b6001bde441b~5v5gNRaYF1590215902euoutp02A; Thu, 23 Nov 2017 15:10:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171123151009euoutp02c881e720eb487446d079b6001bde441b~5v5gNRaYF1590215902euoutp02A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511449809; bh=5viik+a8KhaoxiGbOqJrOXGWlKKrXYSGIfw8xlURBmk=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Ex6cfxaNxYo9BdoKzp9vwLklB6MRzd4iriw3fQbgu5UhPeqoMZ1j3ElGSyjp/vW25 aGihlVcGFEhT5d9gPboqw57MpbZolw8RzRP3MW7FPeIKhtICrSS4HvfO6gDDhH5od0 vOxi0/wXvoK3UW8DNP1Cu8514hK2vo9dq0iqHNps= Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171123151008eucas1p2c59c670d04d567317aafa91e649bd3a9~5v5fgJm660066300663eucas1p2J; Thu, 23 Nov 2017 15:10:08 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 88.C1.12743.0D4E61A5; Thu, 23 Nov 2017 15:10:08 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171123151008eucas1p24436487b1b3f8de6d8cc768f05aea7a9~5v5euBS1C2497324973eucas1p2p; Thu, 23 Nov 2017 15:10:08 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-ef-5a16e4d08acd Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 82.D4.18832.0D4E61A5; Thu, 23 Nov 2017 15:10:08 +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 eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OZV00HYUM4VZ320@eusync3.samsung.com>; Thu, 23 Nov 2017 15:10:08 +0000 (GMT) From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= To: 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: Marek Szyprowski , Bartlomiej Zolnierkiewicz , =?UTF-8?q?=C5=81ukasz=20Stelmach?= Subject: [PATCH 3/3] ARM: dts: exynos: Add nodes for True Random Number Generator Date: Thu, 23 Nov 2017 16:09:14 +0100 Message-id: <20171123150914.31462-4-l.stelmach@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20171123150914.31462-1-l.stelmach@samsung.com> Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEKsWRmVeSWpSXmKPExsWy7djP87oXnohFGTz7q2GxccZ6Vov5R86x WnS/krE4f34Du8XNQysYLe7f+8lkcXnXHDaLGef3MVmsPXKX3WLBtj5Gi9a9R9gduD22HVD1 2LSqk82jb8sqRo++lxsYPT5vkgtgjeKySUnNySxLLdK3S+DK+LO3sOAHf0XTjYuMDYxzeLsY OTkkBEwk3n5/xgphi0lcuLeerYuRi0NIYCmjRNOdRawQzmdGiVkd79i7GDnAOn7tzwVpEBJY xigxc20JiM0rICjxY/I9FpASZgF5iSOXskHCzAKaElt3r2eHGPOFUWJO0wtGkASbgKNE/9IT YPNFBKYxSbxYvgpsMzPI0GWHtzGDVAkLBEus+PASrINFQFXi/56D7BDbrCWWTV/CBnG2vMSu totgL3AK2Eh87O8Fs/kFtCTWNF1nARkqIfCaTaLr7gdmiAYXidsNf6CahSVeHd/CDmHLSHR2 HGSCaOhnlDg8/ztUYgqjxOKFDhC2tcSfVRPZIJ7jk5i0bTozJFh4JTrahCBKPCRmTrkM1eoo sW1zB9T/QDN/f3zLOIFRfhZSkM1CBNkspCBbwMi8ilEktbQ4Nz212FSvODG3uDQvXS85P3cT I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030eDWxLw5PxXuJDf1SqUuqjkWH5XwxOn4jyLnVjW3nc5l6nNrEzZ71544G3Hc9kdD lRJLcUaioRZzUXEiAENiu5CJAgAA X-CMS-MailID: 20171123151008eucas1p24436487b1b3f8de6d8cc768f05aea7a9 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171123151008eucas1p24436487b1b3f8de6d8cc768f05aea7a9 X-RootMTR: 20171123151008eucas1p24436487b1b3f8de6d8cc768f05aea7a9 References: <20171123150914.31462-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";