Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp116963imm; Tue, 5 Jun 2018 16:11:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKuIqxi7MyRsJ4ldCzSUYXS+RID4sDCwMF9Ib6mE3dZYl4hnBurkvAdRlTAI9CtOVQOg9ku X-Received: by 2002:a62:808f:: with SMTP id j137-v6mr552778pfd.91.1528240295303; Tue, 05 Jun 2018 16:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528240295; cv=none; d=google.com; s=arc-20160816; b=kqZqZM3EDWtuUTF3Recb1emLTAvFUJ5o0Tnpw+vI0P5omynCntOdYu1FRE27hHh0qj X2M/gzY1nah2ESbNuAzUtG1NKx3mQy8oTrtpsucGoW8IPbcSEBNbjWPfIjznUR/fKrYQ 6olGEL8JB/eW1yy3q7dp+yBP/hcFDLtBN7NlXUWEgy11XHwDGAVE0VeVYv2953hI8eLi S6aP7MfhROZ6oZF3jNKnfo0HwNORhf1AJyokowbbzMTvrsWO6FfcsD4J9zpc2w/2auet Qv3vZfMK+M5AbE+v2/0OmfER4cld/eceHSj/lZEcfuO87hkwPhOLeIXIMDmgl7EeLrkS aScA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=vdCwnX2pMdCSCZfTDYIL0gjYqct6qTmaYNl8ZWaLA60=; b=MCMpgdeEtJwjlISMgZUZTgO5wuvnoEgTEw/T+cAh+vUwJefa55azxzqCGGfdRsHbZg Egz+XR9c0phmIpiXe3arRrM4DaXRFv7RQ92R7bF/Y0xt51MLjgUMtDbdjcJlOfxKHKne eKuEUxqg8Z/5Blxn/XzKNMeuxs/fBRRVnRdVWgXSsVi/WlFN6UfZ/Xr0LQ+myPB0TIeh TKDdLGAi1tFjAtLB0vO/ClHCaEsrsMpazN21xSih0Oy0yZl7gHOiGgWrPMKg8hlY/r3y c+VCZJDCNJ2U10maX8DtAMAFQ8QRd/5rKhRLwu/Avf8TILRehsthc2nsL0YvgPBi0rcd xj/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KMb6tqJX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7-v6si50530624ple.585.2018.06.05.16.11.20; Tue, 05 Jun 2018 16:11:35 -0700 (PDT) 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=pass header.i=@gmail.com header.s=20161025 header.b=KMb6tqJX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932092AbeFEXK4 (ORCPT + 99 others); Tue, 5 Jun 2018 19:10:56 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54565 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752954AbeFEXKw (ORCPT ); Tue, 5 Jun 2018 19:10:52 -0400 Received: by mail-wm0-f66.google.com with SMTP id o13-v6so7972975wmf.4; Tue, 05 Jun 2018 16:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vdCwnX2pMdCSCZfTDYIL0gjYqct6qTmaYNl8ZWaLA60=; b=KMb6tqJXU0okPE2av76gOOARNICK5E2DhbLd2onNzK65+/KTlxtQ2BH+4znzvnpc9s DMFdbZ9h80L/LwkermFbjoiXhjeyW8XUOyCbu9dH3VJd6SKiR+f1UU+jL/Hv9TZRZWSz yOQCz9aMUtd4kDgeaeI1gGdvXHHSkxElFOvt8YzUW1hq9fm8YeX+4xkK+irkpamylzzB ahWS+4H8oksi/MN950e0DTpeo8c3+U94vcXSmWMfPSYJE1fMNAwgSdQLwo6sDmTXasek cQPHAH2cyUi43h08ZylInKlHy6srpEmEbKXENhoAZYlABFu63hO84y/u/YnO5rNEJc/M WL6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vdCwnX2pMdCSCZfTDYIL0gjYqct6qTmaYNl8ZWaLA60=; b=MHQxiB8P00gsTbOpE5QVvkkRqFaGxL6VQWQItW2jw+pxplkNIAOWvj8oqvGjDBUVFr nOVnxR5Wnn4jC1CsyF1EZM49QSC6zi9lkeBLG5rv5DMbRbPF11FvC80YrBItfwUXL77Q qK2NmlF5WH+aTJepin7bm/8nBhNxrIrTK71PtF+H97Twt8f2MHTPkFvDmGAagL9SS4qZ UFtAeOOGp3SaNoKGqA5r4OwDl0zrZmMuN1efh4j7qWcpRCO1sbehUmMmm6I4bhNtfz1f uZnRSr52oo/Y/npcZU/Bhs6+XnmBXDWYC1hvyITjOy4r3ktcLfrM0ksE+J0HpPKCjP1O otqQ== X-Gm-Message-State: APt69E0NmnFOEjq7TdYj0C0urSFCmewm73uu/pi0GyZq0tIxiYe5J9EJ g4pcfPM5hXQ7l579QS5n7UU= X-Received: by 2002:a1c:4203:: with SMTP id p3-v6mr124195wma.111.1528240251136; Tue, 05 Jun 2018 16:10:51 -0700 (PDT) Received: from [192.168.1.4] (ip-86-49-107-50.net.upcbroadband.cz. [86.49.107.50]) by smtp.gmail.com with ESMTPSA id n12-v6sm29763604wrp.69.2018.06.05.16.10.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jun 2018 16:10:50 -0700 (PDT) Subject: Re: [PATCH v3 07/10] mfd: da9063: Add custom IRQ map for DA9063L To: Steve Twiss , "linux-kernel@vger.kernel.org" Cc: Marek Vasut , Geert Uytterhoeven , Lee Jones , Mark Brown , Wolfram Sang , "linux-renesas-soc@vger.kernel.org" , Support Opensource References: <20180602101155.26375-1-marek.vasut+renesas@gmail.com> <20180602101155.26375-7-marek.vasut+renesas@gmail.com> <6ED8E3B22081A4459DAC7699F3695FB701941AD6EC@SW-EX-MBX02.diasemi.com> From: Marek Vasut Message-ID: <34944098-1b33-7847-8309-1aeb2a6ff4db@gmail.com> Date: Wed, 6 Jun 2018 00:58:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <6ED8E3B22081A4459DAC7699F3695FB701941AD6EC@SW-EX-MBX02.diasemi.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/05/2018 09:52 PM, Steve Twiss wrote: > Hi Marek, Hi, > Thanks. > > On 02 June 2018 11:12, Marek Vasut wrote, > >> Subject: [PATCH v3 07/10] mfd: da9063: Add custom IRQ map for DA9063L >> >> While the datasheet for DA9063L (2v1, 23-Mar-2017) lists the RTC register >> block, the DA9063L does not have an RTC. Add custom IRQ map for DA9063L to >> ignore the Alarm and Tick IRQs from the PMIC. > > I've added a request to remove the RTC references from the DA9063L datasheet. > > Adding that first part to the sentence in the commit log: "While the datasheet for DA9063L > (2v1, 23-Mar-2017) lists the RTC register block" is just pointing out an ambiguity from the > datasheet since the it also identifies those registers in Table 102 on page 126 as > "Reserved". > > I would like to suggest, the commit log entry: "Add custom IRQ map for DA9063L to ignore > the Alarm and Tick IRQs from the PMIC". OK, I'll hide it. >> Signed-off-by: Marek Vasut >> Cc: Geert Uytterhoeven >> Cc: Lee Jones >> Cc: Mark Brown >> Cc: Steve Twiss >> Cc: Wolfram Sang >> Cc: linux-renesas-soc@vger.kernel.org >> --- >> V3: New patch >> --- >> drivers/mfd/da9063-irq.c | 55 >> ++++++++++++++++++++++++++++++++++++++++++++++-- >> 1 file changed, 53 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/mfd/da9063-irq.c b/drivers/mfd/da9063-irq.c >> index 5b406ecfc14a..b6a88861cc2e 100644 >> --- a/drivers/mfd/da9063-irq.c >> +++ b/drivers/mfd/da9063-irq.c >> @@ -74,8 +74,55 @@ static const struct regmap_irq_chip da9063_irq_chip = { >> .init_ack_masked = true, >> }; >> >> +static const struct regmap_irq da9063l_irqs[] = { >> + /* DA9063 event A register */ >> + REGMAP_IRQ_REG(DA9063_IRQ_ONKEY, >> DA9063_REG_EVENT_A_OFFSET, DA9063_M_ONKEY), >> + REGMAP_IRQ_REG(DA9063_IRQ_ADC_RDY, >> DA9063_REG_EVENT_A_OFFSET, DA9063_M_ADC_RDY), >> + REGMAP_IRQ_REG(DA9063_IRQ_SEQ_RDY, >> DA9063_REG_EVENT_A_OFFSET, DA9063_M_SEQ_RDY), >> + /* DA9063 event B register */ >> + REGMAP_IRQ_REG(DA9063_IRQ_WAKE, >> DA9063_REG_EVENT_B_OFFSET, DA9063_M_WAKE), >> + REGMAP_IRQ_REG(DA9063_IRQ_TEMP, >> DA9063_REG_EVENT_B_OFFSET, DA9063_M_TEMP), >> + REGMAP_IRQ_REG(DA9063_IRQ_COMP_1V2, >> DA9063_REG_EVENT_B_OFFSET, DA9063_M_COMP_1V2), >> + REGMAP_IRQ_REG(DA9063_IRQ_LDO_LIM, >> DA9063_REG_EVENT_B_OFFSET, DA9063_M_LDO_LIM), >> + REGMAP_IRQ_REG(DA9063_IRQ_REG_UVOV, >> DA9063_REG_EVENT_B_OFFSET, DA9063_M_UVOV), >> + REGMAP_IRQ_REG(DA9063_IRQ_DVC_RDY, >> DA9063_REG_EVENT_B_OFFSET, DA9063_M_DVC_RDY), >> + REGMAP_IRQ_REG(DA9063_IRQ_VDD_MON, >> DA9063_REG_EVENT_B_OFFSET, DA9063_M_VDD_MON), >> + REGMAP_IRQ_REG(DA9063_IRQ_WARN, >> DA9063_REG_EVENT_B_OFFSET, DA9063_M_VDD_WARN), >> + /* DA9063 event C register */ >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI0, DA9063_REG_EVENT_C_OFFSET, >> DA9063_M_GPI0), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI1, DA9063_REG_EVENT_C_OFFSET, >> DA9063_M_GPI1), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI2, DA9063_REG_EVENT_C_OFFSET, >> DA9063_M_GPI2), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI3, DA9063_REG_EVENT_C_OFFSET, >> DA9063_M_GPI3), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI4, DA9063_REG_EVENT_C_OFFSET, >> DA9063_M_GPI4), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI5, DA9063_REG_EVENT_C_OFFSET, >> DA9063_M_GPI5), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI6, DA9063_REG_EVENT_C_OFFSET, >> DA9063_M_GPI6), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI7, DA9063_REG_EVENT_C_OFFSET, >> DA9063_M_GPI7), >> + /* DA9063 event D register */ >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI8, DA9063_REG_EVENT_D_OFFSET, >> DA9063_M_GPI8), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI9, DA9063_REG_EVENT_D_OFFSET, >> DA9063_M_GPI9), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI10, >> DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI10), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI11, >> DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI11), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI12, >> DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI12), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI13, >> DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI13), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI14, >> DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI14), >> + REGMAP_IRQ_REG(DA9063_IRQ_GPI15, >> DA9063_REG_EVENT_D_OFFSET, DA9063_M_GPI15), >> +}; >> + >> +static const struct regmap_irq_chip da9063l_irq_chip = { >> + .name = "da9063l-irq", >> + .irqs = da9063l_irqs, >> + .num_irqs = DA9063_NUM_IRQ, > > Isn't the number of IRQs in the DA9063L different to the standard DA9063 > because of the missing RTC? I think this can even be replaced by ARRAY_SIZE() ? -- Best regards, Marek Vasut