From patchwork Fri Jul 28 07:49:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinbo Zhu X-Patchwork-Id: 127410 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp273447vqg; Fri, 28 Jul 2023 01:08:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFGolURHgXvGus2LFlBcMPw/r7dGdoypdk3Ajuto4dU3OePrJxNqozWoQJxMNYnuknb63/V X-Received: by 2002:a17:907:2711:b0:99b:5a73:4d09 with SMTP id w17-20020a170907271100b0099b5a734d09mr1268888ejk.43.1690531721449; Fri, 28 Jul 2023 01:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690531721; cv=none; d=google.com; s=arc-20160816; b=TDUnpJJKAHtcKRHUEEa+5GUaQM8a8AFwadjv41+thFKDrzH9hmPmCCA73DnCcs72HU MiygGMYmlTFlF/WQ8CUvqDDNeHKgNYzuOLMSYKJeXlK5keUQbZgNNAhzNeaRLuvFCOso 1mBdcnSB6zfO6HFao3Z6nte1XO/rPEp2clh9f1Aq7RtiYuzhr0Eu5O9j5RlqtD2JEnz1 Om3vxIohCZgP6QjXa8IJz/I+8eNL6prQVG8WLcvsnBh8DGr2I71ds7Ptb0f4KfofEfPQ F7AVE2u/0fRKEywEvOF9TP+9hKhY2ispsRMnIj3GnLYZca5cffTKex42tvQ5CsIkJ77r VVaw== 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=xcV0ipVslahvM070ZaDhT4GcHIJLM4QsbOOUd2yXKQ0=; fh=DTuk6cBr3q9fmRYJv+WJWLTjjvYxEASA5XKeCOrarKk=; b=gyeCJK+ifCYtgdT7ldih/aEhIaQR2iaEhVVZ+6h+CnHEfmvIUni6S4ud6mQNlOwg2q zeRdQ1z5Rg6WWvIbhfw1PDarJkE6F6SZaNhU14doBuTvL+iAcReOa9oTXcUp7+zFIi3o NFK5rEDCAV6KJdoBCX8C9Zi3k7BMRM0sMdusl8yI8oVnwkXU3DAxF+qSIZqYbIGiym2y tK57J7JrqVe6W4rnk1GG8q4ATdCs0C2UB8oonXzKK0jUUxx7YT6kT9qcEO+vFE+jf5yy d8VY21mB/QKXiKAjvzpBurMQcG8AtXPpdo9okhP7myEWkh6s9/otGPDPBX3mDuyicvoU PoSg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a170906494d00b00987a43ee395si2355981ejt.741.2023.07.28.01.08.17; Fri, 28 Jul 2023 01:08:41 -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 S234457AbjG1HuE (ORCPT + 99 others); Fri, 28 Jul 2023 03:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234445AbjG1HuA (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 D7A8B30E0; Fri, 28 Jul 2023 00:49:58 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.201]) by gateway (Coremail) with SMTP id _____8Dx6eokc8NkijsLAA--.22411S3; Fri, 28 Jul 2023 15:49:56 +0800 (CST) Received: from localhost.localdomain (unknown [10.20.42.201]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Dx4eQbc8NkiQA+AA--.34001S3; Fri, 28 Jul 2023 15:49:53 +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 , Krzysztof Kozlowski Subject: [PATCH v5 1/2] soc: dt-bindings: add loongson-2 pm Date: Fri, 28 Jul 2023 15:49:43 +0800 Message-Id: <20230728074944.26746-2-zhuyinbo@loongson.cn> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230728074944.26746-1-zhuyinbo@loongson.cn> References: <20230728074944.26746-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Dx4eQbc8NkiQA+AA--.34001S3 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,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772650990528967971 X-GMAIL-MSGID: 1772650990528967971 Add the Loongson-2 SoC Power Management Controller binding with DT schema format using json-schema. Signed-off-by: Yinbo Zhu Reviewed-by: Krzysztof Kozlowski --- .../soc/loongson/loongson,ls2k-pmc.yaml | 52 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 58 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..da2dcfeebf12 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/loongson/loongson,ls2k-pmc.yaml @@ -0,0 +1,52 @@ +# 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: + items: + - enum: + - loongson,ls2k0500-pmc + - loongson,ls2k1000-pmc + - const: syscon + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + loongson,suspend-address: + $ref: /schemas/types.yaml#/definitions/uint64 + description: + The "loongson,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 + + power-management@1fe27000 { + compatible = "loongson,ls2k1000-pmc", "syscon"; + reg = <0x1fe27000 0x58>; + interrupt-parent = <&liointc1>; + interrupts = <11 IRQ_TYPE_LEVEL_LOW>; + loongson,suspend-address = <0x0 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