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 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 01120C77B77 for ; Thu, 13 Apr 2023 14:13:25 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B075B85A83; Thu, 13 Apr 2023 16:13:23 +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="e79fsmkW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 686DA85C9E; Thu, 13 Apr 2023 16:13:21 +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 6162C80A0C for ; Thu, 13 Apr 2023 16:13:18 +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 j12so10073542oij.3 for ; Thu, 13 Apr 2023 07:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681395197; x=1683987197; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lMBDrwwRl695ul4PNfxIJGcdlIW9eJYBw9/UH+n4jRM=; b=e79fsmkWYKOJRRy01mlYuhclIwW32mIBL1fpuUDnOSv90onnKcGs5p90B+Vg9ANKSw BwJXUiAegJ69j2vHtH08EZcI8kLyKzZjNdGr/BMcMUzaM7VfRsklXR/Jky5XX8UAlaoS Dl8AUrN62wbWt6UAG0SIj7e/VCZzJQtiMFQgOkwgacfC56TWMdZOYzviqJOsCjtyWYtD JgNzQ/TR+ULUMur2ypAPm02mk0t5QjKZhLyMX8qVZIl6T2BJx1VJ6bPkPUEAzlYCDHTY +HBblGauyOGdea5HJxrjd3rptl7kPte+dHNCzKERMA8umHQhd8wEqVPoXZGyKGTyjz6e j0KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681395197; x=1683987197; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lMBDrwwRl695ul4PNfxIJGcdlIW9eJYBw9/UH+n4jRM=; b=aML8j6l3jIAEfEpxHS3U6Mrh7KAz9O6nXEGqAw/g63nZuSz5Y1cpgcrMWoJuDnSbw6 Zp3GvvvJtOf1pLARYxRKICEevkwsMb0cZ2FjEng9jvoofcRYqrJA2q0XW4KRiwEvyqGr bh2rtqxjzi7pN8Z7n7LpCxwWL2a5hbiQULE7By1dJJaU2gIXJIe9Rof9oqmBd5b+AAde b8DrdotKcFhLUjxGUcEJnl5r/FhqKoaSxeewVIl3zEc+CPDxuMd76guWbmx/TTyt2l3X 8R11OkjtdV2wMn+GgcX279wGM+9yquE/hqwUaKsV9lihFY2x3Z4HiksIXqeCi3cIN0/h Ycpw== X-Gm-Message-State: AAQBX9d9W7zIC9yrj+2YogWx2HMvDH1mP5+awgY8qEIDwi2YFyyyovzi rpGExxyvRyyxPXvINJCJ/TlYFeb5EAg= X-Google-Smtp-Source: AKy350Y7dB+spQfHaQICpdOcN3SJxPiVjsmgvSDmlokSASOwupdNqQaihty0Da+nolrMQsZmzUpfLw== X-Received: by 2002:aca:f11:0:b0:386:b953:d8f8 with SMTP id 17-20020aca0f11000000b00386b953d8f8mr1104661oip.37.1681395196877; Thu, 13 Apr 2023 07:13:16 -0700 (PDT) Received: from localhost.localdomain (76-244-6-13.lightspeed.rcsntx.sbcglobal.net. [76.244.6.13]) by smtp.gmail.com with ESMTPSA id w81-20020acadf54000000b0038bc0cb5d52sm342887oig.9.2023.04.13.07.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 07:13:16 -0700 (PDT) From: Chris Morgan To: u-boot@lists.denx.de Cc: xypron.glpk@gmx.de, sughosh.ganu@linaro.org, kever.yang@rock-chips.com, philipp.tomsich@vrull.eu, sjg@chromium.org, Chris Morgan Subject: [PATCH V3 0/2] Add RK3588 TRNG Date: Thu, 13 Apr 2023 09:13:01 -0500 Message-Id: <20230413141303.108780-1-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 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 From: Chris Morgan Add support for the RK3588 TRNG. The code was taken directly from the Rockchip BSP U-Boot source. This code was taken wholesale from the Rockchip BSP U-Boot source located here: https://github.com/rockchip-linux/u-boot/commit/09f31aed858c36a8a5ee20789712e65bb4762068 Tested on an Indiedroid Nova with an RK3588s and a Radxa Rock 5B with an RK3588. Chris Morgan (2): rockchip: rng: add trngv1 for rk3588 ARM: dts: rockchip: rk3588s-u-boot: Add rng node arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ drivers/rng/Kconfig | 5 +- drivers/rng/rockchip_rng.c | 120 ++++++++++++++++++++++++++++--- 3 files changed, 120 insertions(+), 11 deletions(-) -- 2.34.1