From patchwork Tue Feb 12 21:46:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Menefy X-Patchwork-Id: 10808807 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7F53F13BF for ; Tue, 12 Feb 2019 21:47:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DB232C1C3 for ; Tue, 12 Feb 2019 21:47:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BD1D2C23C; Tue, 12 Feb 2019 21:47:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 155F72C269 for ; Tue, 12 Feb 2019 21:47:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727303AbfBLVrF (ORCPT ); Tue, 12 Feb 2019 16:47:05 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50213 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727816AbfBLVqx (ORCPT ); Tue, 12 Feb 2019 16:46:53 -0500 Received: by mail-wm1-f68.google.com with SMTP id x7so244243wmj.0 for ; Tue, 12 Feb 2019 13:46:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mathembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=hGQFyApiJOx4wOZwH/AKFByNuGb0n4xpe2975ACzvkI=; b=Oa4Y5ebKEoFcqrglFY4/g0w+659gVLad0Qkt9rgd8pKRTOZ9Ap2gVuBILaAkXczh3K +dtB1nhAznJfNO7o1RdjmS4btKQXHgo6aSf068svtNNDWiSffEiP1nK2rB47rCxHvobr R/t2Rcr8uNDV+qtO9ExGGVhjDnYTF33OXJGpS7B15pUOinyLEJHWeFACdY/4UE7h8mPD FjvdgBJFP7ezqUQXQ7/GmqXi2mCJhU0BSYbXPChA8tzEw6+7oP6zH+libxJt/CtJSXCQ sHN/Q7wKt00L3xXyWFSql6wHm6evMDgb7slktrNEw9jhfCVle5TXpXlmOQC12LyRC8n+ lmpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hGQFyApiJOx4wOZwH/AKFByNuGb0n4xpe2975ACzvkI=; b=ly5njuhohT9rUMalZrDwU6SvosOy0aDcU2OCe5s5GHMFjPVpuAPeWRlTDdLOBYH1Oa +w3jsF24cKPnLwMRM499ehTp7/OAC3XVkV2vDOKuTj8qC12uvNyz7IOOoOVIWK4QWy9/ w4wnO2JCmZmZMkvaeGPnSvIJuDtGjEapmOL7ea/gGlrJPJ5Zn0YgnL3nnWt3r/CqGb5P ZTBWPpMaxQ/vdJPsX7NbCDAT/ETaglz+xNPFOT7AxpDuS3mA2BQ2VLcckXL5cslIM/Qr Kgu/jRv7f63ffiQw/R6P42Boxb2t1eBs++czYk3QpqfdDv5vZfh+K4x921HuUyTwwZhW jCZw== X-Gm-Message-State: AHQUAua4v+zUpYJRCYGsqJiCsyRqQX+Ooryof0vwSeSoGmPCZE6g1Fd2 D6F0ai1oOkcScXhPQR3GDaVxFQ== X-Google-Smtp-Source: AHgI3IaqcTOlAWLL/3ycfOEwzQHdfRrrkdzVUtmzRlt0W1SbO2zMh90OlbG4/xXm5m1axi5+KRLSWg== X-Received: by 2002:a1c:d147:: with SMTP id i68mr727700wmg.41.1550008010998; Tue, 12 Feb 2019 13:46:50 -0800 (PST) Received: from localhost.localdomain (host86-176-243-198.range86-176.btcentralplus.com. [86.176.243.198]) by smtp.gmail.com with ESMTPSA id q24sm3685753wmq.16.2019.02.12.13.46.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Feb 2019 13:46:49 -0800 (PST) From: Stuart Menefy To: Sangbeom Kim , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Lee Jones , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Stuart Menefy Subject: [PATCH v2] mfd: sec: Add support for the RTC on S2MPA01 Date: Tue, 12 Feb 2019 21:46:39 +0000 Message-Id: <20190212214639.9613-1-stuart.menefy@mathembedded.com> X-Mailer: git-send-email 2.13.6 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The RTC portion of the S2MPA01 appears to have the same register layout as the S2MPS14. Signed-off-by: Stuart Menefy Reviewed-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 2 ++ drivers/mfd/sec-irq.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index e0835c9df7a1..08621ef5d822 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -103,6 +103,8 @@ static const struct mfd_cell s2mps15_devs[] = { static const struct mfd_cell s2mpa01_devs[] = { { .name = "s2mpa01-pmic", + }, { + .name = "s2mps14-rtc", }, }; diff --git a/drivers/mfd/sec-irq.c b/drivers/mfd/sec-irq.c index ad0099077e7e..a98c5d165039 100644 --- a/drivers/mfd/sec-irq.c +++ b/drivers/mfd/sec-irq.c @@ -455,6 +455,9 @@ int sec_irq_init(struct sec_pmic_dev *sec_pmic) case S5M8767X: sec_irq_chip = &s5m8767_irq_chip; break; + case S2MPA01: + sec_irq_chip = &s2mps14_irq_chip; + break; case S2MPS11X: sec_irq_chip = &s2mps11_irq_chip; break;