From patchwork Fri Jul 26 13:59:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 169850 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp97863ilk; Fri, 26 Jul 2019 07:00:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3f0S08RV3VUT5aFTRaHNxfxmHn4AelZahIAQ6faGeVgR3XL08XpgjUX4vGNUjmxe60E/8 X-Received: by 2002:a62:1807:: with SMTP id 7mr21945294pfy.149.1564149621671; Fri, 26 Jul 2019 07:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564149621; cv=none; d=google.com; s=arc-20160816; b=BQclo7jThp8G2RY459O282DgbduVugi5dvDmViJP48ribHpwqNV46B7hJnrrZol4DQ pBp31AIVYf9SQIV32YFdcZjwcPr38rzl1y8E1N3RX90qc1nAUDoRAj0pPtMBX14nHP/P Egu4E00t5tBZqHjf17mY0iXPlldcw6OYU/QDD6U27kvsaYMwyOxffyUjWkC+eWSBxd2V xI7bKqr+ZYL7SpJqnZkOmXz42p1dJSZdkBieUTFrQD6diwHlQvjs/bariy56iG3n7a0J 1VI6bP5GcoB6VWEeJ1gxK0qB9N/ul7YUAzwb7NxUPDArjI+OpB5Ji/ozpc8PvQDRYRkY mf6w== 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; bh=l78OJ+7DDsI9QoB94r3/xzNaSJgz0XkRVCuhhu54s9E=; b=unli4k+nxSpd45t9ux3rVItTEeXCWVSKLf0sBFcDklT0C3y2IPKaKnBF/q2dpZAVFW 5WvjsA9Am7qVZk0GOnaCu+oRH18ZpZO+GUsmRa3LhIo3IUF1e6GdkKFNysd6xvYjH65t UaREIw1B/C+cZdmqGFP3/P7PHzluPiA7xdapnvAfz+srXESmUN9CZti2lXXfRrO5kjxK bc/ThRyPB07medTRoQ4fOwHCcSYCt2/uXIrbfucfLzvBeHJy5ZKFsodG7i7lC+R9Jrrq xvATlmD1gmLpvjvJ9bsWld/et/wRpVpyuHfDfnzBlKKHV5vF+8qeqZxxPG+GzDzhVZ7+ VdQg== 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 1si21215369pgu.504.2019.07.26.07.00.21; Fri, 26 Jul 2019 07:00:21 -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 S2388449AbfGZOAU (ORCPT + 29 others); Fri, 26 Jul 2019 10:00:20 -0400 Received: from foss.arm.com ([217.140.110.172]:45006 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387689AbfGZOAO (ORCPT ); Fri, 26 Jul 2019 10:00:14 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BCD14152D; Fri, 26 Jul 2019 07:00:13 -0700 (PDT) Received: from usa.arm.com (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 66CC93F694; Fri, 26 Jul 2019 07:00:11 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org Cc: Sudeep Holla , Peng Fan , linux-kernel@vger.kernel.org, Bo Zhang , Jim Quinlan , Volodymyr Babchuk , Gaku Inami , aidapala@qti.qualcomm.com, pajay@qti.qualcomm.com, Etienne Carriere , Souvik Chakravarty , wesleys@xilinx.com, Felix Burton , Saeed Nowshadi , Philipp Zabel , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH 3/5] dt-bindings: arm: Extend SCMI to support new reset protocol Date: Fri, 26 Jul 2019 14:59:52 +0100 Message-Id: <20190726135954.11078-4-sudeep.holla@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190726135954.11078-1-sudeep.holla@arm.com> References: <20190726135954.11078-1-sudeep.holla@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SCMIv2.0 adds a new Reset Management Protocol to manage various reset states a given device or domain can enter. Extend the existing SCMI bindings to add reset protocol support by re-using the reset bindings for bothe reset providers and consumers. Cc: Philipp Zabel Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Signed-off-by: Sudeep Holla --- .../devicetree/bindings/arm/arm,scmi.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/arm,scmi.txt b/Documentation/devicetree/bindings/arm/arm,scmi.txt index 317a2fc3667a..083dbf96ee00 100644 --- a/Documentation/devicetree/bindings/arm/arm,scmi.txt +++ b/Documentation/devicetree/bindings/arm/arm,scmi.txt @@ -73,6 +73,16 @@ SCMI provides an API to access the various sensors on the SoC. as used by the firmware. Refer to platform details for your implementation for the IDs to use. +Reset signal bindings for the reset domains based on SCMI Message Protocol +------------------------------------------------------------ + +This binding for the SCMI reset domain providers uses the generic reset +signal binding[5]. + +Required properties: + - #reset-cells : Should be 1. Contains the reset domain ID value used + by SCMI commands. + SRAM and Shared Memory for SCMI ------------------------------- @@ -93,6 +103,7 @@ Each sub-node represents the reserved area for SCMI. [2] Documentation/devicetree/bindings/power/power_domain.txt [3] Documentation/devicetree/bindings/thermal/thermal.txt [4] Documentation/devicetree/bindings/sram/sram.txt +[5] Documentation/devicetree/bindings/reset/reset.txt Example: @@ -152,6 +163,11 @@ firmware { reg = <0x15>; #thermal-sensor-cells = <1>; }; + + scmi_reset: protocol@16 { + reg = <0x16>; + #reset-cells = <1>; + }; }; }; @@ -166,6 +182,7 @@ hdlcd@7ff60000 { reg = <0 0x7ff60000 0 0x1000>; clocks = <&scmi_clk 4>; power-domains = <&scmi_devpd 1>; + resets = <&scmi_reset 10>; }; thermal-zones {