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: 424688 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 EB2BDC433ED for ; Tue, 20 Apr 2021 16:49:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A2F38613D3 for ; Tue, 20 Apr 2021 16:49:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232901AbhDTQuV (ORCPT ); Tue, 20 Apr 2021 12:50:21 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49783 "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-ej1-f69.google.com ([209.85.218.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZM-0003Ub-CE for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:49:48 +0000 Received: by mail-ej1-f69.google.com with SMTP id 16-20020a1709063010b029037417ca2d43so5019527ejz.5 for ; Tue, 20 Apr 2021 09:49:48 -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=BfcznQKcQGYzZ0hIPYztarKak/HOECTm8QuJBE8GZsY+87ENvaqY0o0AbMcoOeNUL3 fTZ26p/wufwGYt9gbOPCzyYDnWWJZRkcg/x+YpKoZdAy8T3sOH7ZJa9K8ROW6mt5JTkZ Efs3BPhPnakB6y6NBMRUcwfJ+8vPCSFQze3Va/6nQlEZOedzHh0vKHZhJdRKQjeMe9kg 4GtpRNybPK9vncxzWwjSbI3sv1DH91qnsyGyslUppm4pLezkmYZdsCSl/3C6FSvT2VBM uuqCvvyGZK/FciR1FVPofTlFD5Zh9832mVcYzQ5EFthBMWuUbBpVX4H0k5DtXw1m751j bVZw== X-Gm-Message-State: AOAM531a4wol9W3dHVtbHel/qkcGvuQxKnDPnTtErm6eu2qRaZ+t/IU3 gzvIBVvWBcBBA2sV7MhAYCwgjZ0EizBZOaaOlhPUlMeNLN8W5hHC0gQHH0k9kkmoZ6WCkwW9Z3u dYtBClydYnfbeJ/qhR+aRoawFSqrTUEyZ74Cl0uw= X-Received: by 2002:a17:907:3ac1:: with SMTP id fi1mr28609678ejc.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: devicetree@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: 425421 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 80E89C433ED 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 39FE8613D3 for ; Tue, 20 Apr 2021 16:49:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232473AbhDTQuY (ORCPT ); Tue, 20 Apr 2021 12:50:24 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49793 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232767AbhDTQuX (ORCPT ); Tue, 20 Apr 2021 12:50:23 -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 1lYtZP-0003V8-Dm for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:49:51 +0000 Received: by mail-ed1-f69.google.com with SMTP id m18-20020a0564025112b0290378d2a266ebso13439215edd.15 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=jjXZBfFYtqz3hWJFCW7WQCThfIXv+pPFIRv6F12Ga1TiXCHm63bhpbeSXv8bocFGD+ wE3TLGBJRxF2onBair8JgTv10ijDGXMWZUwgiyG9tKNCidJwJMp9CD8W6RP2LD2sIivY iYCKB2SHtflt0Id63Cp8/paziBWwfV28xwTPJHgD/j1dvSYBqBzz/PuZx1y7HxnFxk0b PTGMCvgFiFgIoJKCl+4vgIR2C6iUWRVQ3oO/ruCvEb0DjR28wZ97vdbucNKPwt+cX0tp 1RwUb9lTlc9TZ1CIcBOxI/9zsfq8p0iTlodTMwDfPCU82hTFb4Pg4FU4k4nFVHJuJsEs 10xA== X-Gm-Message-State: AOAM533RBIyfxBYDbjZuyQvnjQVemxpr4exrzBte1u81RFHJSSkuRnks bArMg6LPaJ4iMEH9EhKxV7+FU2PgSK7DRtvK66yTcY+AO3/21D5vgGUJYURXXcR1nkGpPn5seKb DeYZ2+56IKJdQqH8HO5YZBo/0NnoPJJY9y7sntR4= X-Received: by 2002:a05:6402:2216:: with SMTP id cq22mr5290226edb.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: devicetree@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: 424687 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 9FB05C43461 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 67C5A613D9 for ; Tue, 20 Apr 2021 16:49:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233189AbhDTQu1 (ORCPT ); Tue, 20 Apr 2021 12:50:27 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49799 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233214AbhDTQu0 (ORCPT ); Tue, 20 Apr 2021 12:50:26 -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 1lYtZR-0003VW-Q5 for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:49:53 +0000 Received: by mail-ed1-f69.google.com with SMTP id f1-20020a0564021941b02903850806bb32so7515338edz.9 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=S4ATUgzTX93T9CV3kWJPSIxrgOlpIMtW0i++2AG8+9A0r9xNj17iULDyxz+kWoSyux il1t+pBXgmGEu0aWXr52PfcoDn+Q5pUiXeEa7SDzaDKH0xjY+CDC3G1UiZNfMfDBAqLf 9NqOs2Mo+PNiwcqj1tamrd5ElFsCJG2lmtDr6AvxBvzI2DMiOnV4QWfHUQcd2vY9vPpO MazqFLxyRDn8A7n6D4abslwlSBTixsVALRelS+cdvU/mVLo9BqKW22LX6zKoG9m9R+NL Iss8KM4xvFW5D0rE045dMgeh3XftNZZPdR0JgXsmeTesn5bzmFF0U8LReXXZ46QNP+je 04JA== X-Gm-Message-State: AOAM533BRfE+oSa3tuZiSzLVYJLJNdwxBHoElqHYasgJbh61FDyaKXiA oDU/ofsTzN0tPlKEb13/395mX+jd11lZasykh94Uw0Pjb/w5hOiweBJPPacMZBWofqK+bSvMKWl lVJHNE4Dv5AnVgApPP6XcvNgQUSkTwcYL5WkJtLg= X-Received: by 2002:a17:906:3544:: with SMTP id s4mr29389526eja.73.1618937393512; 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: devicetree@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: 425420 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=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 96D25C43462 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 59F91613DE for ; Tue, 20 Apr 2021 16:49:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233247AbhDTQu2 (ORCPT ); Tue, 20 Apr 2021 12:50:28 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49801 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233227AbhDTQu1 (ORCPT ); Tue, 20 Apr 2021 12:50:27 -0400 Received: from mail-ej1-f72.google.com ([209.85.218.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZT-0003Vt-C8 for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:49:55 +0000 Received: by mail-ej1-f72.google.com with SMTP id f15-20020a170906738fb029037c94426fffso5039743ejl.22 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=C8brKVZlCVSkwMP3a0tMdjnkzhL4Xc/ticCTSOFQ9Nj0pnPT79euzoc1e1V2mxY4ld 590hyM88ObKE3P4g64omeKuvhHh9yUmm1M6iUtk1hzzmfOAc4CvvmW/Df0GdaG7RfWRI N2+nvrXs6FdE6yNEGblHD5tLCAzppGJHvQRG1HUudHu+CgmZJ9riGFFrivsXZ3zJokk8 cqRZbHAcGTUjbgZwaQv2XXqwI9dBL0pJK3aN8BKP6yMu+MoNvOOjM0tazhFC6E38QDLW fN4riGDprKmo0+CXI3focoXJKLG90QwAP0+BQpZhke/lrMtRyTn03Mn1+GygdMURh2x4 2gcA== X-Gm-Message-State: AOAM532pjck2yj+6vQpTfAy1PL82thtkl4q/f9Cxa8hXd9cG5DxfOFLS haqT5DROUC+yboJQ/+Ao6M1E5Ryq9NBsWhSFseaVWIWx+UXuFs3OEjFsMdP8lKaA0TJ24hBdJaN Wp6q5JtaPriSpN23St6bgFUdQ3s4nILYLavr7rVQ= X-Received: by 2002:a17:906:b6c5:: with SMTP id ec5mr28557654ejb.290.1618937395091; 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: devicetree@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: 424686 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 85714C433B4 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 41574613DE for ; Tue, 20 Apr 2021 16:50:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233267AbhDTQuc (ORCPT ); Tue, 20 Apr 2021 12:50:32 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49808 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbhDTQua (ORCPT ); Tue, 20 Apr 2021 12:50:30 -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 1lYtZV-0003WP-RE for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:49:57 +0000 Received: by mail-ej1-f70.google.com with SMTP id re9-20020a170906d8c9b029037ca22d6744so5008972ejb.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=JzFE89anGbQTajLl5WdQwmka/JhKoQfyvIfEo6M3pLIuqGws8uBm1AMvTwGSQh1WSv sEay2xS2uhJ55DX6NY5ZerMr6Q4jPWv7apFDjrpSfZKLh6F7A6sq2+/F2Ob8krLu/pZH KKWhxBSRUdNKS7e2JNXjlpmdnz3wjlyp8XQ4iMdfpS1VE+4ehxqYXac+Icpzv8rxRtip +15OfbUKky8RR/nZjbUCMIRUq/hBmpsn7zZrDpDyU1r2hQJ1ZbNAX8muNUsdGmJCKMhW OKLgFPCD90JxQgobkUl+wNySk3O2B7csguVL/6l4yxQoe+F4LSkNjUEO8GfzUHUgDqFP DTqw== X-Gm-Message-State: AOAM530dIsm51sEnTFiE8jidJjAWmK25WHF/YnoZVZQBWDvdmRxcBcQN 38I1+fSBecmvr6S5D1ks8j/LnNQF4fWc/c8CA3+q+LX5y3GhS3PcWaXQZTUq6vzYu4GpzCfHfgT Q1DU4RvrVMFfVJbz6/xVgRvikSSZtfmxBNtNGOKU= X-Received: by 2002:a50:cc4b:: with SMTP id n11mr33958123edi.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: devicetree@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: 425419 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=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 C629EC43462 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 90D92613E0 for ; Tue, 20 Apr 2021 16:50:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233291AbhDTQud (ORCPT ); Tue, 20 Apr 2021 12:50:33 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49818 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233237AbhDTQuc (ORCPT ); Tue, 20 Apr 2021 12:50:32 -0400 Received: from mail-ej1-f71.google.com ([209.85.218.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZY-0003Wr-2e for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:50:00 +0000 Received: by mail-ej1-f71.google.com with SMTP id r17-20020a1709069591b029037cf6a4a56dso5057763ejx.12 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=AoLEc9gYweqtLviQOH3EHcc68H1Qj9Pn8IUQkMR/U+n/1QaVaMHTvGQFg3GBGwfBUb e5E8LTlRVSRvaFfLUDR7y2F5gOPZIqn8N3uj+Dqq992hddvH4pnKRWzl9eNgzS5WhWQ+ hMr7WN5U209C/3HfatSCEz9IcChjEIoecP3s4I1/yIwLvYLpKyv21TYsivcKAug9l9E/ t4Ys6ZaEp1CWlE0OVqsgfEKW7/K55zncPb1kBmn3qKXcpwszmqBt/ROYrCpp6gKO1Ph1 CDq45RYAnnerLLCbBFpJJoVAwc/tSf5fH/gYDcbxUSwDKD+HWVdogWpTHFO2mqej7WvI 4vwg== X-Gm-Message-State: AOAM531Fl1iVp7xLYBHvyiCo9zlhfoEURx9WTFXAfsOT7FtFyPi0rHD1 9tF2C7HqDbfb8INT6uUcGSZ4u5ogFfHmPdzA4CBysoL2Ix68VM4HK+7PyOiX/l2b5ZMenyIEnL2 LkN3WMlVhcH5iycA1silotlocEwReTesyBbAdvu4= X-Received: by 2002:aa7:c7da:: with SMTP id o26mr33442343eds.244.1618937399814; 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: devicetree@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: 424685 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 F097EC43460 for ; Tue, 20 Apr 2021 16:50:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 59E1460200 for ; Tue, 20 Apr 2021 16:50:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233305AbhDTQuh (ORCPT ); Tue, 20 Apr 2021 12:50:37 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49826 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233306AbhDTQug (ORCPT ); Tue, 20 Apr 2021 12:50:36 -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 1lYtZc-0003YT-A9 for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:50:04 +0000 Received: by mail-ed1-f70.google.com with SMTP id m18-20020a0564025112b0290378d2a266ebso13439529edd.15 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=e+/7X2tR4PZ6r/y23tcXxDYNvOr9QvrYcg3izHWG7myMfvLAeS2XF0Pd2JCS/VEQhz VDPbV9hM4Qg7QDZDjzvi/ogDAStL2bc4ny/SLUOIS4SAekVwmLYtE+Gc13xGpV+ds9QG hfsKVIH2x+0QdHDPZr7oX8X27WD2MZHexwmT19QMDZFajmlfHCfk2rxOiOLd7oBdrqzV 4SPHYie0DzqOEII7IDBVL8YAiwAMAe/9cJ9EsX+a1cXZ4blOnLXrIc4dnBGlmBBU4yOH txLkheOYA6f8q5EgEwOZSyvY9p6OCuBNHDICBzqZbuDOfyQR8WRBkWAcv69m7WeiZHKH H1iQ== X-Gm-Message-State: AOAM531n5dTX3cuR8Xykl+edNmhVA7j/dNLs0ExJ5Ieto1T62RFO+5zn IZs1X22bNQAUYASP9mKkLMRlz65SASANxlVQqtl3g1bh7HeUy5AC1Fw6Gt9ZDk5R9FtJ2JzJIv1 n+lMO3ikAEVBSbvlLWf60mT2NESoDq0ttpGwbKAc= X-Received: by 2002:a17:906:4154:: with SMTP id l20mr28695052ejk.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: devicetree@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: 425418 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 23036C43461 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 E2BE2613D9 for ; Tue, 20 Apr 2021 16:50:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233325AbhDTQun (ORCPT ); Tue, 20 Apr 2021 12:50:43 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49831 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233306AbhDTQui (ORCPT ); Tue, 20 Apr 2021 12:50:38 -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 1lYtZe-0003Yv-9B for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:50:06 +0000 Received: by mail-ed1-f72.google.com with SMTP id y10-20020a50f1ca0000b0290382d654f75eso13446795edl.1 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=ODT+mdpu+nHDYEEWUHNJzFfZCnSOZyFr1xrjNCALxShJRCzytn4p9DJsXl7LZqb3q+ NbKOU3mIr6caIlgIKVRDy19r2jlT2as3k+7G8AdNJw5IHqjzDj8IF+ZKznLgDR8eAzDk C7U8QsAC2cIhbYejXseo61ms6ZFOKhQtk9FrYKcXdxLHfGNpXLi9WJzTnwPSNRQcl2pv 8J/wELQY0aCVhbRrf/Kui/XrxZYxTPTEzR385zylYV065e3rvtByn+5jy01Sgc9RYguX ARPoUCcIYmJ+dFAaH0++RNfgKb3kjtD6qBUPUlim1DoUQD6RBmoF1PnZgoXoJxC+rjIo 6XQw== X-Gm-Message-State: AOAM532w70cwKra87TZ0eGb9IxZeQqitI9hTbNvsach5YP/35BpM+wed 1KSqnisgUJA6bpzxnLSxYH6Oqvs0crZMUwgei/JIxi2IVzPp6mMKtd8Vm8t1sVrW+0E6p51uguc vhCKIqiEAMwiRYKEGZTi3r35XYc7cytAuYomN0Pc= X-Received: by 2002:aa7:c40b:: with SMTP id j11mr33821645edq.219.1618937406070; 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: devicetree@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: 425417 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 40A13C433ED 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 090A6613DB for ; Tue, 20 Apr 2021 16:50:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233357AbhDTQuo (ORCPT ); Tue, 20 Apr 2021 12:50:44 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49838 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233344AbhDTQuk (ORCPT ); Tue, 20 Apr 2021 12:50:40 -0400 Received: from mail-ej1-f72.google.com ([209.85.218.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtZg-0003Ze-6y for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:50:08 +0000 Received: by mail-ej1-f72.google.com with SMTP id i10-20020a1709067a4ab029037c5dba8400so5057340ejo.8 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=BxXjaqOE43y3b3/hov+qw9jHRkFv/ErwTGOrbuCkdAvFMYdQgHkyGk/Xny2m7wkD2n rXyOKY7Bup6X2tZOQtAgbWjWrwwk1JVmPieIb77qY9WtFKIRdJrI7sUyGikDxrKS3fch PzKmoHNr8CgxhCP+26663eFXYhHog7KGUAVdI8Cp8NuCFT41qJJcP3l7C3avws3ZOsGF w6vzstzVjChIamQAm1zzN/faNI4rFPZU97Ga3U8IME34LsQ96ogoOfTktGLVpxQ59qlI eWtSbgUXHtSkLjk9Cztqw+qEOlwyAog1nMrwIgdKffJQA7FP4tfsCaG04d2m3+04SL+u LOMg== X-Gm-Message-State: AOAM531UcqWJw8MX9UZGm7YxcIMePBN4DN1x24Jk5KJ8nGCK2OT8jTkG 3Dzicc7nqzFqwKaj2GAlMqmP8wxbjW6QTsNivsfNsrWQ56lf381IIR/cntJy3zh/yo6AU86U0Ci 5Lf08QnuwXKeyn2aHTZtDN5WFwgQLQfB578CI1o4= X-Received: by 2002:a17:907:78d0:: with SMTP id kv16mr28383295ejc.174.1618937407834; 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: devicetree@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: 424684 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 1BCA4C433B4 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 DF80760200 for ; Tue, 20 Apr 2021 16:50:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233344AbhDTQuo (ORCPT ); Tue, 20 Apr 2021 12:50:44 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49841 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233266AbhDTQun (ORCPT ); Tue, 20 Apr 2021 12:50:43 -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 1lYtZi-0003a2-Ug for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:50:11 +0000 Received: by mail-ed1-f71.google.com with SMTP id n18-20020a0564020612b02903853320059eso4422830edv.0 for ; Tue, 20 Apr 2021 09:50:10 -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=ucW5+MtZHX23sK7oMlM+A02KGHrUEIOtsSTCWXVN5XREyhOru+HQ35dMk3v7sxXu8w XbsCZzasM9EZJ06tRsHIsoB6oLOyMLC8SgcvM41p5gbaNTmgV10eg7M2QBBZqaesugf3 NNpX7x91eYch82fOCxJDVuL/ei2JdDJsPdVT+TuZ1uqAwlMqdRqhJ5Z6MEJuhczJSThQ peyHFJ4IKYnXr4mcDzUzW3gWrE+RilQzjuN0y6HnCa+KZkvjZG+V4rmGpvo4P0XjInZ+ MJhubigwIwR7ZZ69HN0SagSlantbMR0PGGnUqF3vn+KDZq9CbWjcYhZ89/6heKkfbKvM GRCw== X-Gm-Message-State: AOAM530b0cUq0v7s3FtswbjnXqXF1d6vbJ6PbgraTndZWQbbMkEbFki+ K7H43uoQxDGTT0ioYwbj1jaB/EJ/kfxrsXVHgM/MSAPnSpOZDGEUzcwR5CRXAolXNfJpTF2KS82 Q+d/9Kec+coug8ODAtXrx0sMPzl2crqkdsk6d25M= X-Received: by 2002:a17:906:ecb8:: with SMTP id qh24mr29480540ejb.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: devicetree@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: 424683 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 203FCC433B4 for ; Tue, 20 Apr 2021 16:50:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE3C9613EB for ; Tue, 20 Apr 2021 16:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233393AbhDTQuv (ORCPT ); Tue, 20 Apr 2021 12:50:51 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:49849 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233367AbhDTQuq (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-0003aZ-S5 for devicetree@vger.kernel.org; Tue, 20 Apr 2021 16:50:13 +0000 Received: by mail-ed1-f69.google.com with SMTP id t11-20020aa7d4cb0000b0290382e868be07so13440439edr.20 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=jZehZjrpfn67hqyVQ6Jl2J58lkH0bKQkaW3juOBg4TevQTqfjv3OexHGyhEjDHXAjF Wk/UVyukGZYP9XvpAYoZOKT37nqWue+lTb4ZNwSGtjC0EtgQT+Y54dhMAZz2IZswwJxz R8KqJUkmhLOAiGw+HqfORTa9tgWHXBAOOyujXonP06KCG1AvTELfvEdK3EZzb8NW9Ni5 dAgvpvAW67cBpCzbc7WijWlJo0FxUbmrlAe8756eMmaGEu8SWP+PihlizKg9vcR9TZzK kSgTO2FkjQDANneaR/7rVOx086onX3lanCKhjGCmLzAzltZoPrWdpxrd3EfhfoxAQ4pc zTXw== X-Gm-Message-State: AOAM532yglxrzuFVCGW0O0WCTk2Jw2UsOn2yTtTS9B2qZ9Y2Qdh/EoLj tFdOrrIwQwjuJZiKWpgQbB6l6k4FTW2qmsMM30d5Oh4Xb+/AVwynqDeZAZlrCdGPEOIzdzW4Ays SmhtJqA2pkj9drfTucJi9ObjU3lcG0rVb/0BOd0Y= X-Received: by 2002:aa7:cd8b:: with SMTP id x11mr4729067edv.87.1618937413136; 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: devicetree@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";