From patchwork Fri Mar 3 09:14:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 9602347 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 6D5DE60453 for ; Fri, 3 Mar 2017 09:11:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 607D2285E3 for ; Fri, 3 Mar 2017 09:11:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 53AED208C2; Fri, 3 Mar 2017 09:11:17 +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 D6F5A208C2 for ; Fri, 3 Mar 2017 09:11:16 +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=w5gJtzhjB/F3hOTVjUK5tvVo5AwAy9RZGy1cPVM/7Gg=; b=tUH3VNTlrI4JiP89UUWYvnm1y/ jKCipup02058lpaLVHzWBk5G9V7E7ZX5mh4eoo6u5rQYJdyw4er/S/Ci5zXQ9gzxEVnLBW06jk192 LwiilVG0AkFaU/PsiSD8hrVZEkjwq9/uUY0RKFQKlGiizj/5QCZzNP0Kuqeh6KxILaesqB3W8NqJp 2LaBmBYLhNx+eGWdRmXl4Zmi4Q0gHinbR9Z/6wJQCnrlnOSH53/1rXLZi8jGVj78O4ccNImtDTvji 7rq2jCwfJ2NSvWHpH6RX9kOlcJ7zE0tA31MqKOOJo6It37bO7d3j0VLJiSHCPKcSeOMHGKh5ZADCQ cR5I04Og==; 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 1cjjEz-000316-NG; Fri, 03 Mar 2017 09:11:09 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjj9T-0005vs-AY; Fri, 03 Mar 2017 09:05:29 +0000 Received: by mail-wm0-x241.google.com with SMTP id m70so2058481wma.1; Fri, 03 Mar 2017 01:05:06 -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=PLkhC9arvMFV9pLbYMPm8h33LE4xb6YWV3p2f1YIMz4=; b=FDwLMoCAicgxfCRU2UqDHZdS02v0uESE+ZlHwVeX7M7kEPez9cv66nVlYe8ZI3TAGa 3STam309nZIVjSpIxy6x/n0L8/d4afsfKjbteIXR7gFUJw7sS/dMs1704QblgE123Mtw oC67pnatLSpmHaS+GeUNPxJk0J7CZDW3+2AkE90sU1HnMAhUB2m4pC7cpowsv79/aziQ IpzRm8c1qlc5WJ2Y5D9jc2wENpcwDDz+bab5tBM49LFtWkGOgKa6QlxTnzPqwBRgukBZ 8IyWI3Zu0Mq9zluZUnrf3gfoMRU8D9hkJVQVomv3GOLBmPIENigjBNBvnU4D2xZs4Azo 9Mmg== 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=PLkhC9arvMFV9pLbYMPm8h33LE4xb6YWV3p2f1YIMz4=; b=bVGYWAgptPy2sijMXegFv8qly1q9hzq4R3chJ+yeb570XDKNsGyJutSrxjuWuhGkk+ 74S+NfJSyMdDnRFl2fz4HrAPq3up+WyfNpBaSB8Bhy0FxYkwP6ZFyB2te9Flvu0OYALO LaDyasYcECOo1B4ebz8CZiFRDf2YMHw9kyKMaSp1QWb8t+faeXzoSBiAvSyJLbFtcxzx H7MCCXReyK9aE65g4Qj3BAuXY8CIR8PpE0NE51CLQSLEp03QIEbL3r1tkOy3LkMqAJKW eqUeTH+RW/SDPCNAxpeq3+wCCoquuXV6PcV5JQXcqXWQM/w6UbszIuUei+ayduCiRp/u UqiA== X-Gm-Message-State: AMke39lCP1V0LksrGHaWdeiUGUjjgNlGW7xfJjXxEPKSQn3bU4tHQlpEoilGWtVaWUCpmA== X-Received: by 10.28.111.3 with SMTP id k3mr1624494wmc.39.1488531905597; Fri, 03 Mar 2017 01:05:05 -0800 (PST) Received: from satan.homestation.setup ([151.45.79.45]) by smtp.gmail.com with ESMTPSA id z198sm2189747wmz.24.2017.03.03.01.05.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 01:05:05 -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 Subject: [PATCH v2 1/2] Documentation: bindings: Introduce scpi, sensors-scale Date: Fri, 3 Mar 2017 10:14:48 +0100 Message-Id: <20170303091449.3512-2-carlo@caione.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170303091449.3512-1-carlo@caione.org> References: <20170303091449.3512-1-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170303_010527_536368_B46E4A17 X-CRM114-Status: UNSURE ( 7.95 ) 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 401831973638..35c621ce52c5 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 ------------------------------------------------------------