Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp895480rwb; Fri, 28 Jul 2023 01:11:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFTtYwGwF5bQt94RWQzI7COinDrSUydfDgWASY6kB78mpm37NT2TcdIDwvTmwrIb9g+dw0h X-Received: by 2002:a05:6402:756:b0:522:561f:83c2 with SMTP id p22-20020a056402075600b00522561f83c2mr1101284edy.1.1690531872693; Fri, 28 Jul 2023 01:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690531872; cv=none; d=google.com; s=arc-20160816; b=bKUcREWRAWW3AYQZ6gRsqTTG+WP0i5Krn4KoWoZ2zheuBOMfNKP5KjI27mtCBL5GUk 9OgGR7MGJMkRagn1zEZea0rb3XC50Psitw1rZyIMUFBIgwqaDF+UTFX9Y+ZxJOYvT2Pl mPpIgdoWgSCUIwQMk2wMzOW9QQIB4+cTYnCuxEUpZop5i4wYexfRzzCvgc6Zp6b+D0e1 g1MjehYAovU3jsgDyb1GKCsLOvjJ3Dq6qyVZr5+cSyJaGwwbvX01QO7FwH30uEFQmXGL 8qcst92w0wYVFueH/ajqNdWrMbEVAbP7+uz3f5ZnYGVcVk3tUd2n+FRaZ+w8rKuFC2r8 HOKQ== 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=UVROaAxt54QTIFcynfrnS3hc/GROlfnIFGCiM3llVOU=; fh=GFNH2kwX0P1hdGVSRsHQBGvzF0wKvBygsPtNX3whwZY=; b=RuNXt4mbwSYafjC0GaoS/85sFg72N8kMlLU5Vq4U3gGJUUQQX8hwKs+ECv+AMETVmt Mr/T0ShQJ2G1GYklkVOdmKcDNe4MuLq9KthO8jdrqTmK4zEURmt9JTmlBDaTOC1MBHz3 J4vaZgHoMaDGaDTlJhj8uUEbeixaBA+DgvFTcbYtfX8kGstwdsnDKSKesdlifP0pSR1y RhP5DJQGs9PIDvzVqdI2s3odoreSKUIGAuC9Ku1DNd5/ySEIa83CviaAYnuYWfn+bj8h fvqvVfnE5w48G3QRnGmWve7dQFcSQdnxEMq60BoYrd9RN1kGoaBtMlP6yG0HTACUTBjV eyLQ== 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 f16-20020a056402005000b005222065ee63si2102079edu.384.2023.07.28.01.10.47; Fri, 28 Jul 2023 01:11:12 -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 S234466AbjG1HuG (ORCPT + 99 others); Fri, 28 Jul 2023 03:50:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234439AbjG1HuA (ORCPT ); Fri, 28 Jul 2023 03:50:00 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A0E1A30DE; Fri, 28 Jul 2023 00:49:57 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.201]) by gateway (Coremail) with SMTP id _____8AxV_Eic8NkhTsLAA--.28335S3; Fri, 28 Jul 2023 15:49:54 +0800 (CST) Received: from localhost.localdomain (unknown [10.20.42.201]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx4eQbc8NkiQA+AA--.34001S2; Fri, 28 Jul 2023 15:49:50 +0800 (CST) From: Yinbo Zhu To: Arnd Bergmann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn, Yinbo Zhu , Liu Yun Subject: [PATCH v5 0/2] soc: loongson2_pm: add power management support Date: Fri, 28 Jul 2023 15:49:42 +0800 Message-Id: <20230728074944.26746-1-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Dx4eQbc8NkiQA+AA--.34001S2 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 v5: 1. The patch "[PATCH v3 1/3] loongarch: export some arch-specific pm interfaces" had been merged into linux-next tree thus this v4 series patch need drop it and need depend on it and it's patch link was: https://lore.kernel.org/all/20230615091757.24686-2-zhuyinbo@loongson.cn/ 2. Swap the positions of compatible for 2k1000 and 2k0500. Change in v4: 1. The patch "[PATCH v3 1/3] loongarch: export some arch-specific pm interfaces" had been merged into linux-next tree thus this v4 series patch need drop it and need depend on it and it's patch link was: https://lore.kernel.org/all/20230615091757.24686-2-zhuyinbo@loongson.cn/ 2. Remove the pmc label in dt-binding patch. 3. Add the Co-developed-by for driver patch. 4. Simplify the loongson2_suspend_valid_state that "return (state == PM_SUSPEND_MEM)". 5. Use Using loongson2_pm_irq_enable() to replace. loongson2_power_button_irq_enable(). 6. Remove the "oneOf" in dt-bindings patch. 7. Replace "suspend-address" that use "loongson,suspend-address". 8. Use u64 type that for "loongson,suspend-address". 9. Rename "pm" to "power-mangement" in dt-bindings patch. 10. Add the reivewed-by for dt-bindings patch. 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 (2): soc: dt-bindings: add loongson-2 pm soc: loongson2_pm: add power management support .../soc/loongson/loongson,ls2k-pmc.yaml | 52 +++++ MAINTAINERS | 7 + drivers/soc/loongson/Kconfig | 10 + drivers/soc/loongson/Makefile | 1 + drivers/soc/loongson/loongson2_pm.c | 215 ++++++++++++++++++ 5 files changed, 285 insertions(+) -- 2.20.1