From patchwork Sat May 23 12:18:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 1296689 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=juszkiewicz.com.pl Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.a=rsa-sha256 header.s=mail header.b=EjN2oyPo; dkim=fail reason="signature verification failed" (1024-bit key) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.a=rsa-sha256 header.s=mail header.b=N1Q2vkYh; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49Tj8t0MR0z9sRY for ; Sat, 23 May 2020 22:19:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EB9A0812FF; Sat, 23 May 2020 14:19:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=juszkiewicz.com.pl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.b="EjN2oyPo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.b="N1Q2vkYh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DA3D6812FE; Sat, 23 May 2020 14:19:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from muminek.juszkiewicz.com.pl (muminek.juszkiewicz.com.pl [213.251.184.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6001D812FE for ; Sat, 23 May 2020 14:19:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=juszkiewicz.com.pl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marcin@juszkiewicz.com.pl Received: from localhost (localhost [127.0.0.1]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTP id 632742619E3; Sat, 23 May 2020 14:19:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=juszkiewicz.com.pl; s=mail; t=1590236361; bh=jn3Molm8BI+FU6J7GBbqNCNHOHs4aYoiXoXrC+A6mps=; h=From:To:Cc:Subject:Date:From; b=EjN2oyPon9PiJtLWQBczOldwXe6TusgczvSidLnFVyBSX6DIBkHiqRCmAbobf2u/Z qvDbRaUeB24ZGIzqtKNlBTkHmDjClJt+cv4NGcm+SOlGTDyknsk62/R455auNQCUJq vCqknGO1Qyv5PCrQ12OiAxB2M53lXaiknlT/mlsE= Received: from muminek.juszkiewicz.com.pl ([127.0.0.1]) by localhost (muminek.juszkiewicz.com.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fzbSNB4dTms3; Sat, 23 May 2020 14:19:19 +0200 (CEST) Received: from puchatek.local.com.pl (89-67-26-161.dynamic.chello.pl [89.67.26.161]) by muminek.juszkiewicz.com.pl (Postfix) with ESMTPSA id 0E652261175; Sat, 23 May 2020 14:19:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=juszkiewicz.com.pl; s=mail; t=1590236359; bh=jn3Molm8BI+FU6J7GBbqNCNHOHs4aYoiXoXrC+A6mps=; h=From:To:Cc:Subject:Date:From; b=N1Q2vkYhZDsNBsY4DphJfMwvQHW6vDjYc6ufY6cl3aqLi883PDFnX8OgflGmjtWF3 +Ym7agPSg0HIUgeuqPP9nrtrOEkG5Khh0KyfDRyJIkOw0YCQ76k31+l0X4fiFfDWec IWi3YBj94TCA5qKkZf9SJLZW8xNfTB+oTc1vnkF4= From: Marcin Juszkiewicz To: u-boot@lists.denx.de Cc: kever.yang@rock-chips.com, Marcin Juszkiewicz Subject: [PATCH] rockchip: enable RNG on RockPro64 Date: Sat, 23 May 2020 14:18:57 +0200 Message-Id: <20200523121857.93376-1-marcin@juszkiewicz.com.pl> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Marcin Juszkiewicz Signed-off-by: Marcin Juszkiewicz --- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ++++ configs/rockpro64-rk3399_defconfig | 2 ++ 2 files changed, 6 insertions(+) diff --git arch/arm/dts/rk3399-rockpro64-u-boot.dtsi arch/arm/dts/rk3399-rockpro64-u-boot.dtsi index deaa3efd39..824ee4e3ce 100644 --- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +++ arch/arm/dts/rk3399-rockpro64-u-boot.dtsi @@ -23,3 +23,7 @@ &vdd_log { regulator-init-microvolt = <950000>; }; + +&rng { + status = "okay"; +}; diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig index 53abce0057..04ba151475 100644 --- configs/rockpro64-rk3399_defconfig +++ configs/rockpro64-rk3399_defconfig @@ -43,6 +43,8 @@ CONFIG_REGULATOR_PWM=y CONFIG_REGULATOR_RK8XX=y CONFIG_PWM_ROCKCHIP=y CONFIG_RAM_RK3399_LPDDR4=y +CONFIG_DM_RNG=y +CONFIG_RNG_ROCKCHIP=y CONFIG_BAUDRATE=1500000 CONFIG_DEBUG_UART_SHIFT=2 CONFIG_ROCKCHIP_SPI=y