From patchwork Fri Apr 1 10:46:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 64842 Delivered-To: patches@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp658195lbc; Fri, 1 Apr 2016 03:47:15 -0700 (PDT) X-Received: by 10.25.21.28 with SMTP id l28mr1240519lfi.165.1459507635370; Fri, 01 Apr 2016 03:47:15 -0700 (PDT) Return-Path: Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com. [2a00:1450:4010:c07::233]) by mx.google.com with ESMTPS id xh4si7871905lbb.119.2016.04.01.03.47.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2016 03:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 2a00:1450:4010:c07::233 as permitted sender) client-ip=2a00:1450:4010:c07::233; 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::233 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x233.google.com with SMTP id p188so51725980lfd.0 for ; Fri, 01 Apr 2016 03:47:15 -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=08SLQgVrMmeIIG5zNR7REmbqbaEsv87c3KP44IXtWY4=; b=RxRxAYkScaHa8Abl7LtV1e/NZI99kJa5VRqX6lOyjKxHljlh6b4m3nyfUP2S4pKuJi YRpQaW1qCdU5FRaRmX087i+gX9BMVbl+2Gg6QmV0EjwVFHETwnQ+AMRzus1IXu9s0+K7 ugPBdBmNjuolvWbnVw1ri4ptXsT4aJevIkcto= 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=08SLQgVrMmeIIG5zNR7REmbqbaEsv87c3KP44IXtWY4=; b=g99dB0Brg5wB7680xs3/VYPejZqt5hP41px3Lqe2gtTkFMZmZjtHd+0Z+gbvrIHgoQ SDXq4nuy524qv/4miuiyxPBXPs5u3lCCZHe/8Yhf7iKzGOi0bTOMfwiKhGtt00RggB4G VyCtDa1UiBah1Om35C7+k4HidKNJby7LggpD6XgwD3efNujjSNvTLM2QG/g8amQRaUdO NHhZWJS/+5e29DKATTLotgZ5JtgULpaz2+93JijckTVqHEHAjWiB8J0F5GFzXKA6ODq5 hr0b3tj2t3FtM4LpzQAC0Ec9yI2n53pzXdwl2L0VpQN89my7vOB8QNtYUdzIg7qTNVQv S+kg== X-Gm-Message-State: AD7BkJISxu7pLabVyj7DoOAbxz5sPNKZ0Gd4+X2mYoZrAaLVU/3IVrCWRNy2/baZuEgjcdxznZo= X-Received: by 10.25.7.4 with SMTP id 4mr2225909lfh.147.1459507635188; Fri, 01 Apr 2016 03:47:15 -0700 (PDT) Return-Path: Received: from ermac.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id o10sm1999297lbp.47.2016.04.01.03.47.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Apr 2016 03:47:13 -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 , Jens Wiklander Subject: [PATCH v9 1/4] dt/bindings: add bindings for optee Date: Fri, 1 Apr 2016 12:46:45 +0200 Message-Id: <1459507608-26582-2-git-send-email-jens.wiklander@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1459507608-26582-1-git-send-email-jens.wiklander@linaro.org> References: <1459507608-26582-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 86740d4..0372fd7 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -136,6 +136,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