From patchwork Thu Mar 9 10:17:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 9613127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A02BB602B4 for ; Thu, 9 Mar 2017 11:34:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84C4128586 for ; Thu, 9 Mar 2017 11:34:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 796D4285F5; Thu, 9 Mar 2017 11:34:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CB3128586 for ; Thu, 9 Mar 2017 11:34:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750770AbdCILey (ORCPT ); Thu, 9 Mar 2017 06:34:54 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36249 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752894AbdCILex (ORCPT ); Thu, 9 Mar 2017 06:34:53 -0500 Received: by mail-wm0-f68.google.com with SMTP id v190so10448272wme.3 for ; Thu, 09 Mar 2017 03:34:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=anKT2CyOXlrIhMNHN6iw+cNaFY8C5oYCkzFoQ9HtbDo=; b=T44bd9V2srFuZdD+QKthKWCjQgznHg1HubsNzWia6bdzRLCx3eFKQmkmDsU6YqU/m9 49iw/E4t77spNd5WUMlRrNuElE1kftPNWmaHUSVexbpKs/GeCmbeTN2v6w/QC2Hs+Is3 wmyP/e7T5M4BLRIyWimrGaFA2iwTNdcWkrhl9oiMO+wMXnZcjzksYq2Yq8AqW/SGW/Qp AeX4In24eTwx2ti1PF+iJUEhl3IxX8jOdgdUJHEDtZfq7VmykzlKmKCV/iTMhGhJUX0R t55wpRKHJZaG4K5m3yv+XZ0V1pRasrY8vxB6oVb9wQQabaAMcpTSBfUatcAfXWz5aBMC srGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=anKT2CyOXlrIhMNHN6iw+cNaFY8C5oYCkzFoQ9HtbDo=; b=oYD5TMAqDSl9mS1/S5PFUOTFZqAB/Me1DustoooUFPiuxqY01yCH1gEO+Yae8q/3M3 b3Dcw+zJdEjNr7gOicH4ZVeKSR1h0psW4bC1Ip5CtA1RTDT99TiJ3jBRVkTuJq0V0+QJ 36wysFFZPeitBEJyMqK3SbNTHDbpXouTBndqoD83i2Ow6T2D0UgYua6K5Q31y+EDD6h3 lsteNfRnoTdRvEN+9Tv3LntR9+je6rWqR6lT+CuVG7gRzYbAfuhvwFArmrvqxNrGIq83 Ci5PZ6x8yi+vZBAd6d+tYv65af+xcxUthXTTBShbp05GNL5w7mdpW5Fa2AMGoT0+aYA5 9stg== X-Gm-Message-State: AMke39mIrj0wQV0cm+pRc9yc2fn9fxpDDelkYRXY9qPcmyquE5BfSN2aXxM2Dmws4ZOr/w== X-Received: by 10.28.230.83 with SMTP id d80mr9622600wmh.18.1489054708610; Thu, 09 Mar 2017 02:18:28 -0800 (PST) Received: from localhost.localdomain (host106-8-dynamic.15-87-r.retail.telecomitalia.it. [87.15.8.106]) by smtp.gmail.com with ESMTPSA id t30sm7660091wra.52.2017.03.09.02.18.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 02:18:28 -0800 (PST) From: Carlo Caione To: jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux@endlessm.com, punit.agrawal@arm.com, sudeep.holla@arm.com, robh+dt@kernel.org, devicetree@vger.kernel.org Cc: Carlo Caione Subject: [PATCH v3 1/2] Documentation: bindings: Introduce scpi, sensors-scale Date: Thu, 9 Mar 2017 11:17:58 +0100 Message-Id: <20170309101759.18081-2-carlo@caione.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170309101759.18081-1-carlo@caione.org> References: <20170309101759.18081-1-carlo@caione.org> Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Carlo Caione Document the new property `scpi,sensors-scale` used by the hwmon-scpi driver to convert the sensor readings to the correct / expected scale. Signed-off-by: Carlo Caione --- Documentation/devicetree/bindings/arm/arm,scpi.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/arm,scpi.txt b/Documentation/devicetree/bindings/arm/arm,scpi.txt index 4018319..35c621c 100644 --- a/Documentation/devicetree/bindings/arm/arm,scpi.txt +++ b/Documentation/devicetree/bindings/arm/arm,scpi.txt @@ -84,6 +84,24 @@ Required properties: as used by the firmware. Refer to platform details for your implementation for the IDs to use. +Optional properties: +- scpi,sensors-scale: array of 5 elements defining the unit scale used by the + SCP for the 5 different sensor classes (temperature, + voltage, current, power, energy) such that 1 == unit, + 1000 == milli, 1000000 == micro, ... + + Example: + scpi,sensors-scale = <1 1000 1000 1000000 1000000> + In this case the values reported by SCP are: + -> temperature in degree Celsius + -> voltage in millivolts + -> current in milliamperes + -> power in microwatts + -> energy in microjoules + + The default value is: + scpi,sensors-scale = <1000 1000 1000 1000000 1000000> + Power domain bindings for the power domains based on SCPI Message Protocol ------------------------------------------------------------