Received: by 10.223.176.46 with SMTP id f43csp4587115wra; Tue, 23 Jan 2018 11:23:59 -0800 (PST) X-Google-Smtp-Source: AH8x224yd7flQhOqlhr2rlf8/KVVQvdphydA/y4K4JgTr/5MoWigcP49xPryB8vNti0hsTq4571q X-Received: by 10.36.181.9 with SMTP id v9mr5250742ite.27.1516735439559; Tue, 23 Jan 2018 11:23:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516735439; cv=none; d=google.com; s=arc-20160816; b=IJ5nI0ORBk0b2lrbD13zzxxkVLJuJzadeX2B/QbRUo0B8j/xDf1QnbHL1XvmK2ParQ ByHeVSUKm9YkL9QLFJopO2RjYtZxHE2cLLWomL5/un/FLfGK1oU3cembBQX3P6j8MDyJ uWmvU8pq/bmO5wneP10qo87HATgSz5nNgQIcicnCsErjwsEYUjE+/YN5qbkpBLVmhhnX sb4JaXQcPfGO6vjWkHgMkomA3alq22dalZTzzxEbqZGusOA+9oVQW/D215ndsjK2rIu5 UXT4nbmDjxuSMIdz/+lPkdxj+BaTEB45wRuo4D4H0cKoas5PuR9fZ73ek5MDuuABtxPh GheQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=VE9BrSPIspCZEZoiL4POKGQOol03ALzjg+gHuNIxOc0=; b=WYfzgBvnqAwuhLW9SiyPNLG6wLNbV3uKvVndO7idJ9MQd0CehqtmMvX8yFm3ISrQL6 xHlA90FZXH0EHU5a/4grzSwhJqTj6LUhc5JxBc/kLVEyEd30sfA0Cl1NJGOgHQr2FQL2 ssF59c50eZKSKBgssOlWpM3yySj+Jnq9VDHwCPqK9PFY0FXR5SiyK0zr6+kUbcJS+HZW tnVY8HaQ4T2XdWsZhuUUJ4fyAN+gKts4A1RDKVErmiykuygAnWNNvLtemnQBUpsi5b6s t46+ZnhJf7eZRd/DJ8PFFpb8fkxcvGzr/xt8Jc5h/cf27p4ZUMA1R0NweLnvTS5RE4Di lFTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s15si9175975ith.152.2018.01.23.11.23.45; Tue, 23 Jan 2018 11:23:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752231AbeAWTXR (ORCPT + 99 others); Tue, 23 Jan 2018 14:23:17 -0500 Received: from mga07.intel.com ([134.134.136.100]:14892 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752172AbeAWTXN (ORCPT ); Tue, 23 Jan 2018 14:23:13 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jan 2018 11:23:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,402,1511856000"; d="scan'208";a="21757956" Received: from marshy.an.intel.com ([10.122.105.159]) by orsmga003.jf.intel.com with ESMTP; 23 Jan 2018 11:23:12 -0800 From: richard.gong@linux.intel.com To: robh+dt@kernel.org, mark.rutland@arm.com Cc: richard.gong@intel.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCHv1] dt-bindings: misc: add Intel Stratix10 service layer binding Date: Tue, 23 Jan 2018 13:25:02 -0600 Message-Id: <1516735502-16745-2-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516735502-16745-1-git-send-email-richard.gong@linux.intel.com> References: <1516735502-16745-1-git-send-email-richard.gong@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Gong Add a device tree binding for the Intel Stratix10 service layer driver Signed-off-by: Richard Gong --- .../devicetree/bindings/misc/intel-service.txt | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/intel-service.txt diff --git a/Documentation/devicetree/bindings/misc/intel-service.txt b/Documentation/devicetree/bindings/misc/intel-service.txt new file mode 100644 index 0000000..254e4a1 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/intel-service.txt @@ -0,0 +1,56 @@ +Intel Service Layer Driver for Stratix10 SoC +============================================ +Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard +processor system (HPS) and Secure Device Manager (SDM). When the FPGA is +configured from HPS, there needs to be a way for HPS to notify SDM the +location and size of the configuration data. Then SDM will get the +configuration data from that location and perform the FPGA configuration. + +To meet the whole system security needs and support virtual machine requesting +communication with SDM, only the secure world of software (EL3, Exception +Layer 3) can interface with SDM. All software entities running on other +exception layers must channel through the EL3 software whenever it needs +service from SDM. + +Intel Stratix10 service layer driver, running at privileged exception level +(EL1, Exception Layer 1), interfaces with the service providers and provides +the services for FPGA configuration, QSPI, Crypto and warm reset. Service layer +driver also manages secure monitor call (SMC) to communicate with secure monitor +code running in EL3. + +Required properties: +-------------------- +The following are the mandatory properties: + +- compatible: + "intc,svc-1.0" +- method: + smc or hvc + smc - Secure Monitor Call + hvc - Hypervisor Call +- memory-region: + phandle to the reserved memory node. See + Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt + for details + +Example: +-------- + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + service_reserved: svcbuffer@0 { + compatible = "shared-dma-pool"; + reg = <0x0 0x0 0x0 0x1000000>; + alignment = <0x1000>; + no-map; + }; + }; + + svc { + compatible = "intc,svc-1.0"; + method = "smc"; + memory-region = <&service_reserved> + }; -- 2.7.4