From patchwork Tue Sep 10 05:52:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 173436 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp5351924ilq; Mon, 9 Sep 2019 22:53:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXOgp/Rir23CjzREbEI+tcTwvUA6sBqOrqE+rEryCgwQUvtYkZNXJBit2ll+m5zVRnuvwi X-Received: by 2002:a50:c90c:: with SMTP id o12mr12259627edh.126.1568094784571; Mon, 09 Sep 2019 22:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568094784; cv=none; d=google.com; s=arc-20160816; b=YyppIUMfrvehWcvnEiWbP60h2NTNZZw7jFUfNfS/FSOhv9OKbpVRFQ6h8D22sqWkTA 1xcBvMlzBihwCQJu5Iiy0OI+EWiGVfk3WA6dkA9dKgpm+vlTSCxEkyUM2ADCSZApwrin +xLoehe2gFUjESC22UKWh0w4rc667igfeTshklmzoEAjQL3igaL0/zq+DvSvtlZcjg2f 7r4X0c3iF/7GOQqqyrc1fSBOZFCp5V5Crq/wWdVXb6YnKYW5yBxKVnuq7HH8IFG1LPr0 ELEE6yDJPOzQWMpbSUO7z4PCqXZCk1B50MieKRrcnIk13yulBD409iHNAwx0zsIEyun8 WkvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=QRoaigyAjs5h91B30G11QGcUasyv51Jz7B4F6B0hdm0=; b=wCyvOfxw41VFGUUmTQgM8Sa6XoCw0pikjJiGHRcQtP1C3n4NuCngvTn+19w4WFet5p k8hDae4D4QwiEspEtgUpEnzxuH1gJNWl6z87Eui83suDSvN5agI+oPYQt3pLPzWWILr6 fm0Er9t2qFH5A2SzHDuI8b4oaFuDsOAXDdTzDBmQaYa+yUbY5yqGiMfxcA8L5lOezeUa D/mH5QqW1yFsJsvOXvFR+Gt6dTnOf6/WaTZqXtrROkiNe0e8Phn7jLPfWU7rtIjUSp+q nZea4CfRD1kQTCD/QEYVh9yTTVKOuGeG0MAxwet5bEBmLjU+g6WNjQguez9QpOVykLvD f6Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SglGk7Cu; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dx9si8282571ejb.242.2019.09.09.22.53.03; Mon, 09 Sep 2019 22:53:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b=SglGk7Cu; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390578AbfIJFw6 (ORCPT + 8 others); Tue, 10 Sep 2019 01:52:58 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42316 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390488AbfIJFw6 (ORCPT ); Tue, 10 Sep 2019 01:52:58 -0400 Received: by mail-pg1-f195.google.com with SMTP id p3so9197598pgb.9 for ; Mon, 09 Sep 2019 22:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=QRoaigyAjs5h91B30G11QGcUasyv51Jz7B4F6B0hdm0=; b=SglGk7CuPhqxEI7xwpMa5d33F8KaDAKlwc8PlUqMt1NE+kj0qQaUz9UVK8/XFqmQDO pGBlSLD1YnX4ys1+tmh5OV7Q1/9Q08CnrEslUDRRa+tvs5iY1RxwM94K7xHsGSND91XL SzouiZjOpvzeE01FhCZq6QrIcnztIDEHk8oVpv1+d4iHik7HTtP6uhsGYX1M3d/xNAux 5X6hAk7Da9dTdS7hjERqpmmPZlCX0JQDCBa/xxaPG8na5/hyfHA4OOrPRrHJ5LgvsReN xocpsC8qUHiAEOMYRKACMSFEFlbody6Af8PjPFLU2yhuhqTeEFTz+tyJEdnqXAE3Y9x3 nwmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QRoaigyAjs5h91B30G11QGcUasyv51Jz7B4F6B0hdm0=; b=QPJDdHFuE5yW3rmnzHDnZpypt/vkrtvSJOQvRuBlZToHiSzev+qaT/cJ9z2vywPu2U xj0uvjn837LyRSB8ELo5r64fJ+9haKzMCfNiycDCIeQvD+JWhqpsKvO5Q3RJw90wFjD4 DAhI9B+41gwCA4RlZrJVJln7WQQpmz3BQsqHUeyQxio++7wuEOncYnxKNcHkS9DMfwTV f0nQVolLnxYVz+yAT9DQx9Rxg5pOvTVVcwXdgE5BVyEcEmdi7+f1lD9gQR1PX9OQZZkk 6sHnaH+Ng0noq2J1GTrL4HmBYD+0+cz5cIcgNjl0hptSiX9JdB+Cnaw97wh9X+ixL+Qe ZGVQ== X-Gm-Message-State: APjAAAU5ynxRx8Xc3OQ0ZmgduG5tFnrHPtHm89nRywHu/9JYj8z2PTpr ByzXA9Of6ohdL8ku3NmgXp1jnGTnvuXL/w== X-Received: by 2002:a63:2a87:: with SMTP id q129mr26549610pgq.101.1568094777634; Mon, 09 Sep 2019 22:52:57 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id w69sm22264550pgd.91.2019.09.09.22.52.53 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Sep 2019 22:52:56 -0700 (PDT) From: Baolin Wang To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, baolin.wang@linaro.org, freeman.liu@unisoc.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: nvmem: Add Spreadtrum eFuse controller documentation Date: Tue, 10 Sep 2019 13:52:22 +0800 Message-Id: <20f750aab0e16e45fa2d4e32843cee08395c7350.1568094534.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Freeman Liu This patch adds the binding documentation for Spreadtrum eFuse controller. Signed-off-by: Freeman Liu Signed-off-by: Baolin Wang Reviewed-by: Rob Herring --- Changes from v1: - Add reviewed tag from Rob. --- .../devicetree/bindings/nvmem/sprd-efuse.txt | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/sprd-efuse.txt -- 1.7.9.5 diff --git a/Documentation/devicetree/bindings/nvmem/sprd-efuse.txt b/Documentation/devicetree/bindings/nvmem/sprd-efuse.txt new file mode 100644 index 0000000..96b6fee --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/sprd-efuse.txt @@ -0,0 +1,39 @@ += Spreadtrum eFuse device tree bindings = + +Required properties: +- compatible: Should be "sprd,ums312-efuse". +- reg: Specify the address offset of efuse controller. +- clock-names: Should be "enable". +- clocks: The phandle and specifier referencing the controller's clock. +- hwlocks: Reference to a phandle of a hwlock provider node. + += Data cells = +Are child nodes of eFuse, bindings of which as described in +bindings/nvmem/nvmem.txt + +Example: + + ap_efuse: efuse@32240000 { + compatible = "sprd,ums312-efuse"; + reg = <0 0x32240000 0 0x10000>; + clock-names = "enable"; + hwlocks = <&hwlock 8>; + clocks = <&aonapb_gate CLK_EFUSE_EB>; + + /* Data cells */ + thermal_calib: calib@10 { + reg = <0x10 0x2>; + }; + }; + += Data consumers = +Are device nodes which consume nvmem data cells. + +Example: + + thermal { + ... + + nvmem-cells = <&thermal_calib>; + nvmem-cell-names = "calibration"; + };