Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp12698039ybl; Sat, 28 Dec 2019 19:02:35 -0800 (PST) X-Google-Smtp-Source: APXvYqyG4VQMd+AzUmbWyq1X0zmOuLnpfRZClOl0EwNMUe1lssQaGVohLz20f792toAD3JT9Tw11 X-Received: by 2002:aca:c692:: with SMTP id w140mr4924011oif.139.1577588555333; Sat, 28 Dec 2019 19:02:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577588555; cv=none; d=google.com; s=arc-20160816; b=Jl9U0VOoRD/l6bINqRPNIKMgqRjZJB9k2ogCful8YrPf6WExYgVLJEFvXShrKaKVOF zyf6oD3J7Lr6ji8TzTl0TqADKl4g1B5u7ZDwB/gLR2SVytAR9BTSSTQjUTp3r1MIwGso PBAHKY7X5+dk+gXjG3c7/+fPldq5MDMhjK9wfSuuZg/KIUJCdkvkx8V26m4nVr/4SboT /lNfKHDkqcqBAOplpWZnTZ33PkKURuwf/AoV02bq+LUSSfn6Ut/QXwM9yC32HGm5x0uK ad1bcXZsEf24kLZPRowk//XLOEwiAEiD5KdZcSh2rvEWAA7Pz0ABKs1KbSIyX9fqaAmn LgQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=otzAHEuQRQz5JEZyg1vitpEwm2qVyYHjx2AMIYobrWU=; b=qy4LDbpIf9cKH5ERmTwTP9V6CTmpEmHeCfPtkSUL3FzejR63IMETldbR8r+pVgkw4X ypuTHBFPg+JaoUG1ibGyHIW/NI+AQ78vYkgto6xqb31yu3BGBXfVWRDXRfGqm+i227Pe dPgKV4zYtgixXYxX1rZm7YbWCxbUItiRXL5n4s4UoyK9vAylpcn555QzHHkxWSvv9ien mXKqMf0Hj41mIlFqWvfHw3AgRG4RB0HbzxexC3D2kNe4ZnqEp8tDDI8RMMWdOiwh4pu5 M58J1Gz/MrgD9FT8LjeLPFOXpb938agsy8ovs5c3EjbBgDkex8zlArgkMJzmVXxrVtQ5 hIEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XrrMPzMc; 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 k84si17219538oib.46.2019.12.28.19.02.23; Sat, 28 Dec 2019 19:02:35 -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=XrrMPzMc; 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 S1726603AbfL2DBn (ORCPT + 99 others); Sat, 28 Dec 2019 22:01:43 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34832 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbfL2DBn (ORCPT ); Sat, 28 Dec 2019 22:01:43 -0500 Received: by mail-pg1-f196.google.com with SMTP id l24so16439949pgk.2 for ; Sat, 28 Dec 2019 19:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=otzAHEuQRQz5JEZyg1vitpEwm2qVyYHjx2AMIYobrWU=; b=XrrMPzMcmtar6QgFnxMt39dWC1wTvsaWWRW+osd5EWKZdaaGDC8Dwv2mlKiQK/X6d7 GOH6rW33UU+7iVy+U2wJ8AA7qCvFyR6jg1iC5Wg+6Xs52wUlm3bgvhrUXXa998pxzgaA t5/PONW0yAxoE6NI/uJbZvVFLHu7NnhYFOnCxmy5ulBYrQ3oaIOylK8MXclG8kfw0Byd wWtdEg5KEJRiqH+nqzIUfGTxCPmhuTt1Pr7hAxNeIx4nbLpgiYW8U+Zo0y7krpD5Qm7e zvodHOeMFH+nNmrG+psyB9IfUlC2rf/+TkV1QAfgYUU9Ndi4igWZoLY3tMCqHhOdg3iS n+8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=otzAHEuQRQz5JEZyg1vitpEwm2qVyYHjx2AMIYobrWU=; b=f6o+tTB12XXqoGYzswV7QMAUCi9CvJOV3z00oDcHfzFZKI/rU9D3VKK3M4K9Acszd3 AV+rz0YZFIRPmEXbGjKKoK1intVtZIei/sxGZl0GkQc5fGQV4060zSnhHN7uyEdIlMtM y4YQtj3nPg1oSzpTC+t/PAgvDxwG34fOcVEyjtv36OjdLDMvhi7wFLny2alrPwreLh2v z01Y/sQzER/LRjYtehevu2ay2LT7wR9/kUgqdh4tL/0otphZZIHsfwXdsnQDXgrLwGk3 YRZQxdzuckmIoK37eWtYsir0QQ/7LSh8yLjTf9DMDkxpuFldD5PRNbBtCWpiDtqs3JlX PD9A== X-Gm-Message-State: APjAAAVkuSCwRISLcDsq8asqIQc7RiW2EKsTQXo1j6thpDZ4dOZ3QmJS 4lj4Vy2ohMtoafUlGaK4QN6Z2Cip8gE= X-Received: by 2002:a63:5f45:: with SMTP id t66mr61831803pgb.198.1577588502803; Sat, 28 Dec 2019 19:01:42 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id g19sm46419995pfh.134.2019.12.28.19.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Dec 2019 19:01:42 -0800 (PST) Date: Sat, 28 Dec 2019 19:01:40 -0800 From: Bjorn Andersson To: Shyam Kumar Thella Cc: agross@kernel.org, srinivas.kandagatla@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: nvmem: add binding for QTI SPMI SDAM Message-ID: <20191229030140.GJ3755841@builder> References: <1577165532-28772-1-git-send-email-sthella@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1577165532-28772-1-git-send-email-sthella@codeaurora.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 23 Dec 21:32 PST 2019, Shyam Kumar Thella wrote: > QTI SDAM allows PMIC peripherals to access the shared memory that is > available on QTI PMICs. Add documentation for it. > > Signed-off-by: Shyam Kumar Thella > --- > .../devicetree/bindings/nvmem/qcom,spmi-sdam.yaml | 79 ++++++++++++++++++++++ > 1 file changed, 79 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml > > diff --git a/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml b/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml > new file mode 100644 > index 0000000..8961a99 > --- /dev/null > +++ b/Documentation/devicetree/bindings/nvmem/qcom,spmi-sdam.yaml > @@ -0,0 +1,79 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/nvmem/qcom,spmi-sdam.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Technologies, Inc. SPMI SDAM DT bindings > + > +maintainers: > + - Shyam Kumar Thella > + > +description: | > + The SDAM provides scratch register space for the PMIC clients. This > + memory can be used by software to store information or communicate > + to/from the PBUS. > + > +allOf: > + - $ref: "nvmem.yaml#" > + > +properties: > + compatible: > + enum: > + - qcom,spmi-sdam > + > + reg: > + maxItems: 1 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + > +patternProperties: > + "^.*@[0-9a-f]+$": > + type: object > + > + properties: > + reg: > + maxItems: 1 > + description: > + Offset and size in bytes within the storage device. > + > + bits: > + maxItems: 1 > + items: > + items: > + - minimum: 0 > + maximum: 7 > + description: > + Offset in bit within the address range specified by reg. > + - minimum: 1 > + description: > + Size in bit within the address range specified by reg. > + > + required: > + - reg > + > + additionalProperties: false > + > +examples: > + - | > + sdam_1: nvram@b000 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "qcom,spmi-sdam"; > + reg = <0xb000 0x100>; > + > + /* Data cells */ > + restart_reason: restart@50 { So this register has moved out of the PON register set? What component in the system is going to reference this? Should it have a compatible, in the same way as "syscon-reboot-mode" does? Regards, Bjorn > + reg = <0x50 0x1>; > + bits = <7 2>; > + }; > + }; > +... > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project