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: 12700001 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 DE771C433F5 for ; Mon, 27 Dec 2021 18:34:56 +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=haom938vTGQKxMEmcEIFIYGAp4oRPh+nrWIjM0rTOz4=; b=3CNne1ITxA4T0K /mhm29BRhAg6fXlWQvN5EC1kO7LW5EzpgfZF8JG+I4dvyIiIc/ButYZ4p/G+ZzEUN9PQ628TwsFgu oIWeONNcpQVc2EdpHMm5DkzqmlbSZqd1Fx3Q/6/yuPvZBO92iFeN1Q3UhEuSsV62lfQ+h7Xfyy7g1 rMYC4J1jrdIsfodpVtAJi2MfD/8uvTG33stvM1jwtnK7uK0rK+bujCqL79lUwqJ37E4YR2Ao/E/nW D3jLb1lA6ZJYdNyGWsTU1bKfjXrDuV+RehTUC6YJeO1pHem6EL4bcpBBRjH/vSROsdZo1Uq9k9Wyl Hn1nuiatuJLqOEM0XyCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1uoQ-00HHJS-MB; Mon, 27 Dec 2021 18:33:35 +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 1n1unx-00HH5A-FQ for linux-arm-kernel@lists.infradead.org; Mon, 27 Dec 2021 18:33:08 +0000 Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (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 8FE52402E5 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-f197.google.com with SMTP id y4-20020a2e95c4000000b0022dbab5f69eso2510604ljh.14 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=CaOp2ly1O20daoYnMqVGZN9hUpiZRcDmhrV2I7RR74Z48J+Q5/W8Urm9e25XeTPWgB 8tmdavAyhk3mc06k823WZ7VfChPCgh8zpMNsvkJ7AuT+xE0erfILMbnCOOCyye+3Gfcz Ts7kVE/5aW+/AWh2CJa+x1ti/2asUJN2SfZqi9cQARWDPvL1C6Kz9g2LZPtF4ZQ7056f 8KMUfO9qXM3ZBpAmF3aO6jeqQA/iFnPKwSi+LrsZxkL8YyQLePtHT9QIGX0GqKOj6Hxk rS7xYCzh49dmgmi0Jmf5f4SRONEYpC518cXd/+8smNjx4BX8eOi+QMDS1Pmq8uWgNmj3 SfOw== X-Gm-Message-State: AOAM532xZ/EKkjmFJlvtj9PXhcHPcPMEKP1H3XjRa4thA8li6NKHX+Tw 8cIKA3KkE0NR5RtjYD3kIHa7Wqh4+axxn7sAnc2T/jIuNI8fUg4ikSD4I9HLWNzyRVl7Mg9Xl/2 oaY7mfjLjZvKYuzn/KCCfahRObvLewDUU69IuS2mm5gd412OyhNga X-Received: by 2002:a2e:141c:: with SMTP id u28mr15227838ljd.338.1640629982304; 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211227_103305_694132_3805AEE2 X-CRM114-Status: GOOD ( 17.66 ) 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 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>; + };