From patchwork Fri Aug 16 11:44:16 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: 171469 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp756263ily; Fri, 16 Aug 2019 04:44:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSlZkN5jf6hY4wVBqmsKDi4svP78hGd55rmzI1oLVcziiJ55BwrN4RAJa4L+gBHXl97L4Y X-Received: by 2002:a63:121b:: with SMTP id h27mr7419562pgl.335.1565955883673; Fri, 16 Aug 2019 04:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565955883; cv=none; d=google.com; s=arc-20160816; b=nGMHSHoe4eNIR1EV2+k0I2WS3Kx9LIvP0V6M88mN/dLK1bR2oF5xQlgLY6wcu3bFK9 69SqUp1BmyB7t0YmH+Et7TqB0zEEX4QW5OmgkzZTBjFqsO3dKSGnsxRx75q9oeINov0K DwL+wMPx0pqwyFIbkYJi+JMzg6O6qSAFEGj56JikM+lnLUXOuEl1IS9Q/Q/WV9kiRm4h sEIAH96j4O85wqgYYyz+Fwy7Civ7oOUO8W2nmsyTnGDeR9x4ahrf7vtzQ57Lu5vboLg2 aPRPuak/g8ZOb7VzJKXRmYWOM96P3NJSKZ+AhDaQNmrsCFg/7r3VKGCdzI4HpIfWvcrA Lp1A== 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=Dgm6VT8fTmmCb1jZnEdSW+leRgGmCydPnLOI7W3wDlI=; b=F79JDr+vY34wnnFR5SVWpCjoZ7kOjkUs1ZWQIFBsMxvz4HC4LTifsIxbwK+ULmnYHz ToQzD30lhd43xO6+nQEXHbAcTWT2tC2kzLe7Nzguyh5k2GqGdwR/PwcL922xI3CqYG59 XEgz1Xdneedw09iRT+I1Yh4d3WJ+GCs8ZiiGXGIIbOPSIoZnO044/fN7uPll3D4QR/SZ JaU21R5aYTiLahwoahsFKA/RyYUJ61bAgZGEk1f+7E9eXdEQ6mAfdkEQOxceK3WIIKeh OCneGQ47RLPQy188/hY/Z3mKeEYIWjzDifb34/AoNpXZce/zp9E7CvB3eH38vtO+zCjM Yw8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N1niofBk; 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 l28si3683495pgm.311.2019.08.16.04.44.43; Fri, 16 Aug 2019 04:44:43 -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=N1niofBk; 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 S1727007AbfHPLon (ORCPT + 8 others); Fri, 16 Aug 2019 07:44:43 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40639 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbfHPLom (ORCPT ); Fri, 16 Aug 2019 07:44:42 -0400 Received: by mail-pl1-f193.google.com with SMTP id a93so2366098pla.7 for ; Fri, 16 Aug 2019 04:44:42 -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=Dgm6VT8fTmmCb1jZnEdSW+leRgGmCydPnLOI7W3wDlI=; b=N1niofBkE6D2I0syRjQZNDQD+QG1NnGlLTO1FvgUnskj2HhRzVPZMqKp2GO/Fq7oRG sBe7bvSUvHXuQMg7nRGg4MpN06IcAgnktpN/UMDveI7dzz/f7D7KfwaZH+gv0VFThGqb jFGURPxxDqKA0rjA9t0tqca11eXl1q5DHLf84jTMopb3VMsKKRAovR+78tmKDANXnc+T pjocQbXPaeqR3MvJY8Dl2LJ1Xkht890homiEa5+U7wlMQyL7TIxV9YzCpC7OK2a5tY6s nBxhdl1gXFuIMpfEiqdKEMM9Iu+aYK9YwONzgLAifR1fyewFXcgsa2d8YelJxdb/7S4t FV9w== 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=Dgm6VT8fTmmCb1jZnEdSW+leRgGmCydPnLOI7W3wDlI=; b=i1ogt5hOnxVQRfD7serYqoCCk/rs2lQIk+FKtkQa3xXAd6DH+rjcVORUO3JhfoaMTx eYxduZoVnplndWKxZeb9M2pCADGLbjbskfA/smR+J831cHXRDHSDaSHJ3y64VavsZQbQ P22tHld0y6+XWzkuri1otb6uEz26kVxLtZM33+4L7LGEz715xidcWqNYsqD5oc9/GWbN ctYW9NbNUaPEAgiarb63U5pVdElqdyBIGCRKCW/3KNFcMSZdQX6g3CnZYN9xXFjFleVT 282J9tbpjwCsaQGKwXHDa4cnOgQrrNw5dHgCxqd/hc3w5XYdCj2ZTMgpoV9oYZO4tC97 uToA== X-Gm-Message-State: APjAAAWqg1aTNkAZL3J36+1CeTN+TWKHj8WlSmj83l68eVzE1nl6DDlp Zt65m/BMVzldTDfl3dTQFJ6abQ== X-Received: by 2002:a17:902:5a1:: with SMTP id f30mr9045760plf.64.1565955882050; Fri, 16 Aug 2019 04:44:42 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id v22sm4693952pgk.69.2019.08.16.04.44.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 Aug 2019 04:44:41 -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 1/2] dt-bindings: nvmem: Add Spreadtrum eFuse controller documentation Date: Fri, 16 Aug 2019 19:44:16 +0800 Message-Id: <80b6cf41d2dc2660a710e611e06faae753e2e09a.1565955745.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 --- .../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 Reviewed-by: Rob Herring 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"; + };