Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1673790pxk; Fri, 2 Oct 2020 16:19:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvSGSE8/FT/3ks0fdo0WJPU9bw0bKK87fmNVIF+I2vhNWE5fQh5N+drP9KSDwG13wYdxYY X-Received: by 2002:a17:906:c444:: with SMTP id ck4mr4248649ejb.398.1601680746966; Fri, 02 Oct 2020 16:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601680746; cv=none; d=google.com; s=arc-20160816; b=yNLrQe/fGnj3/vANk5eul8M65YgMV+4EuYw8qTprY7kaNIMvH2HIG9+T0hM5H8ZU+j feMhA8oZq4RX9voENXiwNlAgspbP0VEXUBbhZudno+n4Gf+tCKqw6//U5i+Ey4yjazcs Giso+5tRBN0dkNRFuTPs9A8IVeF8AsKR+7Om3hpl1QCaRPsmZPyWuZNPkA1ScRLgtLsB giblxQ30mIUMueAf4AoNcebYIcw3QaQv/BdbA2VpvqFhmorUYN9YNtGeF/FaywZrqEt7 C5VDzG4eH0U1rUSgdlylCm5SyCTHgtYQn0V62c7KTLrTt4m4+1WdYMVSTcqgn34im7t2 3gJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=X7v0IguEkfr1cOBmK+SE8+7CIjedoZmEtVTfp5z8yVo=; b=sVBK3d7k0V1BswlymWMFqUxzZuHgdbrRHxcDTRF57eo0cD5qeZfleTydAFrOb72OES JKDFlMSEkAiVpdzp3U3wl1fBtSsQpYSdG0Hb7v5zsbDQxh6vJvEMPdtZ6grHJVeRxyT6 YimfcnsS2K8IOWs4JPALgKBf4lusyTJhLE+I4LdnqrYjBcE2B/e9l+aQYakCGtQibwas XrkYTo+bxboilh824bZPcmv4Icwo4rdnIqg4unW3HwTfiyPohF08y9QkYDwl32Wxmx1A /8oqK69G7c1C2ceVj/Xbq2MehCytpkScqNNJnUZXsHJnlUsOsLT+5IgaWQ7Bdjl6J9KD Ejvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FKIIGNm4; 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 q5si2047294eji.118.2020.10.02.16.18.44; Fri, 02 Oct 2020 16:19:06 -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=FKIIGNm4; 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 S1725446AbgJBXPI (ORCPT + 99 others); Fri, 2 Oct 2020 19:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbgJBXPF (ORCPT ); Fri, 2 Oct 2020 19:15:05 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9E10C0613E2 for ; Fri, 2 Oct 2020 16:15:03 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id b12so3797295lfp.9 for ; Fri, 02 Oct 2020 16:15:03 -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=X7v0IguEkfr1cOBmK+SE8+7CIjedoZmEtVTfp5z8yVo=; b=FKIIGNm4cuXzs5quW9CEsjwrBj/6hqBDlLAbYlhfvbbn90YZfqbXxeZnjcqGYHc2+P DmWhmHUaOnPKYLk5zeuEaxW74SuTqmoumQLo54K2124c58ju5tkmCzv5A856Ncmtf2pu 89vVhrcPGWaAoE7eOd9ckQ+014uVKwEoEbb54= 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=X7v0IguEkfr1cOBmK+SE8+7CIjedoZmEtVTfp5z8yVo=; b=eTQ9/u93zsMBTNDXM8wYH80hGvLHeKpCe2QHrgya8++5f7sc48r+OX9OO/qYk+QnWt BSeZ+oKkRgdjFRaYt3lA2dbv7m1/TV0ltuFOdL5HsGMoezc6XfXUSr45S0JLEVTow5AS 793hERVGWlQoVTkBZPilO7m+NVtx6ndxBHWgItfpMCFsS5PKsONqeGcjKF4yRPJzQLZ9 apJpJz4EE36w3AELLmYS8pVrSSJ8Wt7hpWJp+QKlV9A3t38hsaPWHE943Kr5cBl6esGf /cN50ADN3M31v/K7lLE5rtqAnEyJwbssqagxJMasNWDERsf8e87CPnOcfu4ygKqzUr3h Ltdw== X-Gm-Message-State: AOAM5319Xya0vjzIwZPTmurVt3F8AJ/sivNCF/Y7aYCSYRm0Fy1jnkBP oxivHNmP5Zpu5xEyB37GwXPnBCipatvaag== X-Received: by 2002:ac2:4db7:: with SMTP id h23mr1528061lfe.459.1601680501666; Fri, 02 Oct 2020 16:15:01 -0700 (PDT) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id a7sm759563lfl.56.2020.10.02.16.15.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Oct 2020 16:15:00 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id k25so2478094ljg.9 for ; Fri, 02 Oct 2020 16:15:00 -0700 (PDT) X-Received: by 2002:a2e:b4fc:: with SMTP id s28mr1247909ljm.305.1601680500013; Fri, 02 Oct 2020 16:15:00 -0700 (PDT) MIME-Version: 1.0 References: <20200929205807.2360405-1-evgreen@chromium.org> <20200929135741.1.I8b447ca96abfbef5f298d77350e6c9d1d18d00f6@changeid> In-Reply-To: From: Evan Green Date: Fri, 2 Oct 2020 16:14:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: nvmem: Add qcom,sc7180-qfprom compatible string To: Doug Anderson Cc: Rob Herring , Bjorn Andersson , Srinivas Kandagatla , Stephen Boyd , Andy Gross , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 2, 2020 at 3:20 PM Doug Anderson wrote: > > Hi, > > On Tue, Sep 29, 2020 at 1:58 PM Evan Green wrote: > > > > Add an SoC-specific compatible string so that data can be attached > > to it in the driver. > > > > Signed-off-by: Evan Green > > --- > > > > Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml > > index 59aca6d22ff9b..b16c8e6a8c23d 100644 > > --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml > > +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml > > @@ -14,7 +14,9 @@ allOf: > > > > properties: > > compatible: > > - const: qcom,qfprom > > + enum: > > + - qcom,qfprom > > + - qcom,sc7180-qfprom > > You don't want either/or. You want both. At the time Srinivas didn't > see the point of having the SoC-specific compatible string here, but > now that we have a reason for it maybe he'll be convinced? IMO you > essentially want: > > items: > - enum: > - qcom,apq8064-qfprom > - qcom,apq8084-qfprom > - qcom,msm8974-qfprom > - qcom,msm8916-qfprom > - qcom,msm8996-qfprom > - qcom,msm8998-qfprom > - qcom,qcs404-qfprom > - qcom,sc7180-qfprom > - qcom,sdm845-qfprom > - const: qcom,qfprom > > For some context: > That makes sense, thanks Doug. Srini, do you want me to go fix up all the various device trees to add the soc-compatible string, or just sc7180? (Also, don't forget about my other question about whether you still want the keepout stuff in the core at the cost of added complexity). -Evan > > -Doug > > > > > > reg: > > # If the QFPROM is read-only OS image then only the corrected region > > -- > > 2.26.2 > >