From patchwork Thu Aug 11 13:16:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 658207 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wm0-x23e.google.com (mail-wm0-x23e.google.com [IPv6:2a00:1450:400c:c09::23e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s97pH6Rl4z9ssP for ; Thu, 11 Aug 2016 23:16:55 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=c5t6pF9I; dkim-atps=neutral Received: by mail-wm0-x23e.google.com with SMTP id i5sf4529290wmg.0 for ; Thu, 11 Aug 2016 06:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=rLtyHu2mYiz1OQt0ezCMNJG+V5oMBbtBOk7ytRfkZ1I=; b=c5t6pF9I3hvqeZgl0A/odml/uWl+tyhBsDim/3alkl1f+75+g7kMJ9+tJz4GqU64ZC KBsEb4tQc1C07fChMKJ/3nP+o7JaGr6r0K09UkD7it3BZnKpksfQf0VrsxvGgDMx8wZS 7+JKkmQM95fqIX3wj3csj4HnghFTVgv2KK8FeWcJHQD1tZvyk0pqzWkt7mPVXFysodB0 Illbl5hZL/hpHFyuEOUQLTgh39SFvE65kJCSoVjCNk59Fz6mkH7Q7+SPg4z0B8EYLiFw 5NtBiyxcG3kaAtqyvSDCQ9AlrVxRLGuN0G/JrZm9tZ+wiimQoAOk9DEPu2eRziLH7f2O kxuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rLtyHu2mYiz1OQt0ezCMNJG+V5oMBbtBOk7ytRfkZ1I=; b=miM+hpFVTZSd8L6stjA6qCqEdWYzXW52NF400tA3/KGKTgWsux7gv4D3d4B+4GSLQp 18LKxfFqYBGeIwRAgAcHiCbSaUgTHVUJhAhkRml4uJJCR89TBTvnHwHKDtTVpEFoIIEd W6UwK+WK7xhYsZU1u+1vEqn/rPW7bfV7/mFaCxdvJFq30QxDS+H66e0Lw9E7UpanHZRA QM0Tzy/sLsz1TvIW78MJLOAuRlP8aRlGeUNBaHPPGJ91DJEBQJnio/GFc7Qw4hnnp3iS mjVzhhiwK8praHxKd+iDzK2iWSPjWvtIv9E7dmD+sXwCwPFhEWfKd+6GopDIDh/eb+S1 6q2g== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: AEkoous5Oq+lasCunO9VyDqzcjWEnzxkDZZ8JH02vY9khPsqQ/lLwBKnboy33ldPdSVnNQ== X-Received: by 10.28.193.6 with SMTP id r6mr72604wmf.5.1470921413444; Thu, 11 Aug 2016 06:16:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.28.25.129 with SMTP id 123ls1426355wmz.21.canary; Thu, 11 Aug 2016 06:16:52 -0700 (PDT) X-Received: by 10.28.26.143 with SMTP id a137mr1254670wma.7.1470921412921; Thu, 11 Aug 2016 06:16:52 -0700 (PDT) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com. [2a00:1450:400c:c09::22d]) by gmr-mx.google.com with ESMTPS id r74si1633wme.3.2016.08.11.06.16.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Aug 2016 06:16:52 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning narmstrong@baylibre.com does not designate 2a00:1450:400c:c09::22d as permitted sender) client-ip=2a00:1450:400c:c09::22d; Received: by mail-wm0-x22d.google.com with SMTP id q128so4558577wma.1 for ; Thu, 11 Aug 2016 06:16:52 -0700 (PDT) X-Received: by 10.28.166.1 with SMTP id p1mr8611736wme.85.1470921412641; Thu, 11 Aug 2016 06:16:52 -0700 (PDT) Received: from localhost.localdomain (uch71-1-78-196-226-39.fbx.proxad.net. [78.196.226.39]) by smtp.gmail.com with ESMTPSA id 142sm3183812wmh.12.2016.08.11.06.16.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Aug 2016 06:16:51 -0700 (PDT) From: Neil Armstrong To: andy.gross@linaro.org, david.brown@linaro.org, lee.jones@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, a.zummo@towertech.it, alexandre.belloni@free-electrons.com Cc: Neil Armstrong , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, rtc-linux@googlegroups.com Subject: [rtc-linux] [PATCH v4 2/4] rtc: rtc-pm8xxx: Add support for pm8018 rtc Date: Thu, 11 Aug 2016 15:16:44 +0200 Message-Id: <1470921406-18468-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470921406-18468-1-git-send-email-narmstrong@baylibre.com> References: <1470921406-18468-1-git-send-email-narmstrong@baylibre.com> X-Original-Sender: narmstrong@baylibre.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=softfail (google.com: domain of transitioning narmstrong@baylibre.com does not designate 2a00:1450:400c:c09::22d as permitted sender) smtp.mailfrom=narmstrong@baylibre.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , In order to support RTC on Qualcomm MDM9615 SoC, add support for the pm8018 rtc in rtc-pm8xxx driver. Reviewed-by: Bjorn Andersson Acked-by: Alexandre Belloni Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/mfd/qcom-pm8xxx.txt | 1 + drivers/rtc/rtc-pm8xxx.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.txt b/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.txt index f24f334..37a088f 100644 --- a/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.txt +++ b/Documentation/devicetree/bindings/mfd/qcom-pm8xxx.txt @@ -62,6 +62,7 @@ The below bindings specify the set of valid subnodes. "qcom,pm8058-rtc" "qcom,pm8921-rtc" "qcom,pm8941-rtc" + "qcom,pm8018-rtc" - reg: Usage: required diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c index 795fcbd..fac8355 100644 --- a/drivers/rtc/rtc-pm8xxx.c +++ b/drivers/rtc/rtc-pm8xxx.c @@ -428,6 +428,7 @@ static const struct pm8xxx_rtc_regs pm8941_regs = { */ static const struct of_device_id pm8xxx_id_table[] = { { .compatible = "qcom,pm8921-rtc", .data = &pm8921_regs }, + { .compatible = "qcom,pm8018-rtc", .data = &pm8921_regs }, { .compatible = "qcom,pm8058-rtc", .data = &pm8058_regs }, { .compatible = "qcom,pm8941-rtc", .data = &pm8941_regs }, { },