Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 095AAEB64D8 for ; Wed, 14 Jun 2023 12:44:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5B12B86146; Wed, 14 Jun 2023 14:43:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WIV1zbyE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5200686146; Wed, 14 Jun 2023 14:43:39 +0200 (CEST) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0F3CC860FE for ; Wed, 14 Jun 2023 14:43:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pbrobinson@gmail.com Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f8c74af64fso5587725e9.1 for ; Wed, 14 Jun 2023 05:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686746614; x=1689338614; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Jne9SqWnJdgDpj5mkPbP6jWrorHm2Ewr8ivuyd1zKBQ=; b=WIV1zbyEf76/AZV4av4Ab6kytOWNx4Cgr8LFRAVy0DIDj6GKOPyPg7yVsSUOtkkQPR 4plpstbCTo2xN/epjgrDc70Y2XNal4Y8c8EZIDkfSPn7mVN3vBZscIpajCVK9oMY006G hQ/3lRYirYKtJbAOt5oRXWqGqXdlrfXMqhDA9dRla5l3J1Px77QZiE7/czqNeryTcrSC nQJKPLOKXZZwzI7Dcv4QtfBMI2zpkStKYCHynOnD96H1Fm/CRfc4RmKiW3UgJVfCn5eC 5QHH+onIEDk91Izuk4qry+RAGnMwqv7WthL3hMJY2+gMuJiGbTyNsQZ2VAoD1qgVHXY9 p/mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686746614; x=1689338614; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jne9SqWnJdgDpj5mkPbP6jWrorHm2Ewr8ivuyd1zKBQ=; b=bPn3UB+Nr7fgBm9Vrhg5MVBNiRLiVAR6TPvKWbUGhJ4kytAVtZPyUZrO2FJgbWkSay uQG5vH7K+ytlJdki06QVI8h99N241iYpSqqA2GjEMWCkes4ATEyMuC112uBb66PpjHJR 44wpSYTUdxyNSVbtOC5svYFBrcOtrWn3XptxoCrPswBAXXMloirTxyh3TqUOond2NNDc 7cgEcz1aIYnW2s9BPIZSuCrTO491tBU3Rcd1ubL+7gbMX/Z4hG0fgUdPU6pf4oxQNZ78 kYue8TdOqV/ksCbzxgMFPXPrwmAVAuodAoaRpDH449SvEr9TNT+k1SJEve21VwZCyZAN k/3w== X-Gm-Message-State: AC+VfDz+euUQ/kYf5v84y5arXPpq6LOLBmbUqMFIVVB7/TmpcGsagHMr v64fxEF0CGVXk4pqvA+7upE= X-Google-Smtp-Source: ACHHUZ47g7ktmMWUGnTvkK4deYzNa9InQuYnEmy91+AuY7+Avu9rVE/HmGTqh7XE7FzZF8tB2Wscww== X-Received: by 2002:a05:600c:364f:b0:3f6:c8c:7048 with SMTP id y15-20020a05600c364f00b003f60c8c7048mr10715141wmq.20.1686746614238; Wed, 14 Jun 2023 05:43:34 -0700 (PDT) Received: from morpheus.home.roving-it.com (3.e.2.0.0.0.0.0.0.0.0.0.0.0.0.0.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681::2e3]) by smtp.googlemail.com with ESMTPSA id g26-20020a7bc4da000000b003f60e143d38sm17329161wmk.11.2023.06.14.05.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 05:43:33 -0700 (PDT) From: Peter Robinson To: "Matwey V. Kornilov" , Simon Glass , Philipp Tomsich , Kever Yang , u-boot@lists.denx.de Cc: Peter Robinson Subject: [PATCH 3/4] rockchip: dts: rk3328: Add rng details to u-boot.dtsi Date: Wed, 14 Jun 2023 13:43:13 +0100 Message-ID: <20230614124329.244462-3-pbrobinson@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230614124329.244462-1-pbrobinson@gmail.com> References: <20230614124329.244462-1-pbrobinson@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean Add the rk3328 rng details to the u-boot.dtsi and enable the RNG on the Rock64 to be able to provide a rnadom seed via UEFI. Signed-off-by: Peter Robinson --- The DT snippet will allow this to be enabled on other rk3328 devices but I only have the Rock54 to test on. arch/arm/dts/rk3328-u-boot.dtsi | 6 ++++++ configs/rock64-rk3328_defconfig | 2 ++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/dts/rk3328-u-boot.dtsi b/arch/arm/dts/rk3328-u-boot.dtsi index ce96ce40a73..a9f2536de2a 100644 --- a/arch/arm/dts/rk3328-u-boot.dtsi +++ b/arch/arm/dts/rk3328-u-boot.dtsi @@ -26,6 +26,12 @@ 0x0 0xff720000 0x0 0x1000 0x0 0xff798000 0x0 0x1000>; }; + + rng: rng@ff060000 { + compatible = "rockchip,cryptov1-rng"; + reg = <0x0 0xff060000 0x0 0x4000>; + status = "okay"; + }; }; &cru { diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig index 97ac8734d1b..1820deee373 100644 --- a/configs/rock64-rk3328_defconfig +++ b/configs/rock64-rk3328_defconfig @@ -77,6 +77,8 @@ CONFIG_MISC=y CONFIG_ROCKCHIP_EFUSE=y CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y +CONFIG_DM_RNG=y +CONFIG_RNG_ROCKCHIP=y CONFIG_SPI_FLASH_GIGADEVICE=y CONFIG_ETH_DESIGNWARE=y CONFIG_GMAC_ROCKCHIP=y -- 2.41.0