From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDA37C4338F for ; Wed, 25 Aug 2021 16:24:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 23D7761151 for ; Wed, 25 Aug 2021 16:24:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 23D7761151 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E64C982DB2; Wed, 25 Aug 2021 18:24:06 +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="YwjXANoA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A954082ECD; Wed, 25 Aug 2021 18:24:04 +0200 (CEST) Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) (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 D067C82BB2 for ; Wed, 25 Aug 2021 18:24:00 +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=macroalpha82@gmail.com Received: by mail-oi1-x233.google.com with SMTP id u25so126934oiv.5 for ; Wed, 25 Aug 2021 09:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kGPuR1wvZZcNmCM5dUEUte6HZ5YqMSf+FMxQBwcPYRg=; b=YwjXANoAs3dyMbky6dQOOnvIMfVWOI2M3ztYthqVEtb0UoPK03DCDkTjLclbymnFWZ VOz+j0Q4c9607PJ1bg4mz6XycZgxOHJ26nrcGjXEFBg098UvnLfRtAJ582/GyGxl3Yvu JpWReRvUYOfFMDAa4kepcXs1bvgme5JtML0rH6i+rSQp8MXBDRdxPQsYwyql86jHAATd ZF+vLm+DWbZ5vv/h47S8sy5bUYiR47KUk4VNwQWwhETA3VK4TM3fJqKaefhD9YBip3ou ZiKbTWyr2uXL4wkaT6b4Zl39EBRc4vDnbOFnVAjc+9jDTJwGFbp8xjdP0SR0VGA4RwqI iTWA== 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:mime-version :content-transfer-encoding; bh=kGPuR1wvZZcNmCM5dUEUte6HZ5YqMSf+FMxQBwcPYRg=; b=JVZy9jUaZ0GEgqCRE3l01QNNXlPjgucqkrLIuepKtvmeouUdJ8opUCxTTRFvXl8PPT Ttyi3KIWjQaJwb6VEMEcNw2DzR4pDgLq3pMLwdhAXkB7CvNa4s9nnl9dqyEeDkXFFtck hxSEYKX81WTTu9YpKsc2delssHIRTvSdUQ2vT9B4xCFhoniT1RI6ZGfLp7Pxxzxz+YW3 r59vE7/gWrQb3kmsBJc1r8YOh09dZMG7vPuFUgLKnh/sguVcrJg+rILJbmAB3kyIcTcm J/w4MZj5TOE/7TyYztc0xNrZhLQoe6XArEPgrwDlW05Ow+R0w9DBdJ57rL1ZMCxZPznG uXVg== X-Gm-Message-State: AOAM532irIMnKilQA0B2RzesV5ThC9JLRImfRR8DBypkFYaEhsbJlNbK ioCBgn/m846YvXfHZmAD/4BKna7sgTg= X-Google-Smtp-Source: ABdhPJz0SAwt86YA6/xcTUxpCbyxGxkVsGEuZQ5SCjbkYYTsHaFyUvwu/d9WbzK4WjME16XbqiF1rA== X-Received: by 2002:a05:6808:9af:: with SMTP id e15mr7496753oig.78.1629908638985; Wed, 25 Aug 2021 09:23:58 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id y24sm51009oto.40.2021.08.25.09.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 09:23:58 -0700 (PDT) From: Chris Morgan To: u-boot@lists.denx.de Cc: kever.yang@rock-chips.com, jon.lin@rock-chips.com, Chris Morgan Subject: [PATCH 1/1] rockchip: px30: add support for HW RNG for Odroid Go Advance Date: Wed, 25 Aug 2021 11:23:57 -0500 Message-Id: <20210825162357.21690-1-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.103.2 at phobos.denx.de X-Virus-Status: Clean From: Chris Morgan The Odroid Go Advance has a hardware random number generator present. The device does not have an upstream Linux driver, but does have a U-Boot driver. Add the appropriate node so that the hardware RNG can be used in U-Boot. Signed-off-by: Chris Morgan --- arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi index 741e8dd935..6d4edc5855 100644 --- a/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi +++ b/arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi @@ -16,6 +16,12 @@ serial2 = &uart2; spi0 = &sfc; }; + + rng: rng@ff0b0000 { + compatible = "rockchip,cryptov2-rng"; + reg = <0x0 0xff0b0000 0x0 0x4000>; + status = "okay"; + }; }; &cru { -- 2.25.1