Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2985348ybl; Mon, 20 Jan 2020 13:22:27 -0800 (PST) X-Google-Smtp-Source: APXvYqyKzGD8p85i6Sr3w5d2WEUvEH5KUKlXQcQTaGg8JwD8akvhs2mxE76u0dcwTQXcfBTaRN+L X-Received: by 2002:aca:4106:: with SMTP id o6mr598865oia.173.1579555347799; Mon, 20 Jan 2020 13:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579555347; cv=none; d=google.com; s=arc-20160816; b=ljHF+Iy9Wf/XnJs9L4C58/6fEY3HbZ7EfMhP3j80w2y8U0vW1Oep5zUWKj5lNvlL1k M54WUf0V0j0kZPNbyXlpGZZ3CRS3Wz8MI8AO4EUTC6FyHuwFe9a195lLaAZkrdKoGEUG NIrJPikR6oX0P6MrGzLd+VKKbwwRa7guS/rano+bywOn6VWHcRxuf0tpf18vogiQx7GI KeCYraB73ZMn7XxKRHO4EJLVnz2+zXjPwwf5W0P+dTAVn9UCSuCp8oBus5JG9y+nCDra OilPNh+XRekT3xjsSgauMK9NZ3Gv0qWTj9OqV0jRbxNbFjE57CVnNsXowXmLspnc5fpS DDPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature; bh=qI/5dEJnoRpJ6a+p5KqjUs4RogAXl64fcQgcmH2ETkI=; b=a9xdWZjXFUMwlSyfbKj9jKjecdM6HSDQvcAstpUT3z2Uqr54IjlrXw5hVUe1CSxE1K ZkH6wZ8i8VDqwlWWaQRqge96u3ekPrKWhRicU5H+p9P+WnGuMMZM9GhAJ6ThrdIXApWa uoxGvRjEFbTuuJ903IufBiu/0Ks0ygkNu5WmtZFEWkarCk/hHNz86FzDcT60OeAUGdYk iyGtRJeY1+RIzN8McYKoyh6dSXTNkFY/FFO/jK8FC1ueyh+2OliilQO4Esl41Hhz64er SNgVEoml8suwhfcG0/QdW9CJkdQ1KGVBta1ClK3NNMSzBaxpzzSFqn2k9equ1GDn1OUc esvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=AveaRX7I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si17972035oij.133.2020.01.20.13.22.15; Mon, 20 Jan 2020 13:22:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=AveaRX7I; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728712AbgATVVU (ORCPT + 99 others); Mon, 20 Jan 2020 16:21:20 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:38586 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726897AbgATVVT (ORCPT ); Mon, 20 Jan 2020 16:21:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=References:In-Reply-To:Message-Id:Date:Subject: To:From:Sender:Reply-To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qI/5dEJnoRpJ6a+p5KqjUs4RogAXl64fcQgcmH2ETkI=; b=AveaRX7I0CcmbuGLGj36B+qJE 4driXHWA3O9ZJ5l6qX2IXPYmaAIA5q7h9n//yi/jbv9MRht0dSf6a7UCDqXMqaOgNVwU/frm3oxAk jraTp2b9tnYpBDK8Z+bQAUSU+T2xMUvoENJYfpoOtJwde4sCGFUdOup6+kYKz+osVs9yU=; Received: from p200300ccff0880007ee9d3fffe1fa246.dip0.t-ipconnect.de ([2003:cc:ff08:8000:7ee9:d3ff:fe1f:a246] helo=eeepc) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iteTo-0006vn-4A; Mon, 20 Jan 2020 22:21:04 +0100 Received: from andi by eeepc with local (Exim 4.89) (envelope-from ) id 1iteTn-0007WE-5p; Mon, 20 Jan 2020 22:21:03 +0100 From: Andreas Kemnade To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, lee.jones@linaro.org, b.galvani@gmail.com, linus.walleij@linaro.org, andreas@kemnade.info, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, phh@phh.me, stefan@agner.ch, letux-kernel@openphoenux.org, martin.blumenstingl@googlemail.com Subject: [PATCH RFC v2 2/3] mfd: rn5t618: add IRQ definitions for RN5T618 Date: Mon, 20 Jan 2020 22:20:55 +0100 Message-Id: <20200120212056.28806-3-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200120212056.28806-1-andreas@kemnade.info> References: <20200120212056.28806-1-andreas@kemnade.info> X-Spam-Score: -1.0 (-) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Previously, only the definitions for the RC5T619 were available. Signed-off-by: Andreas Kemnade --- Untested, IMHO only acceptable with a Tested-By drivers/mfd/rn5t618.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/mfd/rn5t618.c b/drivers/mfd/rn5t618.c index 321836f78120..6828fd40b0a1 100644 --- a/drivers/mfd/rn5t618.c +++ b/drivers/mfd/rn5t618.c @@ -58,6 +58,24 @@ static const struct regmap_config rn5t618_regmap_config = { .cache_type = REGCACHE_RBTREE, }; +static const struct regmap_irq rn5t618_irqs[] = { + REGMAP_IRQ_REG(RN5T618_IRQ_SYS, 0, BIT(0)), + REGMAP_IRQ_REG(RN5T618_IRQ_DCDC, 0, BIT(1)), + REGMAP_IRQ_REG(RN5T618_IRQ_ADC, 0, BIT(3)), + REGMAP_IRQ_REG(RN5T618_IRQ_GPIO, 0, BIT(4)), + REGMAP_IRQ_REG(RN5T618_IRQ_CHG, 0, BIT(6)), +}; + +static const struct regmap_irq_chip rn5t618_irq_chip = { + .name = "rn5t618", + .irqs = rn5t618_irqs, + .num_irqs = ARRAY_SIZE(rn5t618_irqs), + .num_regs = 1, + .status_base = RN5T618_INTMON, + .mask_base = RN5T618_INTEN, + .mask_invert = true, +}; + static const struct regmap_irq rc5t619_irqs[] = { REGMAP_IRQ_REG(RN5T618_IRQ_SYS, 0, BIT(0)), REGMAP_IRQ_REG(RN5T618_IRQ_DCDC, 0, BIT(1)), @@ -92,6 +110,9 @@ static int rn5t618_irq_init(struct rn5t618 *rn5t618) case RC5T619: irq_chip = &rc5t619_irq_chip; break; + case RN5T618: + irq_chip = &rn5t618_irq_chip; + break; default: irq_chip = NULL; break; -- 2.11.0