Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp82619ybk; Tue, 12 May 2020 16:05:50 -0700 (PDT) X-Google-Smtp-Source: APiQypJo2WndQJ45zgNaE8EztGmIHY8UpQThDLl8KdIM5bIikO4xErkOvdCCLT1nfGORDt8klnHi X-Received: by 2002:a17:906:3198:: with SMTP id 24mr18666859ejy.39.1589324750368; Tue, 12 May 2020 16:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589324750; cv=none; d=google.com; s=arc-20160816; b=s9bYPpzi6U9dq4zTFNSRX5/VCuLgm7KEmrZMZK6zR728JugJ5nBvXCR9IMjweDj63z oBC2fzrop5BPphSRLobTBwYVY00WZSQMvp0tzzOFWtr0Pay2WHh6XL/CXeo7k14ws/bG OR+SCwl7IVYhJYD7ePgqFH1ve6NoOMyX/LiHbVqgrImHRQ5wTXnEM3eNJfTwXcTlub+/ eL5eCHPZ1tYnvEN8tSpZ205xbSABeRBPZyPAtOn7E8CHx/Nte1KpAzXEA3ggJRBVaQ6P J3WnoSERd47xA229EL2gIjbydN4lWBxICTVV1oc+MLbhFi6D7+j5cfaS2V9s8XU3hhUD 3y2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=H5FetxvGPLFWpsF7g0nhJxUni2v4MfzWKsEb+uV6F5g=; b=ECWDnz8J+6Qw3AuQyBGOEukCJBVh+BDY/sEC/joV3L/XLQKn/8IXd82GEVbldK7bEw P4tRi+ryJ3BAH3ue2KCDFJjtTK5xlsZ9QBEiKwytdsjeXSmvz5QgNBUsdT/NL7Ne9X20 HUXJde1B7a5Yq9/HaWD4rQ5blkOz39G5ItFuPjuJSRVQQ36TqTH0ratF32Iox1cuvXdC TCWBGYBMgN61kxqYCz6HONVXfdWoizyu/DZAyHKIt7czUOIv2NvT+tO50XnQzoaLL10y nHfW3+GOHncOvAFAd8KHN+TZKTEW0E3fF82n/4vYAEX/gBlOvWE6/1q+35YfXbel9Zc9 NM/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Vuwi+lAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si8122475ejr.170.2020.05.12.16.05.26; Tue, 12 May 2020 16:05:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Vuwi+lAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731367AbgELXDa (ORCPT + 99 others); Tue, 12 May 2020 19:03:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725938AbgELXDa (ORCPT ); Tue, 12 May 2020 19:03:30 -0400 Received: from mail-vk1-xa42.google.com (mail-vk1-xa42.google.com [IPv6:2607:f8b0:4864:20::a42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5B74C061A0C for ; Tue, 12 May 2020 16:03:29 -0700 (PDT) Received: by mail-vk1-xa42.google.com with SMTP id w188so3797018vkf.0 for ; Tue, 12 May 2020 16:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=H5FetxvGPLFWpsF7g0nhJxUni2v4MfzWKsEb+uV6F5g=; b=Vuwi+lAx5qAhG+ORwRRDlUSpm7T4YexVmx8bD0gPLnVVjYZvL3BNJcMQ2iWO4IfwCn R29kGOxoF0L/2YE19OWsp/s/2fAHmGjXUwFvWjbVG+mTmsqUnyNj9NwFzoGmSbPO0zI2 6orwbCaFgjpEMwMixF3eAx0GccTMbCDY13kn4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=H5FetxvGPLFWpsF7g0nhJxUni2v4MfzWKsEb+uV6F5g=; b=i4Kil7r+ITZsN0qYBxME5/OJ9XFNntbRIctY/Ren77MTU0Pr9gshUeN/ffcmSOc4IG MKq4cDP5v/NYZRhqDJydDrzHauVXSf+u0E8ywxp9rM6hSAWHkzL/6TQJG8PwEyfUXMmP 7ONKLXippGm4xLkvsNjEtXX6OiT1ndY3bjSxXgS7CSxpYZyfwOBEwi8Ph/6G714E3Ofl jJo1Ca8um2nmU5xxoDSEBs2/HN/MVqxEEl37LX9W+nogiUYo1hpmv09m/NzPQELS+Plb rCVG+FizfkwSbX8YOQYlcnFByAimOG7twHfrIFQEIyHoyzbWwPowXlNeR0aEyCq6nXMI uG9g== X-Gm-Message-State: AGi0PuYfgzBsK2Q0dwWwr4gyVJvPIjYTvKjQVd1xiunDUHvu+gNYpyVH AGQ6w9nznNLeLgY2UnQItaGAuKSa8xw= X-Received: by 2002:a1f:cd06:: with SMTP id d6mr18034092vkg.94.1589324608020; Tue, 12 May 2020 16:03:28 -0700 (PDT) Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com. [209.85.221.182]) by smtp.gmail.com with ESMTPSA id f16sm10907255uaq.3.2020.05.12.16.03.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 May 2020 16:03:27 -0700 (PDT) Received: by mail-vk1-f182.google.com with SMTP id v23so3773807vke.13 for ; Tue, 12 May 2020 16:03:27 -0700 (PDT) X-Received: by 2002:a1f:4e46:: with SMTP id c67mr7154245vkb.92.1589324606642; Tue, 12 May 2020 16:03:26 -0700 (PDT) MIME-Version: 1.0 References: <1589307480-27508-1-git-send-email-rbokka@codeaurora.org> <1589307480-27508-2-git-send-email-rbokka@codeaurora.org> In-Reply-To: <1589307480-27508-2-git-send-email-rbokka@codeaurora.org> From: Doug Anderson Date: Tue, 12 May 2020 16:03:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v1 1/3] dt-bindings: nvmem: Add devicetree bindings for qfprom-efuse To: Ravi Kumar Bokka Cc: Srinivas Kandagatla , Rob Herring , LKML , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rajendra Nayak , Sai Prakash Ranjan , dhavalp@codeaurora.org, mturney@codeaurora.org, sparate@codeaurora.org, c_rbokka@codeaurora.org, mkurumel@codeaurora.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, May 12, 2020 at 11:18 AM Ravi Kumar Bokka wrote: > > This patch adds dt-bindings document for qfprom-efuse controller. > > Signed-off-by: Ravi Kumar Bokka > --- > .../devicetree/bindings/nvmem/qfprom-efuse.yaml | 40 ++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/qfprom-efuse.yaml > > diff --git a/Documentation/devicetree/bindings/nvmem/qfprom-efuse.yaml b/Documentation/devicetree/bindings/nvmem/qfprom-efuse.yaml > new file mode 100644 > index 0000000..d262c99 > --- /dev/null > +++ b/Documentation/devicetree/bindings/nvmem/qfprom-efuse.yaml > @@ -0,0 +1,40 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/nvmem/qfprom-efuse.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Technologies Inc, QFPROM Efuse bindings > + > +maintainers: > + - Ravi Kumar Bokka > + > +allOf: > + - $ref: "nvmem.yaml#" > + > +properties: > + compatible: > + enum: > + - qcom,sc7180-qfprom-efuse > + > + reg: > + maxItems: 3 Instead of this, add descriptions for the 3 items. AKA: reg: items: - description: The base of the qfprom. - description: The start of the raw region. - description: The start of the mem region. ...but do you really need to break this down into 3 ranges? Why can't you just do: reg = <0 0x00780000 0 0x2100>; Then you really don't need any description and you'd just have: reg: maxItems: 1 > + Need something for clocks and clock-names, like: clocks: maxItems: 1 clock-names: items: - const: sec > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + > +examples: > + - | > + #include > + > + efuse@780000 { > + compatible = "qcom,sc7180-qfprom-efuse"; > + reg = <0 0x00780000 0 0x100>, > + <0 0x00780120 0 0x7a0>, > + <0 0x00782000 0 0x100>; > + clocks = <&gcc GCC_SEC_CTRL_CLK_SRC>; > + clock-names = "secclk"; nit: Folks usually don't like the names of clocks to end in "clk". We know it's a clock. Just name this "sec" or even a local name like "core".