Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp842806rwd; Thu, 15 Jun 2023 02:53:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qoh9ajNmoti/AIUTgqafK/R15J6CAvEAEZMYlRjMrSC/zx7THSM/FVeixCrcbg8BKx71c X-Received: by 2002:a17:907:a4e:b0:96f:d345:d0f7 with SMTP id be14-20020a1709070a4e00b0096fd345d0f7mr15046509ejc.62.1686822793247; Thu, 15 Jun 2023 02:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686822793; cv=none; d=google.com; s=arc-20160816; b=g7HCZHpv7auIdLohuicziKnWR1Ft5TOMeUUFXrtyhMficK9ECSuUyu4uKXqOXHCzJD EUPPTbcYxGkfcIgPDcEzBiLRi+vFyqgd4U96WkPus7D6NeY7tGQEakuFTF+L2sUX7Eqj v435uaF9B5bTG7AAMFNoOxZRiqrcrdbiXeMrnbdTAwRAm1KP+XagpuQ4Qh30ifQK8HLS e5Q1oHtg8SX0mNCMPdBmt+TiZ9efiWraBl0Ku5B76NIZVxk/hkw0S4zxwAZzIiyJiSyp V1zGgmbP6WpZce8z1GkH4aVIYOzFqExKhgR5QyalEV/YSb4S4fu5lW7pM7DVsIHfjse0 ccQQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=723AZ0EXAwi0zqTlYbr4E4ZOZWf0CwSFrsIe5gxthxU=; b=F/0FnG5a92gn9nO0bGrwy2qnSNn5CQlDoi3/CZ1kKOiIpKT1PWF61Q9GJfe17XNbo1 Xc7bAUV6PSIfWMpnqQgVii3eD5RrIYwUFz4APq9BqruAZ2oCytpsFrvqhCholzOGKu2R Sufu23wzoZronL8mi15y8iZbI0v2Rd8l86TvK7ss92Eask6CZihxU0BDpyKkPwTKcEW3 NJZyzRpJcSQQlxw1il2mU8gwVNjZyQKe1piNCXTHoX1L2SMWNwiyaMA9qASLC6ZB/R+d LaWGAYiDGlV7f3BZDYEIfHK43oX0sg1Im2JEA4N6aqa08KLUcXK+kBvWrQKKucuytggY xTpg== 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 qu10-20020a170907110a00b0096f935a9482si8389986ejb.188.2023.06.15.02.52.47; Thu, 15 Jun 2023 02:53:13 -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 S245473AbjFOJST (ORCPT + 99 others); Thu, 15 Jun 2023 05:18:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241335AbjFOJSQ (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 2F2E21BEC; Thu, 15 Jun 2023 02:18:14 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.35]) by gateway (Coremail) with SMTP id _____8DxCepU14pkVYAFAA--.11780S3; Thu, 15 Jun 2023 17:18:12 +0800 (CST) Received: from user-pc.202.106.0.20 (unknown [10.20.42.35]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxVeRH14pkxssbAA--.13716S4; Thu, 15 Jun 2023 17:18:04 +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 2/3] soc: dt-bindings: add loongson-2 pm Date: Thu, 15 Jun 2023 17:17:56 +0800 Message-Id: <20230615091757.24686-3-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230615091757.24686-1-zhuyinbo@loongson.cn> References: <20230615091757.24686-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8DxVeRH14pkxssbAA--.13716S4 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 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: + - 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 { + compatible = "loongson,ls2k1000-pmc", "syscon"; + reg = <0x1fe27000 0x58>; + interrupt-parent = <&liointc1>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + suspend-address = <0x1c000500>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 7a91f14cad2e..bcd05f1fa5c1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12190,6 +12190,12 @@ S: Maintained F: Documentation/devicetree/bindings/hwinfo/loongson,ls2k-chipid.yaml F: drivers/soc/loongson/loongson2_guts.c +LOONGSON-2 SOC SERIES PM DRIVER +M: Yinbo Zhu +L: linux-pm@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml + LOONGSON-2 SOC SERIES PINCTRL DRIVER M: zhanghongchen M: Yinbo Zhu -- 2.20.1