From patchwork Tue Dec 12 12:09:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 10106799 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 28D2C602B3 for ; Tue, 12 Dec 2017 12:09:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F3EE29813 for ; Tue, 12 Dec 2017 12:09:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 13BB129B95; Tue, 12 Dec 2017 12:09: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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable 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 555D529813 for ; Tue, 12 Dec 2017 12:09:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752377AbdLLMJN (ORCPT ); Tue, 12 Dec 2017 07:09:13 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:40203 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751625AbdLLMJK (ORCPT ); Tue, 12 Dec 2017 07:09:10 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171212120908euoutp01047fd9c6735471003a90748ba904f0c0~-ir3xqSrg2413224132euoutp01O; Tue, 12 Dec 2017 12:09:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171212120908euoutp01047fd9c6735471003a90748ba904f0c0~-ir3xqSrg2413224132euoutp01O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1513080548; bh=P6XkoITXMI/sAbirg2r4ZdRz1YyJb7RxrclTUvw4oPY=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=szxTAVgLuRTFrSS9GyQDpa+XcDglID4jS17QQv/+n0sDxBTvb/WnApJIVg/FEAn1h DLGglJDEzy5mwU7xBOSVQnrlSsIciKum19r7E7CEJk1VlIzvhCqsv8tZd+6ALfxpSc BWNqKjaISkBQu0528Fq2pI2Hoc8fCj+/35VkfpVA= Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171212120907eucas1p286bcee6e35fac52e030cbb717996c5d9~-ir3G6Z7i1149311493eucas1p21; Tue, 12 Dec 2017 12:09:07 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 91.29.12743.3E6CF2A5; Tue, 12 Dec 2017 12:09:07 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171212120906eucas1p23883590efde24a67800473b0d34871e5~-ir2aqvr60209702097eucas1p2x; Tue, 12 Dec 2017 12:09:06 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-87-5a2fc6e3a1fd Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 2E.F6.20118.2E6CF2A5; Tue, 12 Dec 2017 12:09:06 +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 <0P0U00L74KF66Y10@eusync1.samsung.com>; Tue, 12 Dec 2017 12:09:06 +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 v4] ARM: dts: exynos: Add nodes for True Random Number Generator Date: Tue, 12 Dec 2017 13:09:02 +0100 Message-id: <20171212120902.16561-1-l.stelmach@samsung.com> X-Mailer: git-send-email 2.11.0 In-reply-to: <20171204125351.26805-4-l.stelmach@samsung.com> Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJKsWRmVeSWpSXmKPExsWy7djPc7qPj+lHGTzq5rN4f2oiu8XGGetZ LeYfOcdq0f1KxqL/8Wtmi/PnN7Bb3Dy0gtHi/r2fTBaXd81hs5hxfh+Txdojd9ktFmzrY7RY 2n+c0aJ17xF2Bz6PnbPusntsO6DqsWlVJ5tH35ZVjB59Lzcwehy/sZ3J4/MmuQD2KC6blNSc zLLUIn27BK6MnuYdTAUfBSo279/N1MD4jbeLkZNDQsBE4uGUb+wQtpjEhXvr2boYuTiEBJYy Snw9cgLK+cwo0bbyGAtMx8UpLYwQiWWMErcvtLOCJHgFBCV+TL4HVMTBwSwgL3HkUjZImFlA U2Lr7vXsEPVfGCWOvZ7KBpJgE3CU6F96ghUkISIwmVnizp53YFXMIFMPbjsJViUsECSxfH4z G8hUFgFViRPfwBbwClhL3LjsCXGQvMSutousIGFOARuJ9W0mIGF+AS2JNU3XoW6ezi5xdqoS hO0iceDkSzYIW1ji1fEtUN/LSFye3M0CcoGEQD+jxOH536ESUxglFi90gLCtJf6smsgG8Rif xKRt05lB9koI8Ep0tAlBlHhI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ZHCgmkJ5akZqemFqQWwWSZ ODilGhj1max7qo9qM+TNeGvx8s0X08rwiwt+Xmva6Xkg7/Lv80ZvNTVPTLz8a3rErpzv/1ws eFftvOtR3P0jsE76GvN/zl12hw+IWX87nTvz35trxtHF/4t/l8u/m7zwmGyl0TXvtOzdJgtP yWQvfxISP2fiRvOfLYHH12bmSW60f7cn3/7V8ux5MmXySizFGYmGWsxFxYkAFKPV36ICAAA= X-CMS-MailID: 20171212120906eucas1p23883590efde24a67800473b0d34871e5 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171212120906eucas1p23883590efde24a67800473b0d34871e5 X-RootMTR: 20171212120906eucas1p23883590efde24a67800473b0d34871e5 References: <20171204125351.26805-4-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 --- Changes since v3: - Rebased accroding to Krzysztof Kozłowski's request 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 6cc5c37a9b2a..b3c8428de389 100644 --- a/arch/arm/boot/dts/exynos5.dtsi +++ b/arch/arm/boot/dts/exynos5.dtsi @@ -216,6 +216,11 @@ reg = <0x10830400 0x200>; }; + trng: rng@10830600 { + compatible = "samsung,exynos5250-trng"; + reg = <0x10830600 0x100>; + }; + g2d: g2d@10850000 { compatible = "samsung,exynos5250-g2d"; reg = <0x10850000 0x1000>; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index e55748798845..bdd742e3f3c3 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -1111,4 +1111,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 f5541000606b..4e5d9bad085f 100644 --- a/arch/arm/boot/dts/exynos5410.dtsi +++ b/arch/arm/boot/dts/exynos5410.dtsi @@ -392,6 +392,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 3611f5c05235..f7c2ba61830b 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -1479,6 +1479,11 @@ clock-names = "secss"; }; +&trng { + clocks = <&clock CLK_SSS>; + clock-names = "secss"; +}; + &usbdrd3_0 { clocks = <&clock CLK_USBD300>; clock-names = "usbdrd30";