From patchwork Thu Nov 17 12:10:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Levens X-Patchwork-Id: 9435163 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 18E8660469 for ; Thu, 17 Nov 2016 18:46:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D478294A9 for ; Thu, 17 Nov 2016 18:46:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01ACA29697; Thu, 17 Nov 2016 18:46:53 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 295AC294A9 for ; Thu, 17 Nov 2016 18:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754691AbcKQSqw (ORCPT ); Thu, 17 Nov 2016 13:46:52 -0500 Received: from mail-db5eur01on0084.outbound.protection.outlook.com ([104.47.2.84]:48224 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752673AbcKQSqv (ORCPT ); Thu, 17 Nov 2016 13:46:51 -0500 X-Greylist: delayed 103982 seconds by postgrey-1.27 at vger.kernel.org; Thu, 17 Nov 2016 13:46:50 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cern.onmicrosoft.com; s=selector1-cern-ch; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/SxascqGdalSea3nZeirXd4EP3gRLwujuN3GRsGo4eU=; b=M0iHa4Uu76LffUH1MfRUvFPNtLHX2xMVXE24A6+SPcwaLOuslsRQFJmY9fFcOGCwd1RK6DUoPg48QiM15LEhOiTZKDuLVxNqxaB8kz9nRAD39opiJVbGREXbvtggCSEhV4EumDO//QTYdbuQwk7t1nKiJU6jhBZR8WNgHcP5Cqg= Received: from HE1PR0601CA0018.eurprd06.prod.outlook.com (10.166.117.28) by DB5PR06MB1670.eurprd06.prod.outlook.com (10.165.7.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10; Thu, 17 Nov 2016 12:11:02 +0000 Received: from AM1FFO11FD004.protection.gbl (2a01:111:f400:7e00::147) by HE1PR0601CA0018.outlook.office365.com (2a01:111:e400:c513::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8 via Frontend Transport; Thu, 17 Nov 2016 12:11:02 +0000 Authentication-Results: spf=none (sender IP is 188.184.36.16) smtp.mailfrom=mail.cern.ch; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cern.ch; Received-SPF: None (protection.outlook.com: mail.cern.ch does not designate permitted sender hosts) Received: from CERNMX14.cern.ch (188.184.36.16) by AM1FFO11FD004.mail.protection.outlook.com (10.174.64.86) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.721.5 via Frontend Transport; Thu, 17 Nov 2016 12:11:02 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:1195; Count:15 Received: from pcbe13573-vm.dyndns.cern.ch (128.141.154.157) by cernmxlb4.cern.ch (188.184.36.24) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 17 Nov 2016 13:10:42 +0100 Received: from pcbe13573-vm.dyndns.cern.ch (localhost [127.0.0.1]) by pcbe13573-vm.dyndns.cern.ch (8.14.4/8.14.4) with ESMTP id uAHCAf6t012517; Thu, 17 Nov 2016 13:10:41 +0100 Received: (from tlevens@localhost) by pcbe13573-vm.dyndns.cern.ch (8.14.4/8.14.4/Submit) id uAHCAfWJ012516; Thu, 17 Nov 2016 13:10:41 +0100 From: Tom Levens To: CC: , , , , , , Tom Levens Subject: [PATCH v2 2/3] hwmon: ltc2990: add devicetree binding Date: Thu, 17 Nov 2016 13:10:15 +0100 Message-ID: <1479384616-12479-2-git-send-email-tom.levens@cern.ch> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1479384616-12479-1-git-send-email-tom.levens@cern.ch> References: <1479384616-12479-1-git-send-email-tom.levens@cern.ch> MIME-Version: 1.0 X-IncomingHeaderCount: 15 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:188.184.36.16; IPV:NLI; CTRY:CH; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(428002)(249900001)(199003)(189002)(92566002)(2906002)(33646002)(4326007)(50466002)(36756003)(50226002)(5003940100001)(189998001)(6916009)(47776003)(5660300001)(626004)(2950100002)(107886002)(6666003)(4001430100002)(76176999)(106466001)(42186005)(74482002)(110136003)(2351001)(87936001)(8936002)(86362001)(246002)(50986999)(8676002)(48376002)(305945005)(7846002)(356003)(7636002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR06MB1670; H:CERNMX14.cern.ch; FPR:; SPF:None; PTR:cernmx14.cern.ch; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD004; 1:l+fDraLeHHOe+3Ju/oJFgBUNIwYSbINcmeD8Kq6ERcv66qG8Y+k7PfLBXVCmsAJEzuY6vj+11iwODC5uXxLCzFplXNONAbUwShAvZwgM3QpRluG2afU8+VdvmU/JSbbhzmf5UOofQAYnyeoDekN9NqTzwmy+lCJUGaYsRFJz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oK3Hpj4PjsBqKYql+qkkOKKJi/DGfJuAU6J9a1x9XxmbToCPOOQddB7wRVzO+Q5YElutqvTyfCUK77K9mfIw+zjsEHgw8WmZg6CTDI00/JrZejHfRjZg6VvYyfpkzvppJBpN2JXcKUjJJaRz6XYvVeoUS4Pd8krxMhk/90vfq50fDpGQBaE4HXskxxcSzX0a0MWTIHxtsEqir1J30tti36GT9kcLK1qM5H2+M4TKFP2burQKo+NK2uy4x9KEuPqPvGu3+VVY7QxoV+jcXBZgA7UiVfEER/bsq4GpR//S6sOcWP9mcMWgn2yBA== X-MS-Office365-Filtering-Correlation-Id: 136d32e0-1dac-40ce-6d56-08d40ee2cc88 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DB5PR06MB1670; X-Microsoft-Exchange-Diagnostics: 1; DB5PR06MB1670; 31:ERg5GArgCGcme4qZrqSPYAbAUo6ER0jvbtdi9WAPZFtUtuPXLg1OSBXW+HV4MTlpbLemQ+F6NeWp7iMZQNDjywcRupWtZsySfebjJmx3aR3+Y3uUipWCezwDhBs653n4ZrxGj6pPxZNGc+Ruxwwxgz9F0Xzy9zozXSj1/Cy2q5S/yahGFDrBvsKhSGe4+u3rGjLVRst+54mRWSy2ZvCKJRKq/n6l5PQQ4tdx3BRwzAiEJ8/xUoYyJoLT2uSYvntTP1TlRATZFwhy6ZpBQFpPh+KCu4P8bnlryZjsPqF/Vy8=; 20:mAczmUH6IPF0ZfEj5ay0mSxjfOaHh0b5STIpJvozz3Ee8f3XxX7EpkLSM6V9T0F2jLM5pFbi8DeEvC7a183/PjHY0Fft2pXLSc1u52vjdBCu30Dd+2DCw6e+WT94uuE2E7QL8JhzMW56NlUs0vpVgtyU2w2/jPeN1C7XoW5TCIUJHy6eRCIczGoWmrErc2qsiRQPPvkQDKXCYjJlukI9xOFbB3pxjB2+JEovGsrBajOJMMdE4k4gUiQE/z03j7TaMIBMRA8TbJEoxcbepIdYkZ7NDXfj1iNMSUvwltxpbI5yGYxfQYorl4tLir6DH1/LANpadCRR5zfMBrf1owQIC4ic5NFNrI0fUXfh20Ot5KjBHAV9ZM2SjJvBACprMBP8P4j2jDK9dDrIfKxzWWc5hd1xDWP0z+lWoNG+GSVvAMJvD3wiom5K0NNFoCkaUeG6BvHReFis8fHvrv8zcdESpD6AQtDgdapGNKa/Flbn6sL5ZO9s3IsBMEeJfyZ/YNum X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6060326)(6040281)(601004)(2401047)(13024025)(13018025)(13016025)(13023025)(8121501046)(5005006)(3002001)(10201501046)(6061324)(6041223); SRVR:DB5PR06MB1670; BCL:0; PCL:0; RULEID:; SRVR:DB5PR06MB1670; X-Microsoft-Exchange-Diagnostics: 1; DB5PR06MB1670; 4:Vashp0ofMmiMepEvC/DWOpTFbWaYW8bjh+PR5J+gqzZmDK7hNYoBR3qZO0zkQ27beBzviItyHVOxFcSEuoWIN8Ti3DI63AdLTMRW0FFkKePTNH2nGomZC/3r44O9toa2QUO1t+BMtF8VLZaq8l8WKZCuzLKS7J3JcOI2MLI/FjZVrk4sUMQi6T5GMO0P+ABCpoZ8HFF6XBjTjtFa69VnYewqe7mZbgxF3uFYR/K4pT6ybbLzTbkSU71085xw51tbMPsqT8UoABgKdKW4olHhYXKA3nwK8VjHoTkMGtLUrrN8fYm6OJ9bP9TsszRmiBXBgrS+4Nm6OTjIzM4avfgIBCBnVgrtwHa5ojMzywFVeI7eSUDfHCQX8SwAwOxgCHkant1k0rYGVAQLu4WslaqZtcSrarff6pfeutXRSfCOrBOAAMX1I7p6GkUdaTxIAIhXYx7g1E3VosxkKqBcIpV5BZmgCgVcYE2mL8dPzPFQxAxFErBJQaaqC7ONpWXoDB15SAMD7h8v2Tp9iZ350hbpF5E8Ly+SGewK7FVo7Ksurhg= X-Forefront-PRVS: 01294F875B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB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q?= =?us-ascii?Q?aMGMx2J1IWW1Eh0z0WV7fHgMQ3mNrUQV+hlkHyKBcxVMhq6DKXuN6YFNYw+C?= =?us-ascii?Q?qPrB487kynEo/SxndvOfDCotkYC9k9lOXHI4AW4wTTeNOygG+nygw/ZYG72a?= =?us-ascii?Q?0VHiGunRabMHQL3jqOmSX8JmO7ruwZMAdBci2cki3krJg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB5PR06MB1670; 6:x7hHL2M5gthf1kFR25HMf/qVz3h5R0661tNZd5g2h4SgzZvi4TTfXBMNqeUvV5+VqzaWCWHU+EfLU3c2T2q89fWyAze9C4WiTqcuNm8qoUjKvHC2YG3nMuWQsoTBq9HDZPk467bWYn7Odr9eNms8JR/F+CvARpmhPF32mvnrDGF/Kqp2GjBtu/zNzMOPnwpVhsFsWq6GpHdbwXUbLn+QUEU+qNe1qIc/RznfCRBvZEq4tDOD6bXowtKjMU9S4jp/+PyMoNTJmRc28h1n/+7udyi0hHc+pNhDS6SqNs9w3I6jH2g0Ltx6bYuHUyICBPkje/PJwGYLQ5NYt4HcjlvLENdB27JW6dm45yizzBuxKI8=; 5:qPtI4RaiZ4e6sPv67H3MP87+0w8DCyLv0n9luOLqKX641IDhEeJaDBB2WmLlOfGcRNPSiXYHIWtxaRJJ6MLWkxyW83jKgS10vhEEZBuvhTnnnN8P0+WgTXoPY0FQUTh153FgiizdUIQUnxIvhDcSek0VVTitQRj+U9gohquVQ+0=; 24:Xp061XdMHxoiH+JFSnWhnkZJ+rsinZYqw5TJC6PSMpxxc14rGB4tYKBCrlClhptYPyz7G2hieeu3vVEBkLXeTynCm4y54XeCKR7RjK6lu7E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB5PR06MB1670; 7:oSEIqQw7cXCwhOtpTlMoqCWoGZE50a9dpZtExZSC+qFvsd4wNeHfVNmmbvVwUvi60tztQy286S8KtS/Mxvcmt5M7rMkMIRDs3LvRcbGLRccunWnu297LHJ/TVy9TLCqp9xntJOG2aJQyzEG2YLFVwYbH6TV7bR6hiRehyqEfcohj1wZpow71CAbxBwv1fuV2V7oqfBpYUt4jVtW7j8Tftvu1MB4aQxvsf4CjKPfeITBi2pClHkyQs7xxMy8TFyzrneoi7SSfPOgah9WkXYWResu52tzFzZH+gZt6SS9gTU9T97+IAqKLeFaw9V97gFT8bjIFF2YKspjZKBo0uz34FghBQfWXhH8LnEIMvH5fisE= X-OriginatorOrg: cern.ch X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2016 12:11:02.0321 (UTC) X-MS-Exchange-CrossTenant-Id: c80d3499-4a40-4a8c-986e-abce017d6b19 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c80d3499-4a40-4a8c-986e-abce017d6b19; Ip=[188.184.36.16]; Helo=[CERNMX14.cern.ch] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR06MB1670 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 Add a devicetree binding for the ltc2990 hwmon driver. Signed-off-by: Tom Levens --- .../devicetree/bindings/hwmon/ltc2990.txt | 28 ++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/hwmon/ltc2990.txt diff --git a/Documentation/devicetree/bindings/hwmon/ltc2990.txt b/Documentation/devicetree/bindings/hwmon/ltc2990.txt new file mode 100644 index 0000000..e4040e0 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ltc2990.txt @@ -0,0 +1,28 @@ +ltc2990 + +Required properties: +- compatible: Must be "lltc,ltc2990" +- reg: I2C slave address + +Optional properties: +- lltc,mode: + Sets the chip's measurement mode, defaults to <6> if unset. + + The following measurements are available in each mode: + + 0: V1, V2, TR2 + 1: V1-V2, TR2 + 2: V1-V2, V3, V4 + 3: TR1, V3, V4 + 4: TR1, V3-V4 + 5: TR1, TR2 + 6: V1-V2, V3-V4 + 7: V1, V2, V3, V4 + +Example: + +ltc2990@4c { + compatible = "lltc,ltc2990"; + reg = <0x4c>; + lltc,mode = <7>; +};