Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1037032ybv; Thu, 20 Feb 2020 11:55:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzbobQMsmmmYo3L97CBNKto54Ac/n9OTWVWV/gyX0ITfp4wGLHe34yvnBtqvno2n0vBvkGH X-Received: by 2002:a05:6808:b22:: with SMTP id t2mr3308537oij.40.1582228523458; Thu, 20 Feb 2020 11:55:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582228523; cv=none; d=google.com; s=arc-20160816; b=FyARV09UE7k/olzeoPcmrA+esW4V6VyT1Zs6YMg1/f+ErieqbOWvJfAcKSTiRmkRtI 1NxDoRerU1FI1CPBKpdPiQs13nmDcjg3KBXrNfn7vj4Pdgf3mj4hR20g8ZgUzebCA25Q dW/njpfWNSKS3W8TuHrUV/myLpAJC3s4E7ftt+NOuEkqpRWWU5yee3x1864asD1RnInL iIv4l1ZKXV56bc8kGkmc5/xkCaPow61BROvSOMqA2T+j7YQyFePQPjCGmSH56GBCFqwd +ZJsT6j32udFLi8pLL08zPTurZdb4TPxp72INYhqADCH9IAxuQlakJr0AFXuQaXUBWnP vUUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=icPMRha4YLQDWjX8b2SwTO5hghu7iSQk++ZELCmYqAs=; b=W4avCP3kYW47C+2HIs5/4+HyTV8iIw7jAFX0shlnbOZyYpAeQvxZP77Y306pjx9dmv Qo06DhTeE+vd+U02FHO6qUiqb4+82zY/SQioKroR3Ol7z1mDNoQFURtpayepZ3Yk550B l26ljzsi68hiHd87ZsYmXQokZL69kdUsGDDg5Rawkq+bs+rGgpG1BC1xMH6CZD2jc07+ 8cU2LS4593peOsBAIZzhJ6+25KMB+uxDNFrKAJDer/IOzYWbZjy3SEMtu/kRC9FQxo9N 02Ky4fEHAmz0us3on/5vYXQi1PjaWywqpFjlYHUq+B1o+fLXU4T6FDzsuaaR/d43doik voSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QBbz2JVl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 q9si207586otc.86.2020.02.20.11.55.10; Thu, 20 Feb 2020 11:55:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QBbz2JVl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729022AbgBTTyJ (ORCPT + 99 others); Thu, 20 Feb 2020 14:54:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:45302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728556AbgBTTyI (ORCPT ); Thu, 20 Feb 2020 14:54:08 -0500 Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AD217208E4; Thu, 20 Feb 2020 19:54:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582228447; bh=G7F0PXamV8KjthSBpmnQYzM9wFyKJlEKoCMkaPi/V2A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QBbz2JVlL4gMj+bS1andjj5ao4hXrn6mRCwkQXu+GYp+ytsMzxurmAj1uGfifTfvS BIP92Y44BHzLEYC80V2kJn/hgSTB9+wMDxhTJr+PmCsioO0byrKdVWIb8eQmIsjfgw XTeymf6neRgd1tabn0V11TyrknFmoCCjnP/e8oYw= Received: by mail-qk1-f180.google.com with SMTP id o28so4744342qkj.9; Thu, 20 Feb 2020 11:54:07 -0800 (PST) X-Gm-Message-State: APjAAAXkezniAWzeyhGgM17YluTC3Nm9shk20G83yhGRX0ovJLySDXEC uSeCrli5ObJX312ozF5P5+LPeCcIx+oC4TZIhQ== X-Received: by 2002:a37:5347:: with SMTP id h68mr29237844qkb.393.1582228446784; Thu, 20 Feb 2020 11:54:06 -0800 (PST) MIME-Version: 1.0 References: <20200220060001.25807-1-andreas@kemnade.info> In-Reply-To: <20200220060001.25807-1-andreas@kemnade.info> From: Rob Herring Date: Thu, 20 Feb 2020 13:53:55 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC] Bindings: nvmem: add bindings for JZ4780 efuse To: Andreas Kemnade Cc: "H. Nikolaus Schaller" , PrasannaKumar Muralidharan , Paul Cercueil , Mathieu Malaterre , Srinivas Kandagatla , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Discussions about the Letux Kernel , Linux Kernel Mailing List , "open list:MIPS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 20, 2020 at 12:00 AM Andreas Kemnade wrote: > > From: PrasannaKumar Muralidharan > > This patch brings support for the JZ4780 efuse. Currently it only expose > a read only access to the entire 8K bits efuse memory. > > Tested-by: Mathieu Malaterre > Signed-off-by: PrasannaKumar Muralidharan > Signed-off-by: Mathieu Malaterre > Signed-off-by: H. Nikolaus Schaller > [converted to yaml] > Signed-off-by: Andreas Kemnade > --- > I will not update/maintain this, just have the impression that here some > more work is needed to make somebody comfortable with yaml than stick > to the usual pointing to documentation and I have not the ingredients > for doing > cat Antihistamines >/dev/brain ;-) > and I do not want to see the other patches get lost. Looks about right... > > .../bindings/nvmem/ingenic,jz4780-efuse.yaml | 51 +++++++++++++++++++ > 1 file changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml > > diff --git a/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml b/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml > new file mode 100644 > index 000000000000..ad56c17b0bd5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml > @@ -0,0 +1,51 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license new bindings please: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/nvmem/ingenic,jz4780-efuse.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Ingenic JZ EFUSE driver bindings > + > +maintainers: > + - tbd > + > +allOf: > + - $ref: "nvmem.yaml#" > + > +properties: > + compatible: > + enum: > + - ingenic,jz4780-efuse > + > + reg: > + maxItems: 1 > + > + clocks: > + # Handle for the ahb for the efuse. > + maxItems: 1 > + > + clock-names: > + items: > + - const: bus_clk My prior comment still applies. Also, for a single clock, you don't really need a name. > + > +required: > + - compatible > + - reg > + - clock 'make dt_binding_check' would have pointed the error here for you: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.example.dt.yaml: efuse@134100d0: 'clock' is a required property > + - clock-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + efuse@134100d0 { > + compatible = "ingenic,jz4780-efuse"; > + reg = <0x134100d0 0x2c>; > + > + clocks = <&cgu JZ4780_CLK_AHB2>; > + clock-names = "bus_clk"; > + }; > + > +... > -- > 2.20.1 >