Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp715834rdf; Fri, 3 Nov 2023 12:48:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWNQnD9zsljTPiYsRa1MoW1wvm8Mn1RJ2876M42IMgptXkFnLcNTFgZ6M+2mW9xiQ2CQQk X-Received: by 2002:a05:6358:5908:b0:168:e702:5108 with SMTP id g8-20020a056358590800b00168e7025108mr29800014rwf.5.1699040921343; Fri, 03 Nov 2023 12:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699040921; cv=none; d=google.com; s=arc-20160816; b=RSKatjlupYGI27pf29tVTbO65YXCKnozmvNfhDEyleDmevN5oeEvsu4mNfmszeXbhh I7hRUA3HBV0C8nkxYQ1OX2L7cd4m2XVF9Dh65oBP8/NKe94SFz0Yt5ApP5FlK5+pZiYD jUWvonBQnwctp84pAbMtIVojaFlfBRrQBTlkRjiV35Zvosexh9lZchl9GofZ7HM+OMJx lJw+Y39kX7+0JTxK/nGJmNDDO6LTnAdd1iMu14tFZsVeCy89k87uUXb/fzLA2xgeY7BN n17CtXxzxUou5MegrLBORf7z/4eXKkpYSMeGoEtv2jieKPW1cQLAVKPV+E/ZKDoyo1DG gMoA== 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=71hiR2M4614A24flgU9oexTeRtUyJjbPBhFi4ecHoW8=; fh=hsrLswS7LEMJy7JSxbH08RViEhPy4BILXIf7ai5H6b0=; b=k555/JaFB1c2QoPkgVirnBJLslMcZU8L7KJ49e75sT+dfYTqRLw6JAimJpiqhRKtg2 lJYD5rPA0vtBsy67VNP2vrhBuOdsbQI2kipUuefjVXjKNwxfmiEhbshis34imIzNpVEx e5Wd8wLqUhEqjOQVEIvyBxKkdg609CRC59rR4UXFZE1MTA+BwvbTKw6NoI/wWF4DJI2R oReO9LtLLZ3srSWMpgNF9FO46JMtnWAqIVf5H2qIFa/AfpxgUHeaUw9eA10XXHbH0xh7 bLVuvX87yIcilCDmkU12vkR9bY64Cgj/eX8GRi1fetVX0hno5QqGZTZ5/Ea5J+S0BtSf 9BMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AfiRWiK6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b26-20020a65669a000000b005bd30867387si2170320pgw.226.2023.11.03.12.48.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 12:48:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AfiRWiK6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 2DDB9831334D; Fri, 3 Nov 2023 12:48:40 -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 S1377621AbjKCTsh (ORCPT + 99 others); Fri, 3 Nov 2023 15:48:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjKCTsg (ORCPT ); Fri, 3 Nov 2023 15:48:36 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93466D50; Fri, 3 Nov 2023 12:48:30 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-5a8ada42c2aso28715157b3.3; Fri, 03 Nov 2023 12:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699040910; x=1699645710; 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=71hiR2M4614A24flgU9oexTeRtUyJjbPBhFi4ecHoW8=; b=AfiRWiK6RK+k5QFQIOrpHpabefUGbYKckx2MvlCO+ykbeLljcEk2MJO9UQ78tdAbD5 x0Zxzy6ezoKiRvRXZoalXUmlpU3HJbyVLbE48DxuugN5p/XV2y36H7mtF4pgyPjC/ICw jZFwqopdw946GNjxHXow68Dp0ss8psem43+CPv4DTErtPJXcxDoZ4ZzKfR41U68HZpfP gsHAcMNgXoGUPad1iUuGSgEmvVniw3xW3bW5/Vyge+/PHU5D42DyFB7lTVx8WvGA+2+i 5BumEBQIkWXgvSHk5W5GMEdA7Z3Ucbm7tdRRTDXRqD8KLhxfOnTxXD6FUahmFfwfbu9T g+Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699040910; x=1699645710; 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=71hiR2M4614A24flgU9oexTeRtUyJjbPBhFi4ecHoW8=; b=YLXJ/A+Lp1nf4fAAa8aeyVk1xNeC4sT3amVvEReXvrvSOzmDohX2uAh+QuBsbaI/vl uepBVok/OgtLAONNCW8xXKoKVb2Irfr8Ljdtcu4jTfzGCuYI5z7wzKCFIoTPjFEFmtwn vcEJo/xqNdJmgCCaYNBIJkXxcAVAEU9rXWre4Sc49KhY9s1nyeJWsDJffNaw4IbF++/u atneQZZKUAw/ECY7TNmJYbzazEmhxHRczMSOEipUtSp5M7ly5Xue2LAOkTOc+SYMAydA GEblWfTgMiJa6zaQvwZFl/Ty6umfDm3bI7T+Wm7brFKeD46ZpNkTJfxu/VQ1DExSeij+ emnQ== X-Gm-Message-State: AOJu0Yy4zW57R/nIMMJOawa4EYzegJij9lMXH6J/CZOZ2lFIaGMBANSl 6lHUFomB2LjZ/Oob0pQRelM= X-Received: by 2002:a81:7893:0:b0:5a7:a989:b85c with SMTP id t141-20020a817893000000b005a7a989b85cmr3816975ywc.16.1699040909707; Fri, 03 Nov 2023 12:48:29 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id o63-20020a0dfe42000000b005463e45458bsm1308339ywf.123.2023.11.03.12.48.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 12:48:29 -0700 (PDT) Sender: Guenter Roeck Date: Fri, 3 Nov 2023 12:48:27 -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 v5 2/2] rtc: max31335: add driver support Message-ID: References: <20231103140051.43174-1-antoniu.miclaus@analog.com> <20231103140051.43174-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: <20231103140051.43174-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_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Fri, 03 Nov 2023 12:48:40 -0700 (PDT) On Fri, Nov 03, 2023 at 04:00:26PM +0200, Antoniu Miclaus wrote: > RTC driver for MAX31335 ?2ppm Automotive Real-Time Clock with > Integrated MEMS Resonator. > > Signed-off-by: Antoniu Miclaus > --- > MAINTAINERS | 8 + > drivers/rtc/Kconfig | 20 ++ > drivers/rtc/Makefile | 1 + > drivers/rtc/rtc-max31335.c | 700 +++++++++++++++++++++++++++++++++++++ > 4 files changed, 729 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. CONFIG_RTC_DRV_MAX31335_HWMON is not used in the driver. What is the point of having it ? Guenter