From patchwork Mon Sep 3 14:46:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 145804 Delivered-To: patches@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2575507ljw; Mon, 3 Sep 2018 07:47:29 -0700 (PDT) X-Received: by 2002:a2e:5719:: with SMTP id l25-v6mr17628504ljb.125.1535986049033; Mon, 03 Sep 2018 07:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535986049; cv=none; d=google.com; s=arc-20160816; b=onZqLspp5fSlUBSKlZh6iJMyrn8sKptpj7WGcS0UpaGe1HReSE/+WWf0/FPLTnjJRM eflb4/LBhGId+TPQ/nlDiKkShF/LWlsLwegpZ8njlR/Ucdsr5CHb49r3yjqIL73r4P91 2So4jWimlt5fR7XcA7nyi17FJ/MJaAjVoWA2/vE2CdAK0Om1TGBYmrIyp/Arlb8KGdB4 puqVwyF7ickWK4Yr3j4V5Mq8sjUJ1fy//yg9TOLcN7O2dC0Hx2hgAV1gb8Z1OSkgOuXo PNwAVMuAf6/IpGJQLdemONmZxgJEBuYXn9Bq9OVN4Ypdm4bTnCPqX1TH/FCC45uq3Tq2 xABw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=4IE86cb3LJqqnw69+nNkWX3MjSAstndpuaRV8lGh8zc=; b=E9C35QBlmaHPDw1Pv2AICA91WFxgHfaBSFpAYnzPY9Mvl1sRQxhCw0qxSBWomcrYWX Qdh6bXd9X/MrJMXOmN7oLXUGe7taJW+IyxBLfRJht7qRH9UsjV5SRU5tze+pWW788lza nDv7mOqYN9ItPSi0PUqz9Z42N5z7Ez5V/MjBH1KxB/dSxM75qv17w3AByfu13WDlkFbX ZTnuCauyUmkANugQfFASa7wDGNzJcaeYqwPTcbHL5s/7xa7G3GrtR7exyNBvWG/RC4yg kzI9TxA2YF609gGMJpCeLeIDAeN+SZCr6A+tS8Q1Cn0qnGFCkNTZeZKwgEgsFXoUUqHe e2Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G4ktFGN0; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id d17-v6sor7846680lji.40.2018.09.03.07.47.28 for (Google Transport Security); Mon, 03 Sep 2018 07:47:29 -0700 (PDT) Received-SPF: pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G4ktFGN0; spf=pass (google.com: domain of jens.wiklander@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=jens.wiklander@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=4IE86cb3LJqqnw69+nNkWX3MjSAstndpuaRV8lGh8zc=; b=G4ktFGN0WIFDDb37+OD3bFvq/KEMaFYHWj3EPgcK/5SmvtZ/8QKBYw0siD7PCiOTS7 wzl9MmNYk7DI28uYI71WmMDm1zpKfgNaPEv+rtlgzg89MImrUCcyjdwKcnBVbpHoi7nW OBR13CRhIyqIM6DtoocxmMl3+6rVJ/1uKPPMw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4IE86cb3LJqqnw69+nNkWX3MjSAstndpuaRV8lGh8zc=; b=e6UIk80hWWznbW/gJV7CrTdPpntqZ2ZHzYY8yVR+UPj5OCtS6BLAAIaQxS7zOyi/fY R++9CjwotVWllCtjoJ23RQbR0PDz9kVtYiXon/nt7/QApDV9xoX2k7CK+LsctdVgEFjJ hCy/kQCWb1BrodEcQfbSXfNtu6OzOQzteMZanzQJTWyaiPOeeVaGzxPsot9I4kbOL0MM BqWeXHX5DvJUXM6rJu0WvVdDxClLdtdkjrc6azhh8PsK0VgBlcNUvS25IaUxTeEUJjUg z1bMeysOsiq5QRpnBjGj0pe9GZ6mXUeZfUZkcLRrVc8k5n/Q/ekUFVYkXT77GJF05mKC emYQ== X-Gm-Message-State: APzg51Dfl1WeCPn9PqJxSoalRTjxH3PupLmM1NSrMJiKRNvzs9Vo5aMr x7AUijTWl7MGKY9GHj7FwtyMkKSI X-Google-Smtp-Source: ANB0VdZnjhcbHtBG9zUChzzjTcAKFnqRfEQXoU/GW6lwSzxsZLzHlJOs3kNiWUBfSxTh3Rnn9qLjFg== X-Received: by 2002:a2e:2bd3:: with SMTP id r80-v6mr18626354ljr.57.1535986048785; Mon, 03 Sep 2018 07:47:28 -0700 (PDT) Return-Path: Received: from jax.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id w18-v6sm3343431ljd.73.2018.09.03.07.47.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 07:47:28 -0700 (PDT) From: Jens Wiklander To: u-boot@lists.denx.de Cc: Simon Glass , Igor Opaniuk , Tom Rini , Jaehoon Chung , Pierre Aubert , Albert Aribaud , Peter Griffin , Michal Simek , Jens Wiklander Subject: [PATCH v3 07/20] dt/bindings: add bindings for optee Date: Mon, 3 Sep 2018 16:46:58 +0200 Message-Id: <20180903144711.31585-8-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180903144711.31585-1-jens.wiklander@linaro.org> References: <20180903144711.31585-1-jens.wiklander@linaro.org> Sync with c8bfafb15944 ("dt/bindings: add bindings for optee") from Linux kernel. Introduces linaro prefix and adds bindings for ARM TrustZone based OP-TEE implementation. Signed-off-by: Jens Wiklander --- .../firmware/linaro,optee-tz.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/device-tree-bindings/firmware/linaro,optee-tz.txt -- 2.17.1 Reviewed-by: Simon Glass diff --git a/doc/device-tree-bindings/firmware/linaro,optee-tz.txt b/doc/device-tree-bindings/firmware/linaro,optee-tz.txt new file mode 100644 index 000000000000..d38834c67dff --- /dev/null +++ b/doc/device-tree-bindings/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"; + }; + };