Message ID | 1589f33deda07cb9f9e6c3c26bce6e02e53c168e.1679403696.git.quic_schowdhu@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1798960wrt; Tue, 21 Mar 2023 07:09:14 -0700 (PDT) X-Google-Smtp-Source: AK7set9NUPGTJqecNTqk64xf38dFfAgOqJxBnj5/loBf1Cje20wzCop66968VdiazChHK/JejGDt X-Received: by 2002:a05:6870:b6a6:b0:177:c72a:a9e9 with SMTP id cy38-20020a056870b6a600b00177c72aa9e9mr1385281oab.18.1679407754092; Tue, 21 Mar 2023 07:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679407754; cv=none; d=google.com; s=arc-20160816; b=MpT5RDm8zQyvSqhTZdu5apTVAn3lPjAi40wT7x5qbQmrciVGZlOOL/FhYIpfynVDnY Dxz0tV1GZxWndc10vqiHqKUwU71PNKlQWfg/oKifygZINzApKpfyEhNcnJrxvcEzx52V dqcVCuF0t9DSGEsC1dPpzDF8gpRUxcS5WTwmgqG/CWivr2kpOgBdZHw2v7iPYG7hEtuQ VrXKfrLALxxJPZMRhsaJTm4B24kr7e+iaxNHdCew+4SOPXvmpdXT0ulx1Ek1xj6Epc5U nPfnGVAaK/q2Oc5geZi5H3Uz9w6rINUbDTXT45QWFjrbHBkJQCdpPae2Up6X+quPP5Se RYSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=e9T7n9fbYXhZz/J9ZMJRMQ4mCsotySzlW80aRDHI0nc=; b=kSaPofjDI1Wp+7H9b9LpUYAHCIBd6GXjmXPlDBw2ni/cZJp83hjJf93KsGoD+j/e4i lrHXY0a9uuJFccZANotRNHIhi8LVQAi6nH+cW+Gi+Q8Ful8IXPQeFPJ1YPMVnBL7b9R2 q64h8nytJndGGldlvoW6rCcUCZYqcugQwB9TKxsDDkJLMBC8ZB6rf6CMLbZ2qKAHyJGe pEOjQZWreGuHzbMNa6hs6KPYP4VvEYHEDZmnKhg1+735hQA0FmhHUsM9FH0Go65x348T 5tEYZvus36MHPrK/5rGZ6KIymna3C44LrYZgwUPBAdGVTJdFhihG3gfQgwnT405VF7tI Egcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DKbdQ5oW; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i11-20020a056870344b00b0016de7fb2eecsi10817434oah.335.2023.03.21.07.09.00; Tue, 21 Mar 2023 07:09:14 -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=DKbdQ5oW; 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 S231313AbjCUNxb (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Tue, 21 Mar 2023 09:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231286AbjCUNxZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Mar 2023 09:53:25 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 987AA42BDA; Tue, 21 Mar 2023 06:53:13 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32LDK4tc014283; Tue, 21 Mar 2023 13:52:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=e9T7n9fbYXhZz/J9ZMJRMQ4mCsotySzlW80aRDHI0nc=; b=DKbdQ5oW/cZosU934ogxTlVADWMYaXASyPLYk3/ZHAEXJ4cnjdMqUzUKcXRigd0ffEjd Ri6eRFQIynN4TtYK86UK+DrM37VvIVFwjCyaoxCD+ke7778RiLVu8Mx+IGymd/AmFZTE 26nUyL80lhKWU2H6Qam9arAB3PSmU4qj1YsbBHYERJI30m6lOwXh9lmUdmbgCNM2hJ52 VjnD3WnmYldSRy2m4mGTGhAXNbe4VWwrR8aUKZoaslpWONHD+kZRXddV2Dq5CbCM4cE+ AtPIYYFoRa2dPUEwsEbxPFy8XvhPte5wuidKtraafv8XRzD9V7QjlVrD1OeBZ6b53ee4 jw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3pfdc403hy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Mar 2023 13:52:59 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 32LDqwkh020309 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Mar 2023 13:52:58 GMT Received: from blr-ubuntu-525.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.986.41; Tue, 21 Mar 2023 06:52:54 -0700 From: Souradeep Chowdhury <quic_schowdhu@quicinc.com> To: Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Bjorn Andersson <andersson@kernel.org>, Rob Herring <robh+dt@kernel.org> CC: <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, Sibi Sankar <quic_sibis@quicinc.com>, Rajendra Nayak <quic_rjendra@quicinc.com>, Souradeep Chowdhury <quic_schowdhu@quicinc.com> Subject: [PATCH V1 1/4] dt-bindings: sram: qcom,imem: Add Boot Stat region within IMEM Date: Tue, 21 Mar 2023 19:21:48 +0530 Message-ID: <1589f33deda07cb9f9e6c3c26bce6e02e53c168e.1679403696.git.quic_schowdhu@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <cover.1679403696.git.quic_schowdhu@quicinc.com> References: <cover.1679403696.git.quic_schowdhu@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: 1T4j04oQO0fzXfMOLEYdcwmVwn3K3TS7 X-Proofpoint-ORIG-GUID: 1T4j04oQO0fzXfMOLEYdcwmVwn3K3TS7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-21_10,2023-03-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 mlxscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 suspectscore=0 priorityscore=1501 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303150002 definitions=main-2303210108 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760986664780899316?= X-GMAIL-MSGID: =?utf-8?q?1760986664780899316?= |
Series |
soc: qcom: boot_stats: Add driver support for boot_stats
|
|
Commit Message
Souradeep Chowdhury
March 21, 2023, 1:51 p.m. UTC
All Qualcomm bootloaders log useful timestamp information related
to bootloader stats in the IMEM region. Add the child node within
IMEM for the boot stat region containing register address and
compatible string.
Signed-off-by: Souradeep Chowdhury <quic_schowdhu@quicinc.com>
---
.../devicetree/bindings/sram/qcom,imem.yaml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
Comments
On 21/03/2023 14:51, Souradeep Chowdhury wrote: > All Qualcomm bootloaders log useful timestamp information related > to bootloader stats in the IMEM region. Add the child node within > IMEM for the boot stat region containing register address and > compatible string. > > Signed-off-by: Souradeep Chowdhury <quic_schowdhu@quicinc.com> > --- > .../devicetree/bindings/sram/qcom,imem.yaml | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicetree/bindings/sram/qcom,imem.yaml > index 665c06e..c8c3890 100644 > --- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml > +++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml > @@ -48,6 +48,26 @@ patternProperties: > $ref: /schemas/remoteproc/qcom,pil-info.yaml# > description: Peripheral image loader relocation region > > + "^boot-stat@[0-9a-f]+$": > + type: object > + description: > + node for boot stat. This basically copies the name of node, so not really helpful. Describe what's this. > + additionalProperties: false > + properties: > + compatible: > + items: Drop items. > + - const: qcom,imem-boot_stats No underscores in compatibles. Why this is not SoC specific compatible? > + > + reg: > + maxItems: 1 > + description: > + The base address of the register region in case of > + imem boot stats. Drop description, it's obvious. > + > + required: > + - compatible > + - reg > + Best regards, Krzysztof
On 3/21/2023 11:01 PM, Krzysztof Kozlowski wrote: > On 21/03/2023 14:51, Souradeep Chowdhury wrote: >> All Qualcomm bootloaders log useful timestamp information related >> to bootloader stats in the IMEM region. Add the child node within >> IMEM for the boot stat region containing register address and >> compatible string. >> >> Signed-off-by: Souradeep Chowdhury <quic_schowdhu@quicinc.com> >> --- >> .../devicetree/bindings/sram/qcom,imem.yaml | 20 ++++++++++++++++++++ >> 1 file changed, 20 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicetree/bindings/sram/qcom,imem.yaml >> index 665c06e..c8c3890 100644 >> --- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml >> +++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml >> @@ -48,6 +48,26 @@ patternProperties: >> $ref: /schemas/remoteproc/qcom,pil-info.yaml# >> description: Peripheral image loader relocation region >> >> + "^boot-stat@[0-9a-f]+$": >> + type: object >> + description: >> + node for boot stat. > > This basically copies the name of node, so not really helpful. Describe > what's this. Ack > >> + > > additionalProperties: false > >> + properties: >> + compatible: >> + items: > > Drop items. > >> + - const: qcom,imem-boot_stats > > No underscores in compatibles. Why this is not SoC specific compatible? Ack. The boot_stats module is not specific to a device. It is written to read some values from this imem region which is present for almost all QCOM SoCs. So SoC specific compatible is not given in this case. > >> + >> + reg: >> + maxItems: 1 >> + description: >> + The base address of the register region in case of >> + imem boot stats. > > Drop description, it's obvious. Ack >> + >> + required: >> + - compatible >> + - reg >> + > Best regards, > Krzysztof >
On 22/03/2023 14:34, Souradeep Chowdhury wrote: >> >>> + - const: qcom,imem-boot_stats >> >> No underscores in compatibles. Why this is not SoC specific compatible? > > Ack. The boot_stats module is not specific to a device. It is written to > read some values from this imem region which is present for almost all > QCOM SoCs. So SoC specific compatible is not given in this case. Yeah, but the generic rule is that we always want SoC specific compatibles. If this is not specific to a device, then you do not need anything in DT and just instantiate it from some soc-driver... Best regards, Krzysztof
On 3/22/2023 9:57 PM, Krzysztof Kozlowski wrote: > On 22/03/2023 14:34, Souradeep Chowdhury wrote: >>> >>>> + - const: qcom,imem-boot_stats >>> >>> No underscores in compatibles. Why this is not SoC specific compatible? >> >> Ack. The boot_stats module is not specific to a device. It is written to >> read some values from this imem region which is present for almost all >> QCOM SoCs. So SoC specific compatible is not given in this case. > > Yeah, but the generic rule is that we always want SoC specific > compatibles. If this is not specific to a device, then you do not need > anything in DT and just instantiate it from some soc-driver... Ack. Will add SoC specific compatible here. > > Best regards, > Krzysztof >
diff --git a/Documentation/devicetree/bindings/sram/qcom,imem.yaml b/Documentation/devicetree/bindings/sram/qcom,imem.yaml index 665c06e..c8c3890 100644 --- a/Documentation/devicetree/bindings/sram/qcom,imem.yaml +++ b/Documentation/devicetree/bindings/sram/qcom,imem.yaml @@ -48,6 +48,26 @@ patternProperties: $ref: /schemas/remoteproc/qcom,pil-info.yaml# description: Peripheral image loader relocation region + "^boot-stat@[0-9a-f]+$": + type: object + description: + node for boot stat. + + properties: + compatible: + items: + - const: qcom,imem-boot_stats + + reg: + maxItems: 1 + description: + The base address of the register region in case of + imem boot stats. + + required: + - compatible + - reg + required: - compatible - reg