Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp541823pxb; Tue, 19 Oct 2021 08:04:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA2kx8+H//ItFZ2dtGlnaQAeoZukIuDshMQ2ngsu1Q2VpATRP1IDUeNAh83WuVyuCSzAuL X-Received: by 2002:a05:6402:b15:: with SMTP id bm21mr54322739edb.380.1634655878424; Tue, 19 Oct 2021 08:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634655878; cv=none; d=google.com; s=arc-20160816; b=TJ5F+kJNTsNlIe/aJxNYr8sqscIzgA/9/JhqG0vNQ5VUpV/yX+KaPGTYZHtqzVU0aL h0jxDNui7bWB0dvEMoQMV+Ki5kxXfREJg/vnJIJkKqBSGb/Ur074txPCiCi8u8T/5ZCe KkGe6DXd45m6v6tEooq277O16EcEVeBrDXSGwejEQazL02VqPpl/Wbq/1QES8Y8QiOyY yyMyUMaXRAzUwFLnCXLlxNgrALTc+2xbHET8gouCxPAmzpmyBmzcjpfQrJTMhCv5ZC6y n40mJ9+U2nirznHNkNp6xxneP7Q+G35sGSpSst7RjZikzD9aGPfFI31VDf+xGZEkhuWN 5htg== 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=Zf3g3ISJpnprCMvxD4mswjjPcgS9eTSgPICv6ZGzG4g=; b=uw3T7fjQIJhUCH1TEMOtxkAokPNzBHR7hEjoPhIkA36Cz43V3DI2d8avZycGTKbe23 msOJelReNkweTcTAYTX0zmYt1hL6YrWUpkptz58KzR6OYWxx08e5hvy/hGKGRPx2oQrs z3W861UTBEbVjzmXryqfplJ1oaRbTliuG/wKHI/Vyd6scERpZx8c/z/+HTOFETmD3HTT 3U9CMNBdU2TaDzCp+xA0JZiSP0oqe05G8YbUPfapB4sEdo77nSVX+RBQ1OgREo1bdWtR BM4rvWA+8CWBI6IEiok31kl9f2oeymT6hl6P72ROguVrQ4P11qd22e34D+tZoPDDgTT9 7OfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si39601120edd.584.2021.10.19.08.03.57; Tue, 19 Oct 2021 08:04:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231226AbhJSPBt (ORCPT + 99 others); Tue, 19 Oct 2021 11:01:49 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:59832 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229641AbhJSPBs (ORCPT ); Tue, 19 Oct 2021 11:01:48 -0400 Received: from [77.244.183.192] (port=62116 helo=melee.fritz.box) by hostingweb31.netsons.net with esmtpa (Exim 4.94.2) (envelope-from ) id 1mcqaT-00D5qd-Mz; Tue, 19 Oct 2021 16:59:33 +0200 From: Luca Ceresoli To: linux-kernel@vger.kernel.org Cc: Luca Ceresoli , Lee Jones , Rob Herring , Alessandro Zummo , Alexandre Belloni , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Wim Van Sebroeck , Guenter Roeck , devicetree@vger.kernel.org, linux-rtc@vger.kernel.org, linux-watchdog@vger.kernel.org, Chiwoong Byun , Laxman Dewangan , Randy Dunlap Subject: [PATCH v2 0/9] Add MAX77714 PMIC minimal driver (RTC and watchdog only) Date: Tue, 19 Oct 2021 16:59:10 +0200 Message-Id: <20211019145919.7327-1-luca@lucaceresoli.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this series adds minimal drivers for the Maxim Semiconductor MAX77714 (https://www.maximintegrated.com/en/products/power/power-management-ics/MAX77714.html). Only RTC and watchdog are implemented by these patches. All implemented functionality is tested and working: RTC read/write, watchdog start/stop/ping/set_timeout. Patches 1-4 + 7 are trivial cleanups to the max77686 drivers and can probably be applied easily. Patches 5, 6, 8 and 9 add: dt bindings, mfd driver, watchdog driver and rtc driver. Changes in v2: - fixed all issues reported on v1 patches - added patch 7 ("watchdog: Kconfig: fix help text indentation") - additional minor improvements Luca Luca Ceresoli (9): mfd: max77686: Correct tab-based alignment of register addresses rtc: max77686: convert comments to kernel-doc format rtc: max77686: rename day-of-month defines rtc: max77686: remove unused code to read in 12-hour mode dt-bindings: mfd: add Maxim MAX77714 PMIC mfd: max77714: Add driver for Maxim MAX77714 PMIC watchdog: Kconfig: fix help text indentation watchdog: max77714: add driver for the watchdog in the MAX77714 PMIC rtc: max77686: add MAX77714 support .../bindings/mfd/maxim,max77714.yaml | 58 ++++++ MAINTAINERS | 8 + drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile | 1 + drivers/mfd/max77686.c | 2 +- drivers/mfd/max77714.c | 165 ++++++++++++++++ drivers/rtc/Kconfig | 2 +- drivers/rtc/rtc-max77686.c | 75 +++++--- drivers/watchdog/Kconfig | 57 +++--- drivers/watchdog/Makefile | 1 + drivers/watchdog/max77714_wdt.c | 179 ++++++++++++++++++ include/linux/mfd/max77686-private.h | 28 +-- include/linux/mfd/max77714.h | 60 ++++++ 13 files changed, 580 insertions(+), 70 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/maxim,max77714.yaml create mode 100644 drivers/mfd/max77714.c create mode 100644 drivers/watchdog/max77714_wdt.c create mode 100644 include/linux/mfd/max77714.h -- 2.25.1