From patchwork Thu Nov 5 11:37:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Vaittinen, Matti" X-Patchwork-Id: 11883967 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 06ECF14C0 for ; Thu, 5 Nov 2020 11:37:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E38B0206FB for ; Thu, 5 Nov 2020 11:37:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730407AbgKELhZ (ORCPT ); Thu, 5 Nov 2020 06:37:25 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:40820 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730568AbgKELhY (ORCPT ); Thu, 5 Nov 2020 06:37:24 -0500 Received: by mail-lf1-f65.google.com with SMTP id e27so1807185lfn.7; Thu, 05 Nov 2020 03:37:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=nS45yyZNp7fVZijqS9qiF6xN7pmeG/2OUYLO/JQ/Ll0=; b=swOyl9A+QQoq2vlks6pzq2tQuqf8VMuvzJ3jmXW7MhYnfb6P4Hy+C08HERDYfmawcF OMd8D1u6bEuiyeOpeubSnGZHqncSqfenVywH+i2Gen8uDiip5EaItEY4iLQyN9FIC8Dj b8RpBkuTaT++xD9mNHtt1n4tvtlClgdNek1Y39aMIpzSYiubobL3XYPYKVxiY3ouVJ3K y4wtuyAnF65f1V7eAYH7PGwcvgfxq9naFrwdYv+wtOTRooScf3GoXETUdOh6T+v63MPg ksXCfxfMCqZ4bBPzMTwT28g8Vj5If6lRrPzLMQ0SmcSv7FDwadwUlqeBYDocTvFGvZLF nwAw== X-Gm-Message-State: AOAM5335hPOrHCH6Jw/5+4RLPT332YoDOspxXLWh6WRDmDx4vH7AvMV3 gCRTyE/s/ga3SyzzheRM6a8= X-Google-Smtp-Source: ABdhPJyYWJfbYbGkMxN0l3iVA2R6V/LwyxcH6I3utG/EctET16WoGY2VXlgpIb94KcncPMLWk+1DTA== X-Received: by 2002:ac2:554c:: with SMTP id l12mr762776lfk.35.1604576241360; Thu, 05 Nov 2020 03:37:21 -0800 (PST) Received: from localhost.localdomain (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id u3sm155697lfm.57.2020.11.05.03.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 03:37:20 -0800 (PST) Date: Thu, 5 Nov 2020 13:37:13 +0200 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: Lee Jones , Rob Herring , Liam Girdwood , Mark Brown , Matti Vaittinen , Wim Van Sebroeck , Guenter Roeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-power@fi.rohmeurope.com, linux-watchdog@vger.kernel.org Subject: [PATCH v5 0/4] Support ROHM BD9576MUF and BD9573MUF PMICs Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org Initial support for ROHM BD9576MUF and BD9573MUF PMICs. These PMICs are primarily intended to be used to power the R-Car family processors. BD9576MUF includes some additional safety features the BD9573MUF does not have. This initial version of drivers does not utilize these features and for now the SW behaviour is identical. This patch series includes MFD and watchdog drivers. Regulator part was already applied. - Enabling and pinging the watchdog - configuring watchog timeout / window from device-tree This patch series does not bring interrupt support. BD9576MUF and BD9573MUF are designed to keep the IRQ line low for whole duration of error condition. IRQ can't be 'acked'. So proper IRQ support would require some IRQ limiter implementation (delayed unmask?) in order to not hog the CPU. Changelog v5: - rebased on top of v5.10-rc2 - few styling fixes in MFD as suggested by Lee Changelog v4: - rebased on top of 5.10-rc1 - Fix typo (repeated word maximum) from the DT binding doc Changelog v3: - use only one binding to specify watchdog time-out window. Changelog v2: - dropped already applied regulator part - dt_bindings: Fix case for regulator-names in the example - watchdod: unify probe error check and revise includes --- Matti Vaittinen (4): dt_bindings: mfd: Add ROHM BD9576MUF and BD9573MUF PMICs mfd: Support ROHM BD9576MUF and BD9573MUF wdt: Support wdt on ROHM BD9576MUF and BD9573MUF MAINTAINERS: Add ROHM BD9576MUF and BD9573MUF drivers .../bindings/mfd/rohm,bd9576-pmic.yaml | 123 ++++++++ MAINTAINERS | 4 + drivers/mfd/Kconfig | 11 + drivers/mfd/Makefile | 1 + drivers/mfd/rohm-bd9576.c | 108 +++++++ drivers/watchdog/Kconfig | 13 + drivers/watchdog/Makefile | 1 + drivers/watchdog/bd9576_wdt.c | 290 ++++++++++++++++++ include/linux/mfd/rohm-bd957x.h | 59 ++++ include/linux/mfd/rohm-generic.h | 2 + 10 files changed, 612 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd9576-pmic.yaml create mode 100644 drivers/mfd/rohm-bd9576.c create mode 100644 drivers/watchdog/bd9576_wdt.c create mode 100644 include/linux/mfd/rohm-bd957x.h base-commit: 3cea11cd5e3b00d91caf0b4730194039b45c5891