Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2138531rwb; Thu, 27 Jul 2023 02:41:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlE2k2TprtL2B6GBirW6JBMZ0isTe+bWkBOmk8+YxWT0OuFAYi2Z46z2QN94/4OTVJCAxe0t X-Received: by 2002:a05:6a20:12d0:b0:138:198f:6edf with SMTP id v16-20020a056a2012d000b00138198f6edfmr6145233pzg.46.1690450866926; Thu, 27 Jul 2023 02:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690450866; cv=none; d=google.com; s=arc-20160816; b=WeuwSJiSrxIevP9Vblj40ZyDNRowDmdiF/jcnYsOi59zlJm3npKX0XFrymPtI/+FEB GnbxyanJHKWOti4uc0eEcG5bdIbawcFMALVh56SvGjPRDJ4GDHowAXjuL8dQ0jFe+y/j rrSKwdnJbc/xche4FKpI9r095XpB9ipBRqAc7gtyNSvkN7qy9akmXHI+mn52M0Wf8Ckp DHwaHtQZHiuE5jfXAG6BRHJ53QRHTwNu95YJAx7WXyY2uGKY1xEwn7teKSJe1AmgmZNL Pi6BTuhjFrIZhJ/aNz76ej+jnoS8r5dTwH62zv7o9TwCIltHZnC95HYdNQIW+YW+eX4y mbvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LckumSnhkivflKbnAkm9lDusQZZfojIqolca47VIsiI=; fh=tJJi0qkxvKQwq8NWWAgDuLVJTQNoMM+kwb1rl85BB7I=; b=Hs8rGYlXXRTF6UIM09RjcenBgY6TMBmxojy0KQK45CxEosRTKKljb2uubuKUFfnmK6 JBJ3RUC9tMVCgbT52a/sXKZTzoGJRoS2YlZP7zVb2xb5ZU6ZKZ8yzdaRmXaw7gJqWTyH fbBPAspK0RMONDPn/6S+1DpU4pWcew1DEDhHnXxMd3WqZM2kpxAli9HLLgdDGbiyNxDn SMpOvQQzHoXXPyoJb1dSRglXObV2C0WrlJzF8cUeWmGPGuuHfEUZi615hhs+uKMIsKJw gsHIM/HxY4+LM5APBAhBkaLUhQsqu8oB5nWgIWfmBLkkdLEKK0OyLQ55vVsUmSO0B5sl wnWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Y4lXNVqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 207-20020a6302d8000000b00563f8e5d42bsi1010017pgc.800.2023.07.27.02.40.54; Thu, 27 Jul 2023 02:41:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Y4lXNVqF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234040AbjG0JUq (ORCPT + 99 others); Thu, 27 Jul 2023 05:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233793AbjG0JUR (ORCPT ); Thu, 27 Jul 2023 05:20:17 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB30422A; Thu, 27 Jul 2023 02:10:38 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36R34e6m004788; Thu, 27 Jul 2023 09:10:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=qcppdkim1; bh=LckumSnhkivflKbnAkm9lDusQZZfojIqolca47VIsiI=; b=Y4lXNVqFzpHrxvB7Zyn49pObeVZHcYrymBA7QJ+jUWCjAQDORQe+wGLiV2zAYdWs3Otp SmduHMOWs4yYexGIQtLS1hsRpPRlPqnx24S6pvDKluq2hOAVxXiwt+8BKwvY0/tf7BYn SmypFmBO6mW3pcchC+OEJzxDacUEqh7IqB2F14VPJV7HiLFoRXt0VgE05tZBWotrVDA4 7b4P2s56jsQOiFaQj5Ilt22gc6ngJqUseVXRQ/7pkSkZ+r2oxOcVhBlptMbj6LCI4/af g9XqVvhHWJmKtuQX3cMVfISZD9zxfbIMfLAMlLpZKXxAjxfMLuqMC+LcbEiJ9FS0Agvi pA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s336t29t6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 09:10:34 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36R9AFtp008212 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 09:10:15 GMT Received: from hu-pkondeti-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 27 Jul 2023 02:09:44 -0700 Date: Thu, 27 Jul 2023 14:39:41 +0530 From: Pavan Kondeti To: Komal Bajaj CC: , , , , , , , , , Subject: Re: [PATCH v5 1/2] dt-bindings: nvmem: sec-qfprom: Add bindings for secure qfprom Message-ID: <33f2d056-e65d-4bc2-8a1b-bb5815752014@quicinc.com> References: <20230724083849.8277-1-quic_kbajaj@quicinc.com> <20230724083849.8277-2-quic_kbajaj@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230724083849.8277-2-quic_kbajaj@quicinc.com> X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ad-4Zcd3NQnhbtWhvuoIyPjP1a_X3ZAt X-Proofpoint-GUID: ad-4Zcd3NQnhbtWhvuoIyPjP1a_X3ZAt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-26_08,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 clxscore=1011 mlxlogscore=472 adultscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307270081 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 24, 2023 at 02:08:48PM +0530, Komal Bajaj wrote: > This patch adds bindings for secure qfprom found in QCOM SOCs. > Secure QFPROM driver is based on simple nvmem framework. > > Signed-off-by: Komal Bajaj > --- > .../bindings/nvmem/qcom,sec-qfprom.yaml | 58 +++++++++++++++++++ > 1 file changed, 58 insertions(+) > create mode 100644 Documentation/devicetree/bindings/nvmem/qcom,sec-qfprom.yaml > [...] > +$id: http://devicetree.org/schemas/nvmem/qcom,sec-qfprom.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Technologies Inc, Secure QFPROM Efuse > + > +maintainers: > + - Komal Bajaj > + > +description: | > + For some of the Qualcomm SoC's, it is possible that > + the qfprom region is protected from non-secure access. > + In such situations, linux will have to use secure calls > + to read the region. > + > +allOf: > + - $ref: nvmem.yaml# > + > +properties: > + compatible: > + items: > + - enum: > + - qcom,qdu1000-sec-qfprom > + - const: qcom,sec-qfprom > + > + reg: > + items: > + - description: The secure qfprom corrected region. > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + minor nitpick: Since this device does not have any clocks, the above header inclusion can be dropped. > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + efuse@221c8000 { > + compatible = "qcom,qdu1000-sec-qfprom", "qcom,sec-qfprom"; > + reg = <0 0x221c8000 0 0x1000>; > + #address-cells = <1>; > + #size-cells = <1>; > + > + multi_chan_ddr: multi-chan-ddr@12b { > + reg = <0x12b 0x1>; > + bits = <0 2>; > + }; > + }; > + }; > + Thanks, Pavan