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: 12700006 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 690F8C433F5 for ; Mon, 27 Dec 2021 18:36:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v/gSrP7m6s9mTQnAD3xb6A+wnPw9JT9wOcbD3thAA7M=; b=UODQDs7sci5gwa V8CQkNqMlWqPV/2NCV9ROiCYiVMkOVtnIb102J/M6rbp6duBGD9serKk4vcwnKL0oqvHP6pcnH1l+ 57yhFC3QPg5XQgrLzEZug0Y2gpbOY7FkIkKlFp/LUXmJvXoym62bmqYUf4+OoCWMwDwHwFx2mTNCi v2W+U+Puer9aDHu1QSp5/lGpzoC6OAsYB6WlnD2jLr5kH8Ee5t8G1qojKDxEoAAVMa1lsR/AAj3cR vjDUx7eLyYqPDJrAqobQLTcqKNQKhIHt8bck2mtE5fyhGeWTZAHgYICumNrrourHS7ZETtbBK1xSf nyEa70vbYGtmOTt1Kknw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uq8-00HI3A-Lq; Mon, 27 Dec 2021 18:35:21 +0000 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uo8-00HHBJ-C0 for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:18 +0000 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (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 EA92B3FFDA 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=NkhG/x29/01OwnwUW7nLUUqEe+ov12qsWpqmInTRQ8g=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=b/deRvJugD9wyr/ETrpfD4lBdV/YXDWekjq4f4p7ToZb1lP4PeJG5FThIqGF9F90o RfnS7O5EElE2WLczcv3cJh0WfjAlNQtOvmN8yrD6fGb1AlqdnT2v49CzkZ7pyArZ7K P30w9E5dkSzvOcd8z9lgHyNYoO1wkPf3L20kPijnk1eaVHAnE3EY3JARsFB80XHoyN de84dHMxCYixVakG8CfaRjPb0lPUVMG8yZ/Wa0hMXIud0YRY9q6nKBOlrfbqsITB+o D6ifuvjXdWeuUQ3O9BzHA5yFGpyA3mWpUvlMto0XvBGer/OJIEUtxjcHmzZ9fei95y tyGCSDfhz2sDA== Received: by mail-wr1-f70.google.com with SMTP id r7-20020adfbb07000000b001a254645f13so3307619wrg.7 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=NkhG/x29/01OwnwUW7nLUUqEe+ov12qsWpqmInTRQ8g=; b=dTctnBj86b8lWKkIvk/mobjIh3Y9tdbm3zaerMyiPj4g+Z4c3LFaGal4EgJvIz5Mk9 L3NWZQzy8ceTbzsy/wbyUEqbpz52x9xPtFGNbqj/IwPA+GFvP2gTROsw86KMbIeXjy2Y GBgqmDu6rkpA6lFJubqf9Vm0w/rC/DYqzfLRMKJ1uUwAeLYoGHEJoTL+ANCRFtoTY8Jk NTf0KFOybROXmQ/zSH2B81ek5VfXKS8BuJGLOfNwhdS/QD+wR2K04eZ65gd71ndlWYYP qn/6MUxidWeb1RJmPHxdPRZr+jbOTfwwaGq62iz0xP10YZC0jBo5r/c8/9vYQZyun0Sm 3U3w== X-Gm-Message-State: AOAM530KXNc//B+LchmkSjFU1I50lrWsfzAqVALKt6x/E8okz2E8cm1c XW/P+cQ1Get18448Vad6q4arT1gHiq+QLgsTFjp/XniDZ6QYXLS3GaGwoPkWJo2+I0a2ziwTtC0 9y/J2vYf8tmwZa1NSAOASAc7YL880gFhtxqfXM3hNUAFZONXCY+z+ X-Received: by 2002:a05:651c:1788:: with SMTP id bn8mr15237854ljb.521.1640629983713; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211227_103316_592449_38C1DF73 X-CRM114-Status: GOOD ( 18.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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"; + };