Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp721180imn; Tue, 26 Jul 2022 07:37:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1toZJg3WgCWZtaGq5n8Nb/tCgXFt7tICpetRwi1y+8QxmXmjMl7X2xV159NdRCCBydUkXIz X-Received: by 2002:a17:902:bd08:b0:16d:4230:cb45 with SMTP id p8-20020a170902bd0800b0016d4230cb45mr17242566pls.59.1658846247953; Tue, 26 Jul 2022 07:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658846247; cv=none; d=google.com; s=arc-20160816; b=t9fwrf7nRgySNrs5JToXmfHXPt0BQjyN4qVOSPy12qxYpd1PDSj/VtDXeGx3zkf8j1 6U6EG6YX4iNNzwgZQwi5oY9YFoSlmS/el0oB8CYDd5t7ER1O+OO+1cg9aLqfdakCmnZw g7Cxxdbz981S4WPzaXgW3IIMx7ySB5xtX8U/cnaidEXF12O2yxPYKahhfBgw+2wLItQ9 XDW7mOhA1riEM9rEwc4XPeavAq4uHpxhGuoarFBin4J5fM+L+4n7dSaETttUvZ8dYgMP +Ky3Gj1rJFhxXEoUf5puo5oHdoZVCyf8IDkyLwtxnBrMprlyFUdu/vYbalZbp5F3LRtM gelg== 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; bh=Phyc5L6Wf3lthbH+LvYi8bocUf8b3OZMEgxDy7xJSUo=; b=TrjawWeyE9F0ON5iI2O7QP3rl4/9zflQJnXbik3e7KeUzsxnmfY7dF4lanvz6sSILF wsAX2bLkzIafJvVVlvdLpmo7umpXtImU5zuhvPX35JJlZNYoCeG7rQTRimIKpjlwhZoa NhNi1RkKMsoYy8EfFF+cRdx82Hd2PxcKohk+l4RRorAm+3ChRF2ktqvMuwacAOV4BU5A PLP3o7wm2DOhlOYPaDBz1LD+jLufmAlwU2nTWSBSKKe/j61DRc2MuwdPMBvPmn87YbGg lysuFOrlUyFtFO2Tyt7/YKTqcz8TM8XePeeBwe3IPPGRvAZN+BxEX2bNwJdIBpFNUfV8 AB4w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17-20020a17090a8a1100b001f044828f3dsi16195427pjn.28.2022.07.26.07.37.11; Tue, 26 Jul 2022 07:37:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239269AbiGZOac (ORCPT + 99 others); Tue, 26 Jul 2022 10:30:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239343AbiGZOaQ (ORCPT ); Tue, 26 Jul 2022 10:30:16 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCD4AF02; Tue, 26 Jul 2022 07:30:09 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 31C171FB; Tue, 26 Jul 2022 07:30:10 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9BB223F70D; Tue, 26 Jul 2022 07:30:07 -0700 (PDT) Date: Tue, 26 Jul 2022 15:30:05 +0100 From: Sudeep Holla To: Maximilian Luz Cc: Andy Gross , Bjorn Andersson , Ard Biesheuvel , Konrad Dybcio , Rob Herring , Sudeep Holla , Krzysztof Kozlowski , Steev Klimaszewski , Shawn Guo , Cristian Marussi , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, linux-efi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] dt-bindings: firmware: Add Qualcomm UEFI Secure Application client Message-ID: <20220726143005.wt4be7yo7sbd3xut@bogus> References: <20220723224949.1089973-1-luzmaximilian@gmail.com> <20220723224949.1089973-5-luzmaximilian@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220723224949.1089973-5-luzmaximilian@gmail.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 Sun, Jul 24, 2022 at 12:49:49AM +0200, Maximilian Luz wrote: > Add bindings for the Qualcomm Trusted Execution Environment (TrEE) UEFI > Secure application (uefisecapp) client. > > Signed-off-by: Maximilian Luz > --- > .../firmware/qcom,tee-uefisecapp.yaml | 38 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 39 insertions(+) > create mode 100644 Documentation/devicetree/bindings/firmware/qcom,tee-uefisecapp.yaml > > diff --git a/Documentation/devicetree/bindings/firmware/qcom,tee-uefisecapp.yaml b/Documentation/devicetree/bindings/firmware/qcom,tee-uefisecapp.yaml > new file mode 100644 > index 000000000000..9e5de1005d5c > --- /dev/null > +++ b/Documentation/devicetree/bindings/firmware/qcom,tee-uefisecapp.yaml > @@ -0,0 +1,38 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/soc/qcom/qcom,rpmh-rsc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Trusted Execution Environment UEFI Secure Application > + > +maintainers: > + - Maximilian Luz > + > +description: | > + Various Qualcomm SoCs do not allow direct access to UEFI variables. Instead, > + these need to be accessed via the UEFI Secure Application (uefisecapp), > + residing in the Trusted Execution Environment (TrEE). These bindings mark the > + presence of uefisecapp and allow the respective client driver to load and > + install efivar operations, providing the kernel with access to UEFI > + variables. > + > +properties: > + compatible: > + const: qcom,tee-uefisecapp > + > +required: > + - compatible > + > +additionalProperties: false > + > +examples: > + - | > + firmware { > + scm { > + compatible = "qcom,scm-sc8180x", "qcom,scm"; > + }; > + tee-uefisecapp { > + compatible = "qcom,tee-uefisecapp"; > + }; Do you expect some issues using the scm driver APIs without the any additions in the DT ? I mean can't you auto-discover by using the APIs. I haven't looked at the driver or any other patches in the series, but I would like to know if we can avoid adding any new bindings if it can be discovered via those SCM driver APIs. -- Regards, Sudeep