From patchwork Fri May 29 17:53:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Juszkiewicz X-Patchwork-Id: 1300911 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; 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=KUcznwaH; 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=fCJAMrLB; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 49YXH72Kxjz9sSk for ; Sat, 30 May 2020 03:53:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B3B9880681; Fri, 29 May 2020 19:53:16 +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="KUcznwaH"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=juszkiewicz.com.pl header.i=@juszkiewicz.com.pl header.b="fCJAMrLB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 38FD280825; Fri, 29 May 2020 19:53:15 +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 [IPv6:2001:41d0:1:43dd::1]) (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 BB8688003B for ; Fri, 29 May 2020 19:53:11 +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 23CBD26191E; Fri, 29 May 2020 19:53:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=juszkiewicz.com.pl; s=mail; t=1590774791; bh=Fkfl41FblsTBpIHu+/aTkOZDMVdSh3F3b2bhZM7sN0M=; h=From:To:Cc:Subject:Date:From; b=KUcznwaHB8ZDJL9nkmtLdOTWnWSeY6UjJevK6Cj9w0M21eCbpOmZOCYxc0R9qQxBN 7HzShHy1kjzSnz71NRefBYd0qjFFRMk+2iq2i9sbYsVmBY3E7M5k3uHoNVcRuODtdb HXIDmxvzqG88lpQroialLRxN6qip4UfxHzQLptsE= 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 JT6GOiwEmeUx; Fri, 29 May 2020 19:53:09 +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 0F1312615C1; Fri, 29 May 2020 19:53:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=juszkiewicz.com.pl; s=mail; t=1590774789; bh=Fkfl41FblsTBpIHu+/aTkOZDMVdSh3F3b2bhZM7sN0M=; h=From:To:Cc:Subject:Date:From; b=fCJAMrLBgS5MvvLULllk6+jcJ+tv0cEv1mL69bVm5qSyFPYIqjyZpxWvGhXn5VkD+ VJsA43RLm+BOl892HvtWMQvZ0CV5uHMlckswLYLPcqT+ThU7/uq4DEeVmwfsAuv29s VE8beRawTwbbajzriHgjBIm2JegF7VAMYE69L0YI= From: Marcin Juszkiewicz To: u-boot@lists.denx.de Cc: Marcin Juszkiewicz Subject: [PATCH] rockchip: enable RNG on RockPro64 Date: Fri, 29 May 2020 19:53:05 +0200 Message-Id: <20200529175305.783399-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 RNG module works fine on RockPro64 so let's enable it by default. => rng 00000000: 77 08 dd 04 2c 4d b8 cf 25 07 29 2d c0 ce 28 3b w...,M..%.)-..(; 00000010: d4 5a 38 68 b1 40 97 59 b8 a5 7c 42 f8 4c 38 28 .Z8h.@.Y..|B.L8( 00000020: 25 20 0b 4b f0 1a d5 c1 e6 a2 c2 34 5a 5e 64 26 % .K.......4Z^d& 00000030: 41 8b d8 7e c4 d6 9e e3 da 0e 98 a2 2f 38 0d 9f A..~......../8.. 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 9d4343a5a7..eb83b1376b 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