From patchwork Tue Apr 20 16:49:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 424882 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADA4EC433B4 for ; Tue, 20 Apr 2021 16:49:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C9196115C for ; Tue, 20 Apr 2021 16:49:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233144AbhDTQuW (ORCPT ); Tue, 20 Apr 2021 12:50:22 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49789 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232473AbhDTQuV (ORCPT ); Tue, 20 Apr 2021 12:50:21 -0400 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZN-0003Uu-Ih for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:49:49 +0000 Received: by mail-ed1-f71.google.com with SMTP id i18-20020aa7c7120000b02903853032ef71so4521615edq.22 for ; Tue, 20 Apr 2021 09:49:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Lf3R3UlD7H86mpi6A7mTNMrbIdtgoRuo/+qKw5ATzUM=; b=Nqlq1O4lnNYI9lQuAVGnndJPU357eMfIb6hVHftTvwkjsvWfP5x3x6tVJl7tfC2h9+ 96bnaw5g/MYh1aTcNf7m+yovySP/VU5cQrdO70lzHDAY7AKBkYKZOeVoXwYC3C9/OASv /E4o5PerFWBKA1L4ozU5tuKn/cqmyLV9c167qlkH24JIOhGVWedf6qn/rPHC28QfI77o M5Dab4UtZDl9fPRhVpO03EhXckH9AZilcZ3C8dYkbGTlYyAKL+b4XxndVgI3nW1y9QZ8 yB7K6+cu3lEu6uCFAUStqOPd3f8En3TpN9oe4MowRGKMIiwfSSnAqmGPeB9LeGrbod13 qpzQ== X-Gm-Message-State: AOAM5314KMW5pBxEhHnWD9Clkon1xLQctQ7yTckq3CKHXsAfTdumCylb HEObS8xiCFAppdN4lXTW265JloPbgswpoRQmgV0UQ2+M9lFSMZC5RKlaJTD+T9pndM6Ht1vU8/f uMaCHkXMvjXQtEMkZ4STsg25GeM4kRZUZsb6XKk90VoKg10XY X-Received: by 2002:a17:907:3ac1:: with SMTP id fi1mr28609677ejc.139.1618937388090; Tue, 20 Apr 2021 09:49:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqnsgxDKVVF3jVQIl+y95qKX0R7WnE2ZWOWN34qb+/L0a4hZg40fBDZLGnkF70sm5SFbLapg== X-Received: by 2002:a17:907:3ac1:: with SMTP id fi1mr28609664ejc.139.1618937387922; Tue, 20 Apr 2021 09:49:47 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.49.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:49:47 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/11] ARM: dts: exynos: enable PMIC wakeup from suspend on Itop Core Date: Tue, 20 Apr 2021 18:49:33 +0200 Message-Id: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on S5M8767 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4412-itop-scp-core.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos4412-itop-scp-core.dtsi b/arch/arm/boot/dts/exynos4412-itop-scp-core.dtsi index 4583d342af39..b3726d4d7d93 100644 --- a/arch/arm/boot/dts/exynos4412-itop-scp-core.dtsi +++ b/arch/arm/boot/dts/exynos4412-itop-scp-core.dtsi @@ -163,6 +163,7 @@ s5m8767: pmic@66 { <1025000>, <950000>, <918750>, <900000>, <875000>, <831250>; + wakeup-source; regulators { ldo1_reg: LDO1 { From patchwork Tue Apr 20 16:49:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 425572 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05B2AC43461 for ; Tue, 20 Apr 2021 16:49:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B782A6115C for ; Tue, 20 Apr 2021 16:49:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233172AbhDTQuY (ORCPT ); Tue, 20 Apr 2021 12:50:24 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49791 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232473AbhDTQuX (ORCPT ); Tue, 20 Apr 2021 12:50:23 -0400 Received: from mail-ed1-f72.google.com ([209.85.208.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZP-0003V6-Cn for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:49:51 +0000 Received: by mail-ed1-f72.google.com with SMTP id n18-20020a0564020612b02903853320059eso4422368edv.0 for ; Tue, 20 Apr 2021 09:49:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WtF7drMW/C8jMVcOqQFPcpIF1FOocl5b39ThslsHgGk=; b=S79SgjOchBsldOe9vaUGR+rlI/bxwaphtu9Q28pS3qqlf4Y9N9EJP2yQ0MpIVMYgb6 Uj+6dM9pp30l4fYw2WOmCcpzo8K9EmbNXF6L5XTJLN2DkI4fNomlmUSSlt2uZJn0Chl0 l0Axtq5OQb7WtFtV8x+DYfQzRO3av3fl8aM+NOUZdC+HAXDy2Cva4WUC951jPAGSGqv5 Rdb1Zi3Kqu2OcKZ40FzxD/ppt9U0EWXXJtUeZfJk7+1i195A5rhBC9ed0WfIlMMd50N4 Z4pYeqYxYVEbqZR94umGYgdLrJCNUIP80B/cX5Q25oTyz9/PcjnoDEAVzY2alj3ionmn T3jw== X-Gm-Message-State: AOAM530Vd9S0PYbeThg5VN6PQhFgz/RaDlO5PAuQWKBc8z1F63J6K3V7 nPmzGWEOpztGbf0EnlhXC1Nk+PgVKuqsVufBfLX9tbFoVyJ5Q/vXp1Q8wa3GVrUSB3yFs4FyDfM A2ARQ2+t0/4+5rx//QTW15dzJGZhLq4YFDc63NUxG3QXDu3wc X-Received: by 2002:a05:6402:2216:: with SMTP id cq22mr5290224edb.265.1618937391135; Tue, 20 Apr 2021 09:49:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVvPEaItX2UDL57iBqC4tjCH7fETaHnfGtmtZl/hJ8UxEg3LymZw2SkKopQjwT2bKj34XsiA== X-Received: by 2002:a05:6402:2216:: with SMTP id cq22mr5290217edb.265.1618937391035; Tue, 20 Apr 2021 09:49:51 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:49:48 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/11] ARM: dts: exynos: enable PMIC wakeup from suspend on Origen4412 Date: Tue, 20 Apr 2021 18:49:34 +0200 Message-Id: <20210420164943.11152-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on S5M8767 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4412-origen.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos4412-origen.dts b/arch/arm/boot/dts/exynos4412-origen.dts index e1f6de53e20e..5479ef09f9f3 100644 --- a/arch/arm/boot/dts/exynos4412-origen.dts +++ b/arch/arm/boot/dts/exynos4412-origen.dts @@ -144,6 +144,7 @@ pmic@66 { <1200000>, <1200000>, <1200000>, <1200000>, <1200000>, <1200000>; + wakeup-source; s5m8767_osc: clocks { compatible = "samsung,s5m8767-clk"; From patchwork Tue Apr 20 16:49:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 424881 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66645C433ED for ; Tue, 20 Apr 2021 16:49:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22A1260200 for ; Tue, 20 Apr 2021 16:49:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232835AbhDTQu0 (ORCPT ); Tue, 20 Apr 2021 12:50:26 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49797 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233207AbhDTQu0 (ORCPT ); Tue, 20 Apr 2021 12:50:26 -0400 Received: from mail-ed1-f70.google.com ([209.85.208.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZR-0003VX-Qo for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:49:53 +0000 Received: by mail-ed1-f70.google.com with SMTP id v5-20020a0564023485b029037ff13253bcso13440095edc.3 for ; Tue, 20 Apr 2021 09:49:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3dMD592ElHi8nMETJZuVYSTLboZNsfqcXUmwdRPVf7o=; b=OkehA1M25NSmjcmLP+YphTAJ7uE1ZSW9J0hpjUcr+SSuokfKhaoSUIao0sFhSVncRI pJyHCXIiFmM1lylbzEQT+OD6uu/GPMxFKdLywxzhRCG5PQj8VYOTXZQUTAPsMKSWICwL ZVZfiUD6ehNaLVMCi88eUhk1WNj3aMYD4ieEiX4gzJ5Dede2M55YOuPfBGSZ7U0cPGRL OHSBMhQEASW62/jsyAX9QeXzl4szQ69as79X6SSxK4RBbRzwC3oTUdrCm4RV5i8MDV7O E5fcSPMoDLayTI7pHDbF0bkf6dwGVfImkNX4GInAlQh6i0rDj1NaKDhMZJ6cxpaTkbAj LVwA== X-Gm-Message-State: AOAM533fz7QDVBDcwwwe25i3dPbm0WL3d7A1kP2CGaIpo871N67vwBwR df9DJCkXDXX1muw8o6Tp0j/uU+HK44A7E7buptp/Y4ZPAtJOgYYZMnY2wFFR8jk1Af064Ez9um2 VobSY0Giwza3W5esRCe5avme72uwqUM1ul/dUeR4pQIxWoRgb X-Received: by 2002:a17:906:3544:: with SMTP id s4mr29389527eja.73.1618937393514; Tue, 20 Apr 2021 09:49:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxml5h0MCp/k5aMeRiDFOFNo/wwzl9BNnecPMV2V8bC7mVCzWrVVPBCya4E8qd8HJd3A8nb9g== X-Received: by 2002:a17:906:3544:: with SMTP id s4mr29389514eja.73.1618937393389; Tue, 20 Apr 2021 09:49:53 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:49:52 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/11] ARM: dts: exynos: enable PMIC wakeup from suspend on Arndale Date: Tue, 20 Apr 2021 18:49:35 +0200 Message-Id: <20210420164943.11152-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on S5M8767 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5250-arndale.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5250-arndale.dts b/arch/arm/boot/dts/exynos5250-arndale.dts index a161f6237c7f..a771542e28b8 100644 --- a/arch/arm/boot/dts/exynos5250-arndale.dts +++ b/arch/arm/boot/dts/exynos5250-arndale.dts @@ -218,6 +218,7 @@ pmic@66 { interrupts = <2 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&s5m8767_irq>; + wakeup-source; vinb1-supply = <&main_dc_reg>; vinb2-supply = <&main_dc_reg>; From patchwork Tue Apr 20 16:49:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 425571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AFE6C433B4 for ; Tue, 20 Apr 2021 16:49:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2F270613D3 for ; Tue, 20 Apr 2021 16:49:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233248AbhDTQu3 (ORCPT ); Tue, 20 Apr 2021 12:50:29 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49803 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233233AbhDTQu1 (ORCPT ); Tue, 20 Apr 2021 12:50:27 -0400 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZT-0003Vs-Bc for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:49:55 +0000 Received: by mail-ed1-f71.google.com with SMTP id n18-20020a0564020612b02903853320059eso4422455edv.0 for ; Tue, 20 Apr 2021 09:49:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Fj7Vif2aTzH3tZdsi6YgQzN1WxIkWtk37rnugc0OEF0=; b=ESyVh7wa2O+en8Yve1c+AMvtUQ9ojB+umvgrWhUAcGwzeuPgTaoye002M+5piwxLjB RZHU9RuYbDuPfL5gF4QBQ5hNLCKDXOftIDwHn4d9acvZXAkUJorxuEonwjcCTyVVLdrA S+oh+adEyxm7MLWfFwU0C6KI5M85q0k5Al6ypg1pr7cBm2ZdkGW/0FkY2K88zCWCowFT pS5vx9mwSPpZLRKiFOtisXzKxesRfwkdirMDSjOK4152b7hlSOdq6VZx41HYbIUjWJ3w lOKKBaoZ9yILfAlALdiIzz2e+2gFPYomeurU/MXq/Yr7GdIiMgIHc76K4GRfGHgUC+gr r42Q== X-Gm-Message-State: AOAM531PoWqddr1kwHGrtSwnUCi7PcnOpmqBvjWEMl/lQ/YpA4jOxmNV 1i6NDSpdvWRrAwko5iRNO0rrNUwpuEfJugGu29kDmoft/UwnpZvy0g9prKS7CiWOMh2TaaVcLOL 0yIlIOW3v5k2yH3xWpxJLCM5hdygjEp4v86QpjP7jRrOS3nVh X-Received: by 2002:a17:906:b6c5:: with SMTP id ec5mr28557655ejb.290.1618937395092; Tue, 20 Apr 2021 09:49:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSRr6NSrHQp8U2jeiaffvf8WYW9iKm2uFgtdWnQa2quGs+NQghxGhwm2wVUg9G15AZRlNR6Q== X-Received: by 2002:a17:906:b6c5:: with SMTP id ec5mr28557643ejb.290.1618937394964; Tue, 20 Apr 2021 09:49:54 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.49.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:49:53 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/11] ARM: dts: exynos: enable PMIC wakeup from suspend on Odroid XU Date: Tue, 20 Apr 2021 18:49:36 +0200 Message-Id: <20210420164943.11152-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on Maxim max77802 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5410-odroidxu.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5410-odroidxu.dts b/arch/arm/boot/dts/exynos5410-odroidxu.dts index 949c0721cdb4..884fef55836c 100644 --- a/arch/arm/boot/dts/exynos5410-odroidxu.dts +++ b/arch/arm/boot/dts/exynos5410-odroidxu.dts @@ -190,6 +190,7 @@ max77802: pmic@9 { pinctrl-names = "default"; pinctrl-0 = <&max77802_irq>, <&pmic_dvs_1>, <&pmic_dvs_2>, <&pmic_dvs_3>; + wakeup-source; #clock-cells = <1>; inl1-supply = <&buck5_reg>; From patchwork Tue Apr 20 16:49:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 424880 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCA29C433ED for ; Tue, 20 Apr 2021 16:50:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 866B0613E3 for ; Tue, 20 Apr 2021 16:50:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233278AbhDTQuc (ORCPT ); Tue, 20 Apr 2021 12:50:32 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49810 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233255AbhDTQua (ORCPT ); Tue, 20 Apr 2021 12:50:30 -0400 Received: from mail-ed1-f70.google.com ([209.85.208.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZV-0003WQ-Sz for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:49:57 +0000 Received: by mail-ed1-f70.google.com with SMTP id n18-20020a0564020612b02903853320059eso4422514edv.0 for ; Tue, 20 Apr 2021 09:49:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+QGIfs0xu2iWGBhjfxFAoqeLLE0TQoKKNcQGnUSArgQ=; b=SCkfKSSaNkVqVh14Ajn7bLVrrTAQ7YNhlHmuvm/ZZPTqZuJTcrVlEw9MG8z0qQNhtU tzyfEX8K/BD0X3nQAOOIp3m6eBR7VFMzK2rFhKcMtRf78T9Bg+mgDjqp6gCyA23LeIqt SJUElaAKsx0mErJziphlm/VhIm7kDuU3uLcyA3hqQ53XiPVp989KJRpcWQ3MnI+5w0WF h06IvSSJsdNtTr/JpT/2tJsOXhPdqHF8tYOOWiqpgJNdNUr98KagBzvmm61cGsR9WfzW k1pxG7YQB2nvkI7DOIMc5731T06WNUAm5PF/xL/LbHoqc+Cv46cQUKJ+sTEu7YxCPdbd xymg== X-Gm-Message-State: AOAM532V29fdoWmW2gH2V0bDPMMlOeyj884/xVzFq0rEgeYbOSz9kgLY bNsAp5TlrKzcbhW8EFiUHEoFoQrj3T7y+nHhm7nOSbTSmU6RV7sEXN+nrSI5WTX+gm0kjP7F2H4 E3mn013R3FbwlNBSwmZ2b3K3jD5UTqgkINZigv3u8w1cmP62o X-Received: by 2002:a50:cc4b:: with SMTP id n11mr33958126edi.186.1618937397620; Tue, 20 Apr 2021 09:49:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFpLXaO26NoPnHh4aEiGAmvUqWmrI333nb0Yo3aHX7WOiiVNvUBOWtMLlzw59fq5NlWZRiHQ== X-Received: by 2002:a50:cc4b:: with SMTP id n11mr33958102edi.186.1618937397373; Tue, 20 Apr 2021 09:49:57 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.49.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:49:55 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/11] ARM: dts: exynos: enable PMIC wakeup from suspend on Midas Date: Tue, 20 Apr 2021 18:49:37 +0200 Message-Id: <20210420164943.11152-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on Maxim max77686 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4412-midas.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos4412-midas.dtsi b/arch/arm/boot/dts/exynos4412-midas.dtsi index fc77c1bfd844..968c7943653e 100644 --- a/arch/arm/boot/dts/exynos4412-midas.dtsi +++ b/arch/arm/boot/dts/exynos4412-midas.dtsi @@ -668,6 +668,7 @@ max77686: pmic@9 { interrupts = <7 IRQ_TYPE_LEVEL_LOW>; pinctrl-0 = <&max77686_irq>; pinctrl-names = "default"; + wakeup-source; reg = <0x09>; #clock-cells = <1>; From patchwork Tue Apr 20 16:49:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 425570 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E899FC43470 for ; Tue, 20 Apr 2021 16:50:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B461060200 for ; Tue, 20 Apr 2021 16:50:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233293AbhDTQud (ORCPT ); Tue, 20 Apr 2021 12:50:33 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49820 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233274AbhDTQuc (ORCPT ); Tue, 20 Apr 2021 12:50:32 -0400 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZY-0003Wq-2J for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:50:00 +0000 Received: by mail-ed1-f71.google.com with SMTP id bf25-20020a0564021a59b0290385169cebf8so6062787edb.8 for ; Tue, 20 Apr 2021 09:50:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SZDfcyCZwVylLX5TsAAAA/wUyySKv8eKHfB4MShW5ZM=; b=nXzbbU2tLctE24gg46Ee6UL0+3I0B7F55Oi19pPyaiyOd7e4B/ZMfv907xGE78Ago9 SZAdcO8/yHoDeFVjySk9bq4e2mBBTx7PiK6hlseXBgSpPtQWaNnVz1qH3zMNnh5RRrR8 CLylSzC3vP6JgHD1kqf0ZT+5PfM2avYuVXdHyUBbvihYm5jniXPe1ijE4d97YF5sH5GO xTECSCSw3l3bm4dkEJwpsqtDF8T4egrIMm91PKt73cqeBZZaNYwAkNuO5CGr7emVMQft YWI6wCuA3bGXXmhIknjZY6dtR9HD4noxNKaDZ9IdQSQlFfAXZkPwPeks/fw5ZSkLguhM 7B3g== X-Gm-Message-State: AOAM533CNC4qwr8zq8f7rzpMB5PbgfM0oxVxxntPQfnSp6dmA87QGLaM 7TAPBlpRmUEyeLs6xFeaTPQqinHo7ezR0AUNau0FHBHRG4DzvkQ/2/bPBb7LoBa0wa6+P5AqboD FXzYatfKKciylza/c37aWRKIT6UGWNdRVRldgACvPWY/R76Qy X-Received: by 2002:aa7:c7da:: with SMTP id o26mr33442347eds.244.1618937399819; Tue, 20 Apr 2021 09:49:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvd13jGax0cMnNAZv3uD8tJgdViFUxJlK5G4XxKdlgdYp76PfhEquTOjft8MVprNuWSmmdKw== X-Received: by 2002:aa7:c7da:: with SMTP id o26mr33442335eds.244.1618937399717; Tue, 20 Apr 2021 09:49:59 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.49.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:49:57 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/11] ARM: dts: exynos: enable PMIC wakeup from suspend on Odroid X/U3 Date: Tue, 20 Apr 2021 18:49:38 +0200 Message-Id: <20210420164943.11152-6-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on Maxim max77686 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi index 5bd05866d7a3..5b1d4591b35c 100644 --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi @@ -282,6 +282,7 @@ max77686: pmic@9 { interrupts = <2 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&max77686_irq>; + wakeup-source; reg = <0x09>; #clock-cells = <1>; From patchwork Tue Apr 20 16:49:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 424879 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB941C433ED for ; Tue, 20 Apr 2021 16:50:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A6C4C6115C for ; Tue, 20 Apr 2021 16:50:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233297AbhDTQui (ORCPT ); Tue, 20 Apr 2021 12:50:38 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49829 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233266AbhDTQuh (ORCPT ); Tue, 20 Apr 2021 12:50:37 -0400 Received: from mail-ed1-f72.google.com ([209.85.208.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZc-0003Yk-SF for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:50:04 +0000 Received: by mail-ed1-f72.google.com with SMTP id y10-20020a50f1ca0000b0290382d654f75eso13446763edl.1 for ; Tue, 20 Apr 2021 09:50:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ox2bZeNVgpS1SkdFcOmweP3XNPduD7g1GALJyeZlfYk=; b=mPtvsbGyuZsKA5HzarK8pP2kEkvXC81sKOCCMk85hic3uhs4cSBul86wnq7h+G2Uaj jPRZnJELjhKZ55VaXsfWWCkDQIsmA/nogLZeRpKuKy+p/iXJQec6ZJfGR0Zny0y6rpV6 MWgx9U4M5pmcFewSfY1ksNduu1TGA2cnw4KgoGq12wZoNhYYed0rK7qXE6wYdi0gVRAr kFWOHcW/07frhY/VSrOKfrlylRB/CDmdsLN4JGn4gj4T1QF6N59XyYanV5PsyMuJT5UM 2dVBiOr+Z3MpW2RFGSChRG0fOYA0UbkiEiAR1dwLaoY/G2QpgWeuq+359vMiQXL9ytr9 Xo6A== X-Gm-Message-State: AOAM530yf4tHDe7r3Ql39SMs6d5TIY1PhyHkZIutKT4+v3CDj0/kGLRH S4kkAq+tKZo/rrvvqPQxp7MUlMLI9+zyxKxRbybeE5YnMBxyYt1T5P1WSCHUOjWSey7fVfuCRhO 2CVfAVdy8keqS+okQSIDYTxXCwdTIgZesMm9dgTDNMDu903j8 X-Received: by 2002:a17:906:4154:: with SMTP id l20mr28695054ejk.509.1618937404023; Tue, 20 Apr 2021 09:50:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6d/waBt2sVLq9uOF/lRJOJSgWQN2YdHM4Z7ZbxFFY9PB7veMrUXGjUS9WeWx6EgSJnxtcVA== X-Received: by 2002:a17:906:4154:: with SMTP id l20mr28695045ejk.509.1618937403896; Tue, 20 Apr 2021 09:50:03 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.49.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:50:02 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/11] ARM: dts: exynos: enable PMIC wakeup from suspend on P4 Note Date: Tue, 20 Apr 2021 18:49:39 +0200 Message-Id: <20210420164943.11152-7-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on Maxim max77686 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4412-p4note.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos4412-p4note.dtsi b/arch/arm/boot/dts/exynos4412-p4note.dtsi index 9e750890edb8..22c3086e0076 100644 --- a/arch/arm/boot/dts/exynos4412-p4note.dtsi +++ b/arch/arm/boot/dts/exynos4412-p4note.dtsi @@ -325,6 +325,7 @@ max77686: pmic@9 { interrupts = <7 IRQ_TYPE_LEVEL_LOW>; pinctrl-0 = <&max77686_irq>; pinctrl-names = "default"; + wakeup-source; reg = <0x09>; #clock-cells = <1>; From patchwork Tue Apr 20 16:49:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 425569 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D2BAC433B4 for ; Tue, 20 Apr 2021 16:50:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 255EB60200 for ; Tue, 20 Apr 2021 16:50:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233348AbhDTQum (ORCPT ); Tue, 20 Apr 2021 12:50:42 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49832 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233288AbhDTQui (ORCPT ); Tue, 20 Apr 2021 12:50:38 -0400 Received: from mail-ej1-f70.google.com ([209.85.218.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZe-0003Yu-9C for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:50:06 +0000 Received: by mail-ej1-f70.google.com with SMTP id r14-20020a1709062cceb0290373a80b4002so5014242ejr.20 for ; Tue, 20 Apr 2021 09:50:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Bj1M9QiCdlb898I0Pyior9VNVYymfqUZCE25Z1A8C8I=; b=Rwx0YKHHKIRxGB7Vo1PeR5U0eTTL2GmcnGEAKBKTkblXlxpdUiny5HzQPhtM5u08Ug 62/ngoSXCgL3SIxwfMrzfYNLWd7CWyR/8rhLA5jQLgzF+sieV+GeiwBfa1UFSuSk2SnL tMmNwqXB3ZsZz+vM6pZgT50/dpKWKmvfHTlRXz8anRuQ7A4ZzMkRjwlha/SdRccRoLt7 VybeY9jqsI+KBu44lbxsujLO3/CSDoPgNVLUK14uX4iEfjrNJkws8R4+FfPvTow+ENet b1/fpAlbHX9TOP9a0msVtWsggdL4v0PtpwIza1PLSyWKuCD3ZE/YXm0YK/gAkUfOPfd4 AE0Q== X-Gm-Message-State: AOAM530fQWDNhHl1qtOS8+hKAxd50eTZ5nu1zObYO3iT3peYz9raQe7i u6ThqXEtyF2+aAdk3MkrHEccGGXPyegUz9JSNtb8VHbI1nyGhLjS+T60De20d1QPbTO1i+Rs8hq R5MsovNwkJ9/Z+bIFxKV8o4keEm1FTYmbhHWqwxsYYTbe54aF X-Received: by 2002:aa7:c40b:: with SMTP id j11mr33821643edq.219.1618937406069; Tue, 20 Apr 2021 09:50:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOX41yAZ5d2I/3hC672/0TlhE2JqeKmJHyH8IhJtZIpVrL1kp4tD55KzYPmGl8DVxg0Ztc4Q== X-Received: by 2002:aa7:c40b:: with SMTP id j11mr33821630edq.219.1618937405920; Tue, 20 Apr 2021 09:50:05 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.50.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:50:04 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/11] ARM: dts: exynos: enable PMIC wakeup from suspend on Arndale Octa Date: Tue, 20 Apr 2021 18:49:40 +0200 Message-Id: <20210420164943.11152-8-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on S2MPS11 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5420-arndale-octa.dts b/arch/arm/boot/dts/exynos5420-arndale-octa.dts index 1aad4859c5f1..dfc7f14f5772 100644 --- a/arch/arm/boot/dts/exynos5420-arndale-octa.dts +++ b/arch/arm/boot/dts/exynos5420-arndale-octa.dts @@ -352,6 +352,7 @@ pmic@66 { interrupts = <2 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&s2mps11_irq>; + wakeup-source; s2mps11_osc: clocks { compatible = "samsung,s2mps11-clk"; From patchwork Tue Apr 20 16:49:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 424878 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8AA03C43460 for ; Tue, 20 Apr 2021 16:50:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 559D6613D9 for ; Tue, 20 Apr 2021 16:50:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233309AbhDTQun (ORCPT ); Tue, 20 Apr 2021 12:50:43 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49836 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233340AbhDTQuk (ORCPT ); Tue, 20 Apr 2021 12:50:40 -0400 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZg-0003Zc-3q for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:50:08 +0000 Received: by mail-ed1-f71.google.com with SMTP id d2-20020aa7d6820000b0290384ee872881so9371798edr.10 for ; Tue, 20 Apr 2021 09:50:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qfjGBaYEFblHkd553VwSn0+2ZqklK3J6fJwIYGGKLB0=; b=kiFdnzzlluKpLL/lGQC7v5689nvi2Y1Yxt7yYXGrrfQQoK6JUnfSEQy1M8BLeub26e J40qdGkeW3TOZPvrnjKepbJOv02ZHB/lcT3Eu77qMs1Kb4qf29Z+e6NQZMd7WzbZd8OJ VkLQwmYFAENXob4eFmeUpTG7quqaDfW98A4mplL7yi4BMWp9ZZz/qkUjivTUYN45ZeKt 9aY4KojInXXSylpwSuwFu9bUee6EYsQgr7FBI1U7DzJknphZQHGiI2bABY0hxcc+/n9p 5Y00MGNeJHqexZ8NDTsEL8IarBu0UkfMaNIgV7IT70EORQDR8mE1J/cmSUJV0sN5yYnQ tHUQ== X-Gm-Message-State: AOAM532vwtNhBsmMMf0j1X2QQs82wm0EwaM4Ybw/AM+YgaxfQsG5ir+6 vMnzW0Xsuq2wYck2NCgF2ScYb/E5673hLUrCHNPi5NA78vXXvDsIGEFI4VMFJFtPJAKIbbo4b6S uQCxRHmlDhoj7Cv5u89XAzFKg7Fh7DKniDbjHYKD7XabYO8ZT X-Received: by 2002:a17:907:78d0:: with SMTP id kv16mr28383298ejc.174.1618937407839; Tue, 20 Apr 2021 09:50:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt3lRVGoh8cst179jB4h9NfUTzzv+DW0UzRFLMekwlH45M2Ca2I32/cl7/sLnXBL+g1VBbqQ== X-Received: by 2002:a17:907:78d0:: with SMTP id kv16mr28383289ejc.174.1618937407728; Tue, 20 Apr 2021 09:50:07 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:50:06 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/11] ARM: dts: exynos: enable PMIC wakeup from suspend on SMDK5420 Date: Tue, 20 Apr 2021 18:49:41 +0200 Message-Id: <20210420164943.11152-9-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on S2MPS11 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5420-smdk5420.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5420-smdk5420.dts b/arch/arm/boot/dts/exynos5420-smdk5420.dts index d506da9fa661..a4f0e3ffedbd 100644 --- a/arch/arm/boot/dts/exynos5420-smdk5420.dts +++ b/arch/arm/boot/dts/exynos5420-smdk5420.dts @@ -132,6 +132,7 @@ &hsi2c_4 { pmic@66 { compatible = "samsung,s2mps11-pmic"; reg = <0x66>; + wakeup-source; s2mps11_osc: clocks { compatible = "samsung,s2mps11-clk"; From patchwork Tue Apr 20 16:49:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 425568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57CF7C43462 for ; Tue, 20 Apr 2021 16:50:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 283F2613D9 for ; Tue, 20 Apr 2021 16:50:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233306AbhDTQup (ORCPT ); Tue, 20 Apr 2021 12:50:45 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49845 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233304AbhDTQuo (ORCPT ); Tue, 20 Apr 2021 12:50:44 -0400 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZk-0003aJ-AE for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:50:12 +0000 Received: by mail-ed1-f71.google.com with SMTP id l22-20020a0564021256b0290384ebfba68cso9613138edw.2 for ; Tue, 20 Apr 2021 09:50:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Fn7WNZfjW0ssAzIaE1Bkd1jfIrVSqjALIl9VWkYNFrI=; b=faUkjc7UVYmiDj82OTnQ6EDa57kXv0R+uTSyzkTvvaO0gUpwWBhX44uOQH2FtQ1jqb 181fQlz8d5rkMYu8RR6ptS4WGsHTNsVHAc4MHnbyZK5OTMim5FdmcRSHg4fU1vsDTsUd rAf/dqE6Lz9QaXnJRJ5/mUmrQ1X3mCxPRAnq9VqAlvns13ZEGZXoMblsBFJPcQmRxM/+ 8+JCzc0YLrtYU83cOctT3GhckpyOyxwzwwwYEfSC9mx0dtp2qs8PyyPZm4IOYzPK21oc X25NYMsvYtwgj8Tufkn31I+K9vPPNUmTwvD6T1lV9+7UaMcSFN0qdewcxdBdMJxfolka tf5w== X-Gm-Message-State: AOAM533QghD2OjgzCUloXnCQ5tNnuJlX4rOLYwnE0ryCyNt3UDW6ITnr kK8KhfkQbxMo2DvpshT2huBfsefEsbIShEghYrST2cIR+e+EaKK05EmTXpF4uA8UT6Xhv78SC35 YtDYJxNhglBAgrsGe9QE7khFNGzFeO4J2baVBqWt0VuqkI+FG X-Received: by 2002:a17:906:ecb8:: with SMTP id qh24mr29480541ejb.162.1618937410727; Tue, 20 Apr 2021 09:50:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQSsSBBW1PF+n0XJ+szv31xF4/G4mzXij8EuyYawNnaIWsWmfuu6kMMnZ5Oveq3ByZm6pv8w== X-Received: by 2002:a17:906:ecb8:: with SMTP id qh24mr29480531ejb.162.1618937410609; Tue, 20 Apr 2021 09:50:10 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.50.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:50:09 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/11] ARM: dts: exynos: enable PMIC wakeup from suspend on Odroid XU3/XU4 family Date: Tue, 20 Apr 2021 18:49:42 +0200 Message-Id: <20210420164943.11152-10-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on S2MPS11 PMIC on Odroid XU3/XU4 family of boards can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index 6d690b1db099..e7958dbecfd2 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -512,6 +512,7 @@ pmic@66 { interrupts = <4 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&s2mps11_irq>; + wakeup-source; s2mps11_osc: clocks { compatible = "samsung,s2mps11-clk"; From patchwork Tue Apr 20 16:49:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 424877 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 839EEC433ED for ; Tue, 20 Apr 2021 16:50:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4F5E1613D9 for ; Tue, 20 Apr 2021 16:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233390AbhDTQuv (ORCPT ); Tue, 20 Apr 2021 12:50:51 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49847 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233356AbhDTQuq (ORCPT ); Tue, 20 Apr 2021 12:50:46 -0400 Received: from mail-ed1-f69.google.com ([209.85.208.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZl-0003aN-Cj for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 16:50:13 +0000 Received: by mail-ed1-f69.google.com with SMTP id m18-20020a0564025112b0290378d2a266ebso13439714edd.15 for ; Tue, 20 Apr 2021 09:50:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TqJ62+H3p8lMBv0o+qNlrq3mJGwE89Butuxlq5byZWw=; b=VCjzDh/SCP1ImbIqhd8637DL3eY2OR5lw/0gcgEcgqlNQh8xT1V9NJU3a+31L1l+Re verjqap2J2yEWkI782fnafqRbWfnIGGymPAQszJBrOyMnkIQmJW/c7LJ4HHYnBC5/zPa 1gFqMZC5Kz+OvuYKvXLVOKqTqgjvr5Z1dYIep82LOSu9wjKZ8SJMoB1oViHavbU1RSBp 7LqoRD6gQr/pASy/w8PopwwLmb9izw4LlnbDF1ZXs8pjNLvvJebKJXi8YXz+vKuJdy/8 GqDRqkdLgJ1QOstU5+L3wrA00QdiegW3jd6YsEcH0GOoVjmTjioiLaNa15HCPaAVPOW0 ikRg== X-Gm-Message-State: AOAM531b5re81lHcU8pX6LwdNZvU1vu3AdinZMSaU9X3/+gnplmJDN0/ s2E6ptHlzTe4X0mc4Ndh53v6UhWjS2647AQ0TBFPvyOp9zvHXBB7LXuArUknUsuuxlJagMDzBb+ xs8n62/Ei6IKbSKHfQFQBE7NOj+fdfMONq3jSPd9yRL4GT4Cp X-Received: by 2002:aa7:cd8b:: with SMTP id x11mr4729064edv.87.1618937413135; Tue, 20 Apr 2021 09:50:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDDo9ukF3fqdtjY4XRoahPeCfemNkf0eD5yfTKHEHt5tiIkyXvhXPIhPPUxhSQBt2RR4Vnrg== X-Received: by 2002:aa7:cd8b:: with SMTP id x11mr4729052edv.87.1618937412975; Tue, 20 Apr 2021 09:50:12 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id c12sm18252873edx.54.2021.04.20.09.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 09:50:12 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/11] arm64: dts: exynos: enable PMIC wakeup from suspend on TM2 Date: Tue, 20 Apr 2021 18:49:43 +0200 Message-Id: <20210420164943.11152-11-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> References: <20210420164943.11152-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The RTC on S2MPS13 PMIC can wakeup the system from suspend to RAM. Add a generic property for this. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi index 773d9abe3a44..cbcc01a66aab 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -391,6 +391,7 @@ pmic@66 { interrupts = <7 IRQ_TYPE_LEVEL_LOW>; reg = <0x66>; samsung,s2mps11-wrstbi-ground; + wakeup-source; s2mps13_osc: clocks { compatible = "samsung,s2mps13-clk";