From patchwork Thu Aug 31 11:43:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Binbin Zhou X-Patchwork-Id: 13371423 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B6E3C83F32 for ; Thu, 31 Aug 2023 11:43:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236361AbjHaLnZ (ORCPT ); Thu, 31 Aug 2023 07:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbjHaLnZ (ORCPT ); Thu, 31 Aug 2023 07:43:25 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 67324C5; Thu, 31 Aug 2023 04:43:20 -0700 (PDT) Received: from loongson.cn (unknown [112.20.109.102]) by gateway (Coremail) with SMTP id _____8BxNujWfPBkGG8dAA--.6830S3; Thu, 31 Aug 2023 19:43:18 +0800 (CST) Received: from localhost.localdomain (unknown [112.20.109.102]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxniPTfPBkVxJoAA--.14619S2; Thu, 31 Aug 2023 19:43:16 +0800 (CST) From: Binbin Zhou To: Binbin Zhou , Huacai Chen , Yinbo Zhu , Arnd Bergmann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Huacai Chen , loongson-kernel@lists.loongnix.cn, soc@kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Xuerui Wang , loongarch@lists.linux.dev, Binbin Zhou Subject: [PATCH v2 0/5] soc: loongson: Fix some issues about loongson_pm2 Date: Thu, 31 Aug 2023 19:43:10 +0800 Message-Id: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FwI0_Jr0_JF4lIxAI cVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42 IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVj vjDU0xZFpf9x07j5xhLUUUUU= Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi all: Since commit 67694c076bd7 ("soc: loongson2_pm: add power management support"), the Loongson-2K PM driver was added, some issues have been found and this patchset is planned to fix these issues. Specific: Patch 1: Compilation error found by Randy; Patch 2/3: Rewriting the ls2k-pmc compatible attribute with fallback compatible; Patch 4/5: Add Loongson-2K SoC reboot/shutdown support as part of power management. Thanks. ----- V2: patch 1: - Change "depends on INPUT" to "depends on INPUT=y", because the compilation error still exists when "INPUT=m". patch 2: - Use ls2k0500 as the fallback compatible; - Add ls2k2000 compatible. patch 3: - Drop ls2k1000 compatible, for ls2k0500 is used as the fallback compatible. patch 4: - Drop label; - Drop regmap property in syscon-reboot, for it's deprecated; - Add missing space. Link to V1: https://lore.kernel.org/all/cover.1693218539.git.zhoubinbin@loongson.cn/ Binbin Zhou (5): soc: loongson: loongson_pm2: Add dependency for INPUT dt-bindings: soc: loongson,ls2k-pmc: Use fallbacks for ls2k-pmc compatible soc: loongson: loongson_pm2: Drop useless of_device_id compatible dt-bindings: soc: loongson,ls2k-pmc: Allow syscon-reboot/syscon-poweroff as child soc: loongson: loongson_pm2: Populate children syscon nodes .../soc/loongson/loongson,ls2k-pmc.yaml | 43 ++++++++++++++++--- drivers/soc/loongson/Kconfig | 1 + drivers/soc/loongson/loongson2_pm.c | 7 ++- 3 files changed, 44 insertions(+), 7 deletions(-)