Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp842618rwd; Thu, 15 Jun 2023 02:53:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5j3+ubP94ZCIN+6EV/0H+lNzaGEyH3xBKwpFXXw1n6PGAaItNHlhwPFUjBxw1O1AN+ivoe X-Received: by 2002:a05:6402:1283:b0:518:7a8b:5d5 with SMTP id w3-20020a056402128300b005187a8b05d5mr5400375edv.10.1686822782009; Thu, 15 Jun 2023 02:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686822781; cv=none; d=google.com; s=arc-20160816; b=cpxm9ikh81mg2CeobOuJ+ofYwwd9dbusc4HQe3MrKyPH+pPbMT/yAo2xpXhbHFl1Lx bxz2/hGVT8ZFGTshm05TE8A1WwkbTkOtlTFBX5O9n6aNWK25mvkFfgodgN7abvt9Pcn7 S5QTd4X7sHL1255Q8qILLIGxEFF8tB27p1B9C89cPt13wl4yvy1twMiWt6vVOULK7lYO wxAkaQ6FKml194vZxWK5U9gYVNAdKei/LfMltbqvO0TK1vMsPfRMglP47dN20KDWz6FI cUoYf9RpX8ZVienjA5HavvYIslOuekGHyXrs/HG3zZ+e083ktffMjwRNYtH/KSYm7yF3 W0uQ== 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=OhXcCvslfNsI8xEGmQpzuRhj1VUwmJptVvHxCEtVY/U=; b=OSfNNt3wyjYh5qNMMkWiI5rpelk7YtwtVfkammLXVKPtCq6AsahK2+zhyDLnZML/0Q 5SQNJVSaWIoOV2b4xgTqpt2oiaySO66o+bu2+EN3ZHIWk+z0K1sD8996Tb5esE1xpr/K IkwWSEPLsJZho0ouwwjdDjvoShqYv/ukNKboZyCohVJae9L2uvJv4L+cs3Fy9jovt6qH lfY97aqaSaJDIxhyyRMLjF0tKo5Wb+68vOTXknmfuwWc+90FNKS/KMsQhVtBRTo1uo4s V80Ua+l5mxrOWrg51GIS1KOccPAHqBympGMCRNFdPGL7p7eBinAR0dAV2ljP/amVc9R2 /2Hw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be12-20020a0564021a2c00b005149e8ae7afsi9181881edb.381.2023.06.15.02.52.37; Thu, 15 Jun 2023 02:53:01 -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 S245385AbjFOJSR (ORCPT + 99 others); Thu, 15 Jun 2023 05:18:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbjFOJSQ (ORCPT ); Thu, 15 Jun 2023 05:18:16 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D518019B5; Thu, 15 Jun 2023 02:18:13 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8AxV+lN14pkSYAFAA--.9774S3; Thu, 15 Jun 2023 17:18:05 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxVeRH14pkxssbAA--.13716S2; Thu, 15 Jun 2023 17:18:03 +0800 (CST) From: Yinbo Zhu To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Huacai Chen , WANG Xuerui , "Rafael J . Wysocki" , Pavel Machek , Marc Zyngier , Arnd Bergmann , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev Cc: Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn, Yinbo Zhu Subject: [PATCH v3 0/3] soc: loongson2_pm: add power management support Date: Thu, 15 Jun 2023 17:17:54 +0800 Message-Id: <20230615091757.24686-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8DxVeRH14pkxssbAA--.13716S2 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v3: 1. Reword the [1/3] patch commit log and title. 2. Use the old naming for suspend interface for the [1/3] and [3/3] patch. 3. Combine some small function in the driver patch. 4. Rename 'pwrbt' to 'button' in the driver patch. 5. Use the specific compatible in yaml file. 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 some arch-specific pm interfaces soc: dt-bindings: add loongson-2 pm soc: loongson2_pm: add power management support .../soc/loongson/loongson,ls2k-pmc.yaml | 53 +++++ MAINTAINERS | 7 + arch/loongarch/include/asm/acpi.h | 3 +- arch/loongarch/include/asm/suspend.h | 10 + arch/loongarch/power/suspend.c | 8 +- drivers/soc/loongson/Kconfig | 10 + drivers/soc/loongson/Makefile | 1 + drivers/soc/loongson/loongson2_pm.c | 218 ++++++++++++++++++ 8 files changed, 304 insertions(+), 6 deletions(-) -- 2.20.1