Received: by 10.192.165.148 with SMTP id m20csp100739imm; Fri, 4 May 2018 07:19:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrCgyP3UkrRibHKR00JTiTaOSsKr8I0NYCAHG8YGT0w8hCvxXLqs48hIauwrIyWhLtuRYZY X-Received: by 2002:a17:902:7487:: with SMTP id h7-v6mr27469779pll.154.1525443554797; Fri, 04 May 2018 07:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525443554; cv=none; d=google.com; s=arc-20160816; b=HOYunUNFjfx/SN9tDw0KCncx7rFc7vD66/ooOk0c8G7tuAAK4xxeZExrXRQcRGHXl+ 9Fpf19NZHJt7LmwJOiVee3kin8xu3DGpUCg6lzjM8Qh+43qQa9xUrRUB0ytzdouFEfX/ qZM6VC1HDfF5gmbmuS6HyYM3d9Ta2cRfXwDjmvxZuc1RdNWgp5EMgphiDnvJCYd7UQH2 niv/88Hl1d2JSK7o3Wy2v1bMNSTm1XFMfWYQMhSbWiGM17J/JmzMi1Kr1rfJANW44RcE kbJMcxpGkqdqEtKxWH3AANgWF9rdwYkxGWCTmI1DaYyUBmZ7Nd1MOKdZJzqFH2tnXu1k mkIA== 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=6LSXjkm4muCLwcqOGDAWkoCxFaHuJyTulvq3GtYO014=; b=tbnK2dCf7O5yRgg2onw97OJdgxaIDRyRUyZaeDL2i9VDDR7ojNPLmljpVY3MhK37rA aLY8S/+V4aEUR0mqEzec41FOFnKYPQP9HSakgGus4/0ML6DsECw5Udldu2qZDn8ZRbjC qtSOtO/s04cl/q8Cu43QunUb7URBQ+eE/py0lGpLzVnwpziC1jTo53+5ecsNxxXX9u3p w6szW98kiX89a3gR/AM+8wI/UvOXCTtvQaajjUHQ2O5cWboiYjxSl1M0iBOGb4nSg5Kw I/3nFPTKZFpHgq8P0lrLU3mGAjrXX3mIT2ZGqZ/lG+KM6sXuGNsfUfHqlg9mBzSErzf2 2YEA== 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 r18-v6si2953563pge.7.2018.05.04.07.19.00; Fri, 04 May 2018 07:19:14 -0700 (PDT) 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 S1751401AbeEDORc (ORCPT + 99 others); Fri, 4 May 2018 10:17:32 -0400 Received: from mga17.intel.com ([192.55.52.151]:13355 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751196AbeEDORb (ORCPT ); Fri, 4 May 2018 10:17:31 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 May 2018 07:17:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,362,1520924400"; d="scan'208";a="196735429" Received: from marshy.an.intel.com ([10.122.105.159]) by orsmga004.jf.intel.com with ESMTP; 04 May 2018 07:17:28 -0700 From: richard.gong@linux.intel.com To: catalin.marinas@arm.com, will.deacon@arm.com, dinguyen@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, atull@kernel.org, mdf@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org, yves.vandervennet@linux.intel.com, richard.gong@linux.intel.com, richard.gong@intel.com Subject: [PATCHv4 1/7] dt-bindings, firmware: add Intel Stratix10 service layer binding Date: Fri, 4 May 2018 09:21:31 -0500 Message-Id: <1525443697-31009-2-git-send-email-richard.gong@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525443697-31009-1-git-send-email-richard.gong@linux.intel.com> References: <1525443697-31009-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 Signed-off-by: Alan Tull Reviewed-by: Rob Herring --- v2: Change to put service layer driver node under the firmware node Change compatible to "intel, stratix10-svc" v3: No change v4: Add Rob's Reviewed-by --- .../bindings/firmware/intel,stratix10-svc.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt diff --git a/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt b/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt new file mode 100644 index 0000000..1fa6606 --- /dev/null +++ b/Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt @@ -0,0 +1,57 @@ +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 svc node has the following mandatory properties, must be located under +the firmware node. + +- compatible: "intel,stratix10-svc" +- 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; + }; + }; + + firmware { + svc { + compatible = "intel,stratix10-svc"; + method = "smc"; + memory-region = <&service_reserved>; + }; + }; -- 2.7.4