From patchwork Wed Jan 4 09:56:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 13088384 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E81E8C4708E for ; Wed, 4 Jan 2023 09:56:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233904AbjADJ4i (ORCPT ); Wed, 4 Jan 2023 04:56:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234103AbjADJ4g (ORCPT ); Wed, 4 Jan 2023 04:56:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A026F1A3A9; Wed, 4 Jan 2023 01:56:35 -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 ams.source.kernel.org (Postfix) with ESMTPS id 564D1B815DB; Wed, 4 Jan 2023 09:56:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B30A6C433D2; Wed, 4 Jan 2023 09:56:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672826192; bh=3WC9ZDwXrBRhubWeQsr1033lNqa3IKzJP97No7XbvcE=; h=From:To:Cc:Subject:Date:From; b=Z7vauvSBdY+FrYMuuKdmXLP3iE7V23UHLUYRmog9XGY4m1m79w1MFvotD6z6cTNbO oYdzfEKplsZDibOJMfmXIeZ7mW8A6ITtZDRTRoooJN7L8ses2ns9Vw8LW8E/dEscJG z1H701drzkdewi9dWMj2S0LNxjdLo/25CaamBji74AmNFKgw6czi9+lUr3cqwVKaDv 7oorK7ke64pIGJFvZ6vWD7b0hgeyArKRTrHRv87Lw2JwWGavr5gJkf17n6uyfiDuk0 o3JySlw7bHrFxtzc8e9gg8+ObtxaJ/QG8VdmOZmv9oBM2IYoQzoQiWi68nUHpMTHcl gWs0mFmXUEbbQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pD0Vy-0001lF-Jo; Wed, 04 Jan 2023 10:56:54 +0100 From: Johan Hovold To: Alexandre Belloni Cc: Alessandro Zummo , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH] dt-bindings: rtc: qcom-pm8xxx: allow 'wakeup-source' property Date: Wed, 4 Jan 2023 10:56:12 +0100 Message-Id: <20230104095612.6756-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The RTC can be used as a wakeup source on at least some platforms so allow it to be described as such. Signed-off-by: Johan Hovold Acked-by: Rob Herring --- Since commit 30d70ec8f7fd ("arm64: dts: qcom: sa8295p-adp: Add RTC node") this triggers a warning on DT validation so it would be nice to get this into 6.2: arch/arm64/boot/dts/qcom/sa8295p-adp.dtb: rtc@6000: 'wakeup-source' does not match any of the regexes: 'pinctrl-[0-9]+' Johan Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml index 0a7aa29563c1..21c8ea08ff0a 100644 --- a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml @@ -40,6 +40,8 @@ properties: description: Indicates that the setting of RTC time is allowed by the host CPU. + wakeup-source: true + required: - compatible - reg