Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2297479rwd; Fri, 16 Jun 2023 01:54:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6p//hY4yE/1gDKx1//N9Ximg+RI6JMSgcix8jnaCwdJvHs9jbORe9Stk7+Xr3ZHaLBkUaQ X-Received: by 2002:a05:6a21:32a0:b0:117:a86:6c7a with SMTP id yt32-20020a056a2132a000b001170a866c7amr1854978pzb.12.1686905679435; Fri, 16 Jun 2023 01:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686905679; cv=none; d=google.com; s=arc-20160816; b=VHDeGSCajJyLvADzzYfeuJw7oUzEz9NJYmPZUHrjqpezhqgaNrY07rm40IThjMBS08 Vcvnx7glF/LZdah7ov5QK+7zFydymZNuFvpEfeZND5Q46+gpqqfX9nfTIims0CfZC2Dh 6tjGPXDi/7gFNK/LmPfzQtVU9cZl9dmL1NuJ/ilTNTL+14qP9xUwBjACXkOpVQWq3dAb WbZFu0y1iOjPRxwfEMUhJXA6BAIGpx8CBJp/S1eLMVY9059IS99VbODfjVDJJ8HAiYMo +G7V4oDvLA5c7DL7a2YqajWBpLpHBvN87O0cadQDeUDOmvpyJn0N3BmGGuvX+Wg8m1J9 yQaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=qik7xuCsP8xCS5C926rK7LwGNA0KtNSzRNFlNKR9Lvo=; b=zlIIODYKHatvsvr3awYmoJktRLfTSzHwpSXPIECa9hxN0XW5Bdi08+WvXP5Svw9fFh HoOwkdqnadCvIbSpC7gXwzr9tN5tXmX/vOw6rqWBcWoNC5Xi6Sh2dPGy9sYTYsjR2U3W zxwO4LrPDUPu8KlRAkt2BxSkxNt2kKCNJ5F1eJQ4qXyM8YTRcE2N42uKkBwfoxCfxvqc aSJ3+dwn0oE7pAGHeGUGSlBxJJxwPQX9rGlRfrx0U7XMLvTuf894iT+L2EukRGqCdvCi wqhTG9OO3yX4pRvco0JuD+1W/vjDGbHVW21V1k8L+lN+NECsnDdN4ABC9KgOwFgjD+pX Kj6A== 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 l16-20020a170902f69000b001b02bd00c67si14948691plg.324.2023.06.16.01.54.24; Fri, 16 Jun 2023 01:54:39 -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 S1343817AbjFPIvU (ORCPT + 99 others); Fri, 16 Jun 2023 04:51:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343804AbjFPIvN (ORCPT ); Fri, 16 Jun 2023 04:51:13 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20D0530D0; Fri, 16 Jun 2023 01:51:09 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8DxzOp8IoxkjegFAA--.12616S3; Fri, 16 Jun 2023 16:51:08 +0800 (CST) Received: from [10.20.42.35] (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxluR4IoxknxIdAA--.17041S3; Fri, 16 Jun 2023 16:51:05 +0800 (CST) Subject: Re: [PATCH v3 2/3] soc: dt-bindings: add loongson-2 pm To: Krzysztof Kozlowski , 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, zhuyinbo@loongson.cn References: <20230615091757.24686-1-zhuyinbo@loongson.cn> <20230615091757.24686-3-zhuyinbo@loongson.cn> From: zhuyinbo Message-ID: <5f50f83d-52f4-276b-1e99-6fef461df80a@loongson.cn> Date: Fri, 16 Jun 2023 16:51:04 +0800 User-Agent: Mozilla/5.0 (X11; Linux loongarch64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8DxluR4IoxknxIdAA--.17041S3 X-CM-SenderInfo: 52kx5xhqerqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 在 2023/6/16 下午4:03, Krzysztof Kozlowski 写道: > On 15/06/2023 11:17, Yinbo Zhu wrote: >> Add the Loongson-2 SoC Power Management Controller binding with DT >> schema format using json-schema. >> >> Signed-off-by: Yinbo Zhu >> --- >> .../soc/loongson/loongson,ls2k-pmc.yaml | 53 +++++++++++++++++++ >> MAINTAINERS | 6 +++ >> 2 files changed, 59 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml >> >> diff --git a/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml b/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml >> new file mode 100644 >> index 000000000000..32499bd10f8c >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml >> @@ -0,0 +1,53 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/soc/loongson/loongson,ls2k-pmc.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Loongson-2 Power Manager controller >> + >> +maintainers: >> + - Yinbo Zhu >> + >> +properties: >> + compatible: >> + oneOf: > > Drop oneOf, you don't have here many choices. okay, I got it. > >> + - items: >> + - enum: >> + - loongson,ls2k1000-pmc >> + - loongson,ls2k0500-pmc >> + - const: syscon >> + >> + reg: >> + maxItems: 1 >> + >> + interrupts: >> + maxItems: 1 >> + >> + suspend-address: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: >> + The "suspend-address" is a deep sleep state (Suspend To RAM) >> + firmware entry address which was jumped from kernel and it's >> + value was dependent on specific platform firmware code. In >> + addition, the PM need according to it to indicate that current >> + SoC whether support Suspend To RAM. >> + >> +required: >> + - compatible >> + - reg >> + - interrupts >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include >> + >> + pmc: pm@1fe27000 { > > Node name: system-controller or power-pamanagement > > With these two: > > Reviewed-by: Krzysztof Kozlowski okay, I will do it. Thanks, Yinbo