From patchwork Fri Dec 30 08:50:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 638277 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 1025EC3DA7C for ; Fri, 30 Dec 2022 08:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230249AbiL3IuS (ORCPT ); Fri, 30 Dec 2022 03:50:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiL3IuR (ORCPT ); Fri, 30 Dec 2022 03:50:17 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C2501929E for ; Fri, 30 Dec 2022 00:50:16 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id m26-20020a05600c3b1a00b003d9811fcaafso8237387wms.5 for ; Fri, 30 Dec 2022 00:50:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GN2FSEX7eS4zfNg7tbkbHXZHA7GmeTgA/fVSW3xN/JY=; b=hVm2wH14FZTtEwXm/Y6uEwnchiXQVfFIyb4+gn2gPUnXsnuk2ntRajXqkWTr38OFOf pdxZHzWZDFLL5hYdHkgNYun4k+6to9KqUCmA+nwkZTyfgIph/rYHk16jAxfsAXNvlXK1 2znQxZ+uqXlC4CDjepUnB6fz4EPYqaNyOd/6at+YTh6k6VJA2HMV4i+B95mLDcNjLehM VR3fV3H/jUO+/Jst5krZ9Rxrrx1sH1baoU4ayufSAzWm82KO8NbjiyZIXyjyoqCfKb4l Myh2nPZVWRu33iKH3vdr1ZttJnp1iRilCKoZCivap6YQ/dUQhZCG759S0zotI1TKOH2M vkqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GN2FSEX7eS4zfNg7tbkbHXZHA7GmeTgA/fVSW3xN/JY=; b=fDLpzxPJLIhV9778WDzPv102omjYWf9gRfCxvV5JeV7D2l5tJmhQorfmC1KbR479iC W9dNyTIZE3aPAnuZfY3frO3iw0PYKfyb4CD3zwD7VQPdBrSXvGJHamCSidZHnBZ8SIuR kvSjaAGTWvF1zyVr4SFzxrOsFtA/WLL3J1/NYqnK5cyTQd+FBFo/1mv6GY0VvYoJ6pXe NbwAumrRoJUGw8dH73ivCju1ljxVV7mTPlqi5vqYJR0an21nDae/wIzMhfUGw8ShNs9O MQJOqUznRx58/lyaxR5VS3PPFUyRGUa44QEFmOfLmFOg10ifHWfvrxpKstMtycmUnGdM tVoQ== X-Gm-Message-State: AFqh2kr0zbvxsFcmWSczJfnikU8jx+YHzufb2XztONGwFBjnsSoMHsbk lTES061KE8zegZA6G2wHbcFHEw== X-Google-Smtp-Source: AMrXdXtAtbpgehbhllb2eqL7qgGHLL/g07hl5Ik1iLQ1FgXlbDGO9JoRcYhltp/gUmTLAr3ziPqKww== X-Received: by 2002:a05:600c:1e8c:b0:3d6:2952:679b with SMTP id be12-20020a05600c1e8c00b003d62952679bmr21963079wmb.34.1672390214913; Fri, 30 Dec 2022 00:50:14 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id bh12-20020a05600c3d0c00b003cfa81e2eb4sm27599612wmb.38.2022.12.30.00.50.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 00:50:14 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Johan Hovold , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH] arm64: dts: qcom: sc8280xp-x13s: Add RTC support Date: Fri, 30 Dec 2022 10:50:10 +0200 Message-Id: <20221230085010.717423-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The PMK8350 PMIC has an available RTC block. Describe it in sc8280xp-pmics dtsi and enable it in Lenovo Thinkpad X13s specific dts. Mark it as wakeup-source to allow waking the system from sleep. Signed-off-by: Abel Vesa --- .../arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 4 ++++ arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 568c6be1ceaa..4f6daa3f8cb9 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -419,6 +419,10 @@ &pmk8280_pon_resin { status = "okay"; }; +&pmk8280_rtc { + status = "okay"; +}; + &pmk8280_vadc { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index f2c0b71b5d8e..00b13f9a7af8 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -95,6 +95,14 @@ 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>; + status = "disabled"; + }; }; pmc8280_1: pmic@1 {