From patchwork Mon Aug 26 10:01:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11114311 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 961891395 for ; Mon, 26 Aug 2019 10:01:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 600A42184D for ; Mon, 26 Aug 2019 10:01:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="CtJS9u1D" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731203AbfHZKBt (ORCPT ); Mon, 26 Aug 2019 06:01:49 -0400 Received: from mail-eopbgr820040.outbound.protection.outlook.com ([40.107.82.40]:22449 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726820AbfHZKBs (ORCPT ); Mon, 26 Aug 2019 06:01:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hdVI1unku7IH4wG4llXgu1xbSOq41R63DC0zwMb87RIN/wKU3lWJZ43TyG31UeS/bXbrRfatpT/ZWawnqDP8u+4PyR6/LrvTX80hVdiijyH0wy+THPpoX8j63NzRpw8S5BSTM/F+CujRh6vc/gtgbhI5nbEsb2Hqus6XuPHXm/vYeV99V50ta42EKCZz+ExUNFXSoViC+a+RqlqTHklZb+E0CM2JlCKCa5DzjnQ45Rwqu8TJIPVDuKhloisjI1csZLDvYFQY7yy3W6B46rlBmwnmc9s2gBjKWxCkAq2XLN58NKPqqGrh+YC9/071pRpczgQo+nzGLeL9JrkEhyBQ5g== 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=6ARWcsn/gIq4EEGLyWxwrGlWX/l4C4rWGZ9b2T9N5Yc=; b=GoFfiOzBtW4KcL5quyIubjfgeyZLAjHsXAKDPBVpRJsxz8y25Uhk+/LI0wSs+m2GZYdQJbMoaJ3cRlHfy/T7a/6FyX/mNtMW0iJpe0EYiHkEhwV+wMSqT3qElB1NJaRm1sD2O3umMeQQ00zLtDgtqBoYpL6sLxdj9TXKixmhrHxoI2kXvHpNMSTAWQ/ezQmPA3Bm3F7blYKEWBkoYjpk14dPHTVCtbUyaTfV1ffU621Ttcr2sqH8EisnPs22I3UeT66YUt9gO4MEdcHqhkEqBZQqStiWTtKolCeW4ybo4dLXQjk7AB3m/2WIbajiaYpIAcZg0+c/Ac2LT/Qbz25+zw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6ARWcsn/gIq4EEGLyWxwrGlWX/l4C4rWGZ9b2T9N5Yc=; b=CtJS9u1D/3UVZuwHAGe1A9N0Q2HXaeXPEzWNegyeOt2Ys0WHyyEU8QkGKGAKtbO1sK1py6ZoIKRFZMh8fa3Yk8yNSgFVxdPMI8y1RcFqC42g6aNajFKpwWRQcmpVvah4MWDAYUP7xFg/PFogNAlzR8+dx8Bpc+ckklmUM1F2fu0= Received: from BYAPR03MB4773.namprd03.prod.outlook.com (20.179.92.152) by BYAPR03MB3589.namprd03.prod.outlook.com (52.135.213.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.19; Mon, 26 Aug 2019 10:01:43 +0000 Received: from BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::b050:60f8:d275:e9f4]) by BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::b050:60f8:d275:e9f4%7]) with mapi id 15.20.2199.021; Mon, 26 Aug 2019 10:01:43 +0000 From: Jisheng Zhang To: Jean Delvare , Guenter Roeck , Rob Herring , Mark Rutland CC: "linux-hwmon@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 1/2] hwmon: Add Synaptics AS370 PVT sensor driver Thread-Topic: [PATCH 1/2] hwmon: Add Synaptics AS370 PVT sensor driver Thread-Index: AQHVW/VDhzRa9WH15EyS2WUdGKipxA== Date: Mon, 26 Aug 2019 10:01:43 +0000 Message-ID: <20190826175029.433632f6@xhacker.debian> References: <20190826174942.2b28ff05@xhacker.debian> In-Reply-To: <20190826174942.2b28ff05@xhacker.debian> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [124.74.246.114] x-clientproxiedby: TYAPR01CA0106.jpnprd01.prod.outlook.com (2603:1096:404:2a::22) To BYAPR03MB4773.namprd03.prod.outlook.com (2603:10b6:a03:134::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a3c9cb34-9f71-4950-d5d1-08d72a0c658b x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYAPR03MB3589; x-ms-traffictypediagnostic: BYAPR03MB3589: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:873; x-forefront-prvs: 01415BB535 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(39860400002)(136003)(346002)(396003)(199004)(189003)(14454004)(81166006)(71190400001)(81156014)(71200400001)(50226002)(486006)(316002)(7736002)(52116002)(25786009)(76176011)(11346002)(5660300002)(99286004)(476003)(2906002)(446003)(86362001)(6512007)(9686003)(66066001)(305945005)(4326008)(1076003)(6486002)(478600001)(256004)(186003)(8936002)(102836004)(6116002)(6436002)(66446008)(66556008)(64756008)(66476007)(26005)(66946007)(110136005)(8676002)(6506007)(3846002)(53936002)(386003)(54906003)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR03MB3589;H:BYAPR03MB4773.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:1; received-spf: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: qJpXa1Oer44M2ilwpSkOltpmQdkEW0d0mCDFoCQYw6zHkuATF/YMtUHG9kT18X/njPxUraOinRI60KA9bzE9wRyypoI1ATFFVV1CZyNCRoC6oHoYnpiwqZoOp6FgLj5eSxh9Y6HSXmgJCH/7qFO957bLvpW8NbXgSnsU1VHAjbJWbGV1duiIFlinIHFRfe4EqT0e33GatlK/KQA1I57kEnMigNwvNltg4uj6s2i5LmDAAoc/zF1MQ+xJbHLAaqw23uJPU9JRCCHaeJPfZS4thqOT/q4+8wXF8wHHDhZaBhoLaPpUy8oyCcjJwdWL290lUBfM8P17epxA70VaAYZTe+Sbcxm+VbQ/RvBYZV81NWHBVOwzvI1iJSDynSpTgfytVjiiCT4QNwmj3dcBHxeIeONOpC/tMsJImkftONl1KPk= x-ms-exchange-transport-forked: True Content-ID: MIME-Version: 1.0 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3c9cb34-9f71-4950-d5d1-08d72a0c658b X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2019 10:01:43.0909 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XzLRJDomTDbOODA6/OYX1YfhoKq799bcp/e3xLCKi5ILi+YIC+k+A0horHcpcaKH83g2gbdPXK0SaP1dbHWiDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB3589 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add a new driver for Synaptics AS370 PVT sensors. Currently, only temperature is supported. Signed-off-by: Jisheng Zhang --- drivers/hwmon/Kconfig | 10 +++ drivers/hwmon/Makefile | 1 + drivers/hwmon/as370-hwmon.c | 158 ++++++++++++++++++++++++++++++++++++ 3 files changed, 169 insertions(+) create mode 100644 drivers/hwmon/as370-hwmon.c diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 650dd71f9724..d31610933faa 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -246,6 +246,16 @@ config SENSORS_ADT7475 This driver can also be built as a module. If so, the module will be called adt7475. +config SENSORS_AS370 + tristate "Synaptics AS370 SoC hardware monitoring driver" + help + If you say yes here you get support for the PVT sensors of + the Synaptics AS370 SoC + + This driver can also be built as a module. If so, the module + will be called as370-hwmon. + + config SENSORS_ASC7621 tristate "Andigilog aSC7621" depends on I2C diff --git a/drivers/hwmon/Makefile b/drivers/hwmon/Makefile index 8db472ea04f0..252e8a4c9781 100644 --- a/drivers/hwmon/Makefile +++ b/drivers/hwmon/Makefile @@ -48,6 +48,7 @@ obj-$(CONFIG_SENSORS_ADT7475) += adt7475.o obj-$(CONFIG_SENSORS_APPLESMC) += applesmc.o obj-$(CONFIG_SENSORS_ARM_SCMI) += scmi-hwmon.o obj-$(CONFIG_SENSORS_ARM_SCPI) += scpi-hwmon.o +obj-$(CONFIG_SENSORS_AS370) += as370-hwmon.o obj-$(CONFIG_SENSORS_ASC7621) += asc7621.o obj-$(CONFIG_SENSORS_ASPEED) += aspeed-pwm-tacho.o obj-$(CONFIG_SENSORS_ATXP1) += atxp1.o diff --git a/drivers/hwmon/as370-hwmon.c b/drivers/hwmon/as370-hwmon.c new file mode 100644 index 000000000000..98dfba45e1b0 --- /dev/null +++ b/drivers/hwmon/as370-hwmon.c @@ -0,0 +1,158 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Synaptics AS370 SoC Hardware Monitoring Driver + * + * Copyright (C) 2018 Synaptics Incorporated + * Author: Jisheng Zhang + */ + +#include +#include +#include +#include +#include +#include +#include + +#define CTRL 0x0 +#define PD BIT(0) +#define EN BIT(1) +#define T_SEL BIT(2) +#define V_SEL BIT(3) +#define NMOS_SEL BIT(8) +#define PMOS_SEL BIT(9) +#define STS 0x4 +#define BN_MASK (0xfff << 0) +#define EOC BIT(12) + +struct as370_hwmon { + void __iomem *base; +}; + +static void init_pvt(struct as370_hwmon *hwmon) +{ + u32 val; + void __iomem *addr = hwmon->base + CTRL; + + val = PD; + writel_relaxed(val, addr); + val |= T_SEL; + val &= ~V_SEL; + val &= ~NMOS_SEL; + val &= ~PMOS_SEL; + writel_relaxed(val, addr); + val |= EN; + writel_relaxed(val, addr); + val &= ~PD; + writel_relaxed(val, addr); +} + +static int read_pvt(struct as370_hwmon *hwmon) +{ + return readl_relaxed(hwmon->base + STS) & BN_MASK; +} + +static int as370_hwmon_read(struct device *dev, enum hwmon_sensor_types type, + u32 attr, int channel, long *temp) +{ + int val; + struct as370_hwmon *hwmon = dev_get_drvdata(dev); + + switch (attr) { + case hwmon_temp_input: + val = read_pvt(hwmon); + if (val < 0) + return val; + *temp = val * 251802 / 4096 - 85525; + break; + default: + return -EOPNOTSUPP; + } + + return 0; +} + +static umode_t +as370_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, + u32 attr, int channel) +{ + if (type != hwmon_temp) + return 0; + + switch (attr) { + case hwmon_temp_input: + return 0444; + default: + return 0; + } +} + +static const u32 as370_hwmon_temp_config[] = { + HWMON_T_INPUT, + 0 +}; + +static const struct hwmon_channel_info as370_hwmon_temp = { + .type = hwmon_temp, + .config = as370_hwmon_temp_config, +}; + +static const struct hwmon_channel_info *as370_hwmon_info[] = { + &as370_hwmon_temp, + NULL +}; + +static const struct hwmon_ops as370_hwmon_ops = { + .is_visible = as370_hwmon_is_visible, + .read = as370_hwmon_read, +}; + +static const struct hwmon_chip_info as370_chip_info = { + .ops = &as370_hwmon_ops, + .info = as370_hwmon_info, +}; + +static int as370_hwmon_probe(struct platform_device *pdev) +{ + struct resource *res; + struct device *hwmon_dev; + struct as370_hwmon *hwmon; + struct device *dev = &pdev->dev; + + hwmon = devm_kzalloc(dev, sizeof(*hwmon), GFP_KERNEL); + if (!hwmon) + return -ENOMEM; + + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + hwmon->base = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(hwmon->base)) + return PTR_ERR(hwmon->base); + + init_pvt(hwmon); + + hwmon_dev = devm_hwmon_device_register_with_info(dev, + "as370_hwmon", + hwmon, + &as370_chip_info, + NULL); + return PTR_ERR_OR_ZERO(hwmon_dev); +} + +static const struct of_device_id as370_hwmon_match[] = { + { .compatible = "syna,as370-hwmon" }, + {}, +}; +MODULE_DEVICE_TABLE(of, as370_hwmon_match); + +static struct platform_driver as370_hwmon_driver = { + .probe = as370_hwmon_probe, + .driver = { + .name = "as370-hwmon", + .of_match_table = as370_hwmon_match, + }, +}; +module_platform_driver(as370_hwmon_driver); + +MODULE_AUTHOR("Jisheng Zhang"); +MODULE_DESCRIPTION("Synaptics AS370 SoC hardware monitor"); +MODULE_LICENSE("GPL v2"); From patchwork Mon Aug 26 10:02:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11114313 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 3EB2E1395 for ; Mon, 26 Aug 2019 10:02:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1B3952186A for ; Mon, 26 Aug 2019 10:02:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="g+9gji3q" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726820AbfHZKC3 (ORCPT ); Mon, 26 Aug 2019 06:02:29 -0400 Received: from mail-eopbgr760049.outbound.protection.outlook.com ([40.107.76.49]:13919 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726669AbfHZKC3 (ORCPT ); Mon, 26 Aug 2019 06:02:29 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AydWuuczw65STyoW5dHAsOC6khDUeW3GZac/5i1zY4rDMsycer48vHyLheo8eiuVnygc836oNVpM8qsWZj9iLBnsFgXJUTV0YDcd2TtfyOG1OVDXj4nc3aXCtD11gdKPaZhj0k3xovYEQJlAaVzkrq8oPz3NuuQg9nrdpAj8t6ze8n0oy8de4Fv3aBrqm1IGfTHeo3vYB5+V+nT/QsIGUVeMQNfMLEELuxXn7M2ZnBQ/1HUDvzsURE2giRLhjvRbJHH3ZNs//AHr2kPcB9BeEXArdvwJZzNv7j2bn3+v6p87+KrFx4wZ7CtujsvY8MztwHxX1GDL7fTUa2JOydn1/w== 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=ccqz7W9lHpMSEfVMqMuvBMBPZov8vGKI3pvRoOSrANo=; b=CSUx2HJ5zqlkv24p1ZwzR3/u8p+9p7+xfrBHU5nx0to3CepkQ6tO3PcYE1DE+jvEBVzRKM3hCofCR0AzrK4oHe9ohQcBH2yl/3hzYJngHSFBFOmuxaINziR7SqKNQCTvwXg+dBrnvdiyijof5HxqFyqv/py5/9uhKLs1f4NhKQa/+65dvmEnISNioHqvD02Qsot/2wEMTL01jIvXf3DfWGAh8LjXwSHW9apBvC3A+0Nq+48DBfjiJg+FRhSv1lM1I9bPpv+R5r44gp7AKjcbb9FNjTMl5n5gDRwDgKxKFlh6AUFC3qo/7cRefamTk1Jv/Yh3y19SNdNozbZ7CE5CJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ccqz7W9lHpMSEfVMqMuvBMBPZov8vGKI3pvRoOSrANo=; b=g+9gji3qVFMUZlqWBHzisbWAbUgNC6aLW0AlG6DWZdmHa1mLCL1DNHd82CnL5dp0J3ORI846aSJ73GO6m5X0aWOPlDjJ7rJxbAbJpaiCLNvpj6TEbLrElda0+wEcRP2miTE6b7rkdFLa95UUGPuVzBfov0cYiNYAf3vgm9T2iiU= Received: from BYAPR03MB4773.namprd03.prod.outlook.com (20.179.92.152) by BYAPR03MB4135.namprd03.prod.outlook.com (20.177.184.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.19; Mon, 26 Aug 2019 10:02:27 +0000 Received: from BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::b050:60f8:d275:e9f4]) by BYAPR03MB4773.namprd03.prod.outlook.com ([fe80::b050:60f8:d275:e9f4%7]) with mapi id 15.20.2199.021; Mon, 26 Aug 2019 10:02:27 +0000 From: Jisheng Zhang To: Jean Delvare , Guenter Roeck , Rob Herring , Mark Rutland CC: "linux-hwmon@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH 2/2] hwmon: (as370-hwmon) Add DT bindings for Synaptics AS370 PVT Thread-Topic: [PATCH 2/2] hwmon: (as370-hwmon) Add DT bindings for Synaptics AS370 PVT Thread-Index: AQHVW/VdbV2LB6M7uUCh+nMeq42XPA== Date: Mon, 26 Aug 2019 10:02:27 +0000 Message-ID: <20190826175113.74be0368@xhacker.debian> References: <20190826174942.2b28ff05@xhacker.debian> In-Reply-To: <20190826174942.2b28ff05@xhacker.debian> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [124.74.246.114] x-clientproxiedby: TYXPR01CA0058.jpnprd01.prod.outlook.com (2603:1096:403:a::28) To BYAPR03MB4773.namprd03.prod.outlook.com (2603:10b6:a03:134::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 843419ce-c95d-4272-2969-08d72a0c7fd4 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYAPR03MB4135; x-ms-traffictypediagnostic: BYAPR03MB4135: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2657; x-forefront-prvs: 01415BB535 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(376002)(136003)(396003)(346002)(199004)(189003)(386003)(2906002)(186003)(25786009)(6506007)(50226002)(4326008)(53936002)(102836004)(26005)(305945005)(6512007)(446003)(9686003)(11346002)(8936002)(14454004)(66066001)(66446008)(478600001)(99286004)(7736002)(6486002)(81156014)(76176011)(6436002)(64756008)(81166006)(66556008)(54906003)(5660300002)(86362001)(486006)(8676002)(256004)(4744005)(3846002)(6116002)(66946007)(71190400001)(71200400001)(110136005)(66476007)(1076003)(52116002)(476003)(316002)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR03MB4135;H:BYAPR03MB4773.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:1; received-spf: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: nVfvPwtdyg6nySqzn9bz/STT0yCHeZ3As9IyuCgIq+NXDkOE2z58ZV9HpjaazefK2mvaT/zcHicEVfM0bZz/ocqMAqn3q0nPvrCzfjYxf/221hgfl0JT+vP+3Yezffvj+IOjrb5EdN729fwPnaxrbMHYl3wNlNhsJLS1NM1brptK6IOpvHSPk+chgcEi4ltlwJ2qnZKPcSeNxPRswil17Wpj0T6Y2xN676YjrQ23vS6vg/cKfuCVpmfyA5+39mGikDDYdw7mFfPuvPhcqvqLNJjRURciDEwW7x+6qXe3QnYQSCusoyjrRFGVuHy0/Pe3rm5zKK47yo7o8kQHdJuqXw6qGoR9AFNYZgNGRTgkOHiBnKA2xhsEitCPRBNKboxVb6oSqLZ2lseli2lomBR2bxa1ft6/GXYW3dls9LRYKy0= x-ms-exchange-transport-forked: True Content-ID: <252215FE06C11B46B99BDE304DC6DA60@namprd03.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 843419ce-c95d-4272-2969-08d72a0c7fd4 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2019 10:02:27.1847 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JxbR/YSUN+Ba2mwJm7l80FaKJ54iD6Q3+KgAyv24eO3wUKl5HdPFRSW+uxlG+3+/rD07QyrJ1aHDN0D6wz36iA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB4135 Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Add device tree bindings for Synaptics AS370 PVT sensors. Signed-off-by: Jisheng Zhang --- Documentation/devicetree/bindings/hwmon/as370.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/as370.txt diff --git a/Documentation/devicetree/bindings/hwmon/as370.txt b/Documentation/devicetree/bindings/hwmon/as370.txt new file mode 100644 index 000000000000..d102fe765124 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/as370.txt @@ -0,0 +1,11 @@ +Bindings for Synaptics AS370 PVT sensors + +Required properties: +- compatible : "syna,as370-hwmon" +- reg : address and length of the register set. + +Example: + hwmon@ea0810 { + compatible = "syna,as370-hwmon"; + reg = <0xea0810 0xc>; + };