From patchwork Wed Jun 7 16:10:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 103293 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2015309qgd; Wed, 7 Jun 2017 09:10:30 -0700 (PDT) X-Received: by 10.84.230.134 with SMTP id e6mr28482323plk.256.1496851830503; Wed, 07 Jun 2017 09:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496851830; cv=none; d=google.com; s=arc-20160816; b=iAsCFqMJl58r7/U0jUfMQVdPVf0VuDvwgFHcrJeozpMJhvfJSDHKwK4kzVIPmxv4me O+Yhqy4Cw47pjs6meLzK8yEj6iBZb8LIDo2n8PPxw+VyrKJuzl5TMwvKEibWu2c3XOut QSZJwaXe/ZizTCdCBasyhgetyqy2EvD7KbH5rSTlvJYJdhaVGdWoJsrUBE/p4wHIJaNP cvXpNiXtj0dCkPibxIJmDjedF7XATZLtN+bc0XK8rwI/KCJ5qFUxJM4XhjffQh+rF4HM pM4N+XTKaNdVkX1Th6NpIiZCiZD3BBjF9Lv+QVgNFZbWYgick5mAQ0gzXhqgeisBeKYM aa+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=gS9yewNbr3Dj2TOxaYYZFQqeScKr1v16R7XzkziUZz8=; b=AAm11lGCenKpp2X+eH6TNjw40OoNyQNDyifCYOftw2XKQPm7WNR4miociMQ1RKz25o domoD1YR0gBk2H8Bufrc9+EJmlNcfA31cK+7umCu1Ue/rSeRGt8rjhRrz52ZM263Brkn Bv91NIYBooj8FjpQhOApthtvR72rK0RiGd8Rb9WEricToBhhthmMjeKQdYAF+97UBXe7 yHHKgqEICochs3fqRvedj7kq0w4Eb+p1ZPoCjYKPT86WLF9q0xitWB0tAKwfc7zDuVRA BW3feC7XjXikb3PL2J1TPf4X1+y01fxn1jUVhLdyPSZsYOVxJgSiQvpSqR4CBqT7l/co 6b2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 k16si2134762pli.350.2017.06.07.09.10.30; Wed, 07 Jun 2017 09:10:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750940AbdFGQK3 (ORCPT + 7 others); Wed, 7 Jun 2017 12:10:29 -0400 Received: from foss.arm.com ([217.140.101.70]:34746 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831AbdFGQK2 (ORCPT ); Wed, 7 Jun 2017 12:10:28 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DE4A380D; Wed, 7 Jun 2017 09:10:27 -0700 (PDT) Received: from e107155-lin.cambridge.arm.com (e107155-lin.cambridge.arm.com [10.1.211.34]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A54403F578; Wed, 7 Jun 2017 09:10:26 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Sudeep Holla , Roy Franz , Harb Abdulhamid , Nishanth Menon , Arnd Bergmann Subject: [RFC PATCH 0/8] firmware: ARM System Control and Management Interface(SCMI) support Date: Wed, 7 Jun 2017 17:10:04 +0100 Message-Id: <1496851812-19623-1-git-send-email-sudeep.holla@arm.com> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi all, Let me begin admitting that we are introducing yet another protocol to achieve same things as many existing protocols like ARM SCPI, TI SCI, QCOM RPM, Nvidia Tegra BPMP, and so on. All I can say is that this new ARM System Control and Management Interface(SCMI) is more flexible and easily extensible than any of the existing ones. Many vendors were involved in the making of this formal specification and is now officially published[1]. There is a strong trend in the industry to provide micro-controllers in systems to abstract various power, or other system management tasks. These controllers usually have similar interfaces, both in terms of the functions that are provided by them, and in terms of how requests are communicated to them. This specification is to standardise and avoid (any further) fragmentation in the design of such interface by various vendors. This patch set is intended to get feedback on the design and structure of the code. This is not complete and not fully tested due to non-availability of firmware with full feature set at this time. It currently doesn't support notification, asynchronous/delayed response, perf/power statistics region and sensor register region to name a few. I have borrowed some of the ideas of message allocation/management from TI SCI. -- Regards, Sudeep [1] http://infocenter.arm.com/help/topic/com.arm.doc.den0056a/index.html Sudeep Holla (8): Documentation: add DT binding for ARM System Control and Management Interface(SCMI) protocol firmware: arm_scmi: add basic driver infrastructure for SCMI firmware: arm_scmi: add common infrastructure and support for base protocol firmware: arm_scmi: add initial support for performance protocol firmware: arm_scmi: add initial support for clock protocol firmware: arm_scmi: add initial support for power protocol firmware: arm_scmi: add initial support for sensor protocol firmware: arm_scmi: probe and initialise all the supported protocols Documentation/devicetree/bindings/arm/arm,scmi.txt | 193 +++++ drivers/firmware/Kconfig | 21 + drivers/firmware/Makefile | 1 + drivers/firmware/arm_scmi/Makefile | 2 + drivers/firmware/arm_scmi/base.c | 290 +++++++ drivers/firmware/arm_scmi/clock.c | 340 +++++++++ drivers/firmware/arm_scmi/common.h | 127 ++++ drivers/firmware/arm_scmi/driver.c | 832 +++++++++++++++++++++ drivers/firmware/arm_scmi/perf.c | 398 ++++++++++ drivers/firmware/arm_scmi/power.c | 237 ++++++ drivers/firmware/arm_scmi/sensors.c | 269 +++++++ include/linux/scmi_protocol.h | 160 ++++ 12 files changed, 2870 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/arm,scmi.txt create mode 100644 drivers/firmware/arm_scmi/Makefile create mode 100644 drivers/firmware/arm_scmi/base.c create mode 100644 drivers/firmware/arm_scmi/clock.c create mode 100644 drivers/firmware/arm_scmi/common.h create mode 100644 drivers/firmware/arm_scmi/driver.c create mode 100644 drivers/firmware/arm_scmi/perf.c create mode 100644 drivers/firmware/arm_scmi/power.c create mode 100644 drivers/firmware/arm_scmi/sensors.c create mode 100644 include/linux/scmi_protocol.h -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html