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 AAF39C433EF for ; Fri, 17 Dec 2021 15:47:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235825AbhLQPrw (ORCPT ); Fri, 17 Dec 2021 10:47:52 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:40090 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235751AbhLQPru (ORCPT ); Fri, 17 Dec 2021 10:47:50 -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 9D3474005A for ; Fri, 17 Dec 2021 15:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1639756069; bh=hhDHhyLf8ciLV/pb2fq9VsORYOGJ7hjmmAlIVCJH7WY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XjONOVWYYp/UVokOY0Km3exypGUGk0tidx5T+DkHekOKV19pvC3qOGb/n/eVpPDMX c+e6wRUkLeRiE75bnGDQHwE7qLln6sVXcqjkxrkKMV2vtTMqkI8EuVW9+y9d66tg7V UBBF/4doTY9/JIlxVDfnFRl9mmBT9kwkYNKClQ7EZHNc7TguEVbSVd/5f7QeaArOfC 6eFfy8HcmCfr/ybFFOPufYucKT9pXJ1sYhJfVPYHc8PVpCyI68/hXIGOaiDhjQWOD4 /vKYHfP+wHE5OXevCuPoBMci7yD13ZNp3DBm74IIYQts4DvMFHzqm3JCAHE8e7b8/r ZFaCfbIB/x24A== Received: by mail-lf1-f72.google.com with SMTP id o19-20020ac24c53000000b0042521e0675fso1056893lfk.12 for ; Fri, 17 Dec 2021 07:47:49 -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=hhDHhyLf8ciLV/pb2fq9VsORYOGJ7hjmmAlIVCJH7WY=; b=Mt/5caqwp4l/reBt4rPMi+QcURK2AwvFp7zU6G8gudtfK0lsbIstFfL0r2wwyJHb6o TDHzhJwKrug+gHrjC1mZi8zSC7ZJuCkEReppW7gPSA09WS/lO4Ka+FwEwaV/UngBtFGV UfYeJr1Ttt/N7FB4bvJ8HMAYronZbVQpsPccsP+9dxHomKBc+PjGuRxTXJbtdT4EequY bim4TP7BLe19WdBXHmarV91R30opFKyNz00RU4nBvBUfBYWIADm5WdVXROv2NRn9dvGX f/NajBeRw7puUnrx38qB2hM4c/gDch+EOP2rakpYGuDHsM8FJX7yGyGpHnRnmwoDWmAp irIg== X-Gm-Message-State: AOAM533Co/MuxioL6PaxaP3uso2Gv+Q1VWe3ZkjTOL4VuaQX7ZT3B34m jTJLYS9+95CysriqV2fsYnxO5K2+NMX3hiMvoU+Ve5hm3fEZ8DFOLmH5K2s81PQ+OUbXOc/2KQh d9+fni9h8ovCckG7oKz3nJ2enabLPNBcrBUrbRird9w== X-Received: by 2002:a05:6512:2150:: with SMTP id s16mr3408763lfr.519.1639756059697; Fri, 17 Dec 2021 07:47:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwt9tJHIq/B3JqqY9RpHltS5AsBubgidwCcIwxibp52U1LQxYs+vVjkCeSXk+SDsWN3QzhEUw== X-Received: by 2002:a05:6512:2150:: with SMTP id s16mr3408731lfr.519.1639756059505; Fri, 17 Dec 2021 07:47:39 -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 w25sm356919lfl.33.2021.12.17.07.47.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Dec 2021 07:47:39 -0800 (PST) Message-ID: <2e7588e5-9dc5-571f-d7e9-0ee5c89ab39e@canonical.com> Date: Fri, 17 Dec 2021 16:47:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v2 06/17] 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, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pwm@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, heiko@sntech.de, Lewis.Hanly@microchip.com, Daire.McNamara@microchip.com, Ivan.Griffin@microchip.com, atish.patra@wdc.com References: <20211217093325.30612-1-conor.dooley@microchip.com> <20211217093325.30612-7-conor.dooley@microchip.com> <19cbe2ba-7df5-7c7c-289f-6dc419d9f477@canonical.com> <422126ac-ce26-2940-5b4d-fe79a1fa89c5@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <422126ac-ce26-2940-5b4d-fe79a1fa89c5@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 17/12/2021 16:22, Conor.Dooley@microchip.com wrote: > On 17/12/2021 15:07, Krzysztof Kozlowski wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >> >> On 17/12/2021 15:53, Krzysztof Kozlowski wrote: >>> On 17/12/2021 10:33, 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 | 29 +++++++++++++++++++ >>>> 1 file changed, 29 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..32cbc37c9292 >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/rng/microchip,mpfs-rng.yaml >>>> @@ -0,0 +1,29 @@ >>>> +# 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 >>>> + >>>> +description: | >>>> + The hardware random number generator on the Polarfire SoC is >>>> + accessed via the mailbox interface provided by the system controller >>>> + >>>> +properties: >>>> + compatible: >>>> + const: microchip,mpfs-rng >>>> + >>>> +required: >>>> + - compatible >>>> + >>>> +additionalProperties: false >>>> + >>>> +examples: >>>> + - | >>>> + hwrandom: hwrandom { >>> >>> Three topics: >>> 1. Node name (as most of others are using): rng >>> 2. skip the label, not helping in example. >>> 3. This looks very simple, so I wonder if the bindings are complete. No >>> IO space/address... How is it going to be instantiated? >>> >> >> OK, now I saw the usage in DTS. I have doubts this makes sense as >> separate bindings. It looks like integrated part of syscontroller, so >> maybe make it part of that binding? Or at least add ref to syscontroller >> bindings that such child is expected. > Acking the rest of this, re: adding the ref: is what is being done in > patch 03/17 insufficient? Ops, I missed the 03/17. Yeah, it looks it is sufficient and in such case I think you do not need this patch. The compatible is documented in 03/17. The same for sysserv. Best regards, Krzysztof