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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74666C4332F for ; Mon, 8 Nov 2021 21:17:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 55698600CD for ; Mon, 8 Nov 2021 21:17:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239972AbhKHVTv (ORCPT ); Mon, 8 Nov 2021 16:19:51 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:56900 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239945AbhKHVTr (ORCPT ); Mon, 8 Nov 2021 16:19:47 -0500 Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.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-0.canonical.com (Postfix) with ESMTPS id 43C543F1E8 for ; Mon, 8 Nov 2021 21:17:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1636406222; bh=Ktl81v/Bz9DUD2tGXyt3QEXrDSC6xACsZ55UZL0LQHo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=gBNmRcwZkgVWRqxKl01gNzhy8qq2GxuXzPXAYIHLqMm3KovnNl6d2juWQgivJSymh bhPbKxNrj7x5opVTGWWSt8LUWs5CJvV68gGXaV4IbiTAnvMrPNxFwVtpw6Dg20xUAW aSiJ/uicGlbd2dp1A+4IToYa+c4FkdZZi7ZMeKZqIn5PapkBC5w7Iyv3lhXdIBiptU KmCQJGR/xAizqjirrJK8vqTD4uc8WdgEoHbNHs6c1XhLHHOqS4RU9GEtBEtWIicO6E 8OOED8Vi8fqL0Vs4jTc0pgWS3AqZQ8H2lUax+88yBG3WYVDWRa6oW34HPQ634N7ykc S3q8zoxlAX7uQ== Received: by mail-lf1-f72.google.com with SMTP id i34-20020a0565123e2200b0040019ae61d5so6942612lfv.20 for ; Mon, 08 Nov 2021 13:17:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Ktl81v/Bz9DUD2tGXyt3QEXrDSC6xACsZ55UZL0LQHo=; b=7ojKMYpH/+ufOTSPE9z8YkFqNuu1c7EeppVcwvMYJUTMyRu82QyK66S4M3M6kuRxrR IE4Q4k/iEwd5/X+m4X3MCzhptOYxIfEKC+RQ1O6hiENcBxXMiU+qGy2oGQKKM9UrR0f+ PHm1YM0IoVwxHtxxY0JOcF5CKnCvCSkSwiV3sXvS5ylypYrtjvRQtv7gbOqn43SXS/ky AIXHZVf9zHL4hA+ytEmNV5F5GdXf5RJOv8z0DOvimdRWo2QZYpQ8AIXIbjX82BRwj7mM BzumNKk+55CY8BHJPbUpqbxSrRencNeFyc2fndp+CTiwkGBDfexb1wi8MQwvuvPQFxg+ 4zDQ== X-Gm-Message-State: AOAM533r6hPLjyhHW19A1YCAxlib4Y7ieHSi0BodygjTpJNKz0LybDzp IioHZShT3EHOVDb5F/a0EqN3v1wlYS0uEviMDexX7nTr0nJDBPIbPkTQTZI9JjmF2J2qcx6Dkvs xPt4mSI5A5/F6LzXgiJfaqHCMuYOSiliPKt0N2jKBEw== X-Received: by 2002:a05:6512:ac9:: with SMTP id n9mr2180481lfu.188.1636406211315; Mon, 08 Nov 2021 13:16:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOHL/9FtziDi6gx/33uA/2HxKYlDj46e0NYgoc72BGcMAuHzBgPINWumBlRSVqAb6ZuLjwSw== X-Received: by 2002:a05:6512:ac9:: with SMTP id n9mr2180441lfu.188.1636406211057; Mon, 08 Nov 2021 13:16:51 -0800 (PST) Received: from [192.168.3.67] (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id u22sm1063187lff.118.2021.11.08.13.16.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 13:16:50 -0800 (PST) Message-ID: Date: Mon, 8 Nov 2021 22:16:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH 06/13] dt-bindings: rng: add bindings for microchip mpfs rng Content-Language: en-US To: conor.dooley@microchip.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, robh+dt@kernel.org, jassisinghbrar@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, a.zummo@towertech.it, alexandre.belloni@bootlin.com, broonie@kernel.org, gregkh@linuxfoundation.org, lewis.hanly@microchip.com, daire.mcnamara@microchip.com, atish.patra@wdc.com, ivan.griffin@microchip.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-riscv@lists.infradead.org, linux-crypto@vger.kernel.org, linux-rtc@vger.kernel.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org Cc: geert@linux-m68k.org, bin.meng@windriver.com References: <20211108150554.4457-1-conor.dooley@microchip.com> <20211108150554.4457-7-conor.dooley@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20211108150554.4457-7-conor.dooley@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/11/2021 16:05, conor.dooley@microchip.com wrote: > From: Conor Dooley > > Add device tree bindings for the hardware rng device accessed via > the system services on the Microchip PolarFire SoC. > > Signed-off-by: Conor Dooley > --- > .../bindings/rng/microchip,mpfs-rng.yaml | 31 +++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml > > diff --git a/Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml b/Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml > new file mode 100644 > index 000000000000..e8ecb3538a86 > --- /dev/null > +++ b/Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml > @@ -0,0 +1,31 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/rng/microchip,mpfs-rng.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Microchip MPFS random number generator > + > +maintainers: > + - Conor Dooley > + > +properties: > + compatible: > + const: microchip,polarfire-soc-rng > + > + syscontroller: > + maxItems: 1 > + description: name of the system controller device node There are several issues with this: 1. You need to describe the type. 2. Description is not helpful (just copying the name of property) and actually misleading because you do not put there the name of device node. 3. What is it? Looks like syscon (or sometimes called sysreg). If yes, please use existing syscon bindings. > + > +required: > + - compatible > + - "syscontroller" No need for quotes. > + > +additionalProperties: false > + > +examples: > + - | > + hwrandom: hwrandom { > + compatible = "microchip,polarfire-soc-rng"; > + syscontroller = <&syscontroller>; > + }; > Best regards, Krzysztof