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 170AEC636D6 for ; Thu, 16 Feb 2023 09:14:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjBPJOq (ORCPT ); Thu, 16 Feb 2023 04:14:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjBPJOi (ORCPT ); Thu, 16 Feb 2023 04:14:38 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1849D4A1C5 for ; Thu, 16 Feb 2023 01:14:37 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id b2so3524282ejz.9 for ; Thu, 16 Feb 2023 01:14:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fva50b8GrxlgxldYtMJBliwxYf7DEDUsjT9ufEpVuWs=; b=sMpHhFntXLyf3Jmld4QJX2eireDFCwQQBDBI2jY8bPjcAMN2ZHhutIKyFktb5S6PlV HEokQ7CW+nKEDlYPDP5tZr7VEITH/0Zx359EJ8GCekCBnunuWOcWABiGHtqjMLt0UX9c ik4nglpIBLWtAGoUcpXE2lQ8YAmqiBP6QVt//6+j2fyB4gjGtj0cUGKa4X0rdCyuPXtu LdCcZ468MwpYGNdZ+diXyQDYCAdbcLA3UKa0Ml9eFyWKIJEidfRuZPAZJMhgrdIGPzkI tI2GGGT67SF7JCDvLRZoqOhHNbYErSZUJLWK0c4moESSFf85KQ6uAU/S14VcnfAhqjqR HjHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fva50b8GrxlgxldYtMJBliwxYf7DEDUsjT9ufEpVuWs=; b=EhBdIYqKq5cNVVjCdOG9puNv5R61/aWOjjmnV696/uhNQCpUcqHq0sngOlty4CqHco hA5kPG5Y8HIjn2yLHTVoKgDEgWXu9vtmqFOJpj8HuAIbDoazOVzSMU+e2lb7OXdQEHdC iTO3LTcMTkz62ZL4qHEdNsCnppD05shZYO5swhlV3s1XfCJrEtQXr6su+8GUcj8xGBAE jzCHXH4Z3Q7eUuTJZHB5ZjNRPdId0TMh4LX1N/qoykrAQQa9ObAgJET2lOLxlh9ocCy9 ZhNVErFhPUIf+nzAMptZkEauZwezUm1SmzqMwQg7ye4lrNQpvoef98Z760ld2M9eJHku AzPg== X-Gm-Message-State: AO0yUKWEfEp5Hutp96NuOUmPwL95OgthzP1MNBfeJk8JqUMQvtUhb9F+ rxPrdvJLDg6w6PnPZbEX7cqvGA== X-Google-Smtp-Source: AK7set+yGgy9zHqyv9fI0T0DsAMPct9xvmoV8QwrREKROJoG352EmfWtwXagqgHQklpXsy91twxdqg== X-Received: by 2002:a17:907:174d:b0:880:3129:d84a with SMTP id lf13-20020a170907174d00b008803129d84amr5500539ejc.60.1676538875587; Thu, 16 Feb 2023 01:14:35 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id kj9-20020a170907764900b008b163745b7dsm447510ejc.120.2023.02.16.01.14.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Feb 2023 01:14:35 -0800 (PST) Message-ID: <5341d0fa-1415-b711-30f0-f0a867af0bc4@linaro.org> Date: Thu, 16 Feb 2023 10:14:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 2/2] dt-bindings: rng: Add MediaTek MT7981 TRNG Content-Language: en-US To: Daniel Golle , devicetree@vger.kernel.org, Sean Wang , Olivia Mackall , Herbert Xu , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Conor Dooley , Mingming Su , linux-crypto@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <89865515728cb937b6591160ad9c30b4bcc8dd41.1676467500.git.daniel@makrotopia.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/02/2023 14:27, Daniel Golle wrote: > Add documentation to describe the MediaTek true random number generator > which is provided by ARM TrustedFirmware-A of the MT7981. > > Signed-off-by: Daniel Golle > --- > .../bindings/rng/mediatek,mt7981-rng.yaml | 39 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 40 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rng/mediatek,mt7981-rng.yaml > > diff --git a/Documentation/devicetree/bindings/rng/mediatek,mt7981-rng.yaml b/Documentation/devicetree/bindings/rng/mediatek,mt7981-rng.yaml > new file mode 100644 > index 000000000000..d577d60538d8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/rng/mediatek,mt7981-rng.yaml > @@ -0,0 +1,39 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rng/mediatek,mt7981-rng.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Random number generator (v2/SMC) > + > +maintainers: > + - Daniel Golle > + > +properties: > + $nodename: > + pattern: "^rng$" 1. We don't enforce it in device bindings, so drop it. 2. It's not even correct. You have reg. > + > + compatible: > + enum: > + - mediatek,mt7981-rng > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + items: > + - const: rng Drop clock-names and rely on index. > + > +required: > + - compatible and reg? > + > +additionalProperties: false > + > +examples: > + - | > + rng { > + compatible = "mediatek,mt7981-rng"; > + }; Best regards, Krzysztof