From patchwork Tue Oct 1 17:50:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Tremblay X-Patchwork-Id: 11169405 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B3F151902 for ; Tue, 1 Oct 2019 18:17:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 82C2420815 for ; Tue, 1 Oct 2019 18:17:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=distech-controls.com header.i=@distech-controls.com header.b="Kn+twnsw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726376AbfJASRi (ORCPT ); Tue, 1 Oct 2019 14:17:38 -0400 Received: from mx0b-002ab301.pphosted.com ([148.163.154.99]:32986 "EHLO mx0b-002ab301.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726873AbfJASRi (ORCPT ); Tue, 1 Oct 2019 14:17:38 -0400 X-Greylist: delayed 1622 seconds by postgrey-1.27 at vger.kernel.org; Tue, 01 Oct 2019 14:17:36 EDT Received: from pps.filterd (m0118796.ppops.net [127.0.0.1]) by mx0b-002ab301.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x91HaKV1007340 for ; Tue, 1 Oct 2019 13:50:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=distech-controls.com; h=from : to : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pps-02182019; bh=tfCYR9qa+o11pkF/dU9FpdHIUOkauZgHljcQqMTZ9q0=; b=Kn+twnswdgHeyP6wFnWaef8+FIdBDsQzDhNHaxgvWzGfjWCnSGc8A7WSj9ASSmRMb/6M NzCT1NS8NMd+u3cZ/MtTNQ3vawWJtQtWn41aIrN/+jq8gT0ic6FZ7MZqrylsUrsCHE4G NALgilZ0f0AZ7mMnar2N4Otg/zvldMBLF+VWqpWLAW+cjpQ6GE9jt7vsw6DCpcecicc8 pdUtKC8bSzvvnxX6PSfl5hwADBFQZWMFt0vjk0+mt6nUV+Y/7LXz12Jsml7unDShdBls TsD/2z588R5lpjGkWN9t1rDgTFU25pY2Lyf+9cJrpGm6K8QrQjH9Col4Mi3SHGe/CYfA Dg== Received: from nam01-by2-obe.outbound.protection.outlook.com (mail-by2nam01lp2053.outbound.protection.outlook.com [104.47.34.53]) by mx0b-002ab301.pphosted.com with ESMTP id 2vaej1jsws-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 01 Oct 2019 13:50:34 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oHCq6PWVHNZ0OKLFlyex56EMt98ailRRgFDloO35qT8koMWrc1UWjSMWtLZZkRW5BeQFBFfIrT2NXzmavsqIt6ZBjW+qiq3cF4vlVBkLKFUtJkz8tCqlRhZ4RM1liu522c8X6cluburusuaZN5pbpGHlOHaaeIcFReP9obKxhaGLOtm+pbO2p8SZu6EPmksi1qH2R36G+SEBCkk1nIj6nICkjSmjrMZPh34xnM9EkiNAqFtjHwM14Q2TEUIO7PxM5HuwefUFaSrBtB4OOZ5Wn/spGTWeiSrb7oKk9l/zwTv05PP/8i7xVT26FYvgjM/iUytiVTvl8gQF7bxSv/JMAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tfCYR9qa+o11pkF/dU9FpdHIUOkauZgHljcQqMTZ9q0=; b=FB/gdtKVrKuR76aeuacrjkA31Pg3fLq5Hd/oB5mZJdIlYXoAuDgFgLkLgYLZHYmIVyUcP9ETEQ/DdEU+HuF4tyRmpVBNzuaatDCZwfwm5pRQr2521GKQIQPJUQ99mJHx0MjbQdHE8a1TEv5IzS1bs2GoIasGlu7YOYXiAZcO4OVJStkMWiBJwEmGWMRWNzEmbGOl00pca6O06oMxZJy7cdZDYu+on3islT2RqW9PUhmD0EjsBkbNbUHYQ8rekP2L6hMy2YFi4GqI29pWHXG6ybZKhEXX1BbT/seH1bfynhKSat/YZPPB/2lXYWdgvWw07fxmg7VZHkBXs9H0FkiCyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=distech-controls.com; dmarc=pass action=none header.from=distech-controls.com; dkim=pass header.d=distech-controls.com; arc=none Received: from BL0PR01MB4835.prod.exchangelabs.com (20.177.147.211) by BL0PR01MB4578.prod.exchangelabs.com (20.177.241.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.20; Tue, 1 Oct 2019 17:50:32 +0000 Received: from BL0PR01MB4835.prod.exchangelabs.com ([fe80::35e9:e131:c84f:e0a5]) by BL0PR01MB4835.prod.exchangelabs.com ([fe80::35e9:e131:c84f:e0a5%3]) with mapi id 15.20.2305.017; Tue, 1 Oct 2019 17:50:32 +0000 From: "Tremblay, Eric" To: "linux-hwmon@vger.kernel.org" Subject: [PATCH v2 2/2] hwmon: Add driver for Texas Instruments TMP512/513 sensor chips Thread-Topic: [PATCH v2 2/2] hwmon: Add driver for Texas Instruments TMP512/513 sensor chips Thread-Index: AdV4gKvqq5zO+PMTRB+ZZ75+ZF+MTg== Date: Tue, 1 Oct 2019 17:50:32 +0000 Message-ID: Accept-Language: en-CA, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mib-plugin: true x-originating-ip: [207.253.3.19] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3e5293fb-2f34-46ea-3bbf-08d74697dae1 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: BL0PR01MB4578: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0177904E6B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(136003)(396003)(376002)(346002)(366004)(199004)(189003)(14454004)(102836004)(9686003)(5640700003)(52536014)(476003)(186003)(5660300002)(2351001)(6506007)(8676002)(7696005)(55016002)(26005)(33656002)(66066001)(99286004)(74316002)(86362001)(81156014)(8936002)(71200400001)(71190400001)(66946007)(81166006)(66446008)(64756008)(66476007)(66556008)(6916009)(76116006)(2906002)(25786009)(486006)(6436002)(7736002)(478600001)(3846002)(256004)(316002)(2501003)(6116002)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR01MB4578;H:BL0PR01MB4835.prod.exchangelabs.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: distech-controls.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5KEYluh66crQq3r+E7JbtKhzr9xYLUReyWHI08FJ9fdcAcohwkSysOqK77DM1VSkIG1JQrh1mNSmYu6cH+uKx3iha6dXind+yCU5wVj3d7fRwqcMlsakmtTnAx3nbi9mG3nxvE29J3VlKYcmH8+m7kcl27eJRZpUsWcPayKp8A1hyatVL7V+oIEQQ4GdZ/96QWWtud2PJOzFQfwrNyhYDJYPGXSb1yW8nwPEkaIawU24VDQn43hgTsOA/HoyajGxMAErhTdY1NRKK4tyvIHH/ODmKfv2nFuiMFX6k+6Xxd24UpqRXxm+8p6bSFnucO0/Onupq5NfBNS9Q+4YjLhIyPK+xS1Vye1XUhTO8dbkWcUumwtrhG0V7gK8tO403e8Y89ZkOVIi/WMI4niP5c7q83Vv4uuaKBcAXKFZjaRCaV8= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: distech-controls.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e5293fb-2f34-46ea-3bbf-08d74697dae1 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Oct 2019 17:50:32.0905 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: caadbe96-024e-4f67-82ec-fb28ff53d16d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MxnOcWwvt7qQtC6n9ocXWEh3S9oG2tIEGaJ0Z8kYQ85siiGyuB5f7UBbm+vwwoJ1+uB7L8GAYrfnzlFV8ZNJ2A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR01MB4578 X-Proofpoint-Processed: True X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 bulkscore=0 mlxlogscore=999 adultscore=0 clxscore=1015 spamscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910010144 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org hwmon: Add DT bindings for TMP513 driver Signed-off-by: Eric Tremblay --- .../devicetree/bindings/hwmon/tmp513.txt | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/tmp513.txt diff --git a/Documentation/devicetree/bindings/hwmon/tmp513.txt b/Documentation/devicetree/bindings/hwmon/tmp513.txt new file mode 100644 index 000000000000..0f61793cbf2f --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/tmp513.txt @@ -0,0 +1,33 @@ +TMP513 system monitor sensor +------------------------- + +Require node properties: +- compatible: one of + "ti,tmp512" + "ti,tmp513" +- reg : the I2C address of the device. This is 0x5c, 0x5d, 0x5e, or 0x5f. +- shunt-resistor-uohm : The shunt resistor value in uOhm. + +Optional properties: +- bus-voltage-range: 32V or 16V, default to 32V. +- max-expected-current-ma: Maximum expected current value. Default to max possible value. +- pga-gain: The gain value for the PGA function. This is 8, 4, 2 or 1. Default to 8. +- temp_2_nfactor: nFactor for remote channel 1. Value according to Table 11 in datasheet. +- temp_3_nfactor: nFactor for remote channel 2. Value according to Table 11 in datasheet. +- temp_4_nfactor: nFactor for remote channel 3. Value according to Table 11 in datasheet, + TMP513 only. +- temp_hysteresis: Hystereris for temperature limits. + +Example: + tmp513@5c { + compatible = "ti,tmp513"; + reg = <0x5C>; + shunt-resistor-uohm = <330>; + bus-voltage-range = <32>; + pga-gain = <8>; + max-expected-current-ma = <100>; + temp_2_nfactor = <0x01>; + temp_3_nfactor = <0x02>; + temp_4_nfactor = <0x03>; + temp_hysteresis = <5>; + };