From patchwork Tue Oct 29 11:42:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 178020 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4746691ill; Tue, 29 Oct 2019 04:44:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwy3XgrWXMWYMjYeWfh60X+tjc/Igdstr74tTxaCxEJl1OfYVXLUmN9BoM35fGC6o3QoNkY X-Received: by 2002:a17:906:bcfb:: with SMTP id op27mr2820810ejb.59.1572349445654; Tue, 29 Oct 2019 04:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572349445; cv=none; d=google.com; s=arc-20160816; b=Tx2AxPrn9jRR/hkXkS1WAohfK98qtiyQqQqJKorOS4odkfQuU0JP2CBEePUdK3QnjM iw3DF7o/0nGhJUAnTk4RzfVmgTxvEjzCTTVsRRH8R+2J4HoITalVxyivRkZWW1wASJO5 B1DJxO3YfQgijMCuVgvpqlSb6/83Sqc1xvwIlZXax7XoTl3yYBrkJuuc0FQqHaaqol5M CxF2wnuQSXam8ZUix+s8hFy4yAMdsMDzPRIlBFzNYnUAfgkFRAeR1SltS7ckOwLLphCq mQA0QiHRiFAVQn2pha6QXwBVGTH84h7HaaOY3wUP/9AkjsD8gceNHc7dlisMKNjRAzf9 ItwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Va6MSqjXMXOuH0/T0+D19S3ciaF7zVif/RgFuA01Sso=; b=nTT5j3kHbUCGHww+THnXoBskUv6F3YqAbkqTIKBCQZ1WYYsrkbsb9D4LnbKcSrS3zl kiD48ulyJrVJ8kiJzE/L9KY8zWvx8ZNCDtfTUGC6XdFXlbKvzd+NWm10S1BvDPSoD8qc 96+WR/veJcenFqHfPQ80L6nw/8vXCBM/ApkC8GGiG2n4P6u2YMeZ0uF0RrMPr5IKKX8j Di9GLzCh/VHuCp8zc19yhzYAZXauaov6k3scd8MAovMfsMpAQvrGmIncwOV0xX9I4ISk BQipNiXH+LMkVZl7DNTzjUcgSZlX/ECwzyQw0tKJfXHFu2NY5S9ev6Qjf6CGS/6ExCXS /rhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=va5cB1Zk; 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 v6si10346937edi.308.2019.10.29.04.44.05; Tue, 29 Oct 2019 04:44:05 -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=va5cB1Zk; 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 S2387777AbfJ2LoE (ORCPT + 26 others); Tue, 29 Oct 2019 07:44:04 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:34403 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732753AbfJ2Lnl (ORCPT ); Tue, 29 Oct 2019 07:43:41 -0400 Received: by mail-wm1-f66.google.com with SMTP id v3so1797180wmh.1 for ; Tue, 29 Oct 2019 04:43:40 -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 :mime-version:content-transfer-encoding; bh=Va6MSqjXMXOuH0/T0+D19S3ciaF7zVif/RgFuA01Sso=; b=va5cB1ZklVNGl3C12ght31B13O5YkcCeJWs0i9v0xC8laA4F4Og/WthKoO00k8ZqKO qC+/nx2544Jb1mkZL7x7o8T7RucpNp0IQDxN0PSeXqEoYAAb2KxZF+Y4Oide8h2v4oim +33SAaifLx8lgHs27Uqd3d0fpBEZ5hjgQWT/vsK2tpec5Re4TgmUfp9XgEGKOf7w39jT Io8nWOkZh1LFfQN7fbjJ8TDCLhRK7ogOAL88orEZEjZxf38nXupEd3hh2IbwVc9C8YzD FRZmPrNCZWY8BzpLQIEVnSBnp9j4QF71Q02uVptbORMyP/N/sAfIoTN/69ux1KS29gMS RGOg== 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:mime-version:content-transfer-encoding; bh=Va6MSqjXMXOuH0/T0+D19S3ciaF7zVif/RgFuA01Sso=; b=S36SfIU2Dyb8f2uPtPzKMsTg8zMj08ETlRM2Mq8AcFcaGl+DzioVQ/e9CCLDCvxXFe Akqx4+Ny7Myr0ezeuUlzjeW4CdlGxXJ1ReHwHV++45yM/ep1jMuztJZxqhD5hA2Rr1eq /NEJptMTTCxm6VNgDv+tor2p4JI4o+7E+hJ00i8BWYNkYlFRL+LjKNtyuq71prZkBhB0 KyubAGJ+DrIi7ZHGYt8h4T2i49DuF6rcFF4XYpjXSsXwAd8W4lomkGB2v5pNRyz8lEjc DLSJZEobjC82/Gg87xne0O+NoGOrYIli/sOFKzCxBuWv3Qulwhww9d0w+I7IB6/bZHTp bkaw== X-Gm-Message-State: APjAAAVTjy9XKcldQplJzMLG+nes1rvhsY7hawJD3Mmosyb9fA1Yppqq gezV46FZGkrcQskten8bFbVbsQ== X-Received: by 2002:a1c:7911:: with SMTP id l17mr3658550wme.21.1572349419351; Tue, 29 Oct 2019 04:43:39 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id q25sm26559864wra.3.2019.10.29.04.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 04:43:38 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Freeman Liu , Baolin Wang , Rob Herring , Srinivas Kandagatla Subject: [PATCH 06/10] dt-bindings: nvmem: Add Spreadtrum eFuse controller documentation Date: Tue, 29 Oct 2019 11:42:36 +0000 Message-Id: <20191029114240.14905-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191029114240.14905-1-srinivas.kandagatla@linaro.org> References: <20191029114240.14905-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/sprd-efuse.txt | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/sprd-efuse.txt -- 2.21.0 diff --git a/Documentation/devicetree/bindings/nvmem/sprd-efuse.txt b/Documentation/devicetree/bindings/nvmem/sprd-efuse.txt new file mode 100644 index 000000000000..96b6feec27f0 --- /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"; + };