From patchwork Mon Aug 22 13:00:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 74405 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1555259qga; Mon, 22 Aug 2016 06:01:11 -0700 (PDT) X-Received: by 10.25.27.70 with SMTP id b67mr4557845lfb.218.1471870871325; Mon, 22 Aug 2016 06:01:11 -0700 (PDT) Return-Path: Received: from mail-lf0-x22e.google.com (mail-lf0-x22e.google.com. [2a00:1450:4010:c07::22e]) by mx.google.com with ESMTPS id 66si8321540lfb.363.2016.08.22.06.01.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Aug 2016 06:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c07::22e as permitted sender) client-ip=2a00:1450:4010:c07::22e; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c07::22e as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x22e.google.com with SMTP id g62so77020676lfe.3 for ; Mon, 22 Aug 2016 06:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TcIjcT2nZUVIFolfepEBMw39MEvZqG3gALcRgWIOWNk=; b=TI7bRFJijEfagtDEpIE3dI7D69UpjX4K/g2iM/ZKYtMXYTuVVjpxvrdFuI447Ab+zR YxZRNXJnfJFSaqevCAREnmyPVclGsGDeC5y/4/CeIjbnZ+QjHG9pcWVpi6YfNBwrq4dE iFrzsYDuvIJ8+fVzxwOplt1Yq4Uzu70fIjwA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TcIjcT2nZUVIFolfepEBMw39MEvZqG3gALcRgWIOWNk=; b=g5/rpReN4RhR7xuEOR0HVQbVM9y8f2wofKFjrxZNfcgqDbeDXH26pGx7OC9/EeEFKh POmd/wPPFjJ83k5rNzqbi7wODrJGFAmm5YccO6HznytzFpWTttfGbHN84+iBx0o/rUQ+ tHGGSe1biC1vOo+GajRJirNUkLPzxk1PI2/h9CwtvqLLnRamumHOjBirCgxIIxWWkXNa Y7gnJ5tNpcH532e915FXQ1iejWY83ggYnzn92L8Gj233P2i5wrhMIAlTZd6aqzxWemgD NCTVvI8It1XKpIWxksZmNUIlfECjFhG+tY7Mg21c/vDAav1KNgmG3zUfHCE2IOxmAgQg JHyQ== X-Gm-Message-State: AEkoouth3Slbzpi93xEUNfN/QZ7Jc5+a9d7d7J2rIXr0i7lUHnVeupQBkwAsqs6ZTaMmDA5FHfw= X-Received: by 10.25.32.136 with SMTP id g130mr6275441lfg.184.1471870870853; Mon, 22 Aug 2016 06:01:10 -0700 (PDT) Return-Path: Received: from ermac.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 65sm3705892ljb.48.2016.08.22.06.01.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Aug 2016 06:01:09 -0700 (PDT) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Greg Kroah-Hartman , Al Viro , Andreas Dannenberg , valentin.manea@huawei.com, jean-michel.delorme@st.com, emmanuel.michel@st.com, javier@javigon.com, Jason Gunthorpe , Mark Rutland , Michal Simek , Rob Herring , Will Deacon , Arnd Bergmann , Nishanth Menon , Jens Wiklander Subject: [PATCH v11 1/4] dt/bindings: add bindings for optee Date: Mon, 22 Aug 2016 15:00:53 +0200 Message-Id: <1471870856-18684-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471870856-18684-1-git-send-email-jens.wiklander@linaro.org> References: <1471870856-18684-1-git-send-email-jens.wiklander@linaro.org> Introduces linaro prefix and adds bindings for ARM TrustZone based OP-TEE implementation. Acked-by: Rob Herring Signed-off-by: Jens Wiklander --- .../bindings/arm/firmware/linaro,optee-tz.txt | 31 ++++++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt -- 1.9.1 diff --git a/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt b/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt new file mode 100644 index 0000000..d38834c --- /dev/null +++ b/Documentation/devicetree/bindings/arm/firmware/linaro,optee-tz.txt @@ -0,0 +1,31 @@ +OP-TEE Device Tree Bindings + +OP-TEE is a piece of software using hardware features to provide a Trusted +Execution Environment. The security can be provided with ARM TrustZone, but +also by virtualization or a separate chip. + +We're using "linaro" as the first part of the compatible property for +the reference implementation maintained by Linaro. + +* OP-TEE based on ARM TrustZone required properties: + +- compatible : should contain "linaro,optee-tz" + +- method : The method of calling the OP-TEE Trusted OS. Permitted + values are: + + "smc" : SMC #0, with the register assignments specified + in drivers/tee/optee/optee_smc.h + + "hvc" : HVC #0, with the register assignments specified + in drivers/tee/optee/optee_smc.h + + + +Example: + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 1992aa9..e62c0ae 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -148,6 +148,7 @@ lacie LaCie lantiq Lantiq Semiconductor lenovo Lenovo Group Ltd. lg LG Corporation +linaro Linaro Limited linux Linux-specific binding lsi LSI Corp. (LSI Logic) lltc Linear Technology Corporation