From patchwork Wed Mar 10 14:33:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Vincent_Stehl=C3=A9?= X-Patchwork-Id: 396784 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp756029jai; Wed, 10 Mar 2021 14:39:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu8ZBatbl1P8zmvjUW844Cd/z3Ry2sKAsymk/AZV3U3pcwwWSjbOC3n2BdBZfvbq0fheIu X-Received: by 2002:a17:906:1a44:: with SMTP id j4mr133274ejf.401.1615415990231; Wed, 10 Mar 2021 14:39:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615415990; cv=none; d=google.com; s=arc-20160816; b=aXggS9meummX1m46moOh7iqm4gPdnMDKG3NhM3yjlOMZ+BHdW8oHAaVpJgLkm0bMjy gIXUvYBLBqWMipsT4nyJ/ypkDTarya5QfeOGEfx6iaqDLKjycg1+9h3qM+iwAudygILr fW4zTfh53nEvn9lHCBy7vT6TsCZNe3wrhJhkHEeqnTzkKLeeezoIHORHNOHDDiRAbhv0 VAUyiOzh4Gw75ddWFZmrPR1aWPJ69Dyup1uyeEvsXnewZrdADZMYCRYLc89Jbz/nEKoK /37ctZYJVHmh4TzLhVrz8ChBLy1WU7Hp/YIsuHTUZUxdJ5n6oFZrjVYUIdhDLqeVCR+U 8Xlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=HPa0Wp4FSfaAPl+89FlWGYOxrXGQd2tE09Y2UJQ7Ldg=; b=XYXVeM1oNTYir9gNETjU75Ab9nHdffIoFA/NZ/KLRTlKloLgSu9nMj6yxYGckr+tR/ DRCeJ3qp/Eemif9UN7BPnFsvzmk2WWwJf9S3hEKbxuxziHZA4Gfe+7jCzRS//6lgslPt /KNgzy4zCkjQkkFz/Zfcil+IDHuudXrGPcTnbIGBjxoP37XsOHE92Oa1AJ1XLygOsKmH dpHLQXWwbW88ofpdRfFQrEFo8e0s7Y88nh51+zbD8DTkva0vL8s+QfoV5C//WbnKlGt2 CR//NcLX4cNw6jOVodSzZIDa1NAjmV+gho0kID/LpZvNRHNnGsqpfIfmwxrbMcN/E0rm X7PQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id d15si453668edu.375.2021.03.10.14.39.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 14:39:50 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9F31782858; Wed, 10 Mar 2021 23:39:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D126C827A8; Wed, 10 Mar 2021 15:34:49 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 7855A8204D for ; Wed, 10 Mar 2021 15:34:46 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=vincent.stehle@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B829BED1; Wed, 10 Mar 2021 06:34:44 -0800 (PST) Received: from localhost.localdomain (unknown [10.57.55.112]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 047533F793; Wed, 10 Mar 2021 06:34:40 -0800 (PST) From: =?utf-8?q?Vincent_Stehl=C3=A9?= To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , =?utf-8?q?Vincent_Stehl?= =?utf-8?b?w6k=?= , Simon Glass Subject: [PATCH] sandbox: dtsi: add rng Date: Wed, 10 Mar 2021 15:33:30 +0100 Message-Id: <20210310143330.4342-1-vincent.stehle@arm.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 10 Mar 2021 23:39:44 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.4 at phobos.denx.de X-Virus-Status: Clean Having an rng in the sandbox is useful not only for tests but also for e.g. UEFI. Therefore, copy the rng node from test.dts to sandbox.dtsi. In the case of UEFI, it can then be verified with `efidebug dh' that a "Random Number Generator" protocol is indeed present. This also fixes the following `bootefi' error: Missing RNG device for EFI_RNG_PROTOCOL Signed-off-by: Vincent Stehlé Cc: Simon Glass --- arch/sandbox/dts/sandbox.dtsi | 4 ++++ 1 file changed, 4 insertions(+) -- 2.30.1 diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi index dc933f3bfc7..43b9342ce56 100644 --- a/arch/sandbox/dts/sandbox.dtsi +++ b/arch/sandbox/dts/sandbox.dtsi @@ -196,6 +196,10 @@ compatible = "sandbox,reset"; }; + rng { + compatible = "sandbox,sandbox-rng"; + }; + sound { compatible = "sandbox,sound"; cpu {