From patchwork Wed Jul 11 10:20:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 141718 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp106642ljj; Wed, 11 Jul 2018 03:22:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpftURh0Tu1zyoQhWEtqnoeOvjcEyQRWMWs5yn9jTC6qHmU0X6H/zqK1gbMsRnSb2l44uCPf X-Received: by 2002:a63:614d:: with SMTP id v74-v6mr25774009pgb.328.1531304578263; Wed, 11 Jul 2018 03:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531304578; cv=none; d=google.com; s=arc-20160816; b=rsqgN5XpyKXJtkL+5W6sM9nMA5zNkhWrsYs0JRpiJUdlHP2IXna/MD/JnjImW8nzvr vtGd6CKmg2N06Wy3tPtytJPPjbHlNkpEsNwAEPLEdXR4eush7u8y2Ql+z7IYB/b6II/Z IM3rs4tx1nJ4gsKlYRtSimHaeIThadnzAZKb8EvwCm0rcbGQ2qXF54cKFACr1POzXqjU Zdaz1zuENCazvU715xd9nSC+fDFH3WjZjAVQ27km235uiBM3nkzz5VP8sfIvgUsqAWSJ B0taxOG2NkL0anRtQtDju/TXGlXN0jLsl+pwyRpKQnU0qAMkghTN84mAuPNuBSTvJ9+Z RTQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=7GoYzDLAtKHDNEwJP4P6UfHOpfVH9QvloZ3kY2/pwHQ=; b=Z1NIZowQTPm49ZHbkrxMAQ89dNnZ8M7coVKABdHFZkWIupkaKGKDiAVXIMitime7LO 73cYC/4O0GFIZMIzMiHsljyUDDiwoSdCX3smUAlrS/JCKxF/Gxdo15gy0xrvByJ6/0MI XIB107T1WNdZpbb78rycB4LzZiv0il8Bv8zWGYsobMmfpLWknju3dSzkBv4DpkFTUTou pqQc4H5mEGt7CVw0w15rKWqiqD5uwoJAiMmNWbFq4o94m3WpRZ55/z3fEvJ5bf51f6CR pysZxOof3sME0YIRK/fb+ElQzqLzvy35ru3P77r6jkghe9FJj4r94r0VqyXBLenAF/DU MdXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KCBCn4Xn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 r23-v6si17987571pgk.582.2018.07.11.03.22.58; Wed, 11 Jul 2018 03:22:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=KCBCn4Xn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1732254AbeGKK0c (ORCPT + 23 others); Wed, 11 Jul 2018 06:26:32 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54978 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726504AbeGKK0b (ORCPT ); Wed, 11 Jul 2018 06:26:31 -0400 Received: by mail-wm0-f66.google.com with SMTP id i139-v6so1886145wmf.4 for ; Wed, 11 Jul 2018 03:22:53 -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:in-reply-to:references; bh=7GoYzDLAtKHDNEwJP4P6UfHOpfVH9QvloZ3kY2/pwHQ=; b=KCBCn4XnxOFEOsS9fPdLLtc/urmSwi6/envSN1JfH+GIFVQH/PTIXncjs9zDXAqMVY j6k/uyIPbCDb/TPBO5r5knBHaW8Fp/T8OH0k8SHm8aSLs91PQtanuPdoOoZtPXj3MIxx JFPE3PK4/1HCbKVWmIVdIHq4I18voLtrx8YAw= 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:in-reply-to :references; bh=7GoYzDLAtKHDNEwJP4P6UfHOpfVH9QvloZ3kY2/pwHQ=; b=mQP1S0/uz6vBPpImd9hOSnqta0gi2f5Eh58RPuaWAVWicVicCz1Dkqhq419ohNtPgO 0/JPhzeqgUXmpyQTMgx7GT6ZLMNyguR9iw435Lg3BvGW1KvYtToa72j0k7UO+/nZcBp8 xL6AMBryZjoPItrgWFPWbOe56L8bGkdjAjno3RbBAGcN617oU06FLE15DIwuzEKAZNUO KUohhJ/t3JACNCB5uqn9RrI87ObwFHMN6xNFf2N7GBPbPk7i43bU4qVSNg7E5MtOqYP+ VCtxf9ohdeGiR/OEwTnVu5igL2tCbT8fCfKPN/COiU0QvyKQ5G6RsfHffJSSYces4NRX 9eFw== X-Gm-Message-State: APt69E0YdahHHB77NaKvNH57fOi5LzEwwqsMcObxr646L5yE7tn8PlGo ixKMOX3Dbba/WVxHIOiiRhB4Tg== X-Received: by 2002:a1c:f308:: with SMTP id q8-v6mr16212307wmq.6.1531304572937; Wed, 11 Jul 2018 03:22:52 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id 73-v6sm2462032wmu.37.2018.07.11.03.22.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Jul 2018 03:22:52 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org, Baolin Wang Subject: [PATCH 1/4] dt-bindings: nvmem: Add Spreadtrum SC27XX efuse controller documentation Date: Wed, 11 Jul 2018 11:20:40 +0100 Message-Id: <20180711102043.24079-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180711102043.24079-1-srinivas.kandagatla@linaro.org> References: <20180711102043.24079-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Baolin Wang This patch adds the binding documentation for Spreadtrum SC27XX series PMICs efuse controller device. Signed-off-by: Baolin Wang Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/sc27xx-efuse.txt | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/sc27xx-efuse.txt -- 2.16.2 diff --git a/Documentation/devicetree/bindings/nvmem/sc27xx-efuse.txt b/Documentation/devicetree/bindings/nvmem/sc27xx-efuse.txt new file mode 100644 index 000000000000..586c08286aa9 --- /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"; + };