Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9543196ybl; Fri, 17 Jan 2020 14:02:19 -0800 (PST) X-Google-Smtp-Source: APXvYqzq1oVzgr1skj4mqiVhRDETzfWHW7RBva/IyZAKeFgRIx3Gq4Q6uM5PH42IFwIzCQxTJqFM X-Received: by 2002:a05:6830:1db5:: with SMTP id z21mr7840084oti.325.1579298539606; Fri, 17 Jan 2020 14:02:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579298539; cv=none; d=google.com; s=arc-20160816; b=izEZnSAMnBFepYqRQjvggrZYdmEwsRzFuq0ImSaEohbQKICCgzcyFBf7HoaCNjM/3F zKQelm3F22evotqJ43CS8tcQT3pfjVxjm2xGy8uusNQZSzCTZtYWxo6neqB/HPjqL/S6 HIPqJsupwLDyOVXO//VbcohUmWs8j8jO3ItTJH7HQ0+5m0vKEwZa6PWVzPuWjPqkqXCi fBdcl/DPxIRHPDP7a7C1qfmEAiOtotFnTrxOj/Sh7qdc2CvA5cev9j9PWdCHzxj7V/Ed PWl4W+lPWUjMM3wYX47SKDK5pFuw8C885/dIV0eV2+1YFhj7qtZUFH1j/lpm//LBoUnU /BCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=X60lhDD3EIIas99/kMy31DwPl9X0FpUBM1BVk43FGZM=; b=MrR9Pl965e/9iYVz2JQ5qMhqtFLf1IYe4QlZEG4NhzJFEN7MZuUPA7uHt0yaaRx1zH XWY9fsWcH2UsqcnP77//gJVZTtEkCbnXyyr/arskSQ/PYjSc+/ni0g688Z9nOoSjKV7C v6OBvuR/k8LTd33UophEUSAFLGyt107cdEGt3UkxJdHHtOAsImDHo79R+Iucd/VSIJxO Kla+jdiACMBWyEA8MngcZWvglg92V1SFkQWKfNuT0XioYXPXRbjGk9c6LufVGWLaHUVF 3G38zTbLO8cnEnln2QixC5rNfTgZAPDoUhwFVXEP+Ac0ok5sE2aMRfRxr2Cgajpv+DAu slDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=NJ21HVXS; 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 d188si13935883oib.273.2020.01.17.14.02.07; Fri, 17 Jan 2020 14:02:19 -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=NJ21HVXS; 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 S1730101AbgAQWBH (ORCPT + 99 others); Fri, 17 Jan 2020 17:01:07 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:38480 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730040AbgAQWBD (ORCPT ); Fri, 17 Jan 2020 17:01:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type: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=X60lhDD3EIIas99/kMy31DwPl9X0FpUBM1BVk43FGZM=; b=NJ21HVXSsv2aS36MiDR40AQ3VW QkvAmK4dHtiyoagnktdOq7OQ0l0U0cJXdG5pdLfqSOEaB9XiHS/T2OMZ0lbCWfxKONZkyhCINj/Km 7jjpkPNOahPWFeQVjIG+WA07lWdF3Qr+vWlf/8vbBm2Z6u3HI9JOM/ghYlnQIPONWjao=; Received: from p200300ccff371b001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff37:1b00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1isZfm-000780-Mb; Fri, 17 Jan 2020 23:00:58 +0100 Received: from andi by aktux with local (Exim 4.92) (envelope-from ) id 1isZfm-0003yg-DA; Fri, 17 Jan 2020 23:00:58 +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 Subject: [RFC PATCH 4/5] mfd: rn5t618: add IRQ definitions for RN5T618 Date: Fri, 17 Jan 2020 22:59:25 +0100 Message-Id: <20200117215926.15194-5-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200117215926.15194-1-andreas@kemnade.info> References: <20200117215926.15194-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.20.1