Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1584808pxb; Mon, 11 Oct 2021 08:57:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJdXcR3fK2Bbhzugv9QRZ3Tt0mkWjLjjcMk/IWUwOmpx/SrPtfOeuqLH2oZqbVLj60RQad X-Received: by 2002:a17:90b:17d0:: with SMTP id me16mr32019397pjb.152.1633967867355; Mon, 11 Oct 2021 08:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633967867; cv=none; d=google.com; s=arc-20160816; b=MDAmtHulFtN+0Fd5qpp4qssjcS5LPMZxz1r4h2cDviia1vpyIVkLrAi83hj8FOHkpS Nyku3Gtcft3Q67BbieipPND56rl3NHEGm2VTTHJGVLE9Y8SzLiOmO0W3qYBuTl98SrAV EFlEvE9TucDiCQjYz3w4MasyXg+z3uzCUNwNKxRh5v2r8wv/sVSLFYvSPEK3NhwXl3C5 yUM3U9SIcsJibC4FF+n+DzY7zo52g8CIOa+difi0MaH9Lgo+SYX7qkxU0J4uiChhXs2Z 09TH293xQgxbEYG4XNhr8U+4reJ9yorohsDyVtngDxkyz2M188lhb22YQCCa1Lhnyy4Q SBPg== 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=Fcm57SRM81eTpqD3FjBCVH7BJlL4jbc+MumsaJQ5bxQ=; b=Bs73oQivRIFeC0VxaEBOQq5fObGJ+3rHlFjcrpPa0LvJEuQmFMen4XQ51jOEMdoarZ 7xldncezPDnb3RI5XwIhPasNuLQpogi1ELfxqabcC6QS3POD83vWPvTHIkiokGGsmEBw nJTWX8naNvT5VEVhzlfemAKqh45wPefvoK68qN7IWI5mrDpXXid+uWBaWSf8aP/uKEZN nDD/Q9cRM91pwnMVjmN+lQHCpQztodJTiahBhYBDMyrdht6CkJn8HjEkjn2yxOeqyKKs ta6cD7B8F42w2Czgo8rAGAfhq//WNyrAlCPiaJl7DnIjB9UZjhnW6zJFcF2lnvEf03Az Tytg== 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 h3si1532496plo.334.2021.10.11.08.57.34; Mon, 11 Oct 2021 08:57:47 -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 S235429AbhJKP6e (ORCPT + 99 others); Mon, 11 Oct 2021 11:58:34 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:52796 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235166AbhJKP6d (ORCPT ); Mon, 11 Oct 2021 11:58:33 -0400 Received: from [77.244.183.192] (port=63592 helo=melee.dev.aim) by hostingweb31.netsons.net with esmtpa (Exim 4.94.2) (envelope-from ) id 1mZxfB-00DXft-T2; Mon, 11 Oct 2021 17:56:29 +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 Subject: [PATCH 0/8] Add MAX77714 PMIC minimal driver (RTC and watchdog only) Date: Mon, 11 Oct 2021 17:56:07 +0200 Message-Id: <20211011155615.257529-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. Note! Something seems wrong in the interrupt management code. Due to the fact that I'm not using interrupts on my hardware and since this is my first addition of an MFD driver, I was unable to understand what is wrong after studying the code for other MFD drivers. More details in reply to patch 8. Advice would be greatly appreciated on this topic. Except for that, all implemented functionality is tested and working: RTC read/write, watchdog start/stop/ping/set_timeout. The first 4 patches are trivial cleanups to the max77686 drivers and can probably be applied easily. Patches 5-8 add: dt bindings, mfd driver, watchdog driver and rtc driver. Luca Luca Ceresoli (8): 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 useless variable dt-bindings: mfd: add Maxim MAX77714 PMIC mfd: max77714: Add driver for Maxim MAX77714 PMIC 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/max77714.c | 151 ++++++++++++++++ drivers/rtc/Kconfig | 2 +- drivers/rtc/rtc-max77686.c | 72 +++++--- drivers/watchdog/Kconfig | 9 + drivers/watchdog/Makefile | 1 + drivers/watchdog/max77714_wdt.c | 171 ++++++++++++++++++ include/linux/mfd/max77686-private.h | 28 +-- include/linux/mfd/max77714.h | 68 +++++++ 12 files changed, 541 insertions(+), 42 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