Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28579148rwd; Tue, 4 Jul 2023 22:51:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Y/7d1byvZ/qnmbgD2kMWOIM3nKgMit2x5bn7BTOLiPDu2kJOE2ZsgZbyY4fqSDPM+1Lco X-Received: by 2002:a05:6830:1059:b0:6b8:93eb:cc6b with SMTP id b25-20020a056830105900b006b893ebcc6bmr16527489otp.34.1688536307883; Tue, 04 Jul 2023 22:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688536307; cv=none; d=google.com; s=arc-20160816; b=GeRSXzgtxW6BaOal3FdLgx0g97zJZYVEZbAVophHKkraQJ7bogJAbzkPnZBIBO+738 nSWxej3wMYKOY0ZEqmOhbNB13nqLHzyxnqA9DBf0khcqVUWJ+iTii7dun3GE/8rjGEde +JxTBo0I3pBj+/ijPbYEKUlqlVYVJaWwqYl13D9rQYkybKuW9nP6BQHhD9bfC6Kgi99o iFQn8pNAvGD3ZI61MfMG3b28uS9oUdOWcESDzxoyKtdHuq9SFrGHpcEnP0TOWAibFY7V TZRzHcrPXwxxNEe3YdH5ljQFl8So49gPpxODlkrKKfnpoW/11BWOBPd57Wa9HiwrFjC6 Bl6w== 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=pylOfRWfH248mlqc1U0JPUDCsmfMI/NoUbc91IZ6M8Y=; fh=jC45Mg5WXDXLXBnv56DxbXtmLsAdfnrQ890ArfI/DI0=; b=vIJzJF+7721TaWZl//tv5reCGIVQG2GfpKreOv44j2YajTxeJK04qOLwUhK3Ch4TWf GVRgbEw2pm023UQSoQunHheT9STZiMUWcCmVQKtReKaslrUWdFNhroKQw8AUfa3zKARE UIpcbCq/JeI235sHYSwVpXBp63Riw6B6vl69zQBVts98Aqai/Nqgctc+fWZs77V4leT0 Mqj9EHM6WR57HuQ0UbDzqRzr6ipWhGXss1Z3okyfr33oYfcFuQvEeevj3aEZpLimVjuZ 5bGsa8UKtIQDXW2KWLgJ9Y1CoEfdK9561KANG9CmTFiINjxi2Qnr2gk9oG4Q7BfOr5cP V+ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=dfPagyoK; 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 nu4-20020a17090b1b0400b0025669d0176asi1046203pjb.134.2023.07.04.22.51.32; Tue, 04 Jul 2023 22:51:47 -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=dfPagyoK; 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 S231296AbjGEFdZ (ORCPT + 99 others); Wed, 5 Jul 2023 01:33:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjGEFdX (ORCPT ); Wed, 5 Jul 2023 01:33:23 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10361E3; Tue, 4 Jul 2023 22:33:21 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3655AJrW022700; Wed, 5 Jul 2023 05:33:06 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=pylOfRWfH248mlqc1U0JPUDCsmfMI/NoUbc91IZ6M8Y=; b=dfPagyoKkQVdsIGmniW/sTWEaSQB8WVp+R8oqpFcH7EuGjgR8aryqEwJTdlI4bPMhhPL hefkbLDkzj1aC0rdnMCkHTkvBrxB0i4KXrzlKaULNbDBekOvmvZZQ+mzJXvYMhTvk+8h FHPwz6MTvXwiAKgkwszfnFTx90/TNWU8dj+Nqf6TB369zlA+QCYM2CFsGOiJVARcf7JG Z8zMch47j/KHUrlsEkIRp2IiICajNfp98OhvgodrRepo8bGtu2BKXbBszW345vcBBxCv m5Q948zy9/a3zy35YrwccsFbzWQ/nObfyRh6awiqOTosOx2JqJgeG5snkgWWaPd5q1mv QQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rm8v9jxrd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jul 2023 05:33:06 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3655X52h013701 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 5 Jul 2023 05:33:05 GMT Received: from hu-schowdhu-blr.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.7; Tue, 4 Jul 2023 22:33:01 -0700 From: Souradeep Chowdhury To: Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Bjorn Andersson , Rob Herring , Arnd Bergmann CC: , , , , Sibi Sankar , Rajendra Nayak , Souradeep Chowdhury Subject: [PATCH V7 1/2] dt-bindings: firmware: bootstats: Add the dtschema Date: Wed, 5 Jul 2023 11:02:31 +0530 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: 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-ORIG-GUID: md7FFK7CBCdVAN8pRFrjBIamFuZUnvbN X-Proofpoint-GUID: md7FFK7CBCdVAN8pRFrjBIamFuZUnvbN 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-04_16,2023-07-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 mlxlogscore=794 bulkscore=0 malwarescore=0 phishscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050050 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, T_SCC_BODY_TEXT_LINE,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: X-Mailing-List: linux-kernel@vger.kernel.org Add the device tree bindings for boot stats. This has 2 properties pre-abl-time and abl-time which records the timestamps for boot stats. Signed-off-by: Souradeep Chowdhury Link: https://lore.kernel.org/linux-arm-kernel/7d397e67-5d56-4975-98af-1ac9746c07f4@app.fastmail.com/ --- .../bindings/firmware/qcom,bootstats.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml diff --git a/Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml b/Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml new file mode 100644 index 000000000000..22e697524058 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/qcom,bootstats.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/qcom,bootstats.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Boot Stats + +maintainers: + - Souradeep Chowdhury + +description: | + Qualcomm's proprietary Android boot-loaders capture boot time + stats, like the time when the bootloader started execution and + at what point the bootloader handed over control to the kernel. + This is captured in the unit of ms in devicetree property. + +properties: + pre-abl-time: + description: The property to store the starting point of abl in ms. + $ref: /schemas/types.yaml#/definitions/string-array + + abl-time: + description: The property to store the duration of abl in ms. + $ref: /schemas/types.yaml#/definitions/string-array + +required: + - pre-abl-time + - abl-time + +additionalProperties: false + +examples: + - | + bootstats { + pre-abl-time="17627"; + abl-time="26748"; + }; -- 2.17.1