From patchwork Mon Dec 27 18:32:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 529395 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A64FFC433FE for ; Mon, 27 Dec 2021 18:33:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231728AbhL0SdE (ORCPT ); Mon, 27 Dec 2021 13:33:04 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:59436 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231717AbhL0SdD (ORCPT ); Mon, 27 Dec 2021 13:33:03 -0500 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 350EA402E4 for ; Mon, 27 Dec 2021 18:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629977; bh=i54sREsIiziNBvMfagruvxn2qixoZveyXs+MJUzMCDQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=gBAGx34FitmlyBt0oy/fmNfty199IsOby3v1G5vKTKlBiWN+6aIKS7Da1jvhZHXXx hnLJYs3O0lravlinA53/YZ6yWdL44og2+4AuSGnRMj69ic6FvyWHfCiRUrX/d7vZcQ ldwkzivnzVE0GimvWJ2dsDihLv1RquCIBegxr0x0oBJhPtajFNsOnulvP5nDrd9w1N A+ZaXq+dTbApTFTF7sWxWQMglKCWYM75L35J8lEaxI7ofOPMtjqS8p6dPtj04fQM67 6W35JplYS+JnZ45XCrG6MAcVS+42EM1Mzd44D5w6lRMUU94y4UbiTPeqas4bKMXyST Ev38VMn8xudmg== Received: by mail-lj1-f198.google.com with SMTP id k11-20020a05651c0a0b00b0022dc4d55f14so2296578ljq.22 for ; Mon, 27 Dec 2021 10:32:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=i54sREsIiziNBvMfagruvxn2qixoZveyXs+MJUzMCDQ=; b=k2Gp0YSKNqgPDrdB3JwcgKxDiY4hGrBjMLtg34863DWg6CZSKNnC8WpTuWru4CNePn ls/TdtY0ZHD2UlBP7tItnWC3ZU+HAccmR68gzrgIyJRHVDqC/buUC99mrH6eQ2YtrH5W F5qYKcMWBN6cvFw0m+jgNR5unhaaW4QYoQaLc1/ZuNiuw6WGdf5Sb4+jvFPefqgZKKN0 N4/Fzn0YcEGLXas5sTNNdGJzkGXIUagHedV2Rbr+GYY+DwbGjuHSIETp7r1ypJvnS471 xTKnWCRzdW0y6s0lvYYzBMJoMJ/G0+MZIMMMR7mkKb2i5+LzH6+bylA+6XUgb+6QsmcI AWtg== X-Gm-Message-State: AOAM533TLa/vDc+3TSzlObMi2fyrzkMXbLp1uQ1rFou/B8OSkVE+qavx tPatVdru/SPUJw3hlquK/eaLmmb74ORufqo2GzKWhIzm6YN4gnVjoGUMZTnnEl7sLCxGcQG1TGf 4ut5yD0R0HIdnBa2nK98GnhbXkJqdjSfnAih4S/k= X-Received: by 2002:a05:6512:139e:: with SMTP id p30mr16310386lfa.492.1640629976372; Mon, 27 Dec 2021 10:32:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAZ3WEqusbAy4q7yWvfndZFSCKKy0G3HTKCX5F7Y7Ex31eIeYUwjTgsdfidX3vvAEfthquPg== X-Received: by 2002:a05:6512:139e:: with SMTP id p30mr16310362lfa.492.1640629976089; Mon, 27 Dec 2021 10:32:56 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:32:55 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 1/8] dt-bindings: rng: apm,x-gene-rng: convert APM RNG to dtschema Date: Mon, 27 Dec 2021 19:32:44 +0100 Message-Id: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the APM X-Gene RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/rng/apm,rng.txt | 17 ------- .../bindings/rng/apm,x-gene-rng.yaml | 47 +++++++++++++++++++ 2 files changed, 47 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/apm,rng.txt create mode 100644 Documentation/devicetree/bindings/rng/apm,x-gene-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/apm,rng.txt b/Documentation/devicetree/bindings/rng/apm,rng.txt deleted file mode 100644 index 4dde4b06cdd9..000000000000 --- a/Documentation/devicetree/bindings/rng/apm,rng.txt +++ /dev/null @@ -1,17 +0,0 @@ -APM X-Gene SoC random number generator. - -Required properties: - -- compatible : should be "apm,xgene-rng" -- reg : specifies base physical address and size of the registers map -- clocks : phandle to clock-controller plus clock-specifier pair -- interrupts : specify the fault interrupt for the RNG device - -Example: - - rng: rng@10520000 { - compatible = "apm,xgene-rng"; - reg = <0x0 0x10520000 0x0 0x100>; - interrupts = <0x0 0x41 0x4>; - clocks = <&rngpkaclk 0>; - }; diff --git a/Documentation/devicetree/bindings/rng/apm,x-gene-rng.yaml b/Documentation/devicetree/bindings/rng/apm,x-gene-rng.yaml new file mode 100644 index 000000000000..02be143cc829 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/apm,x-gene-rng.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/apm,x-gene-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: APM X-Gene SoC Random Number Generator + +maintainers: + - Khuong Dinh + +properties: + compatible: + const: apm,xgene-rng + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - interrupts + - reg + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + rng@10520000 { + compatible = "apm,xgene-rng"; + reg = <0x0 0x10520000 0x0 0x100>; + interrupts = ; + clocks = <&rngpkaclk 0>; + }; + }; From patchwork Mon Dec 27 18:32:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 528326 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5AF96C433EF for ; Mon, 27 Dec 2021 18:33:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231722AbhL0SdD (ORCPT ); Mon, 27 Dec 2021 13:33:03 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:59438 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbhL0SdD (ORCPT ); Mon, 27 Dec 2021 13:33:03 -0500 Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 7708A402EC for ; Mon, 27 Dec 2021 18:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629979; bh=Ha91ZDV5aCOHeV4K+0XvZy0cP8PcDx+1Y/WeQ3R169I=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=l6IMq0gOBTk9fMF99J1d6pFB7e70Vl3xXwJgCUMq5CObjL0uWCWSNxbgmf3TyyYNw WRVMZpX+AVemL7qNnolzjzk7TrCEtBP/IL7uXWvCMPQedtsxvnpgERnU3KkX0/DvbL mZUEOsTPOZ2YR5gQNFLh6ODJe+B4nK8WKfGJQHNSemDD99i3TkQbg/1zn1M40zLK78 vePYJHYCJfADoUj9HAJFkE4YCL2kgOQtQTU2By+k3k7frIW8D115hjJhJU8+ADAuYk IRGeCvQNF0lcEBCz8lrAyeqgYa4T2UeQ/ADUkDq0NQCFu8iCHvxRiJsTO9w7eEi7Uh AyXS70/2XUvZw== Received: by mail-lj1-f200.google.com with SMTP id k20-20020a2e9214000000b0022d6b13bc8aso5258676ljg.13 for ; Mon, 27 Dec 2021 10:32:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ha91ZDV5aCOHeV4K+0XvZy0cP8PcDx+1Y/WeQ3R169I=; b=gpwaNlOMM9b0/GDDZOodFREZVUz7GNLY0uAKXYM7zYL8ZvoEeVP4Bd7j4NfOztEpt7 fHoicreLkL4DMB1EsQNGugcmTyITbb66gYBI6oygYwxz3f5DdsjSv8d/zQfHlEG7gy7m GUWPM8KUkCGcy0LC1OG13Wm5b8pJGZ/HSoEJ8GGh9A7O+F8tEkbbceBC0eg1VqQERajh faMC0DNpyVkK/8OkkN3BjaSo9Xidti58lwqgILvR0m4LImWYGASOXn3E4kRLWksPfN4D 2z1LGR10VSuHE/vW7Gh3nhKUZELQSbPC+Ebh5NvFLUYR5dFubo+6hRBcR2Eof3uTHv8E EUqw== X-Gm-Message-State: AOAM530BImy6at3qsXwW44XQPxEn63j0Q7OfTU0eBCCUaXc0Gzybgvpm si48c+opILpftvB4Su0DkzHHVl4xOd6BI+MeVrSrxh8mI/EqIdhrjc9SRiBIn2TWSaPWlzrfY0b KY3AotOlW0K4m4DPDOWxSWerVmIpMIQwVsYNInMA= X-Received: by 2002:ac2:4d34:: with SMTP id h20mr16342045lfk.617.1640629977856; Mon, 27 Dec 2021 10:32:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxw2ascN7H6LYQsbejqKJs7k+yaXgGe30MRDmj5xMYPmLPKoxgkmpwR4T2jbxwJKJSp1I0tQg== X-Received: by 2002:ac2:4d34:: with SMTP id h20mr16342015lfk.617.1640629977677; Mon, 27 Dec 2021 10:32:57 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.32.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:32:57 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 2/8] dt-bindings: rng: atmel, at91-trng: convert Atmel TRNG to dtschema Date: Mon, 27 Dec 2021 19:32:45 +0100 Message-Id: <20211227183251.132525-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> References: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the Atmel TRNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/rng/atmel,at91-trng.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/rng/atmel-trng.txt | 16 ------- 2 files changed, 46 insertions(+), 16 deletions(-) create mode 100644 Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml delete mode 100644 Documentation/devicetree/bindings/rng/atmel-trng.txt diff --git a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml new file mode 100644 index 000000000000..0324e863dab8 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/atmel,at91-trng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel AT91 True Random Number Generator + +maintainers: + - Nicolas Ferre + - Alexandre Belloni + - Ludovic Desroches + +properties: + compatible: + enum: + - atmel,at91sam9g45-trng + - microchip,sam9x60-trng + + clocks: + maxItems: 1 + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - interrupts + - reg + +additionalProperties: false + +examples: + - | + #include + + rng@fffcc000 { + compatible = "atmel,at91sam9g45-trng"; + reg = <0xfffcc000 0x4000>; + interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&trng_clk>; + }; diff --git a/Documentation/devicetree/bindings/rng/atmel-trng.txt b/Documentation/devicetree/bindings/rng/atmel-trng.txt deleted file mode 100644 index 3900ee4f3532..000000000000 --- a/Documentation/devicetree/bindings/rng/atmel-trng.txt +++ /dev/null @@ -1,16 +0,0 @@ -Atmel TRNG (True Random Number Generator) block - -Required properties: -- compatible : Should be "atmel,at91sam9g45-trng" or "microchip,sam9x60-trng" -- reg : Offset and length of the register set of this block -- interrupts : the interrupt number for the TRNG block -- clocks: should contain the TRNG clk source - -Example: - -trng@fffcc000 { - compatible = "atmel,at91sam9g45-trng"; - reg = <0xfffcc000 0x4000>; - interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>; - clocks = <&trng_clk>; -}; From patchwork Mon Dec 27 18:32:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 529394 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C3D7C433EF for ; Mon, 27 Dec 2021 18:33:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231857AbhL0SdO (ORCPT ); Mon, 27 Dec 2021 13:33:14 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:59672 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231735AbhL0SdM (ORCPT ); Mon, 27 Dec 2021 13:33:12 -0500 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 4550F3FFDA for ; Mon, 27 Dec 2021 18:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629991; bh=RFPGHmjdhJ/hloNRhgmml05wd4YHMhrSG+GgHjMTnJk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hixi4IavblSGyZzxYlP5sTUvXuGTGRK1nt/7tpRTpSkS5MTqnyllsio1X4udX9mJg HR1OFkShGmtzYODE46Y6u8PxFO/zdeTfI5J+TAYSJ2jC+gl5l6jGqyAf0wFYMWbndl hG+Ysdq4AWRJHJ+WjP9FD+OduDlo4vWuPjp38E9sCHfFm+IIsvK0cmaF7GdxXwGaLP 01cUn5gzchk4ghdbchtbz5gmnZdSnidjLaRSMIibhzgkVVUSm0yIdegCKRv7xCllTF nyOf2kEHpVrxifqR2nf/KZLM98SNnj2OOQrlUt9NgftIqKarxZ4U8etdIihfOIu6W5 1bIxUNIFB9ANg== Received: by mail-ed1-f72.google.com with SMTP id z3-20020a05640240c300b003f9154816ffso2440643edb.9 for ; Mon, 27 Dec 2021 10:33:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RFPGHmjdhJ/hloNRhgmml05wd4YHMhrSG+GgHjMTnJk=; b=lDVEuIqWFthOzI2t1DiRu2Blm52ugUiN7XnScF5Ai4DH4tLirPJ2I+M6HBZgju/suQ 5LrlVBD9Sw3PEvxgOa707+KDMDvUU0ulu9v2lq5DqCvcE3KItUmE6QOsI3+DLGtAper0 u/YsjkmyYV3V7ohnGlQieVyfHs+i3yxQH6hC71HWmVGV0Z158eeSnqt+eeWDlygzPNh9 0cqIB+MKX+flV+xbG28R/StlnRKxWoAKBk7wonVJ2tsmQK0dguvdcrs6C18RJoRJFhn+ MADiEcSK0zV+7A2xN6/AhO4ehR7ObyFjYzTOjLXWvinGe8x3fr3h+56QU98UWAPARi2W 5o8w== X-Gm-Message-State: AOAM530lvwbzUYqU3nFWdD8H/vhT4dzH5eMpFb7WEVOBbOjvnrAK/8yV W304cyKSwZxwn3blTvV/uFa6F8YBzKzFYVvs1LkEis/CgHvrpd/KqGiKUuZ/1ceX0tnvCmyWYiA OszDUsU134SSEH/JsTbBmg+gZmkegr7PR/gWSI4Y= X-Received: by 2002:a05:6512:168b:: with SMTP id bu11mr15627649lfb.401.1640629979254; Mon, 27 Dec 2021 10:32:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/Gt49kywYk1krG8CoXR3xfc8T8Tm6VqX8pnxg2OeXzFbjocvCOPPW2+Ds+ALgMTQuQ1xw9g== X-Received: by 2002:a05:6512:168b:: with SMTP id bu11mr15627620lfb.401.1640629978994; Mon, 27 Dec 2021 10:32:58 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:32:58 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 3/8] dt-bindings: rng: atmel,at91-trng: document sama7g5 TRNG Date: Mon, 27 Dec 2021 19:32:46 +0100 Message-Id: <20211227183251.132525-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> References: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add compatbile for Microchip sama7g5 TRNG. Signed-off-by: Krzysztof Kozlowski Acked-by: Nicolas Ferre --- .../devicetree/bindings/rng/atmel,at91-trng.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml index 0324e863dab8..c1527637eb74 100644 --- a/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml +++ b/Documentation/devicetree/bindings/rng/atmel,at91-trng.yaml @@ -13,9 +13,14 @@ maintainers: properties: compatible: - enum: - - atmel,at91sam9g45-trng - - microchip,sam9x60-trng + oneOf: + - enum: + - atmel,at91sam9g45-trng + - microchip,sam9x60-trng + - items: + - enum: + - microchip,sama7g5-trng + - const: atmel,at91sam9g45-trng clocks: maxItems: 1 From patchwork Mon Dec 27 18:32:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 528323 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5EC2C433F5 for ; Mon, 27 Dec 2021 18:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231941AbhL0SdS (ORCPT ); Mon, 27 Dec 2021 13:33:18 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:59688 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231848AbhL0SdO (ORCPT ); Mon, 27 Dec 2021 13:33:14 -0500 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id BAB9B402E0 for ; Mon, 27 Dec 2021 18:33:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629991; bh=YNz7bZBCirgiUqMV90mDMcfWLPuTB2AJTgAPIRcxfBU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=btzvXmGPQPdonqNGtkLAHm0bTibuGRJ5R4zvR2fIolKjYRCzQ5LJa4X7M1/ouPKqm 2NPuQPWfdj3c/0OWTeyWqZL/L6bQTpo3rdmO3agrx73g8lN+Jf6WqdsKNT3zkvuuPt FDFndyTxizOSHNyf4o+SgC9Y0lADQRWOYBgFaihCHMR9VApy48AsIBW6GjkfBsXelX tMMYjfJezJ+af6Wjd91iY59FimvIO897hfaweW0YIoDA2t1YvywU9T9qhSt7lOeeUD 8EKO3xWGSX+sUuKDirXZlmHFQNOq+opyqh6XFpS9WEZQCs4pwEZiC6kERpco/MBXwH ufBt+Uink7kvA== Received: by mail-wm1-f69.google.com with SMTP id 144-20020a1c0496000000b003305ac0e03aso10195418wme.8 for ; Mon, 27 Dec 2021 10:33:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YNz7bZBCirgiUqMV90mDMcfWLPuTB2AJTgAPIRcxfBU=; b=mXMkk7dWB89JigpuxDZeq2ilJYrR7rU7m2WpxvCDoYh7hkrQI7yzmRFEwjYDt/+PPZ yNSiRr4Z+J7mqp9cu1t5qpTNhrsw8fXwbw6/Ml3/pWwXs8XufR7C9OBuy0nuTTABEa/b JkldmVCxb8kHJp6EqPEE7/i61tx21vOb1U9vsHF3oLHYspR1tmlUnmdVVijSyvRM4cZH GREsz8ZWhyj8F1MKFihMGWRtYVpU8j/LOQ+j8eD2ZhIF5MHIAqM14iVpAbWMzJP9SbYj DrUaVL+C58HBo247UKLJGQHmbGnYnkcqwlrocEXlRcQWEpsl446DHh7lACP9jJlwhgmB PEYQ== X-Gm-Message-State: AOAM532b0QIlIP+659DieGOi72vVLq+kcZRPXl0fRaUGVJA7xsH+ZoR8 XsJN8SwxhRWWVhqNzLOf1ri/mHiXIa2iYvdekG4tzphTZYXVyzE+LzJFZfoPYcyS1WioMhLBKzV vgF9agweajBRnutCmoj2BBeFDLQBLyfGClAviv5Q= X-Received: by 2002:a05:6512:228d:: with SMTP id f13mr10245769lfu.6.1640629980937; Mon, 27 Dec 2021 10:33:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2MVFgtxVXl9dkYylvm3W8Z0PJf+NtYNzVtH9LFtR6/thbbsYTREB34HF4sYqA19ZCqZuMBw== X-Received: by 2002:a05:6512:228d:: with SMTP id f13mr10245747lfu.6.1640629980747; Mon, 27 Dec 2021 10:33:00 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:00 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 4/8] dt-bindings: rng: ti,keystone-rng: convert TI Keystone RNG to dtschema Date: Mon, 27 Dec 2021 19:32:47 +0100 Message-Id: <20211227183251.132525-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> References: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the TI Keystone RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/rng/ks-sa-rng.txt | 21 -------- .../bindings/rng/ti,keystone-rng.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/ks-sa-rng.txt create mode 100644 Documentation/devicetree/bindings/rng/ti,keystone-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/ks-sa-rng.txt b/Documentation/devicetree/bindings/rng/ks-sa-rng.txt deleted file mode 100644 index b7a65b487901..000000000000 --- a/Documentation/devicetree/bindings/rng/ks-sa-rng.txt +++ /dev/null @@ -1,21 +0,0 @@ -Keystone SoC Hardware Random Number Generator(HWRNG) Module - -On Keystone SoCs HWRNG module is a submodule of the Security Accelerator. - -- compatible: should be "ti,keystone-rng" -- ti,syscon-sa-cfg: phandle to syscon node of the SA configuration registers. - This registers are shared between hwrng and crypto drivers. -- clocks: phandle to the reference clocks for the subsystem -- clock-names: functional clock name. Should be set to "fck" -- reg: HWRNG module register space - -Example: -/* K2HK */ - -rng@24000 { - compatible = "ti,keystone-rng"; - ti,syscon-sa-cfg = <&sa_config>; - clocks = <&clksa>; - clock-names = "fck"; - reg = <0x24000 0x1000>; -}; diff --git a/Documentation/devicetree/bindings/rng/ti,keystone-rng.yaml b/Documentation/devicetree/bindings/rng/ti,keystone-rng.yaml new file mode 100644 index 000000000000..e749818fc193 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/ti,keystone-rng.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/ti,keystone-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Keystone SoC Hardware Random Number Generator + +maintainers: + - Nishanth Menon + - Santosh Shilimkar + +properties: + compatible: + const: ti,keystone-rng + + clocks: + maxItems: 1 + + clock-names: + items: + - const: fck + + reg: + maxItems: 1 + + ti,syscon-sa-cfg: + $ref: "/schemas/types.yaml#/definitions/phandle" + description: | + Phandle to syscon node of the SA configuration registers. These + registers are shared between HWRNG and crypto drivers. + +required: + - compatible + - clocks + - clock-names + - reg + - ti,syscon-sa-cfg + +additionalProperties: false + +examples: + - | + rng@24000 { + compatible = "ti,keystone-rng"; + ti,syscon-sa-cfg = <&sa_config>; + clocks = <&clksa>; + clock-names = "fck"; + reg = <0x24000 0x1000>; + }; From patchwork Mon Dec 27 18:32:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 528325 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41177C433EF for ; Mon, 27 Dec 2021 18:33:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231751AbhL0SdG (ORCPT ); Mon, 27 Dec 2021 13:33:06 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45366 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231730AbhL0SdF (ORCPT ); Mon, 27 Dec 2021 13:33:05 -0500 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id C25723F32E for ; Mon, 27 Dec 2021 18:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629983; bh=3Q76L02spV6rbbuHR2sV57AudkwFdOfi5uJcF47/ZVw=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FDQNMg1UR5tuBhmC05kar3Pdl8TtNpCecm2xOO7nOeFIpxcwVq3B7tT3yi48dVF/x u+o8cGwsxAHIfQRMO64lLmuIeJxuTHjRZvIbx0IEVPUfPsPdxfqMqHu2yLR2FtwRDb H2w5LH/+ZdcNm6KsotJQI4qCVV/i8sszdIJx+p4A7lv1sYspFe9KQsAYy/itHXdS3Z 9Z88lIb0RljwmdXv0OCvomeNxTuSG7OutFbN+2lTnoU6BX5n6rNKHonG6y5OcVr3iD iryfUfb9L9yKq084BVa2xkaxYpBByuwhk05hWzF5WiDyKMAuseECqT+UNXhJ8/WNdf MRNinV8vPM4lA== Received: by mail-lj1-f198.google.com with SMTP id v19-20020a2e87d3000000b0022dbe4687f1so2506167ljj.7 for ; Mon, 27 Dec 2021 10:33:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3Q76L02spV6rbbuHR2sV57AudkwFdOfi5uJcF47/ZVw=; b=jOmfCmgbOiV1W1K8YLtBbepI5WD10d43JhVmKp+zTVLFW7hYLPQmAOOotdiTyl+mAB X90xts4JBmlRlJLl46QNTjVb22O1CPnwMEYOA0VPMKlmSZGYagNLayFfXGGw7asdHK2T MNCxm9vx+zXecW2gRGBUbhYTuEtSJy4eXb52qjQI7vOEjGYLsMbEU4n76Yak3LDpW7Dv pYThTTa/Sz0w0HpbLc650yq1NA0RJcmvjCbylH/5H8dAAeAbbpVQsHDaeYNtBVkndwCA Ge8FaKuIjH39pXjjkyoGUPCRuP514wUKplvhNWDBAE3TYKEyTMv33lweErzgxiU9VmFR O0cw== X-Gm-Message-State: AOAM531pWbnjoM2zhn9tx3fk1JQUWrqkIQS9Pc8aXd0NOZmov2UrHlbr 0EFfIHVwqIDhfMdVcew64HMZtwL72kaF61TmUo1ob229gXbdcbdiUorscQDjEgr5rLe2ff4sEg/ ygZyQaltB1TL6gtzxjTf36SA5RAgegPjKuA3mFXk= X-Received: by 2002:a2e:141c:: with SMTP id u28mr15227842ljd.338.1640629982305; Mon, 27 Dec 2021 10:33:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3O/GRYpaNdG1mlwpRYPezP3gDyMQfsP+6AvdRKYOdbC4zcWygSTmf7lt1HtEIyYzxmmRdEw== X-Received: by 2002:a2e:141c:: with SMTP id u28mr15227822ljd.338.1640629982100; Mon, 27 Dec 2021 10:33:02 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:01 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 5/8] dt-bindings: rng: nuvoton, npcm-rng: convert Nuvoton NPCM RNG to dtschema Date: Mon, 27 Dec 2021 19:32:48 +0100 Message-Id: <20211227183251.132525-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> References: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the Nuvoton NPCM RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/rng/nuvoton,npcm-rng.txt | 12 ------- .../bindings/rng/nuvoton,npcm-rng.yaml | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 12 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt create mode 100644 Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt b/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt deleted file mode 100644 index 65c04172fc8c..000000000000 --- a/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.txt +++ /dev/null @@ -1,12 +0,0 @@ -NPCM SoC Random Number Generator - -Required properties: -- compatible : "nuvoton,npcm750-rng" for the NPCM7XX BMC. -- reg : Specifies physical base address and size of the registers. - -Example: - -rng: rng@f000b000 { - compatible = "nuvoton,npcm750-rng"; - reg = <0xf000b000 0x8>; -}; diff --git a/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.yaml b/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.yaml new file mode 100644 index 000000000000..abd134c9d400 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/nuvoton,npcm-rng.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/nuvoton,npcm-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nuvoton NPCM SoC Random Number Generator + +maintainers: + - Avi Fishman + - Tomer Maimon + - Tali Perry + - Patrick Venture + - Nancy Yuen + - Benjamin Fair + +properties: + compatible: + const: nuvoton,npcm750-rng + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + rng@f000b000 { + compatible = "nuvoton,npcm750-rng"; + reg = <0xf000b000 0x8>; + }; From patchwork Mon Dec 27 18:32:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 528324 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 470D9C433EF for ; Mon, 27 Dec 2021 18:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231925AbhL0SdS (ORCPT ); Mon, 27 Dec 2021 13:33:18 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45456 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231789AbhL0SdK (ORCPT ); Mon, 27 Dec 2021 13:33:10 -0500 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 29F5F3F206 for ; Mon, 27 Dec 2021 18:33:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629989; bh=NkhG/x29/01OwnwUW7nLUUqEe+ov12qsWpqmInTRQ8g=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=UJHTEBoCWoug0ENAmvc179K2pVK2Hh8IXybBLymFmrzFCweTnM0cQOKZmp5eF4zYk 5shilPOE33s1D6h/qpFPfZIfQowLekNmPQJ2frZ1B10enlu4IVEDjHKO6OJuUgVMmz t8erSaQcC6Fh6ZpGzrMXNB9ib84hRvgFHdSAvOIgc7nI9oARa9lVW+n5lkA0YuxYqB fm6q6006An4ws9nutRlxLWi6Ti8q5htXrJpFJzkhI4Bh8wxh481+koscQWqSMeiQhp x5xnNkoHZKVIadKwU70AaGHr5BxR2QcPvWpwpq6/dQoFX6bF1OIm9TMYshzjL4PiVB JFM11X5jdHbcw== Received: by mail-lj1-f198.google.com with SMTP id k20-20020a2e9214000000b0022d6b13bc8aso5258781ljg.13 for ; Mon, 27 Dec 2021 10:33:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NkhG/x29/01OwnwUW7nLUUqEe+ov12qsWpqmInTRQ8g=; b=fcdkbmzuv1RKdCHttMouHT6hCg0rJN1z2LvAD6kbEbc7lsL/IGXGYBpuGpsvcTzSmC 88na3KmOYVzjno3jnKKx9Chf3Qwhaqfjad0zrF3oapkRPebFruwlyC2TycooMlN8n15s lvMyvlrha2ZLOBc0quVh+Mam2zV/QguyrT8jVXjxeiN/oe6YHW+S5ZjA5FXEzSNH2u2l oEvAZP8L4TPZORfQZ4hvDpQf/Ii+GttFDP4q+C1g0Ye+IWye1DWctVIApijgUznQf1q9 DpitNmWdh2WcWtWt+WUqQKGqq8jrAzfQCbXIh3kyy9etgYVd9pWshX+o2drWOt2HUs9e YDPw== X-Gm-Message-State: AOAM5335dWKvR6z/4uumETN8mXibrY2HyDb6ELV4Y9AVTcuQAqnmYCyQ ITNFNYeXkG4oZ5QZDkjP3N5MXvi0x3dXZeEP54MSxdqq1/wjgQCKPdmjE5V+Gx1JehJP7ZAgWTq F2tfS3h/UsHapmpJpZzWgNmVRmYJIYZlk9eTeOzM= X-Received: by 2002:a05:651c:1788:: with SMTP id bn8mr15237848ljb.521.1640629983701; Mon, 27 Dec 2021 10:33:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPduPoQbsa0sy+uH2eNHIhEtE/sohO5iVYWenQxdkMncrOkJ+IgNQ7Hd0WQR7JT8kWLRV0CA== X-Received: by 2002:a05:651c:1788:: with SMTP id bn8mr15237828ljb.521.1640629983480; Mon, 27 Dec 2021 10:33:03 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.33.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:03 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 6/8] dt-bindings: rng: ti,omap-rom-rng: convert OMAP ROM RNG to dtschema Date: Mon, 27 Dec 2021 19:32:49 +0100 Message-Id: <20211227183251.132525-6-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> References: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the OMAP ROM RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/rng/omap3_rom_rng.txt | 27 ------------ .../bindings/rng/ti,omap-rom-rng.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/omap3_rom_rng.txt create mode 100644 Documentation/devicetree/bindings/rng/ti,omap-rom-rng.yaml diff --git a/Documentation/devicetree/bindings/rng/omap3_rom_rng.txt b/Documentation/devicetree/bindings/rng/omap3_rom_rng.txt deleted file mode 100644 index f315c9723bd2..000000000000 --- a/Documentation/devicetree/bindings/rng/omap3_rom_rng.txt +++ /dev/null @@ -1,27 +0,0 @@ -OMAP ROM RNG driver binding - -Secure SoCs may provide RNG via secure ROM calls like Nokia N900 does. The -implementation can depend on the SoC secure ROM used. - -- compatible: - Usage: required - Value type: - Definition: must be "nokia,n900-rom-rng" - -- clocks: - Usage: required - Value type: - Definition: reference to the the RNG interface clock - -- clock-names: - Usage: required - Value type: - Definition: must be "ick" - -Example: - - rom_rng: rng { - compatible = "nokia,n900-rom-rng"; - clocks = <&rng_ick>; - clock-names = "ick"; - }; diff --git a/Documentation/devicetree/bindings/rng/ti,omap-rom-rng.yaml b/Documentation/devicetree/bindings/rng/ti,omap-rom-rng.yaml new file mode 100644 index 000000000000..9a58440b1ab1 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/ti,omap-rom-rng.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/ti,omap-rom-rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: OMAP ROM Random Number Generator + +maintainers: + - Pali Rohár + - Tony Lindgren + +description: + Secure SoCs may provide RNG via secure ROM calls like Nokia N900 does. + The implementation can depend on the SoC secure ROM used. + +properties: + compatible: + const: nokia,n900-rom-rng + + clocks: + maxItems: 1 + + clock-names: + items: + - const: ick + +required: + - compatible + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + rng { + compatible = "nokia,n900-rom-rng"; + clocks = <&rng_ick>; + clock-names = "ick"; + }; From patchwork Mon Dec 27 18:32:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 529393 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D228BC4332F for ; Mon, 27 Dec 2021 18:33:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229834AbhL0SdT (ORCPT ); Mon, 27 Dec 2021 13:33:19 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45512 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231735AbhL0SdP (ORCPT ); Mon, 27 Dec 2021 13:33:15 -0500 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 8A01F407AD for ; Mon, 27 Dec 2021 18:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629994; bh=cDCEy25L+nu0jfudc7PZIQa9FUmo6Gd8digQKlJvlAs=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FiuNEQPNdPCk+N6gVtxxvbHV+mv9caEMaoWwiuDDe6RHHR6fbm2HFJCev24h4ZGXM hZM0akxVJcAsYc5evOAIr9K0wLDyXxrePwtVFYCvok4IrW2DvoFPXOOylg5hcsoX5z r2ZzorDl7BOLG0ORp/+yFydia90CjsCwd6zkMLf5li9K39THyskjmFA3q/0ffVbH2d uGUfavANrqBXTwlmYfGfxLe1faYie8txTICkauJk8AtuU3YoBsaj6zAAN0KWzIqLg7 KP9fu8fdpYL8hPtEb5y650X/2rg41ykPT3QiY9LvRyF/fqxfhVSu/zUvZdS3WlwQf6 X6z/RcwBxPWZA== Received: by mail-lj1-f198.google.com with SMTP id c31-20020a2ebf1f000000b0022d87a28911so5145495ljr.1 for ; Mon, 27 Dec 2021 10:33:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cDCEy25L+nu0jfudc7PZIQa9FUmo6Gd8digQKlJvlAs=; b=Gs5gTC6toaAi6ztdgtHaMe2srA/CnIzAZyq2SkYcUcW34MkQas0SnbRqH+NVTv0O8x 68iTQccMsBRFrZV5EEg0Ol9jrtwesUxuiJjMhmdxkaNt5GRzSRBG7EKhGe5H2Efj0FEW 7J8cbINjV9GjwmbDs20zbmYetSmab5gGg7KZwz6zI74JJd7fPDOcrhCrwIpWdnlUhnjF 4Y6ygu94mKn5ARWKc95jMGhyDT7uNHAODH4LfoCDthI0oXp1KxLZklEZ96IwcsNAafyv pc2fCJeybXJcw3q+MGtEiDV2iegHuAKDtiTYq/ata+woOQD5OK6hlVE/n/kALuPfro69 1fgQ== X-Gm-Message-State: AOAM530QB8Ak2hBcefX9esFrwNxnPq/2nQ5id1r4Kw36wgsVkmsvMlY+ GwXN3ycC0Iw1a3+mHQAT9yBxJYG7dYiNPe3IabcUqrwX31Yd8wwVsS194Ys1ij2FLiFTCqS2HZo 4nOWoX436tAVFuONAUr6fKvKMc7A969yFAfZB7DQ= X-Received: by 2002:a05:6512:1598:: with SMTP id bp24mr16353991lfb.65.1640629985102; Mon, 27 Dec 2021 10:33:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3kFMlMAdQXCxbskTEMB+R+oa2Xt/GVAXanOCHL6Mls3XVIJnedTi419+2LDz4zUcQPZRm8Q== X-Received: by 2002:a05:6512:1598:: with SMTP id bp24mr16353985lfb.65.1640629984924; Mon, 27 Dec 2021 10:33:04 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:04 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 7/8] dt-bindings: rng: st,rng: convert ST RNG to dtschema Date: Mon, 27 Dec 2021 19:32:50 +0100 Message-Id: <20211227183251.132525-7-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> References: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the ST RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/rng/st,rng.txt | 15 -------- .../devicetree/bindings/rng/st,rng.yaml | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 15 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/st,rng.txt create mode 100644 Documentation/devicetree/bindings/rng/st,rng.yaml diff --git a/Documentation/devicetree/bindings/rng/st,rng.txt b/Documentation/devicetree/bindings/rng/st,rng.txt deleted file mode 100644 index 35734bc282e9..000000000000 --- a/Documentation/devicetree/bindings/rng/st,rng.txt +++ /dev/null @@ -1,15 +0,0 @@ -STMicroelectronics HW Random Number Generator ----------------------------------------------- - -Required parameters: -compatible : Should be "st,rng" -reg : Base address and size of IP's register map. -clocks : Phandle to device's clock (See: ../clocks/clock-bindings.txt) - -Example: - -rng@fee80000 { - compatible = "st,rng"; - reg = <0xfee80000 0x1000>; - clocks = <&clk_sysin>; -} diff --git a/Documentation/devicetree/bindings/rng/st,rng.yaml b/Documentation/devicetree/bindings/rng/st,rng.yaml new file mode 100644 index 000000000000..ff1211ef9046 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/st,rng.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/st,rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STMicroelectronics Hardware Random Number Generator + +maintainers: + - Patrice Chotard + +properties: + compatible: + const: st,rng + + clocks: + maxItems: 1 + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - reg + +additionalProperties: false + +examples: + - | + rng@fee80000 { + compatible = "st,rng"; + reg = <0xfee80000 0x1000>; + clocks = <&clk_sysin>; + }; From patchwork Mon Dec 27 18:32:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 529392 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF763C433EF for ; Mon, 27 Dec 2021 18:33:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231882AbhL0Sda (ORCPT ); Mon, 27 Dec 2021 13:33:30 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45538 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231899AbhL0SdR (ORCPT ); Mon, 27 Dec 2021 13:33:17 -0500 Received: from mail-lj1-f199.google.com (mail-lj1-f199.google.com [209.85.208.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 64BE43FFD9 for ; Mon, 27 Dec 2021 18:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1640629995; bh=SIUiGPqn4sHTI4wrPpQmcuGfM1myPDztAmFG+NtIpFs=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Vb4GfHcClYcRQ7fWb1wutBad1feLV0lycHrajy2I3QNHvaEYP8FEKsB9WTsbHNT/L mrWQdV//EzVByntWMQFqECyx6t7fG+2jCvwfA8D2jF9P61TGCdrB29HzgrhZv3AY4y jhLgw85xRX8CDAnhvj55Gtv9cKBobNpyIcPzQIw8WZfGPb+UC/tznNjQ1I+3g0t3oI VvIFw5aWu9Y3cr2DhDtdKzCTY0onEqanIobEojyqowlA2QufSKnSMtkYJQpIOS71I1 mKLEtu8C5ABZAmMWXt5Xto30VT56IFCwbPe07LFtaYnybgm5nPfZxMPQh7hrl80Wwj 5KUClo8jRLDNQ== Received: by mail-lj1-f199.google.com with SMTP id n6-20020a2e82c6000000b00221698ffa68so5289604ljh.17 for ; Mon, 27 Dec 2021 10:33:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SIUiGPqn4sHTI4wrPpQmcuGfM1myPDztAmFG+NtIpFs=; b=OcL5WykfhvTzK0lRNIu6OKruTY/wHiqA6aHo/nfuDLfT2hWX17yUtLOh2NT/oocoZ4 ucqHADJAl5BBRPy/ZUlakAV2m/XXd1+Eg+y/U7aaUHQuQcD45nYeWSuzxE5vTCTHFjNE 9oaH16DXLIZbXfinR2V4UyS/1W1SEKa0w3V6HvqAl5UUXEbXvNW5C0K5y8sjVUqqZu2y sesYkBMLfifQ1IbLRxeowQWwHQ3DIgNXzq47wI1BFSIxW9k5Fylb/4Wa7BKjGPIOxuDs MQppRIvLEt+R+AYm+t2yz06JQbeZvjOBV5XyS2RSWhinpLhYf1Q4fChk6bFgymDIdIKY iJEg== X-Gm-Message-State: AOAM5331LsFsPBfZKMLw462xfPKpp2RXXnSo2ycFbsVM4cw9svtARsbF MMZ3hxej1QKwPL14jyM/vi830M9dMQA/vyWQucpOIkCdXmm/uD5JiZv1BzHMZ3pI3Yg/1mNOcUD enveKTxnmZN7sJiyNrBLCMAXabSAcvImtFBAZgPI= X-Received: by 2002:a05:651c:1686:: with SMTP id bd6mr6422200ljb.144.1640629987085; Mon, 27 Dec 2021 10:33:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyiwYxvtGi5aBexdLaJuo+p/mJzCN8N3cW4pSt0ALzD1mYO4Fc/mOyRPmGVLkcxEc1Zn1IoqQ== X-Received: by 2002:a05:651c:1686:: with SMTP id bd6mr6422189ljb.144.1640629986863; Mon, 27 Dec 2021 10:33:06 -0800 (PST) Received: from krzk-bin.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id o12sm1299622ljc.5.2021.12.27.10.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Dec 2021 10:33:06 -0800 (PST) From: Krzysztof Kozlowski To: Matt Mackall , Herbert Xu , Rob Herring , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Krzysztof Kozlowski , Khuong Dinh , Patrice Chotard , Nishanth Menon , Santosh Shilimkar , =?utf-8?q?Pali_Roh=C3=A1r?= , Tony Lindgren , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org Subject: [PATCH 8/8] dt-bindings: rng: timeriomem_rng: convert TimerIO RNG to dtschema Date: Mon, 27 Dec 2021 19:32:51 +0100 Message-Id: <20211227183251.132525-8-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> References: <20211227183251.132525-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the TimerIO RNG bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/rng/timeriomem_rng.txt | 25 ---------- .../bindings/rng/timeriomem_rng.yaml | 48 +++++++++++++++++++ 2 files changed, 48 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/timeriomem_rng.txt create mode 100644 Documentation/devicetree/bindings/rng/timeriomem_rng.yaml diff --git a/Documentation/devicetree/bindings/rng/timeriomem_rng.txt b/Documentation/devicetree/bindings/rng/timeriomem_rng.txt deleted file mode 100644 index fb4846160047..000000000000 --- a/Documentation/devicetree/bindings/rng/timeriomem_rng.txt +++ /dev/null @@ -1,25 +0,0 @@ -HWRNG support for the timeriomem_rng driver - -Required properties: -- compatible : "timeriomem_rng" -- reg : base address to sample from -- period : wait time in microseconds to use between samples - -Optional properties: -- quality : estimated number of bits of true entropy per 1024 bits read from the - rng. Defaults to zero which causes the kernel's default quality to - be used instead. Note that the default quality is usually zero - which disables using this rng to automatically fill the kernel's - entropy pool. - -N.B. currently 'reg' must be at least four bytes wide and 32-bit aligned - -Example: - -hwrng@44 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "timeriomem_rng"; - reg = <0x44 0x04>; - period = <1000000>; -}; diff --git a/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml b/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml new file mode 100644 index 000000000000..84bf518a5549 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/timeriomem_rng.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/timeriomem_rng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TimerIO Random Number Generator + +maintainers: + - Krzysztof Kozlowski + +properties: + compatible: + const: timeriomem_rng + + period: + $ref: /schemas/types.yaml#/definitions/uint32 + description: wait time in microseconds to use between samples + + quality: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + description: + Estimated number of bits of true entropy per 1024 bits read from the rng. + Defaults to zero which causes the kernel's default quality to be used + instead. Note that the default quality is usually zero which disables + using this rng to automatically fill the kernel's entropy pool. + + reg: + maxItems: 1 + description: + Base address to sample from. Currently 'reg' must be at least four bytes + wide and 32-bit aligned. + +required: + - compatible + - period + - reg + +additionalProperties: false + +examples: + - | + rng@44 { + compatible = "timeriomem_rng"; + reg = <0x44 0x04>; + period = <1000000>; + };