From patchwork Wed Aug 11 08:43:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12430427 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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 D775EC4338F for ; Wed, 11 Aug 2021 08:50:03 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5FED860F55 for ; Wed, 11 Aug 2021 08:50:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5FED860F55 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=sV11uGN2390FdNkUT/GM36jyua7oRJ24jkbSSyZWUUk=; b=e18NLrA+O3f6do Z85tzBM5RYtoBzubsfy41KOwBz7xPxTKgsb4LI0DF4p+dsmYpE9taRYyXa443lkuY5Ml4zBNfQdOO +/ZfRAnvOo78Ph4VplFY9OIqQMFXXRN3Mw+63fwoz6vYIZWTJ3qno+3RaKn0AhKXiBKaJu1T7B48F nPrKkJlWKsgAjNWv+e9LCgEuaSHs6N0ZW/VKLwgbWP16+r8mj6FhUnqYGjUfW1xgUwlLfNjxk9TEA AAKZUukTFGVeVIzo6Vd7IcNTrweae9UD/TqSvBf6aL47loNKPCb0ur8TyrcqQeiYGPpHH2qUwycSX iQcVf602H5ZzzvD3Fb3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDjt2-0065ya-C4; Wed, 11 Aug 2021 08:46:57 +0000 Received: from smtp-relay-canonical-1.canonical.com ([185.125.188.121]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDjqP-00654B-6F for linux-arm-kernel@lists.infradead.org; Wed, 11 Aug 2021 08:44:17 +0000 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (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-canonical-1.canonical.com (Postfix) with ESMTPS id 1D00340651 for ; Wed, 11 Aug 2021 08:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1628671451; bh=xfBIY5y7ayvXi13bXMhUcn2KK8OyGJ2/oFr8yDw2Ddk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=uuNIIdAn6dh1T2wWXHtUeUZG3IoVILxdJbF7vaQA7dkdRfrMNXWkRZZ2/mvklU5+s wojyzPkvQI7i9MepKTGf8I5AeDI3qEFBCPoEURlJNb8OVcQJCz4Pq+4ZrTZBL00NLF oxoLcbFh59vtGvzPkneSLlO5ndnHqHsALgy+xHzKCw4/JQa5n3KqEuLhrHQXycmNPX O37AnHn5rc9/J+jp8r1W5YS2PsmZ9MO4wMES+uejA9Oh5DLLlkPNxFwV6sjpTAQc99 NJXOmCeDMq0V2lbTry030/4Wu+r7OzHXBUeQ+weK8hyhUD9xKyr7cQBCiJhFhBQ1B8 HUdeDJRS1lz3g== Received: by mail-ed1-f71.google.com with SMTP id y22-20020a0564023596b02903bd9452ad5cso850257edc.20 for ; Wed, 11 Aug 2021 01:44:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xfBIY5y7ayvXi13bXMhUcn2KK8OyGJ2/oFr8yDw2Ddk=; b=XtrEy008k0wxMMGXTL2O4cYPNopwvWw+AWkOmF+cq5twcHCdMplTB2ysN85onBzUWK dHFJ7SQjZERp9cG1G/uxGg30hSB6KnOhRZXgxRbvNqXV//iIA1WpEl2oeLW760Y9oL70 QKLzuu4E9cA+AVZzzYTng3YamPuVxPT4Zn+riltI5rNLNMRHf6SGVCE+f+tZDUBwVbpZ wKEbpeuJv2B9ZpXpILqP6IkrP2vmMs011PWDabEzhbW2R4bGLfiN/vtqalziU8sa1Rn/ OzVO5MYbLD/5vbnCIGw0RC4hpnAhRA2EQ9P0lC7GlfR2lIsBOd0sKCT5i33LrMpNjR7W IwhQ== X-Gm-Message-State: AOAM531VV4SRfD1azsRbDpfI5dGbhq8elescdyKmGgQtH5JWPobHnACo bbGVz4k7Hzm4jIXpNDsliDIDjHUMrNx3thABxMIxDP/fYl+/QN+FMULNIMfPCL391A2tJrIpCBW 4ruHZB2uKPcRDGBL4zw5ls1gP01ybL+wfh+MLP1+T033aooHMk0M1 X-Received: by 2002:a17:907:b09:: with SMTP id h9mr2622120ejl.278.1628671450761; Wed, 11 Aug 2021 01:44:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv7TUIBok7XHuyD2Zd18YzZSSYWehpsmAnvm6xQwKtN6nkWJ6/okvCpUEsBx3DOW3xQGbMhw== X-Received: by 2002:a17:907:b09:: with SMTP id h9mr2622106ejl.278.1628671450546; Wed, 11 Aug 2021 01:44:10 -0700 (PDT) Received: from localhost.localdomain ([86.32.42.198]) by smtp.gmail.com with ESMTPSA id kk14sm2429708ejc.29.2021.08.11.01.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 01:44:10 -0700 (PDT) From: Krzysztof Kozlowski To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Matt Mackall , Herbert Xu , =?utf-8?q?=C5=81ukasz_Stelmach?= , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: rng: convert Samsung Exynos TRNG to dtschema Date: Wed, 11 Aug 2021 10:43:06 +0200 Message-Id: <20210811084306.28740-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210811084306.28740-1-krzysztof.kozlowski@canonical.com> References: <20210811084306.28740-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-20210811_014413_514379_6C07BE11 X-CRM114-Status: GOOD ( 18.85 ) 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 Samsung Exynos SoC True Random Number Generator bindings to DT schema format using json-schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/rng/samsung,exynos5250-trng.txt | 17 ------- .../bindings/rng/samsung,exynos5250-trng.yaml | 44 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 45 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.txt create mode 100644 Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.yaml diff --git a/Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.txt b/Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.txt deleted file mode 100644 index 5a613a4ec780..000000000000 --- a/Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.txt +++ /dev/null @@ -1,17 +0,0 @@ -Exynos True Random Number Generator - -Required properties: - -- compatible : Should be "samsung,exynos5250-trng". -- reg : Specifies base physical address and size of the registers map. -- clocks : Phandle to clock-controller plus clock-specifier pair. -- clock-names : "secss" as a clock name. - -Example: - - rng@10830600 { - compatible = "samsung,exynos5250-trng"; - reg = <0x10830600 0x100>; - clocks = <&clock CLK_SSS>; - clock-names = "secss"; - }; diff --git a/Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.yaml b/Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.yaml new file mode 100644 index 000000000000..a50c34d5d199 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/samsung,exynos5250-trng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos SoC True Random Number Generator + +maintainers: + - Krzysztof Kozlowski + - Łukasz Stelmach + +properties: + compatible: + const: samsung,exynos5250-trng + + clocks: + maxItems: 1 + + clock-names: + items: + - const: secss + + reg: + maxItems: 1 + +required: + - compatible + - clocks + - clock-names + - reg + +additionalProperties: false + +examples: + - | + #include + + rng@10830600 { + compatible = "samsung,exynos5250-trng"; + reg = <0x10830600 0x100>; + clocks = <&clock CLK_SSS>; + clock-names = "secss"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 4477215ef649..ebdb07a49b02 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16398,7 +16398,7 @@ SAMSUNG EXYNOS TRUE RANDOM NUMBER GENERATOR (TRNG) DRIVER M: Łukasz Stelmach L: linux-samsung-soc@vger.kernel.org S: Maintained -F: Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.txt +F: Documentation/devicetree/bindings/rng/samsung,exynos5250-trng.yaml F: drivers/char/hw_random/exynos-trng.c SAMSUNG FRAMEBUFFER DRIVER