Message ID | 20230126142057.25715-22-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp296718wrn; Thu, 26 Jan 2023 06:24:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXvqZMXNgugMyBpHA84wnYlUBuiFlvobxzlwIIjjTesft6ACoLH5ADpPZh1kwKr34KWbmVhX X-Received: by 2002:a05:6402:43c5:b0:499:b5fc:e56f with SMTP id p5-20020a05640243c500b00499b5fce56fmr41938202edc.19.1674743064686; Thu, 26 Jan 2023 06:24:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674743064; cv=none; d=google.com; s=arc-20160816; b=fogDgfv+c4L06HCHSBpvoHNcVjfsUYIX8XYXrsYK4cITNr0oO/btgLN2ejHF3oTg4M 6dJVcpHuYdKuL7IM263KZu5ISUlbITyzli4vJxMScyU2AlrjKtptYBbA51kVJem0gpQ0 tY8Lmhaej0P26HAHXtoMGuwhsCBjQCl9hDThHgMfx23m1+NWagIkQHLLsLRaSNX26nq2 12sNFG+93/Sc0ZFDLApoThvMcOxUduit62gkP84AqtzbQwdj4V08i+XvYA7pPQtd59Lm 0h/WCpdLa8deCSfJ9hpWzmQAGXxyagShVuGzae9WXRrFGsXeyeknIaQ+qtsaNnduutmz MXpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TNLaUEhRyGqWcG2gEgw1iXhxDtHgS44UL+TxWEV1s3I=; b=rSz7ULLKfHu943DxOgBJ/19olS9q/zUjay6iFBGJ6D13XPgft2W/wUQnTxQoYJoaz6 Vn7xPibqG6D+QI0tNBtf5R6fskQb8YB7OPgm+9IXjri+dkWxk8OvjssBeJnHCaZqAedy Cz0akzBLrAGjGtHAmj9tEJiijlLfN+YmMMwsPfsDSofy7NUyTdSRVlUNnkXYBl6PF+T5 Z6fLLoJfRJRUZ9OF217+sdu9DsAqcVlI5wAhOPdGyZUNY7GrpAOzqaFq4qHyOYpRfvIj +ST3hZp16+XbY3+ILTHC3zPgbKWOcHndEjaXPAL/hKfw8B2fYfWJtTeALn13LFXrIQG3 sprA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AgIpGWzc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn20-20020a05640222f400b004a091a92414si1902830edb.472.2023.01.26.06.24.00; Thu, 26 Jan 2023 06:24:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AgIpGWzc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232148AbjAZOXd (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Thu, 26 Jan 2023 09:23:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbjAZOXD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Jan 2023 09:23:03 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D674323C41; Thu, 26 Jan 2023 06:23:01 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B76D961841; Thu, 26 Jan 2023 14:23:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24AF6C433EF; Thu, 26 Jan 2023 14:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674742981; bh=Y6hQ4z8OREr8VZpyQDiq2a1MkhG2QzkUzUjGr8t059g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AgIpGWzcvjRAD8OqapUHhafHGrt/fxZTtm0U42XXVbuddEnFxuybBp8LUuVT7WrMm lFGzWHk6Oz2xuOAQNiGdUSZtyhoRX+ETNoLgdyGtrQ8jiVIhIzLGMT5C7Iu5IZlrSW 9y1JJn345/qjlolLNeTwIvDjUElvvWa0LAQ1Ai3Ix025yM9Ur15zdpXdNX2lt64eMU sjiPnBa/AO6XrKuwjBpz6MuNVCjK/x0KGWxuGl9ZM3CuzCjMHh4IfgwcPiwHDWQ6tv UStzxPo6OgBuu1FWuKHhsTGMPf8HakJJC12r7YIJRPNPa05XNf7RF2J2bUed80rmZe hKl7yLY0fF89A== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1pL39d-0006jA-Qx; Thu, 26 Jan 2023 15:23:05 +0100 From: Johan Hovold <johan+linaro@kernel.org> To: Alexandre Belloni <alexandre.belloni@bootlin.com>, Bjorn Andersson <andersson@kernel.org> Cc: Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Alessandro Zummo <a.zummo@towertech.it>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maximilian Luz <luzmaximilian@gmail.com>, linux-arm-msm@vger.kernel.org, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org> Subject: [PATCH 21/24] arm64: dts: qcom: sc8280xp-pmics: add pmk8280 rtc Date: Thu, 26 Jan 2023 15:20:54 +0100 Message-Id: <20230126142057.25715-22-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230126142057.25715-1-johan+linaro@kernel.org> References: <20230126142057.25715-1-johan+linaro@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756095383850314314?= X-GMAIL-MSGID: =?utf-8?q?1756095383850314314?= |
Series |
rtc: pm8xxx: add support for setting time using nvmem
|
|
Commit Message
Johan Hovold
Jan. 26, 2023, 2:20 p.m. UTC
The PMK8280 has an RTC which can also be used as a wakeup source.
Note that the RTC can not be disabled and updating the time is not
permitted either. Instead an offset can be stored in some other machine-
specific non-volatile memory which a driver can take into account.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index f2c0b71b5d8e..c62262b88810 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -95,6 +95,15 @@ pmk8280_adc_tm: adc-tm@3400 { #thermal-sensor-cells = <1>; status = "disabled"; }; + + pmk8280_rtc: rtc@6100 { + compatible = "qcom,pmk8350-rtc"; + reg = <0x6100>, <0x6200>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>; + wakeup-source; + status = "disabled"; + }; }; pmc8280_1: pmic@1 {