From patchwork Fri Jul 7 14:57:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 9830625 X-Patchwork-Delegate: agross@codeaurora.org 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 3916A60317 for ; Fri, 7 Jul 2017 14:57:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A88D286A9 for ; Fri, 7 Jul 2017 14:57:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E32B286AB; Fri, 7 Jul 2017 14:57:17 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 8DABE286A9 for ; Fri, 7 Jul 2017 14:57:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751034AbdGGO5P (ORCPT ); Fri, 7 Jul 2017 10:57:15 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:36163 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750974AbdGGO5O (ORCPT ); Fri, 7 Jul 2017 10:57:14 -0400 Received: by mail-wr0-f196.google.com with SMTP id 77so8166288wrb.3; Fri, 07 Jul 2017 07:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=SszuAUP2I9lr9mTpJbCWJupDua2zZU/UIZ4MYzX24hY=; b=ORHlNlhT4DtgM2kES8UB8jiJabhwfKSZ3SEnJuotUwyNjcJwTK4KbOiPjqbf+TPMmi dFonfNZKkk1FySsF/D1d3MG/o/6TQR+IocLXFtcPh9Ak68T++o5GMzz9srWN3JIgUjU9 ACOIqefsTZXWG9buIw/C442vnI8sjzjTT0hUwgmcDOcz5CxUIIbcFAfCEWDVDW5CAm99 Wlgw07OxooVwimDtvFcxp6CUBPIvsuNfirsTpOnhpsaR2XnBl9Ei712/7rsZk63q3S9y PlaFs9XAQo1GhlqzP4UVvbx7h6FOTG8bdg6gTuJ+YRt5spZLvL5V2g6BU/WFWfzfuX4z hcJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SszuAUP2I9lr9mTpJbCWJupDua2zZU/UIZ4MYzX24hY=; b=jY27RkFbKJyXBOmi46D1gVzI9G+DQV/iua6CFIJyFXrmWZioF1UcPZ8tbP5ZMejPDY bxDruXYt51MkrbnncmaSNz0UNIblk+JpO5o8MdoB2SVDEB1DHX5gLfcZzPtUXbS9CmWO As1KWh2REqV49neXXOhde93PlUciCxzrhzCHknipK4dO2ZC+ZJkYzi4kU7aGOGALgQUF jLvlj429UuNvbzdpXN+WNUHOuCRSmMRa7MWfHLy20t4VfGuVQuJ70yGfb7ebTUv3V8fZ tTk6NA8ASz/F9id9zLo5yfhTdtevdM30FlMYpCBJtkVp43G4+CE9dBx0CGnSA6jlUikl AkIw== X-Gm-Message-State: AIVw113zw/iMNWNds9AwWVwsWwj72zowO7sk7Vlvoix9JeLTPSGJH444 Mljx5qxl9MZc+yvC X-Received: by 10.28.167.207 with SMTP id q198mr2634954wme.36.1499439432485; Fri, 07 Jul 2017 07:57:12 -0700 (PDT) Received: from debian64.daheim (p200300D5FBC1A4FCD63D7EFFFEBDE96E.dip0.t-ipconnect.de. [2003:d5:fbc1:a4fc:d63d:7eff:febd:e96e]) by smtp.gmail.com with ESMTPSA id x94sm2728577wrb.47.2017.07.07.07.57.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jul 2017 07:57:11 -0700 (PDT) Received: from chuck by debian64.daheim with local (Exim 4.89) (envelope-from ) id 1dTUgw-0003Vm-2x; Fri, 07 Jul 2017 16:57:10 +0200 From: Christian Lamparter To: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andy Gross , David Brown , Rob Herring , Mark Rutland Subject: [PATCH] arm: dts: qcom: add pseudo random number generator on the IPQ4019 Date: Fri, 7 Jul 2017 16:57:10 +0200 Message-Id: <20170707145710.13458-1-chunkeey@googlemail.com> X-Mailer: git-send-email 2.13.2 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This architecture has a pseudo random number generator supported by the existing "qcom,prng" binding. rngtest: bits received from input: 5795960032 rngtest: FIPS 140-2 successes: 289591 rngtest: FIPS 140-2 failures: 207 rngtest: FIPS 140-2(2001-10-10) Monobit: 25 rngtest: FIPS 140-2(2001-10-10) Poker: 28 rngtest: FIPS 140-2(2001-10-10) Runs: 91 rngtest: FIPS 140-2(2001-10-10) Long run: 67 rngtest: FIPS 140-2(2001-10-10) Continuous run: 0 rngtest: input channel speed: (min=244; avg=46122; max=3906250)Kibits/s rngtest: FIPS tests speed: (min=1.327; avg=20.966; max=26.345)Mibits/s rngtest: Program run time: 386965827 microseconds Signed-off-by: Christian Lamparter --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 4 ++++ arch/arm/boot/dts/qcom-ipq4019.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi index b9457dd21a69..c25d8f5c669d 100644 --- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi @@ -40,6 +40,10 @@ clock-frequency = <48000000>; }; + rng@22000 { + status = "ok"; + }; + pinctrl@0x01000000 { serial_pins: serial_pinmux { mux { diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index d8c87faa0124..d1a56331ce96 100644 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -120,6 +120,14 @@ reg = <0x1800000 0x60000>; }; + rng@22000 { + compatible = "qcom,prng"; + reg = <0x22000 0x140>; + clocks = <&gcc GCC_PRNG_AHB_CLK>; + clock-names = "core"; + status = "disabled"; + }; + tlmm: pinctrl@0x01000000 { compatible = "qcom,ipq4019-pinctrl"; reg = <0x01000000 0x300000>;