Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5523076ybv; Mon, 17 Feb 2020 22:22:34 -0800 (PST) X-Google-Smtp-Source: APXvYqxlSN7IITAJqhk5QQi/1aa3JpiqDQnJU5r2zQr1+VPztdCwBxcyQ+qFvulMMhL8gTFdPGQS X-Received: by 2002:a05:6830:1607:: with SMTP id g7mr14614863otr.320.1582006954860; Mon, 17 Feb 2020 22:22:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582006954; cv=none; d=google.com; s=arc-20160816; b=TqSHAOWUEK/Gdm0kbxczW2cf+Y6eztk8H03v4jYGi9rNzFKotFZDJxXGkbIa8s0Pvq 8kKZpA0YV2e/Fu+WSWEb5jmAhUtwihfpQLTrijBwDdumhuW+UtyfK71iN1l2cjgmMyxp YcSAVLdigbgsZ/i4fxc3VqlFEEJXfh9eyWVL+y3P2ZsaPRiNTkE9X4O1aTT2DNlQXMVb OLjxdqYg0FAUUH+17ozOn0ARk+6cU5GBN2Nx/Q65wEwMRnatP90Wz4ib9SSpx646yZxq yOeYvYEKUqwmmG6Wq+R5GFxqCwUT20UnwPZwA6El2dRi+4NAhUMW4+SbXXuaDmIJ3/mw lN8g== 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:cc:to:from :dkim-signature; bh=bDxLdFftj2IWWC8iJ/gD6olwrFTBIbD4WB3uu4ao4RY=; b=FYN9tbfzqqUhwswQu00HT5FWQ8wL9c/6dJIk49ifyCeC4Sv1K55ft2rqiYqNR7pGpY Zsov1VmEbHQqsKDyFGvLW9VwjrkCmV+0KP1CRRapNtylnORgG/ky6NOLqlLgDjm6BPco SP/8/AHo1hMejTMW52Q2nA0FTI6E4/p0Ao0r2XVYRyYyI2dyF1RZ/rlc3xTxOGNVaGeV bpv/36Ow8pH4MMzY6gGuaqgdxmKMtaFoWh+k2o9SptB+E8cGault0h9OIETCHRlwfb++ 5j5/nD8HPB/Vh6aCo4zEl1HGZDcBB76+8X/BAIwXtB8ORwYPlaOzny0jN3VvIq8BAlc+ g0ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Ua4SnNym; 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 h138si7331639oib.6.2020.02.17.22.22.22; Mon, 17 Feb 2020 22:22:34 -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=Ua4SnNym; 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 S1726360AbgBRGVB (ORCPT + 99 others); Tue, 18 Feb 2020 01:21:01 -0500 Received: from mail.andi.de1.cc ([85.214.55.253]:58054 "EHLO mail.andi.de1.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbgBRGUu (ORCPT ); Tue, 18 Feb 2020 01:20:50 -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:Cc:To:From:Sender:Reply-To: 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=bDxLdFftj2IWWC8iJ/gD6olwrFTBIbD4WB3uu4ao4RY=; b=Ua4SnNymDOW+CeAghFqEEFozG/ Tj5c3e6dpeLvF3Oe1pDNqKEhaPCpjj/c1aBF4FEK5Hz9T/ZKpVav3IPAH54Fir05T56hUmoDtdJee 4LiRplNUeRlufno8ua2NmI/6Q2Ep5veFFTjJRHtU400eyGOEzllogeua/SeC4mEn8V+M=; Received: from [77.247.85.102] (helo=localhost) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1j3wFO-0000oy-1L; Tue, 18 Feb 2020 07:20:42 +0100 Received: from andi by localhost with local (Exim 4.92) (envelope-from ) id 1j3wF4-0005rK-VX; Tue, 18 Feb 2020 07:20:22 +0100 From: Andreas Kemnade To: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, lee.jones@linaro.org, b.galvani@gmail.com, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, phh@phh.me, stefan@agner.ch, letux-kernel@openphoenux.org, martin.blumenstingl@googlemail.com, jic23@kernel.org Cc: Andreas Kemnade Subject: [PATCH RFC v3 3/4] mfd: rn5t618: add IRQ definitions for RN5T618 Date: Tue, 18 Feb 2020 07:17:24 +0100 Message-Id: <20200218061725.22420-4-andreas@kemnade.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200218061725.22420-1-andreas@kemnade.info> References: <20200218061725.22420-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 --- depends on: https://lore.kernel.org/lkml/20191220122416.31881-1-andreas@kemnade.info/ Untested, IMHO only acceptable with a Tested-By. Not needed for the RC5T619, feel free to ignore them if the whole series would be delayed just because of missing Tested-By for this. 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