From patchwork Mon Jun 25 06:31:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 139804 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3617194lji; Sun, 24 Jun 2018 23:32:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJn+1AIzJdeCXJ+MPf17fCrPbc1IFgt7yk2iSryDEat7NdhVBHEezyUhAH8mSxeJymYTyc9 X-Received: by 2002:a62:f206:: with SMTP id m6-v6mr11551239pfh.171.1529908337580; Sun, 24 Jun 2018 23:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529908337; cv=none; d=google.com; s=arc-20160816; b=TalqsRUw7NU3YtLL3kbgKo5DEgnrIRcLNZP4ZeBEr6qP82R8TvdCLfxZPVKSYXa9dz /HfcJxZTLRWJxs3XlMJKdyZlbkWG89L5m6zAZ5v54Yn3fht8RfIbryas8cbNDHZ5RGJs Prr+YMvCd+NlRcnyfsi2sr7OAGy7UwvGhULBy/f4z1ocu7sgNTzTTo0cRWq2aHDRFQtg /Z6r0irxZFI0TcZgAHyvTzS93p7mMOGHvh6UGreINzzbRokOKYPrURdsc3ryQi4MjYZ/ p0gx7D9OgO1DwVaRgB7qLB4q3zxRH2VLOOPKqa5FxgCG+sXtSOrZv+LdxCXYbpxh3Akj qR1w== 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:arc-authentication-results; bh=7ibt5izdS27zD37mj6ZWee6x3ei+sVjsgVMafRxy9Mk=; b=nXUcAz0+jSWXz4R1lR2iUzjQywpZM1SCZfTOPiv8z6Dnme+xT/KVxEEGJuVr6xfYwq P+lh42qMrRcVP0DeRqB5ZNZWJ/WA76gdzoY8aZtRJWmCPrmfd4vE/06r6UAaGi0urg7t YD97nm6jzSfI/9WXnvqXhPw4ZjmjXy9g7IHd9+UHYDjvAnTD29Sxh6SR5KVWAyJ6lME7 62rEK+XnkcUAeoqQFtvoy+mco6zR4D/GSK/xcQi2M+8O2yH4R2mTSdhqo2M0dV7V7L5g o/4FwYMbomjnQbf4gxDu4RgywHPO1B20WMHxZMYp1losI1VYOiQvk9at1O679Z3psl8H V1zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=INB5AQTs; 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=fail (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 140-v6si3369871pgd.19.2018.06.24.23.32.16; Sun, 24 Jun 2018 23:32:17 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=INB5AQTs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752252AbeFYGcP (ORCPT + 5 others); Mon, 25 Jun 2018 02:32:15 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:44219 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752218AbeFYGcO (ORCPT ); Mon, 25 Jun 2018 02:32:14 -0400 Received: by mail-pg0-f65.google.com with SMTP id b10-v6so1959034pgq.11 for ; Sun, 24 Jun 2018 23:32:14 -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=/UNu/CLhqFnzV9bQjqwHyQYU11lH5b2KA6eT6bzd3xk=; b=INB5AQTsw6NOqFOWiwkHlEm/g7p17Di9+t+wjztaz1W+HMygsfkecebcBMmN8ODwY6 CEiiT18R3glk3vINqrqL/A5XxmF4Pbg9/apcStxFEt8m9P0nhsjq5BSlNhJDcMmToKe/ 9S9UYlezL18OB+Oj5CMKfn2KhBcS/QjjLzzsI= 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=/UNu/CLhqFnzV9bQjqwHyQYU11lH5b2KA6eT6bzd3xk=; b=egma2m4q68pHiY2TqBR3mxA9lxH3D0uugJ6hofRxyRuc/Xo+od1HHbkUSiSDqpNUix 63ZXrlvTX3y+R8iJ/kP6lfFnzNzxwvYUijAtSSNb6q5rIpESvbUCwpjLrZI1gNNFxrVa Ro5xOeDeesZLatPEIFB6XE4WFPAkC0d7KczYsBiBwaPuCSb35eQOgaVA5pfRa3I/x8LV raiIAi3o02ExP8SPO2ee/bZYCj1ieczzZmc7hwyMd17zfs9Xn5aK/Xo1rKaobjN+7/rO 92XEAt/QfghvlGxIzTLzUw7ZYrECA8mqOU+aZ8EEsL/ond58/bhj/vB1G99ilim8rm5j zBMQ== X-Gm-Message-State: APt69E0r686gk8I6iM0DNeK6JsWULlQVjIXRdp4/q6h3P2e2a70wCvWT 26ky7rgQUtLbGo5GWzRwUNGkgw== X-Received: by 2002:a62:da07:: with SMTP id c7-v6mr11693878pfh.106.1529908334424; Sun, 24 Jun 2018 23:32:14 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id k15-v6sm20267911pfi.37.2018.06.24.23.32.10 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 24 Jun 2018 23:32:13 -0700 (PDT) From: Baolin Wang To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: broonie@kernel.org, freeman.liu@spreadtrum.com, baolin.wang@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: nvmem: Add Spreadtrum SC27XX efuse controller documentation Date: Mon, 25 Jun 2018 14:31:20 +0800 Message-Id: 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 This patch adds the binding documentation for Spreadtrum SC27XX series PMICs efuse controller device. Signed-off-by: Baolin Wang Reviewed-by: Rob Herring --- Changes since v1: - Add reviewed tag from Rob. --- .../devicetree/bindings/nvmem/sc27xx-efuse.txt | 52 ++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/sc27xx-efuse.txt -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/nvmem/sc27xx-efuse.txt b/Documentation/devicetree/bindings/nvmem/sc27xx-efuse.txt new file mode 100644 index 0000000..586c082 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/sc27xx-efuse.txt @@ -0,0 +1,52 @@ += Spreadtrum SC27XX PMIC eFuse device tree bindings = + +Required properties: +- compatible: Should be one of the following. + "sprd,sc2720-efuse" + "sprd,sc2721-efuse" + "sprd,sc2723-efuse" + "sprd,sc2730-efuse" + "sprd,sc2731-efuse" +- reg: Specify the address offset of efuse controller. +- 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: + + sc2731_pmic: pmic@0 { + compatible = "sprd,sc2731"; + reg = <0>; + spi-max-frequency = <26000000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + efuse@380 { + compatible = "sprd,sc2731-efuse"; + reg = <0x380>; + #address-cells = <1>; + #size-cells = <1>; + hwlocks = <&hwlock 12>; + + /* 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"; + };