Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp437831ybv; Wed, 19 Feb 2020 02:39:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwOIXwCUaVLI5a9nY6vTKN/Jvfxm4Bf2WHGdgJaGVxvexQNw1ZWI5l/G9Z2rTVqQv03zoTt X-Received: by 2002:a05:6830:12d5:: with SMTP id a21mr19754361otq.296.1582108779589; Wed, 19 Feb 2020 02:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582108779; cv=none; d=google.com; s=arc-20160816; b=dQR3hhWRaBNacEM0P/leUaRxuCN+cpcX9JWacQ+hf/cM57+scsdCKa1C257Zdb2lLq 6abBIM6Uu31Z9fWn7RE6l8WHK43Iqd6Iu7m/WHNr2+T1JvbSuJKDExlNMgKq1XQbUf1S 0RpiTZjcvKk4qGCbu6g9eZTvHPmVqN55ab08vCzUKo7sZlYScj51exHAjrvfctBVLqH3 UvCrP7u0+t1ohJvuLLAbmR5ThX/109BUtHQbWx18y3VoweASOPYS26dNLE8TRof01opl dElopsIUI5MjaBtgQRZvYjZRZ32c7qH3fkK/yTygGlvcCKhxzvWx6Pfq3518jeiRUNIv 2DFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=AWPdqD5Q7NsSz750C6TRq06ni1zu31Qr4lR01JlK4S4=; b=YsI3H+Qc3UJ5nrk31tbN5pf+8ceBRV48K13M2+m206svzcGMj2ih8S/5OcAS+feg+J L2h2nzaKRUT4iVF+LV7bto3DfBZ9Tsi0FKnLUIPCkp/28sq+16Y4uzxNXMpQeuDohnB2 +IOuXD9WjMqIKrUsVEykoJ1+iLciSD5eoptT0fTi+QI+ldZUWE3I3E71KBvJzgzqHBou i2pxAoAdXP5jjrhsba1tMtAYUp9+rc4z53pmnoXjykDp2bzEQkzs6z+r+LaTzB1OX4un 5WyJlNZ60CcUI9U49AFZGwvjIAiMOkQ5ZJsDMDA4pvsT+HRN4yO26EkR4qjM8ApW7WUv 8uLg== ARC-Authentication-Results: i=1; mx.google.com; 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 c189si8364221oig.74.2020.02.19.02.39.26; Wed, 19 Feb 2020 02:39:39 -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; 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 S1726671AbgBSKiW (ORCPT + 99 others); Wed, 19 Feb 2020 05:38:22 -0500 Received: from out28-76.mail.aliyun.com ([115.124.28.76]:49501 "EHLO out28-76.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbgBSKiW (ORCPT ); Wed, 19 Feb 2020 05:38:22 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08794115|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.0546757-0.00261561-0.942709;DS=CONTINUE|ham_regular_dialog|0.41055-0.0161671-0.573283;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03267;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.GpgTeGr_1582108696; Received: from 192.168.10.227(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.GpgTeGr_1582108696) by smtp.aliyun-inc.com(10.147.41.187); Wed, 19 Feb 2020 18:38:16 +0800 Subject: Re: [RFC v4 2/6] Bindings: nvmem: add bindings for JZ4780 efuse To: "H. Nikolaus Schaller" , PrasannaKumar Muralidharan , Paul Cercueil , Mathieu Malaterre , Srinivas Kandagatla References: <86b78db4d607e0bdda6def018bc7f73207ce82e8.1581958529.git.hns@goldelico.com> <20200218212609.GA30081@bogus> Cc: Linux Kernel Mailing List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-mips@vger.kernel.org, Discussions about the Letux Kernel From: Zhou Yanjie Message-ID: <5E4D1017.4060707@wanyeetech.com> Date: Wed, 19 Feb 2020 18:38:15 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nikolaus, On 2020年02月19日 13:48, H. Nikolaus Schaller wrote: >> Am 18.02.2020 um 22:26 schrieb Rob Herring : >> >> On Mon, Feb 17, 2020 at 05:55:26PM +0100, H. Nikolaus Schaller 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 >>> --- >>> .../bindings/nvmem/ingenic,jz4780-efuse.txt | 17 +++++++++++++++++ >>> 1 file changed, 17 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.txt >> Please convert to a DT schema. > Is there someone of you who can help to do that? > > DT schemas are still like a Chinese dialect for me (i.e. I can decipher with help but neither speak nor write). > > BR and thanks, > Nikolaus I am also suffering from this, and I am going to ask Paul for advice. > >>> diff --git a/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.txt b/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.txt >>> new file mode 100644 >>> index 000000000000..339e74daa9a9 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/nvmem/ingenic,jz4780-efuse.txt >>> @@ -0,0 +1,17 @@ >>> +Ingenic JZ EFUSE driver bindings >>> + >>> +Required properties: >>> +- "compatible" Must be set to "ingenic,jz4780-efuse" >>> +- "reg" Register location and length >>> +- "clocks" Handle for the ahb clock for the efuse. >>> +- "clock-names" Must be "bus_clk" >> 'clk' is redundant. How about 'ahb'? How about replace "bus_clk" with "efuse"? Other SoCs (like T21, X1000, X1500, X1830, X2000) has a dedicated bit in the CLKGR register to control the EFUSE clock. A corresponding "XXX_CLK_EFUSE" is provided in the "xxx-cgu.c" driver. Thanks and best regards! >>> + >>> +Example: >>> + >>> +efuse: efuse@134100d0 { >>> + compatible = "ingenic,jz4780-efuse"; >>> + reg = <0x134100d0 0x2c>; >>> + >>> + clocks = <&cgu JZ4780_CLK_AHB2>; >>> + clock-names = "bus_clk"; >>> +}; >>> -- >>> 2.23.0 >>>