From patchwork Tue Aug 11 06:15:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shunqian Zheng X-Patchwork-Id: 6988751 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8302AC05AC for ; Tue, 11 Aug 2015 06:19:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BE2E22063B for ; Tue, 11 Aug 2015 06:19:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED2FB20604 for ; Tue, 11 Aug 2015 06:19:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZP2uT-0002Se-NI; Tue, 11 Aug 2015 06:19:41 +0000 Received: from mail-ig0-f170.google.com ([209.85.213.170]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZP2uR-0002O3-9J for linux-rockchip@lists.infradead.org; Tue, 11 Aug 2015 06:19:39 +0000 Received: by igfj19 with SMTP id j19so65351713igf.1 for ; Mon, 10 Aug 2015 23:19:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fmb5ktNG2t4xYCoy+l7pSUJvWk6V/JPkburZQqwjBFQ=; b=SWAtk1QjCVJMBdQaIW2oIvSVVEwzv6ypckTJOLjPxZ9GYDHMTvnwV6tu0MvxDn5oSN shK74URMe4yIBBoE7NfvodG8NbQCthNckWNUD6NTUZ6zLaQE32HwWlMxiNe9ty3FO89B EGn0gtaPX8xrlFYl328gaIEtEY136TB8FBRN+GIyVuzzC99ZcKq0khnwf0vQtl3ZIGt8 L+tmgwdSHTBWrJ4Bd12Q3loF14Q3C/+lX4PqQPM0xfCr3pv9hOIvfmwdfwZ0VSD8YNGN wOddSf8nnh/NihUO38nB8kSCTyuhnRpcFW7Y1vM5I0bjviMIp4Fw5aE4OUVHyyU2jNk4 D+og== X-Received: by 10.50.143.101 with SMTP id sd5mr15246996igb.44.1439273958407; Mon, 10 Aug 2015 23:19:18 -0700 (PDT) Received: from SHUNQIAN-W530.example.org ([172.245.164.6]) by smtp.gmail.com with ESMTPSA id t66sm909894ioi.32.2015.08.10.23.19.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Aug 2015 23:19:17 -0700 (PDT) From: Shunqian Zheng To: gregkh@linuxfoundation.org, srinivas.kandagatla@linaro.org, maxime.ripard@free-electrons.com, heiko@sntech.de, caesar.wang@rock-chips.com Subject: [PATCH v1 4/5] Documentation: rockchip-efuse: describe the usage of eFuse Date: Tue, 11 Aug 2015 14:15:05 +0800 Message-Id: <1439273706-28274-5-git-send-email-zhengsq@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439273706-28274-1-git-send-email-zhengsq@rock-chips.com> References: <1439273706-28274-1-git-send-email-zhengsq@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150810_231939_371147_FFD3E602 X-CRM114-Status: GOOD ( 11.80 ) X-Spam-Score: -2.4 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, xjq@rock-chips.com, ZhengShunQian , dianders@chromium.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: ZhengShunQian This patch add the bindings document of rockchip eFuse driver. Signed-off-by: ZhengShunQian --- .../devicetree/bindings/nvmem/rockchip-efuse.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt diff --git a/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt new file mode 100644 index 0000000..8f86ab3 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/rockchip-efuse.txt @@ -0,0 +1,38 @@ += Rockchip eFuse device tree bindings = + +Required properties: +- compatible: Should be "rockchip,rockchip-efuse" +- reg: Should contain the registers location and exact eFuse size +- clocks: Should be the clock id of eFuse +- clock-names: Should be "pclk_efuse" + += Data cells = +Are child nodes of eFuse, bindings of which as described in +bindings/nvmem/nvmem.txt + +Example: + + efuse: efuse@ffb40000 { + compatible = "rockchip,rockchip-efuse"; + reg = <0xffb40000 0x20>; + #address-cells = <1>; + #size-cells = <1>; + clocks = <&cru PCLK_EFUSE256>; + clock-names = "pclk_efuse"; + + /* Data cells */ + cpu_leakage: cpu_leakage { + reg = <0x17 0x1>; + }; + }; + += Data consumers = +Are device nodes which consume nvmem data cells. + +Example: + + cpu_leakage { + ... + nvmem-cells = <&cpu_leakage>; + nvmem-cell-names = "cpu_leakage"; + };