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: 9612959 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 5A819604D9 for ; Thu, 9 Mar 2017 10:19:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 477D1285B2 for ; Thu, 9 Mar 2017 10:19:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A54D285E6; Thu, 9 Mar 2017 10:19:58 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C6C38285B2 for ; Thu, 9 Mar 2017 10:19:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=y+N0vrGjsCvwLqsShZOi9RuSUvVIeHBT+5pwX5pyzxc=; b=h8mBPEFnbSY0M1mO6wYF/O/9we KFC8DnSJ5hh2Qsab4xFt3P27UmMK14htW16eYlweu0ufPxYyAbmkj81ednORx62lucvQvR6WIRnjV 9ap0tl6l9+6IBUibGNZWnixBKP27okmblrihR4Tw8KOnV1edZD/564s5aV+bJOQUAQwJAeKcr9+WB uLkvQkLkDHapxQsqXJBUf56WkvEHnqgTH0BxjvQMxt/MWEQDBaaMm+svpReYXc5FiXTpeR5lq0BqO th4dw9YI4n/hpqDmgg01c+LUhwyrx+z1wbmIxEe1aTbAhxvvI+PO8vUf/LboRIphHB54nqJcwLWFe GmFcdqkg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1clvAm-0002Mz-1i; Thu, 09 Mar 2017 10:19:52 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1clv9m-0001mm-80; Thu, 09 Mar 2017 10:18:51 +0000 Received: by mail-wm0-x243.google.com with SMTP id z63so10140936wmg.2; Thu, 09 Mar 2017 02:18:29 -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=nO5ZSRzkR+MgqGCLlsX6eDDiTNo7b29e9QUaX1YE5F3w9oXpyC97KbwYxog/3Ec/6q udp5j1HJAIu5GwbvHA93suQIPoJjvcXNoPOv2PktHErUZN2OvcfICIB+f4+kEF92V5RL BMzMJZTRJRtzaOE1/LkYIkibEWX1ps8ZTqkNRCJOCVrI0E3Brhlqxa/P0fI5CSlQ6uCL oG0s8suFkN3EV1lSN4i3TRu1Ts6QDno7F5zWPec1GGjnc1/ZzoF4OJIYnvlYdQrQL1qe xe77pkCcssJNGl3MlUrvLA02keB7Cr2kfw1rC+JKf+JENjJNetSpLRJ8sScTwgo7zfus noog== X-Gm-Message-State: AMke39kzBhZGp64V6qbALpLtdgU5o69XtSZg/GQbTd7GlCXlDz2WbsIoEVsy+tUIFQrjyQ== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170309_021850_435175_C0721811 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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 ------------------------------------------------------------