From patchwork Fri Mar 9 14:47:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 131120 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1078502lja; Fri, 9 Mar 2018 06:51:40 -0800 (PST) X-Google-Smtp-Source: AG47ELvokrtVNtgZvjuDPokAW7RjNGBYwP/1BBqUo/Pjt7jZMzvcQ+ypgezQl3Wpucb7tWWrC4yv X-Received: by 2002:a17:902:9a4a:: with SMTP id x10-v6mr20374600plv.256.1520607100038; Fri, 09 Mar 2018 06:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520607100; cv=none; d=google.com; s=arc-20160816; b=GHZcyL+hTW1LIzIXiXz46g7mlgM1dDAxY9Xyn3VXL1Vp17OFMrpIiVGXbNaoXvrE5+ 2jcTL9lnTQ8LeggTHgUipXRo+DQfoHWQszcvI3EHByk1yYS9m/VtM6ieiLuVtku+Tb6a dg2oYPzW7teIhAN8lOzM7U5AaTczKKmrjarlcmUj5DurK6EnY94f/iEyma6Ljk5WKVDd ZHmIpwzUYGryu7yZb3UUjiHCjmdiZPlg/+S2pbukMGkFP/LfiBRtrtSWCA9pU9mwy8Wq fJ3wVE9AaYKXde9PQcLKRwJQB/74grdzBS5O56JtH6BFrHleCzSYt9ZKm5/yspwzevc0 XmlA== 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=qpEYox52IfOO1r/zjGnj1eWI1ORkVK2L+qDQ0Z1/bM8=; b=iIemInwoIzem3g6sxhDnBfZcYOSjji+RtNrYR6HORGHdFWoLaPJUGkMtwWEFDQPRCN 4g9Qhq8Dj+xnqpgEKe8MUioaY6VOBQV+j0pzSYNkBEyIXlNBVZEsw/VoPTHgJ1DIZq00 ahjuq1KGZ0typjvrFmO4gpOCw41Qjmg1UUh/xQYHYo1z2a/mTJcDKLcOUGcCyf60YEvl S8Aso5HoP5b+MvOr7H3RxORvPkehYfq7Sw8e+O+yrGuur4BjAyntQE70mP+9VC2P7x8J AjvbUjEUAQA3+XEMyxtEpMqmp8DORz1P1iCRcITJq+Nvj/B1WYopLdSHNKMSSvEKexWI c+Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EM+F+jf4; 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 70-v6si988887ple.147.2018.03.09.06.51.39; Fri, 09 Mar 2018 06:51:40 -0800 (PST) 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=EM+F+jf4; 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 S932432AbeCIOvZ (ORCPT + 28 others); Fri, 9 Mar 2018 09:51:25 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:40656 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751161AbeCIOuz (ORCPT ); Fri, 9 Mar 2018 09:50:55 -0500 Received: by mail-wr0-f195.google.com with SMTP id o76so9267431wrb.7 for ; Fri, 09 Mar 2018 06:50:55 -0800 (PST) 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=qpEYox52IfOO1r/zjGnj1eWI1ORkVK2L+qDQ0Z1/bM8=; b=EM+F+jf4OA/j4WoisCl+1VD0dcPfJx+RBwgvAnKp2JFBi2fW7c2DGMqIiUrs80tCIp rbUsVARGF/9HXxpqZFlusTB+lTwsbb+r6G+77D0l+FB3/MdfQir3XvOlb9eAR3YCdRnb GZI50Txq/A61eX6ZbO/XHztwqAwBlmGOEec0Y= 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=qpEYox52IfOO1r/zjGnj1eWI1ORkVK2L+qDQ0Z1/bM8=; b=m+D9nZqRwy6efclS7YqOmhNPN2QddqKuaJSvd336m6pEgmFKws97uqY60UF31k9Ziy nwxuekFNGKl8gdbbKhCjaE0kXBOI0GYK765weVPj82VQkpfSFNMvOtpAkSanyQefA3d/ jenkBQX+eEA+3dn+kqzjNvgLmuLNcOWrB0ZV9QAarDvJaJrNNpha121Ifipf+K+VAU1H JqcpxIpdpvth11lMQnt7vsYO3Se3hUnWO1iUDguCsYJUM/Ifxmn3tYiJYpw+/xyOGFDw mPU+OUmAqzMYab+lutJgUkS1waZHTeDM7lA19CVCQnt4ItavA726tzp1UxihU8QgBNjx 2WXQ== X-Gm-Message-State: APf1xPC2BZ4rWHahjKg94MI3J6QVImr3wdKjBZwrRFBsjTFqkFOc40Zj Rp9JP1euqZEEoU7hMHa+SqFDS3HGWTc= X-Received: by 10.223.209.197 with SMTP id m5mr26277278wri.121.1520607054833; Fri, 09 Mar 2018 06:50:54 -0800 (PST) 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 u48sm1191901wrb.85.2018.03.09.06.50.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 06:50:54 -0800 (PST) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org, Dong Aisheng , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH 24/25] dt-bindings: nvmem: imx-ocotp: update the binding to reflect data cells Date: Fri, 9 Mar 2018 14:47:18 +0000 Message-Id: <20180309144719.29904-25-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180309144719.29904-1-srinivas.kandagatla@linaro.org> References: <20180309144719.29904-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: Dong Aisheng imx-ocotp is implemented based on nvmem which can have data cells as child node. Update the binding doc to reflect it to be more easily understood by users. Cc: Srinivas Kandagatla Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Signed-off-by: Dong Aisheng Acked-by: Shawn Guo Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/nvmem/imx-ocotp.txt | 23 ++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) -- 2.15.1 diff --git a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt index f162c72b4e36..729f6747813b 100644 --- a/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +++ b/Documentation/devicetree/bindings/nvmem/imx-ocotp.txt @@ -11,17 +11,32 @@ Required properties: "fsl,imx6ul-ocotp" (i.MX6UL), "fsl,imx7d-ocotp" (i.MX7D/S), followed by "syscon". +- #address-cells : Should be 1 +- #size-cells : Should be 1 - reg: Should contain the register base and length. - clocks: Should contain a phandle pointing to the gated peripheral clock. Optional properties: - read-only: disable write access -Example: +Optional Child nodes: + +- Data cells of ocotp: + Detailed bindings are described in bindings/nvmem/nvmem.txt +Example: ocotp: ocotp@21bc000 { - compatible = "fsl,imx6q-ocotp", "syscon"; + #address-cells = <1>; + #size-cells = <1>; + compatible = "fsl,imx6sx-ocotp", "syscon"; reg = <0x021bc000 0x4000>; - clocks = <&clks IMX6QDL_CLK_IIM>; - read-only; + clocks = <&clks IMX6SX_CLK_OCOTP>; + + tempmon_calib: calib@38 { + reg = <0x38 4>; + }; + + tempmon_temp_grade: temp-grade@20 { + reg = <0x20 4>; + }; };