From patchwork Mon Sep 14 13:00:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 53547 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by patches.linaro.org (Postfix) with ESMTPS id 97D7522B17 for ; Mon, 14 Sep 2015 13:03:39 +0000 (UTC) Received: by lagj9 with SMTP id j9sf50538154lag.0 for ; Mon, 14 Sep 2015 06:03:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=MnqXjg0KdpKo9RjwPqzTEPWQejVg9K1TKjn4CvWAznU=; b=Ru5YK7+c5pp5fsrxwJQnDD/xvh2iCqeWAld4Dl1u92GoN/HqEstGsfyk1GECTwvkf8 VmV3umwLAPd0DD8RDjJ+M+3MYRQ9qeAV96HX+/DaaOAEet0ayO4hB7CgK1nEo81l80g1 vRvHw8qpD4z9YGUhEUftX+SnGOzCVCyCUng8R/8r6waZHGydANf55Zw+FDtY5pl3R0tz ZoEgd/TILrgMCeUVpjG7x5BU5qDBiZzsFM2d/gUvyT0qbkGA6u8WcMU9Hooh/OmYMKMV eqEt5YHdCgj0PmTShPA51Uzj2zNmMNp75xbBIZEUcSVls2uTLpUxEYrEkvuNGyWrznUi TmtQ== X-Gm-Message-State: ALoCoQk0cXGy5cOMjYJwnZveHigrNqsExjtUCVJBw4VMZU9hcchYKkbssI3qczw3SQb9g/Uyns2P X-Received: by 10.112.78.101 with SMTP id a5mr3073134lbx.9.1442235818503; Mon, 14 Sep 2015 06:03:38 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.202 with SMTP id u10ls636354lau.23.gmail; Mon, 14 Sep 2015 06:03:38 -0700 (PDT) X-Received: by 10.112.167.202 with SMTP id zq10mr13715868lbb.69.1442235818352; Mon, 14 Sep 2015 06:03:38 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id py9si9626156lbb.165.2015.09.14.06.03.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Sep 2015 06:03:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbcao8 with SMTP id ao8so66815166lbc.3 for ; Mon, 14 Sep 2015 06:03:38 -0700 (PDT) X-Received: by 10.112.130.70 with SMTP id oc6mr1353469lbb.32.1442235817328; Mon, 14 Sep 2015 06:03:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1188216lbq; Mon, 14 Sep 2015 06:03:35 -0700 (PDT) X-Received: by 10.68.196.99 with SMTP id il3mr34138499pbc.166.1442235815636; Mon, 14 Sep 2015 06:03:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id or6si23359116pab.22.2015.09.14.06.03.33; Mon, 14 Sep 2015 06:03:35 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754239AbbINNDc (ORCPT + 7 others); Mon, 14 Sep 2015 09:03:32 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:56356 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750944AbbINNDc (ORCPT ); Mon, 14 Sep 2015 09:03:32 -0400 Received: from e105922-lin.cambridge.arm.com (e105922-lin.cambridge.arm.com [10.2.135.144]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with SMTP id t8ED1FaP020686; Mon, 14 Sep 2015 14:01:15 +0100 Received: by e105922-lin.cambridge.arm.com (sSMTP sendmail emulation); Mon, 14 Sep 2015 14:02:44 +0100 From: Punit Agrawal To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: sudeep.holla@arm.com, linux-pm@vger.kernel.org, lm-sensors@lm-sensors.org, liviu.dudau@arm.com, edubezval@gmail.com, mark.rutland@arm.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, robh+dt@kernel.org, Punit Agrawal Subject: [PATCH v3 1/5] Documentation: add DT bindings for ARM SCPI sensors Date: Mon, 14 Sep 2015 14:00:14 +0100 Message-Id: <1442235619-4029-2-git-send-email-punit.agrawal@arm.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1442235619-4029-1-git-send-email-punit.agrawal@arm.com> References: <1442235619-4029-1-git-send-email-punit.agrawal@arm.com> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: punit.agrawal@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The System Control Processor (SCP) provides access to SoC sensors via the System Control and Power Interface (SCPI) Message Protocol. Add bindings to allow probing of these sensors. Also support referencing of the sensors for setting up thermal zones via the thermal DT bindings. Signed-off-by: Punit Agrawal Cc: Rob Herring Cc: Mark Rutland Cc: Sudeep Holla --- Documentation/devicetree/bindings/arm/arm,scpi.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/arm,scpi.txt b/Documentation/devicetree/bindings/arm/arm,scpi.txt index f002460..af66f7f 100644 --- a/Documentation/devicetree/bindings/arm/arm,scpi.txt +++ b/Documentation/devicetree/bindings/arm/arm,scpi.txt @@ -72,8 +72,18 @@ Required sub-node properties: - compatible : should be "arm,juno-scp-shmem" for Non-secure SRAM based shared memory on Juno platforms +Sensor bindings for the sensors based on SCPI Message Protocol +-------------------------------------------------------------- +SCPI provides an API to access the various sensors on the SoC. + +Required properties: +- compatible : should be "arm,scpi-sensors". +- #thermal-sensor-cells: should be set to 1. This property follows the + thermal device tree bindings[2]. + [0] http://infocenter.arm.com/help/topic/com.arm.doc.dui0922b/index.html [1] Documentation/devicetree/bindings/clock/clock-bindings.txt +[2] Documentation/devicetree/bindings/thermal/thermal.txt Example: @@ -122,6 +132,11 @@ scpi_protocol: scpi@2e000000 { clock-output-names = "pxlclk0", "pxlclk1"; }; }; + + scpi_sensors0: sensors { + compatible = "arm,scpi-sensors"; + #thermal-sensor-cells = <1>; + }; }; cpu@0 {