From patchwork Tue Jun 12 05:24:01 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: 138287 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4896147lji; Mon, 11 Jun 2018 22:24:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJACelpY4VFn4t/PJg85+i7/b7pmaNoS0xvP4CNe/nVYfu91NkbS1dq9MuAtXgBmEZNd4wL X-Received: by 2002:a65:5086:: with SMTP id r6-v6mr1835310pgp.375.1528781059314; Mon, 11 Jun 2018 22:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528781059; cv=none; d=google.com; s=arc-20160816; b=Hn41i6XRXwe7NjZgDt5vQuadgnlCucje2RVe4eUKw5/FtYK4xcbGsO+z8+6C2wu5tR ETMAvMXZ0RVT3kmaYzrfq8NOB3qYl1dvvtzU9Swh8JIKxRvYYw9Zrg+5VSX2UhSRRwro ehAVmtinWk+r/iHOhba5CCFAJrAMSF0eQdEtiLSQDLEywcz6liAEGB7iR8/5xZTrFJQL YIvaLHoZ++mM7UdPQ68TRPiYUhWxh56v5gRW/szcN622mQHomdihyGNl7koTQUZhvlQH cMkPxr4Sz6bkc10fg7g0G6exqEFMgU8tySApeKbMUUgmOu5ayFwEv2PHz0wYWUvIc7I4 rWQQ== 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=bBWYrN0JiFxGPabouZU3UZWFmkYzM/nGTBM4h06eJOw=; b=liQtfhJtYdcHOGCpTYOHaHH6NvkGkvUTwHdZZ6b7N2Ktw7RGqP2TX4I5Bq70V6FOJ9 ggIHhNegvI88sbu5CWtJGaCbud6dqicV0eEFnFqtCl86rmQr7sgIlskIhfocJia3QPOV RBcyvR/OuJdYQKC2sctMUwqYHsoJTjlliI1W+NhIc65IzeEfJOnciaMIJRVAt9NgSICh MWsd80kENKO1pghgCL7wllAmuzZa/b6PS3yKaAVMnq+a70PMc8b48+Rj3qpLibwkAd6R yAWjSEKs/fYqfBQbc6EcYbkhdos6uVY57teQEGSjlbXm/dnOQ48fSZz8VJcYGQztmwit T9Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WxSPzW27; 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 d9-v6si41437pli.382.2018.06.11.22.24.19; Mon, 11 Jun 2018 22:24:19 -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=WxSPzW27; 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 S1753947AbeFLFYS (ORCPT + 5 others); Tue, 12 Jun 2018 01:24:18 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:39728 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753584AbeFLFYR (ORCPT ); Tue, 12 Jun 2018 01:24:17 -0400 Received: by mail-pf0-f196.google.com with SMTP id r11-v6so11468344pfl.6 for ; Mon, 11 Jun 2018 22:24:16 -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=SRMRyCV4JLWJqhTv7bH4yLcksq83VPIf24vS6U3lsnY=; b=WxSPzW27WMTi5jxVCaJM6b6X0nO3WmyiC/HDwacDsaihXOo+2tZDMHgpiAmDl4WAy1 HzuIdtDifuqSg9eZRqV5eSSoOeq6dwaKeNs5vYreL6P7z7gBI4YCtwngnV6EkMXr06hl S0Ih3EwDO7LjBjtSgvG32MlT+WusulhnKNNpk= 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=SRMRyCV4JLWJqhTv7bH4yLcksq83VPIf24vS6U3lsnY=; b=Hw/UYqNuHI0n6yZSh3TzTm45EAYIt2gFebzcmczPGgVhmxh8moXumWdsd65JIrZr5e DH+rfrfSMMiDkqJqLTz7FGSGsSvE1tjvVVo9sJ9/NDpftWAXsMlQi8OVJ9TdQNCt9Rqe SEsUe56xFmaBPvEAeIAd17l35P+euhcYc2NYwttzPmAD9VwU0QlAsoaqdbEIUVf6wsIf n+abGdjs8DNtuR9ODF6Eq8QJbGUr2UGqMSMXAX0SVFqsn8XN15xEtaWBh7vMoN5CgqLj j+9XD7erDdUIe45caBsPvWh3MTedpXZyXO1Fla5VDxR7retVhzXwJl6qIWHM9xOeWceZ uBzw== X-Gm-Message-State: APt69E1YqmrnYYwRef/KEJgV6wgVBoXKHAChoX+IV6IfiUwbcxw45iyW ZNxQHdDM5sLluCXhKCB93qLegA== X-Received: by 2002:a62:d9c5:: with SMTP id b66-v6mr2244637pfl.41.1528781056659; Mon, 11 Jun 2018 22:24:16 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id y17-v6sm140311pfe.33.2018.06.11.22.24.14 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Jun 2018 22:24:16 -0700 (PDT) From: Baolin Wang To: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: baolin.wang@linaro.org, broonie@kernel.org, freeman.liu@spreadtrum.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: nvmem: Add Spreadtrum SC27XX efuse controller documentation Date: Tue, 12 Jun 2018 13:24:01 +0800 Message-Id: <0a5444dd0646f4e1f1d8ce51870afe6cc864219e.1528780670.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 This patch adds the binding documentation for Spreadtrum SC27XX series PMICs efuse controller device. Signed-off-by: Baolin Wang --- .../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 Reviewed-by: Rob Herring 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"; + };