From patchwork Thu Mar 2 12:14:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 9600129 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 8CC2D60414 for ; Thu, 2 Mar 2017 12:18:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79AD6285B1 for ; Thu, 2 Mar 2017 12:18:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DE76285B5; Thu, 2 Mar 2017 12:18:26 +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 2A2B0285B1 for ; Thu, 2 Mar 2017 12:18:26 +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=kZYNSPJNKIKQOoiAx4Qu6a1LyJ KIbcXzza29ju1cnv8rcp2KMommYSakjcQ9ymFfDiwAgm2iAMRt/4lPgWSjMSDmhlMHVzGgGwvjaaX rkvIegi9opALRV8LJOi9ilANGhGCpcWznQumoYW3RGo3uVKhepxJ4D+/u3B1qnRVGt7Jl41hZ9EnD ljPDFQr0w2PeH8CkTLA9Z96QKTefHXeSAUf8vCU2v1dbX3L8+yiG7+UrYQCCStV5lIxf4WeMfG5Wg t2JrhfnbgvkCzqJTqJzzf1/lShBDI3gkzE/CM9jEtiyRHzrOR54ENPahpVaTh4KCxglTSsJ+LohqI Xm0lnqrQ==; 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 1cjPgY-00089s-3w; Thu, 02 Mar 2017 12:18:18 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjPUJ-0002Ub-0s; Thu, 02 Mar 2017 12:05:46 +0000 Received: by mail-wr0-x244.google.com with SMTP id u48so9231609wrc.1; Thu, 02 Mar 2017 04:05:18 -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=qHMnTvDkEsFsCYBTxEo8fZ39KFrsdixDAhL0Hn1EcmNstQIeN6sL37Cbsxe6BOh+mw 33t00RdOnxgubFmn9dEKfusgeMdA+7c4AiE0jbJnNmHRLw1t2LLgebXQ0tRf2jLNHOyd MLg+c7AWWVUyxncv0nMkTu6YYAv+TzMZhY4BVgxz+9ModRgCdeLDhnlOW+3XDKkMJ5Sv xrrkH1oV38npvq3G3D+pwBW05qJbewGQ35gMnIO2YoW4olPeWlWQEsEih8vxIXAQnmAJ rFXUGRh03c1mV0DgxNnyh2xfeMURM1EpMNsBfealffulGilXJo2+bY6s4S3GG2TbBv+G 06cQ== 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=ZZSRDht/yXJ5/ToViaNuw3LMA6I0YjTNoiWClvAGITlyK8MIHkmBf1msqkT4SY8cPG JbyJfmdHLc6qrtWLk0ppmwx7M1IO5IAUe6akdEVz+fIyGcenNRIBF+2Y3pfK23kuXRPw dR3g4gMObcnnQBvOEW+XBJut+lj7xBOFwxkEdUUvJjWrQ3ce0Kf4ew24tA2d4jtDaJwW t5KwftlIeQXUr5XXYbkakZJBRMbz0bFcwAD4erAmFLnQsGLjm9oumtrVcctvwo4P8vjM 1ZZH+o02Q7Hy2iL32aQWa9gW6BhNsE4nvBJKK7iVDJzoDoWoHuG0tzvQxHxJfab8K5xm C3QA== X-Gm-Message-State: AMke39mkltPD1luI4+WQ2YD3pDo9z+hHvoFms3O/hbXzbXbd8ju0/yFbQ8EpKpodxpzP9w== X-Received: by 10.223.177.218 with SMTP id r26mr4254685wra.194.1488456317198; Thu, 02 Mar 2017 04:05:17 -0800 (PST) Received: from satan.homestation.setup ([151.45.79.45]) by smtp.gmail.com with ESMTPSA id 191sm10956689wmo.21.2017.03.02.04.05.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Mar 2017 04:05:16 -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 1/2] Documentation: bindings: Introduce scpi,sensors-scale Date: Thu, 2 Mar 2017 13:14:59 +0100 Message-Id: <20170302121500.8121-2-carlo@caione.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170302121500.8121-1-carlo@caione.org> References: <20170302121500.8121-1-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170302_040540_051612_B679E02F X-CRM114-Status: UNSURE ( 8.14 ) 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 ------------------------------------------------------------