From patchwork Thu Nov 12 07:10:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 1398727 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=fi.rohmeurope.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4CWt6N6VK5z9sRR for ; Thu, 12 Nov 2020 18:10:36 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725933AbgKLHKe (ORCPT ); Thu, 12 Nov 2020 02:10:34 -0500 Received: from mail-lj1-f181.google.com ([209.85.208.181]:38628 "EHLO mail-lj1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbgKLHKb (ORCPT ); Thu, 12 Nov 2020 02:10:31 -0500 Received: by mail-lj1-f181.google.com with SMTP id r17so4887337ljg.5; Wed, 11 Nov 2020 23:10:30 -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=2c9a5L0o01m38/cywtEUnl5nDvqplwAluAIcLy9Qg8k=; b=IcqQUjgIbSM3+Q1rsjQZFAJ5NOQ59tDJ5qoJdHt9RNQPq3w6YTL/n7/qedRcMPh09V gbOsUI9I9Cxe7TUNDYsw58HE5j1ZQYdGcBt5HKS5PgtsKKMBYP2jwlRffxQBlk7wR61k lELx9nY8rhHOK09txyPU23zZosWUeX8JiBP2FPIKQdiw1yyE2jPGrWQRoWOVZrw9ud6n gw+o17dABPJ9TyaqtXBIvynQrCqMKHU9hPBxYdc+Z162taBlKTCJy2Ku5rXqBEIZECjr Ad47ynsovM486yX6eltFSPujjF6lo4WvBtrwe7u4QmVu58RQs0QH9YjcjSx9ybdOvLXA r+SQ== X-Gm-Message-State: AOAM531CfQep0xDwUoezjP1tYl2CAsQ77YDIm+1hY/z54iI/P3PkTTh6 rqTr2jAhuKSBS8vvTHS5GXg= X-Google-Smtp-Source: ABdhPJx6e4aFlf2LsfdNBw+yacGGlf+X2MxgqFYtMqMl9AWnm0gu79+J2eaqhII0HxAqZBk3ZU1Rag== X-Received: by 2002:a2e:9dd3:: with SMTP id x19mr13012611ljj.406.1605165029303; Wed, 11 Nov 2020 23:10:29 -0800 (PST) Received: from localhost.localdomain (62-78-225-252.bb.dnainternet.fi. [62.78.225.252]) by smtp.gmail.com with ESMTPSA id t5sm457838lfc.75.2020.11.11.23.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 23:10:28 -0800 (PST) Date: Thu, 12 Nov 2020 09:10:20 +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 v6 0/4] Support ROHM BD9576MUF and BD9573MUF PMICs Message-ID: MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: devicetree@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 v6: - Fixed watchdog timeout 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 | 291 ++++++++++++++++++ include/linux/mfd/rohm-bd957x.h | 59 ++++ include/linux/mfd/rohm-generic.h | 2 + 10 files changed, 613 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