Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp560245ybv; Sat, 22 Feb 2020 09:19:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzHKM556l1oGSglog7s4+sf87LhjMmHcYDVmhbinJywtiaO3LwjnAqX8GySqNsoJAZxoLw1 X-Received: by 2002:a05:6808:b13:: with SMTP id s19mr6603143oij.119.1582391955445; Sat, 22 Feb 2020 09:19:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582391955; cv=none; d=google.com; s=arc-20160816; b=zFJetEalosH+pY8xDLK2VaqYr94XS0gBOkwv1Y9NhN/qmIw2q9iJLlfVF67AWUVATa Tj7le1ntBC7oAAb7aflm/AW5X/vJSddSPhCS8yWkblH8vs1WcrQ55dehN87hozGuw+n9 YFTeN92uE3joUlZbDnArOx1o98bqtNjjR86iVWm0Gh1hDF8AAsDs6pFOwTF+XbRE2o3V 8Lgm67JQIrMmXfQHE9P2d6T7P5oEJPLUhWhSLn3s87X82bic0zl4xAbxNM1PNgMMOJDS 8+gTe62IVwgzbxeIk+FLITKyHOvpACpqAGFjNu0qLZmXnb4TtRWuPVqWGiHG4bCsFJco 5dRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:mime-version :subject:dkim-signature; bh=HPDPreE9UVNTnqFOXyZ+31E5RMMnmqZ+gBEpi7rZ8nc=; b=X/MJFa7PoXJEANsB1mpVaHj0a6GNwBl7UISXXmTFJhDoj39z5+6sTudhOG08QqyC0U 0yn5w0+lIewhFL1VLOSkiIoe8x1Ix7DDWzdDpHAeOKsOmS2bMhK8qI8/K5BJUjGUgl7Y NLS6fs9LTBMtLQBRHJXyuV/v7MuxHLOeM1yJLU9XtDbapeyP9qC04lU1HuFIgMnPOx4x GNW5yznGGHOwPu4eG3OEFtGKe4nyqF7/6SVc5CxCGDxb4FB0Fneu/Z1NZO4/wmoZsryH wuSUy/TLGw2LNYnMFtJ/Kn+wep7tkAJjYeJC1NvioHBVJgVPO9dNlkCDxwDeBwMOa/wx l8+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=Rwa2EDXB; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u16si3355455otq.92.2020.02.22.09.19.02; Sat, 22 Feb 2020 09:19:15 -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=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=Rwa2EDXB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgBVRRz (ORCPT + 99 others); Sat, 22 Feb 2020 12:17:55 -0500 Received: from mo4-p03-ob.smtp.rzone.de ([85.215.255.100]:28049 "EHLO mo4-p03-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbgBVRRz (ORCPT ); Sat, 22 Feb 2020 12:17:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1582391872; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=HPDPreE9UVNTnqFOXyZ+31E5RMMnmqZ+gBEpi7rZ8nc=; b=Rwa2EDXBldQIyrPctsvJkCD6CCcc9Ek1rfSnIOjSmJETwYWBa41HSBzt9SXFGPPoFZ U+kIDOMp4tASADrJDozIWucu4l5aeGLHPXYfErP21S5+Tp4oabcu4CLHoMlam/BoZLQv V43sRP2r+8ZzuE5YrnfSjGjvSH0sJO2XCCwC2DKEctHCKiVKAVq9xj1XPAjJaPZEDegh Gv2zv6DxqKZIGlyC1suepv9uFCdfQX2PyPyRF4pLQhlGZEY66wNucC1zc1KXGMhrrPrI HRfO+OFAFNDLl6VVNgd5FjhHBVQLqOJFAhA+nVVMJJtVkkWTMTeXFD7DD45vX1xY+8ds XPUA== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj4Qpw9iZeHmAiw43swGE=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id U06217w1MHHjk3G (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sat, 22 Feb 2020 18:17:45 +0100 (CET) Subject: Re: [PATCH v5 2/6] Bindings: nvmem: add bindings for JZ4780 efuse Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii From: "H. Nikolaus Schaller" In-Reply-To: <20200222174408.10588e32@kemnade.info> Date: Sat, 22 Feb 2020 18:17:44 +0100 Cc: PrasannaKumar Muralidharan , Paul Cercueil , Mathieu Malaterre , Srinivas Kandagatla , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , Krzysztof Kozlowski , Kees Cook , Andi Kleen , Geert Uytterhoeven , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com Content-Transfer-Encoding: quoted-printable Message-Id: <7EA5C99C-094E-43FC-BF04-A9056C8BB2B6@goldelico.com> References: <51642368a064073ab99bb3110863b5fadc382f82.1582367141.git.hns@goldelico.com> <20200222165738.61cde2a0@kemnade.info> <20200222174408.10588e32@kemnade.info> To: Andreas Kemnade X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 22.02.2020 um 17:46 schrieb Andreas Kemnade : >=20 > On Sat, 22 Feb 2020 17:34:06 +0100 > "H. Nikolaus Schaller" wrote: >=20 >>> Am 22.02.2020 um 16:57 schrieb Andreas Kemnade = : >>>=20 >>> On Sat, 22 Feb 2020 11:25:37 +0100 >>> "H. Nikolaus Schaller" wrote: >>>=20 >>>> From: PrasannaKumar Muralidharan >>>>=20 >>>> This patch brings support for the JZ4780 efuse. Currently it only = exposes >>>> a read only access to the entire 8K bits efuse memory. >>>>=20 >>>> 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 >>>> --- >>>> .../bindings/nvmem/ingenic,jz4780-efuse.yaml | 50 = +++++++++++++++++++ >>>> 1 file changed, 50 insertions(+) >>>> create mode 100644 = Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml >>>>=20 >>>> 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..09a8ef937750 >>>> --- /dev/null >>>> +++ = b/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.yaml >>>> @@ -0,0 +1,50 @@ >>>> +# SPDX-License-Identifier: 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: >>>> + - PrasannaKumar Muralidharan >>>> + >>>> +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: ahb2 =20 >>> as Rob said: probably not needed, since it is a single >>> clock, and the driver uses devm_clk_get(dev, NULL), so it should be = prepared >>> for that without any extra work. =20 >>=20 >> The question is if a specific driver implementation should determine >> what the DT requires or the other way round. I don't know... >>=20 >> I did interpret Rob's comment differently: there was >>=20 >>> - "clock-names" Must be "bus_clk" =20 >>=20 >> and he did say:=20 >>=20 >> 'clk' is redundant. How about 'ahb'? >>=20 >> So I thought he refers to the _clk suffix? >>=20 >=20 > and he said to my first try: > --- >> + clock-names: >> + items: >> + - const: bus_clk =20 >=20 > My prior comment still applies. >=20 > Also, for a single clock, you don't really need a name. Ah, ok. I may have missed that. BR and thanks, Nikolaus