Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp949296rdb; Wed, 1 Nov 2023 07:22:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGO9SvQgPmNtPtg6Z1TXesbDNJReytWdBU3gOjzbkAnbEG0WPFiHKs6cNmXsGGzKM+j858x X-Received: by 2002:a05:6870:56a8:b0:1e9:e975:4418 with SMTP id p40-20020a05687056a800b001e9e9754418mr20357605oao.53.1698848557072; Wed, 01 Nov 2023 07:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698848557; cv=none; d=google.com; s=arc-20160816; b=ov66ZMqGeSJ7rDFySeiL3m0OtNnxtPkfUJniX7RpqB5QlQJlDWzOsIaOt1CZMxhdEQ FetNmMdYWEzMfFR4bwo0jLFdQl7pCjoqMEp8uh0qSIS5Bs4aWC8QOj3plBtI0UUZxG5u r5yNzZ/wmqqJ+2SmoQC28ZcA8++ezb7q+l2BF7tOj++Q7Tm+a8bZfyibaNvziGEQE5lc jiDgeJmokCoG+xhwq95ZDAHu1Xgd39D3wiWwRWk+Z+Gvs9kDd6AHhQ5wmFBc4PBshNww WyZEa6iC0XRCnlWu5ytzDxDpUZ6+Xj0fsEssEkx3yQJ3Lol5tOwF6GqTuKfIQXjFUuBX zc2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=J/KfXtnlsxkHOWGWL/ahWCJ5PQS2xM9nsLdfpk8B9gE=; fh=hsrLswS7LEMJy7JSxbH08RViEhPy4BILXIf7ai5H6b0=; b=k1gwFblzazUsVJ2MWRhg2OxpP4CatjxgXaSJg+nAqnwb2tAMH87nHQlwd5lmamMsrt Av3CqToo/DpnJbsjErkY0sf3yYlQgnKwUkPkKP/7fBGvd0T/p7/338HfSV+AFcrNodlt QggdjqGMPbVS49aBBYwJlOC6H9bVK44JoCyiTf9h9PGB9VzcUZc3cylRE+1XjDrooowD 1ZNwLDHvALIdI9FiupBnNxiSrcyIaoqrfLuPJD9NkWZg0Br5/7ptEApmKshnOOSY1B2I OSi/l3CirP+wK9+dHIg4FbNJC+78GU6pPvoVcDDX0dxJHgGZxByjla4YupzGUap5fVVs G1oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mXBbJH1C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 75-20020a63004e000000b005b92db1e10asi3196923pga.692.2023.11.01.07.22.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 07:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mXBbJH1C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6B9B780A5FB8; Wed, 1 Nov 2023 07:22:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233987AbjKAOWD (ORCPT + 99 others); Wed, 1 Nov 2023 10:22:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230464AbjKAOWC (ORCPT ); Wed, 1 Nov 2023 10:22:02 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83BCB10F; Wed, 1 Nov 2023 07:21:54 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3b566bc6daaso989109b6e.1; Wed, 01 Nov 2023 07:21:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698848514; x=1699453314; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=J/KfXtnlsxkHOWGWL/ahWCJ5PQS2xM9nsLdfpk8B9gE=; b=mXBbJH1CgDEMFCs9LARv1F5dPfx4HzW8jmCcnb8mC2MCwiv6DkyK4gLEMoLAvcl7cq +morSGin12yTEg0iyW3vpC/hgqnXgfXNFTgVHKli/DV978tgoBv1sWDFOi0hOM40V1Qh oP4cvCHD5zX4Xl4P3/v3QX8qeqYwh3Qq8PGtjMhkp8F9SsrbyXwr+2aLf0cJGwTvcWBc qP5igEW8VKBpbrRx+jTOpTyaovTxKojKhwv6BPIyjoV0waI2MKI66nFIUgzKBuNzwwCv WiDcM47k3a/0J0+ib6y0vCYinmylok434BheAcShYOWcDnCvUM0s9Zs+TeD2BIXuhbcq ORZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698848514; x=1699453314; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=J/KfXtnlsxkHOWGWL/ahWCJ5PQS2xM9nsLdfpk8B9gE=; b=PxtwHPiP63Ct9wOY8iXATEVxyA637NbFXVEoXU9o1TTLbGAXDyEQ7n6s6zYbHQ/ip6 q9PFeXAU2IFb36xVq7Mk4ruiPAe41xiWHQ0i8FVAyzheBVQCeqhh9psp8IqwD/8p/P9R d/OgMn5zJg/hhZebGvLAV4kAZyUOBXumKoyScdxzdYSB7reUDpO/KnGgPAVSwUWgA1GC KVdaKOdwYzGYW+ckYpcpaSJIku8sFtpSOex0ymlgqfeU9MGDPO5A1lcwxQHRlZcne5S8 sXYywMzhHiow55OZff0BgP8vuycAwZUz6D37vkcsvfuBsWuLW/Z9/r+hg/fKtHaIlP2B FEEw== X-Gm-Message-State: AOJu0YzIY/dxdqb5SjAe4jyTnCdl7dkeLfG5CAi83YrnKN/nS0uGyk41 wWPo5PxYgV0runNWK252R0vkSoxS4aA= X-Received: by 2002:a05:6808:602:b0:3ae:5c0c:df0f with SMTP id y2-20020a056808060200b003ae5c0cdf0fmr16271349oih.44.1698848513642; Wed, 01 Nov 2023 07:21:53 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id q12-20020a0568080ecc00b003a7a34a4ed8sm229203oiv.33.2023.11.01.07.21.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 07:21:52 -0700 (PDT) Sender: Guenter Roeck Date: Wed, 1 Nov 2023 07:21:51 -0700 From: Guenter Roeck To: Antoniu Miclaus Cc: Alessandro Zummo , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean Delvare , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH v4 2/2] rtc: max31335: add driver support Message-ID: <81efcde1-8305-465a-85a2-cfe449e8a8da@roeck-us.net> References: <20231101094835.51031-1-antoniu.miclaus@analog.com> <20231101094835.51031-2-antoniu.miclaus@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231101094835.51031-2-antoniu.miclaus@analog.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 07:22:12 -0700 (PDT) On Wed, Nov 01, 2023 at 11:48:14AM +0200, Antoniu Miclaus wrote: > RTC driver for MAX31335 ?2ppm Automotive Real-Time Clock with > Integrated MEMS Resonator. > > Signed-off-by: Antoniu Miclaus > --- > changes in v4: > - add Kconfig entry for HWMON dependency. > MAINTAINERS | 8 + > drivers/rtc/Kconfig | 20 + > drivers/rtc/Makefile | 1 + > drivers/rtc/rtc-max31335.c | 765 +++++++++++++++++++++++++++++++++++++ > 4 files changed, 794 insertions(+) > create mode 100644 drivers/rtc/rtc-max31335.c > > diff --git a/MAINTAINERS b/MAINTAINERS > index dd5de540ec0b..bc484cb997ab 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -12823,6 +12823,14 @@ F: Documentation/devicetree/bindings/hwmon/adi,max31827.yaml > F: Documentation/hwmon/max31827.rst > F: drivers/hwmon/max31827.c > > +MAX31335 RTC DRIVER > +M: Antoniu Miclaus > +L: linux-rtc@vger.kernel.org > +S: Supported > +W: https://ez.analog.com/linux-software-drivers > +F: Documentation/devicetree/bindings/rtc/adi,max31335.yaml > +F: drivers/rtc/rtc-max31335.c > + > MAX6650 HARDWARE MONITOR AND FAN CONTROLLER DRIVER > L: linux-hwmon@vger.kernel.org > S: Orphan > diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig > index d7502433c78a..360da13fe61b 100644 > --- a/drivers/rtc/Kconfig > +++ b/drivers/rtc/Kconfig > @@ -373,6 +373,26 @@ config RTC_DRV_MAX8997 > This driver can also be built as a module. If so, the module > will be called rtc-max8997. > > +config RTC_DRV_MAX31335 > + tristate "Analog Devices MAX31335" > + depends on I2C > + select REGMAP_I2C > + help > + If you say yes here you get support for the Analog Devices > + MAX31335. > + > + This driver can also be built as a module. If so, the module > + will be called rtc-max31335. > + > +config RTC_DRV_MAX31335_HWMON > + bool "HWMON support for Analog Devices MAX31335" > + depends on RTC_DRV_MAX31335 && HWMON > + depends on !(RTC_DRV_MAX31335=y && HWMON=m) > + default y > + help > + Say Y here if you want to expose temperature sensor data on > + rtc-max31335. > + This isn't used in the driver. Did you test with HWMON=n ? Guenter