Message ID | 20230522093156.7108-1-zhuyinbo@loongson.cn |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1319299vqo; Mon, 22 May 2023 02:37:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yooUugGDlWOfGhHNfNHdJ9wpHsl0SFSIeHVeJroMXQnTHLVqof7Aj4BHpPhLw8yb7AhiK X-Received: by 2002:a17:902:7289:b0:1ac:6084:1f4 with SMTP id d9-20020a170902728900b001ac608401f4mr10704735pll.27.1684748225494; Mon, 22 May 2023 02:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684748225; cv=none; d=google.com; s=arc-20160816; b=DvF6/3eFt2w5jyUqtyA0oaIxSGGz/035CZUwnSyyY7TvgeYXpQdRXGAbVbHFwigZMP WJY287W9JE4dTrXs2/w52BDqNe4Z1y+MozGwZU+t2NEvtqmolE5DiKjfaSNloljg/ir9 U1tIv3jBDrTMJ0P0uVuQL9r/Rg9FVsG7Ttotf8s5WtknaKrAbrYvOCyyjz6OXCJxdSLd UMlMA5G1ENR1hyQFEL6w/jj4F1HBDUPu3wIDiZNSYIfHdwQfVGDof+Zxyc0agC4hUheH DLA2JG6EKI5ZiXTn/5kw22DagVShIAP4fBAHCF5vwBeZm5u7fQ0BZcd8eqt8Vv3BT5DM 5TxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=syuRK0rPlCK6scWXNGpNZMg3oEDK0GyAm8L6Z+Hk2pM=; b=pRh1Jj25dRICewRa/jBK19FAd8SOOvT6VkacxV4zOZehAYreyJZE7g2mXRfCJrc61t 4txdPHmFAIYtr+gz62ROAluHrmeNelYePtRPCiHLWsn5wP74G2lvO0Sup+E975cW2UFp xRZ5OrhIGmznR+8i/4bOasRuiGoTdvu285pskm9cizmsnhfPS4Kix/8YjVMWIMnRIUnP icRBE112JuLccP/3yErb89Ogj+W5NududoWR+63GivJxJ95O5/FH/hVocUj3tpSnM79F Nekg0s/9Lu3cOk86XMx2/m5se60Yc53Kppo6NsnAY1/nszvkmDKNVX8WyqZ/3tDJtUlP Jr2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f92-20020a17090a706500b0024715c041c3si6384079pjk.137.2023.05.22.02.36.52; Mon, 22 May 2023 02:37:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232227AbjEVJcM (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Mon, 22 May 2023 05:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232018AbjEVJcH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 22 May 2023 05:32:07 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3EDDDA8; Mon, 22 May 2023 02:32:05 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8Ax1eiTNmtkuOEKAA--.18717S3; Mon, 22 May 2023 17:32:03 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxkrCNNmtkfuNuAA--.55564S2; Mon, 22 May 2023 17:32:02 +0800 (CST) From: Yinbo Zhu <zhuyinbo@loongson.cn> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, "Rafael J . Wysocki" <rafael@kernel.org>, Pavel Machek <pavel@ucw.cz>, Tiezhu Yang <yangtiezhu@loongson.cn>, Marc Zyngier <maz@kernel.org>, Youling Tang <tangyouling@loongson.cn>, Baoqi Zhang <zhangbaoqi@loongson.cn>, Arnd Bergmann <arnd@arndb.de>, Yun Liu <liuyun@loongson.cn>, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev Cc: Jianmin Lv <lvjianmin@loongson.cn>, wanghongliang@loongson.cn, Liu Peibao <liupeibao@loongson.cn>, loongson-kernel@lists.loongnix.cn, Yinbo Zhu <zhuyinbo@loongson.cn> Subject: [PATCH v2 0/3] soc: loongson2_pm: add power management support Date: Mon, 22 May 2023 17:31:53 +0800 Message-Id: <20230522093156.7108-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxkrCNNmtkfuNuAA--.55564S2 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoW7GFW5Kw4kWF1kZw4fXrWkJFb_yoWfKwcE9a srWay8Wr47WFZrJayDXw4SvryDuay8Gas093Wjqr1xW3Wayr13JF18Z343Cr42qFWUZFs8 XFW8KryrCrySyjkaLaAFLSUrUUUU0b8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY J7CY07I20VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2 IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84AC jcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84 ACjcxK6I8E87Iv6xkF7I0E14v26F4UJVW0owAaw2AFwI0_JF0_Jw1le2I262IYc4CY6c8I j28IcVAaY2xG8wAqjxCEc2xF0cIa020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2 WlYx0E2Ix0cI8IcVAFwI0_JF0_Jw1lYx0Ex4A2jsIE14v26r4j6F4UMcvjeVCFs4IE7xkE bVWUJVW8JwACjcxG0xvY0x0EwIxGrwCY1x0262kKe7AKxVWUtVW8ZwCF04k20xvY0x0EwI xGrwCF04k20xvE74AGY7Cv6cx26rWl4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAF wI0_JF0_Jw1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zV AF1VAY17CE14v26r4a6rW5MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1l IxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCw CI42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnI WIevJa73UjIFyTuYvjxU2mFADUUUU X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766586555073801680?= X-GMAIL-MSGID: =?utf-8?q?1766586555073801680?= |
Series |
soc: loongson2_pm: add power management support
|
|
Message
Yinbo Zhu
May 22, 2023, 9:31 a.m. UTC
Loongson-2 platform support Power Management Controller (ACPI) and this series patch was to add PM driver that base on dts and PM binding support. Change in v2: 1. Fixup the "suspend-address" description. 2. Remove the "return -EINVAL" in PM driver probe when firmware no configure "suspend-address" property in dts in oder to other PM state to work. Yinbo Zhu (3): loongarch: export loongarch pm interface dt-bindings: soc: add loongson-2 pm soc: loongson2_pm: add power management support .../soc/loongson/loongson,ls2k-pmc.yaml | 51 ++++ MAINTAINERS | 7 + arch/loongarch/include/asm/acpi.h | 5 +- arch/loongarch/include/asm/suspend.h | 10 + arch/loongarch/power/suspend.c | 10 +- arch/loongarch/power/suspend_asm.S | 8 +- drivers/soc/loongson/Kconfig | 10 + drivers/soc/loongson/Makefile | 1 + drivers/soc/loongson/loongson2_pm.c | 235 ++++++++++++++++++ 9 files changed, 325 insertions(+), 12 deletions(-)