Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1014526ybv; Wed, 19 Feb 2020 14:07:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyt8LWqV+9juRAPuJI4ByE7S56+6U6my6RVcCUwoezUr8oHPisI0N9Idf1SOy+X6epAwlEe X-Received: by 2002:aca:1903:: with SMTP id l3mr6088658oii.16.1582150029323; Wed, 19 Feb 2020 14:07:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582150029; cv=none; d=google.com; s=arc-20160816; b=iad3KnWmINd9OqyQdPAMdW4xuVe+PbxBPbkizFVztFA+czsZSq9uSGMeCX46Cx2Qul ZMIbm2xjmfHY5R8EW32rfhZ/+mQmVsGitnh3vTvwCxK0Z7G27AOEQv06vkuCBte576q0 Vy+T9CLlKV1c72k0qRv5Ve+kt2Rx8pllPcMNc/PM28/SUMQbirNpRAVEQFEUAHRy8/68 Qlx1unHMtkD1C/tfIbwIh4RSUeHOYQ5KCY8idWHcD2XecI4Ue4rEC7W1qbfuGa682IC8 0br5nevct+0znzXiULP8GPe3pwEfdEYYCcR1PvCwVPRbFF+r0YNn/+J0mu2LIqmwypHI X/ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=nX8xqwF3vuVz6SMuQkjOYa0QQbZHhMZp1SMRDtGWins=; b=j0Tgdbn7FT4vSxLsoNFctK7FmRt0GKYthnpY1Py9veceJHI9tK8ODw5aJqOgzNS+Yo VdCISpZ0JNQAfyBn0WjwEHwDGhJV0fruvvBjmFRIfXlh6Nwh1CwrXa/K9AMQLewH2Q01 1djeIAP8U36I9WCGbMqec6cAuipbZYzN6DVAHdJCvLWI+w9RJxQrltdDbUPtmiEC7kRA +Ps6rHod6m0ws9nQ7N1hSUs9hD603NVj3VxJVBhJ5LymAO9lFhoPee5IIs3wTjpdC2Np vlnB7o82bmoY1Uv8MJdf65vQm+cNO0b8d7dlMvPL+2InfiTrm7MC66VRLEatyAq1WNwJ n3Nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si521047otc.307.2020.02.19.14.06.48; Wed, 19 Feb 2020 14:07:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727326AbgBSWGs (ORCPT + 99 others); Wed, 19 Feb 2020 17:06:48 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39991 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbgBSWGs (ORCPT ); Wed, 19 Feb 2020 17:06:48 -0500 Received: by mail-ot1-f67.google.com with SMTP id i6so1722296otr.7; Wed, 19 Feb 2020 14:06:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=nX8xqwF3vuVz6SMuQkjOYa0QQbZHhMZp1SMRDtGWins=; b=ZvSU1+Az2K0yb/QUM2TLLYc660LhCLj9uCqfwnmOP6862jjfu7RO06BqVQusJwouUA inGJ6JE7oYcCaoI8kSine2m5wgKbyFeHUT6qlMuSHiY4Nj8Qtvm5vLGziHgsUR480X3m /eOzSVU5szMocfIN8vQ7GA//7B/8/mbrRzF/VI6EaRqsTdl0PE3mnNND62OGS0+IrVhG O72qr4UGTM/egoolcMm4dJuPt8phIc2yPF8U8eR4Hp+ECugRpX2X86Y5MSE+8CaGCQp8 +TrOlKON1z3ZLq9QB2kpXfNgP4/FzYfZ0XqmH/zkYevrP/9o5sF5g2eaq3++LfFGSpan pixw== X-Gm-Message-State: APjAAAWC1dIG59hysRTOb8BU3SU0Xx28ruTWo8cVspD7u9PytxuImgOi hovEKnOO5sOqBWE7y1xM38OmhJaIKg== X-Received: by 2002:a9d:6548:: with SMTP id q8mr19241216otl.356.1582150005300; Wed, 19 Feb 2020 14:06:45 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id z10sm406828oih.1.2020.02.19.14.06.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 14:06:44 -0800 (PST) Received: (nullmailer pid 21809 invoked by uid 1000); Wed, 19 Feb 2020 22:06:43 -0000 Date: Wed, 19 Feb 2020 16:06:43 -0600 From: Rob Herring To: =?iso-8859-1?Q?N=EDcolas_F=2E_R=2E_A=2E?= Prado Cc: devicetree@vger.kernel.org, Matt Mackall , Herbert Xu , Mark Rutland , Nicolas Saenz Julienne , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-crypto@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: rng: Convert BCM2835 to DT schema Message-ID: <20200219220643.GA14392@bogus> References: <20200207231347.2908737-1-nfraprado@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200207231347.2908737-1-nfraprado@protonmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Feb 07, 2020 at 11:14:12PM +0000, N?colas F. R. A. Prado wrote: > Convert BCM2835/6368 Random number generator bindings to DT schema. > > Signed-off-by: N?colas F. R. A. Prado > --- > > Hi, > wasn't really clear to me who to add as maintainer for this dt-binding. > The three names added here as maintainers were based on the get_maintainer > script and on previous commits on this file. > Please tell me whether these are the right maintainers for this file or not. Whoever knows the h/w ideally, not who is going to apply patches. > > This patch was tested with: > make ARCH=arm DT_SCHEMA_FILES=Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml dt_binding_check You also need to make sure without DT_SCHEMA_FILES set everything is fine. That tests the example against all schemas. > make ARCH=arm DT_SCHEMA_FILES=Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml dtbs_check > > Thanks, > N?colas > > .../devicetree/bindings/rng/brcm,bcm2835.txt | 40 ------------ > .../devicetree/bindings/rng/brcm,bcm2835.yaml | 61 +++++++++++++++++++ > 2 files changed, 61 insertions(+), 40 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/rng/brcm,bcm2835.txt > create mode 100644 Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml > > diff --git a/Documentation/devicetree/bindings/rng/brcm,bcm2835.txt b/Documentation/devicetree/bindings/rng/brcm,bcm2835.txt > deleted file mode 100644 > index aaac7975f61c..000000000000 > --- a/Documentation/devicetree/bindings/rng/brcm,bcm2835.txt > +++ /dev/null > @@ -1,40 +0,0 @@ > -BCM2835/6368 Random number generator > - > -Required properties: > - > -- compatible : should be one of > - "brcm,bcm2835-rng" > - "brcm,bcm-nsp-rng" > - "brcm,bcm5301x-rng" or > - "brcm,bcm6368-rng" > -- reg : Specifies base physical address and size of the registers. > - > -Optional properties: > - > -- clocks : phandle to clock-controller plus clock-specifier pair > -- clock-names : "ipsec" as a clock name > - > -Optional properties: > - > -- interrupts: specify the interrupt for the RNG block > - > -Example: > - > -rng { > - compatible = "brcm,bcm2835-rng"; > - reg = <0x7e104000 0x10>; > - interrupts = <2 29>; > -}; > - > -rng@18033000 { > - compatible = "brcm,bcm-nsp-rng"; > - reg = <0x18033000 0x14>; > -}; > - > -random: rng@10004180 { > - compatible = "brcm,bcm6368-rng"; > - reg = <0x10004180 0x14>; > - > - clocks = <&periph_clk 18>; > - clock-names = "ipsec"; > -}; > diff --git a/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml b/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml > new file mode 100644 > index 000000000000..b1621031721e > --- /dev/null > +++ b/Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/rng/brcm,bcm2835.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: BCM2835/6368 Random number generator > + > +maintainers: > + - Stefan Wahren > + - Florian Fainelli > + - Herbert Xu > + > +properties: > + compatible: > + enum: > + - brcm,bcm2835-rng > + - brcm,bcm-nsp-rng > + - brcm,bcm5301x-rng > + - brcm,bcm6368-rng > + > + reg: > + maxItems: 1 > + > + clocks: > + description: phandle to clock-controller plus clock-specifier pair No need to redefine a common property. > + maxItems: 1 > + > + clock-names: > + const: ipsec > + > + interrupts: > + description: specify the interrupt for the RNG block Same here. > + maxItems: 1 > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + rng { > + compatible = "brcm,bcm2835-rng"; > + reg = <0x7e104000 0x10>; > + interrupts = <2 29>; > + }; > + > + - | > + rng@18033000 { > + compatible = "brcm,bcm-nsp-rng"; > + reg = <0x18033000 0x14>; > + }; > + > + - | > + random: rng@10004180 { Drop the label. > + compatible = "brcm,bcm6368-rng"; > + reg = <0x10004180 0x14>; > + > + clocks = <&periph_clk 18>; > + clock-names = "ipsec"; > + }; > -- > 2.25.0 > >