From patchwork Fri Nov 18 14:51:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 9436737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DFE9760469 for ; Fri, 18 Nov 2016 14:55:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D73A22991F for ; Fri, 18 Nov 2016 14:55:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB38A29927; Fri, 18 Nov 2016 14:55:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F8B02991F for ; Fri, 18 Nov 2016 14:55:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7kXl-0006H1-36; Fri, 18 Nov 2016 14:53:33 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7kXH-0005aZ-7E for linux-arm-kernel@lists.infradead.org; Fri, 18 Nov 2016 14:53:06 +0000 Received: by mail-wm0-x235.google.com with SMTP id f82so42483329wmf.1 for ; Fri, 18 Nov 2016 06:52:42 -0800 (PST) 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=RoDt2MB5EZjGNqNfmOo5JpAHiL5JGVYY4Y74L3ftVN8=; b=cq+uxobaMToj+zuviugGFvxoF84+voxqCrZbVxMY5HBwcMWC6TmOEQmq6/tQQcfRc5 tsSqlw4KHeAx2g1Wun3JRkIKBt453MwS9M2r7kLjmjRjPspEfqennCttz8IU2VuW6ZRF Z665tvnxIKuKEdoZaAynRaqvaM4C9kNm7YGig= 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=RoDt2MB5EZjGNqNfmOo5JpAHiL5JGVYY4Y74L3ftVN8=; b=OSf5tAhOINkSwHzc4wzbVZwwolQDFua34TMvuNOQdMmlRGKuOixCOleAT2liHiqdFc /cYQJ/IU1EiPpqf/eAwojSv2urEZdeeKhYTTjSczthwcwkipvo3nZixV73vLvFQdXxRx N7X9xQFSSNZsghcqW/P38JYjGa7CIoXM+z9rg/bVsk7GGVHpuhivWyfgKWb4I/JBe7Jw 36xdOLoK5Nbmpvlvss3GfcePvvB37e2GtCJSbmycbrYJBBotKYQzRas05SyjeojgK8iv IAVGH99cXJLFtuMuJ/WpjFd3ohjY+7WNJIM+2wSHrsN/amfToo2uYMYBr+ZnBs9aLRUI zMNA== X-Gm-Message-State: AKaTC03LyKpcLv//YeDe93SSJDOreys3sSs1OFM1pfLcWcF4rYCL5JTJHxqlVBcj+jPiNz7g X-Received: by 10.46.5.136 with SMTP id 130mr69713ljf.36.1479480760895; Fri, 18 Nov 2016 06:52:40 -0800 (PST) Received: from ermac.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id d79sm2327997lfd.46.2016.11.18.06.52.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Nov 2016 06:52:40 -0800 (PST) From: Jens Wiklander To: Greg Kroah-Hartman , Arnd Bergmann , Olof Johansson , Andrew Morton , Wei Xu Subject: [PATCH v13 1/5] dt/bindings: add bindings for optee Date: Fri, 18 Nov 2016 15:51:36 +0100 Message-Id: <1479480700-554-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479480700-554-1-git-send-email-jens.wiklander@linaro.org> References: <1479480700-554-1-git-send-email-jens.wiklander@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161118_065303_657444_82241B84 X-CRM114-Status: GOOD ( 16.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: valentin.manea@huawei.com, devicetree@vger.kernel.org, javier@javigon.com, emmanuel.michel@st.com, Nishanth Menon , broonie@kernel.org, Will Deacon , linux-kernel@vger.kernel.org, jean-michel.delorme@st.com, Jason Gunthorpe , Rob Herring , Al Viro , Jens Wiklander , Mark Rutland , "Andrew F. Davis" , Michal Simek , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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 f0a48ea..6ab5d04 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -155,6 +155,7 @@ lacie LaCie lantiq Lantiq Semiconductor lenovo Lenovo Group Ltd. lg LG Corporation +linaro Linaro Limited linux Linux-specific binding lltc Linear Technology Corporation lsi LSI Corp. (LSI Logic)