From patchwork Tue Aug 11 10:13:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shunqian Zheng X-Patchwork-Id: 6991101 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E49259F358 for ; Tue, 11 Aug 2015 10:14:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 230872064F for ; Tue, 11 Aug 2015 10:14:53 +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 3AC4120643 for ; Tue, 11 Aug 2015 10:14:52 +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 1ZP6a3-0005Kt-Pg; Tue, 11 Aug 2015 10:14:51 +0000 Received: from mail-qk0-f196.google.com ([209.85.220.196]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZP6a0-000537-BM for linux-rockchip@lists.infradead.org; Tue, 11 Aug 2015 10:14:49 +0000 Received: by qkcs67 with SMTP id s67so5057009qkc.0 for ; Tue, 11 Aug 2015 03:14:27 -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=OcGTOQEGVLzZRNPdkDwR9uB6naMmU1OQblEpKPDaMfw=; b=ShXTjJymPRu8Qj5YI4Vw/A56dZI4N1KtIh+cd6i/TZ/qW3Z5uzH4HK1fCTeKfyaA6O iPmpVs8XtZRnUyvHNoOxFV9wFkoL+r2pLn5eGyujWNUCJrPyta2dUJC7uZG/DK2iyOYG AAsZkkdA+7y2oAMd44i1F/N2JmJhuFE4j3ecHpUFtcNRbofFiVn0RkkSMDKQrffh1vLa ES/AIDeULAMYIk+giq9MYqeMZulZGuomp7K5tUY/JWprgLQ0ALwkBYkDtAVLEeMgrHb7 TIKLdeVscE5Ulj/3feOqV0csbsiDrdeI9GIf4jTCpkpAQKnrZHN2UL2dbnkC0MipmcnS VFrA== X-Received: by 10.55.15.228 with SMTP id 97mr47439018qkp.18.1439288067065; Tue, 11 Aug 2015 03:14:27 -0700 (PDT) Received: from SHUNQIAN-W530.example.org ([173.239.41.26]) by smtp.gmail.com with ESMTPSA id l125sm863220qhl.15.2015.08.11.03.14.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Aug 2015 03:14:26 -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 v2 4/5] Documentation: rockchip-efuse: describe the usage of eFuse Date: Tue, 11 Aug 2015 18:13:43 +0800 Message-Id: <1439288024-13359-5-git-send-email-zhengsq@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439288024-13359-1-git-send-email-zhengsq@rock-chips.com> References: <1439288024-13359-1-git-send-email-zhengsq@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150811_031448_552573_661C9234 X-CRM114-Status: GOOD ( 11.62 ) 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: mturquette@baylibre.com, sboyd@codeaurora.org, linux-kernel@vger.kernel.org, dianders@chromium.org, linux-rockchip@lists.infradead.org, xjq@rock-chips.com, ZhengShunQian , linux-clk@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. Cc: Srinivas Kandagatla Cc: Heiko Stuebner 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"; + };