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: 9830629 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 E99A460317 for ; Fri, 7 Jul 2017 14:57:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB81B286A2 for ; Fri, 7 Jul 2017 14:57:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFFAC286A9; Fri, 7 Jul 2017 14:57:45 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 46A82286A2 for ; Fri, 7 Jul 2017 14:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=c39fQoF6zKHgGy7Ws525o1nAOz6rto43uFwt8IcyEdg=; b=cP7 YqXZqFFkKb7f6ql/KAFNaPjQK6qZM5apBCBnTXlw/a/6Lbkpep18YOXksKYceH8zLvCL69DJLHvf/ dQQufDBAt0h+Be3KTkkk/fUgwl/eykBXwnhPP+KugLMGLK0hJf/yBro2KoreiPfBAnPfSAgBAkLU6 uXZUgO8n7kPlRAtCYAKOTcZkbL5xKsGc9reEZa4Lgy+Zro3WeAhkfsGwPeUESRfSiBFLBhBnlb3EE aqocKQHZNspdrx/kYe2bO38rVoUEF/oLTSAUEGCADrL5IjUAKNUvKyBOUveIM46oEgnC4EV4R7Mxv kWCNEh/ceYmdR8KTnmyFSYyj0upgZgQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dTUhS-0004ab-Us; Fri, 07 Jul 2017 14:57:42 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dTUhK-0004KE-Lu for linux-arm-kernel@lists.infradead.org; Fri, 07 Jul 2017 14:57:41 +0000 Received: by mail-wr0-x244.google.com with SMTP id k67so8164863wrc.1 for ; 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=TvO4p/9Z/TiJSyXwx1rZ//zDSuGRWSuwCLYM6FePFCGWUrcR8jSTYjrERo1ruNzTU4 ku3ln0jUHN4HXfJxhVxh9pa5UqJJxaZ5tCDduWZahoMhfprnXTW3zUiuYp0gJIprXWC8 9RjHRwoe9MFUJz3nOk5Cxp5B0cGXUBXWVWetBCZvDIYWI97QI21YNXQOejYkBri4Dz0+ axtPRO6+/22g0rrwASgQyz2VlKfbrlcZsPfX7O0KgLe6rtcQ4kp05rU65yVDbYebUCBk Zp6fkuJednFC7JRSAu22Lr+9kCH+90YQVqbqDaoUzGkWDLaG4ZA1edjl8X7gXePKQ/2a BQVA== X-Gm-Message-State: AIVw110Rb5AhWJao+YOFR2s6t4ujP2lDVCRQ3E3AmlbnntFP2oQSf9ec +1c364xibuKZog== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170707_075734_995842_C1B428B2 X-CRM114-Status: UNSURE ( 8.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andy Gross , David Brown , Mark Rutland , Rob Herring MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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>;