Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1975032rwn; Fri, 9 Sep 2022 06:56:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR4vz3dZbDxf9lyPHUKlGTI8f4m23wTsCyIL7JwKpAgOoiCR7UWuzfy5+0PtSLK3pxEAR4u5 X-Received: by 2002:aa7:8a49:0:b0:53e:6a9c:9a04 with SMTP id n9-20020aa78a49000000b0053e6a9c9a04mr14574113pfa.85.1662731772066; Fri, 09 Sep 2022 06:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662731772; cv=none; d=google.com; s=arc-20160816; b=PGFWDCEMWPI8d9T+makWUPsjYIhwspZgm6yaE87nMlB9b+7rKlrEkf2ZeiL5VXWwWE rmYdSCwJZ6qW6wREcHO/urO35rJL+9oFVTY1a/qJzbO06q8b4UKOvynGiZ6ZYhdbcjBr D3xp9Y3vZUDjd4HiwNI7DRpjA8gZ067lBRg0Gq/74SenLRiHKECLGbPaognLxsf+FKob URI2GrechwT+GkALCHr3CpxoRHYzYMJ9941smOqce0v/Bb4rO7JEvgnuNzN9qTLRV3jB a27JRF+f2tMCL5XyxdFj+iIG9ELQlpBcaS+VsEZjBFyNdo0AYXD5Kv8R0oSKOs0uuzJR Dr0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LVXbdq71VhueZpxQG7bjh4yAPshWfba1kbxQvpVR3aw=; b=0BUH/C9/XXAEj1ghX/FryjxvrJteqoCjq0k3Z4RSMw1gu6pPIAywDFxlViCkZ4hG4+ zMFejotAd4fNf2koNehuoIts5576GE0O2TEjV+d8Q1EY5BQL/4ohdd5zgvLkQW3UHVkQ OxM9/1tRAo2x2FPdP1127B05kA8AAb5YRyDqGmWeB1KZ46NKKNJJHHtieiSzHKoEqyaB BrPBEBn56stE0nZiTGO4+RpFWDb2gSQGOwQaWDdd5j2uc+jnGgzvS7XYxeeuybTMTTbg 9bNuWumgaW2JUcKzh1DlLlf/89Leb6icP8u35q4OeEFnc+fuUjJAMxtRuJ1AIocAdIPQ dt+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z17-20020a056a00241100b0053e93aa8f9fsi574930pfh.333.2022.09.09.06.55.59; Fri, 09 Sep 2022 06:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230510AbiIINiL (ORCPT + 99 others); Fri, 9 Sep 2022 09:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbiIINiJ (ORCPT ); Fri, 9 Sep 2022 09:38:09 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 222C512B294; Fri, 9 Sep 2022 06:38:08 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 289DAOwH030782; Fri, 9 Sep 2022 09:37:50 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3jf8yc3ppk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Sep 2022 09:37:49 -0400 Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 289DbmFU042441 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 9 Sep 2022 09:37:48 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Fri, 9 Sep 2022 09:37:47 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Fri, 9 Sep 2022 09:37:47 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Fri, 9 Sep 2022 09:37:47 -0400 Received: from ibrahim-vm.ad.analog.com ([10.158.19.28]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 289DbUuj018872; Fri, 9 Sep 2022 09:37:33 -0400 From: Ibrahim Tilki To: , CC: Ibrahim Tilki , , , , , Subject: [PATCH v8 0/4] hwmon: Add max31760 fan speed controller Date: Fri, 9 Sep 2022 16:37:14 +0300 Message-ID: <20220909133718.388213-1-Ibrahim.Tilki@analog.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: 2qJPxa8D7yW71o9WLeWB5S7bfn2LySoI X-Proofpoint-ORIG-GUID: 2qJPxa8D7yW71o9WLeWB5S7bfn2LySoI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-09_08,2022-09-09_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=899 lowpriorityscore=0 mlxscore=0 bulkscore=0 spamscore=0 suspectscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2209090047 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org changes in v8: - use sizeof(*) - use DEFINE_SIMPLE_DEV_PM_OPS - remove __maybe_unused - remove of_match_ptr - dt-bindings: style fixes changes in v7: - make max31760_read_string static changes in v6: - update description of hwmon documentation - add hwmon documentation to index.rst changes in v5: - add dt-bindings documentation - add maintainer changes in v4: - use sysfs_emit instead of sprintf - use kstrtou8 for pwm - use closest match for pwm1_auto_point_temp_hyst changes in v3: - add regmap cache - remove pwm1_auto_point[1-48]_{temp,temp_hyst} attributes - add pwm1_auto_point_temp_hyst attribute changes in v2: - remove pulse_per_rev variable in tach_to_rpm - remove temperature max_hyst and crit_hyst - strict value checking for fan_enable and pwm_enable - do not clamp pwm value for Look-up table - add sysfs_attr_init call - add documentation Ibrahim Tilki (4): drivers: hwmon: Add max31760 fan speed controller driver docs: hwmon: add max31760 documentation dt-bindings: hwmon: Add bindings for max31760 MAINTAINERS: Add maintainer for hwmon/max31760 .../bindings/hwmon/adi,max31760.yaml | 44 ++ Documentation/hwmon/index.rst | 1 + Documentation/hwmon/max31760.rst | 77 +++ MAINTAINERS | 9 + drivers/hwmon/Kconfig | 12 + drivers/hwmon/Makefile | 1 + drivers/hwmon/max31760.c | 596 ++++++++++++++++++ 7 files changed, 740 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/adi,max31760.yaml create mode 100644 Documentation/hwmon/max31760.rst create mode 100644 drivers/hwmon/max31760.c -- 2.36.1