From mboxrd@z Thu Jan 1 00:00:00 1970 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 A2BFEEB64D8 for ; Fri, 16 Jun 2023 08:04:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245459AbjFPIEO (ORCPT ); Fri, 16 Jun 2023 04:04:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244486AbjFPIEL (ORCPT ); Fri, 16 Jun 2023 04:04:11 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA3FF2D73 for ; Fri, 16 Jun 2023 01:03:56 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b44200367bso4605631fa.2 for ; Fri, 16 Jun 2023 01:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686902634; x=1689494634; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=hULyAVDg1y9tDeonTJB2nq2Om4nQ0EG3JOer8JbQBgk=; b=IjyyIjRvGJ6T59xW+C0BwtDhrkUtXVrPEBmitFdbVZj5r/FE6bMgxSecYi9QXghR2d V5y9FYiVW5wClSM4X+FYHojfR1F4PZnud/5OnHP2hV64TlSkGF39SpSsvJg+8WHw3hTm Sa0kqwuNfIa6AlNThBEBb0T8fv6aNXyVlbxcM1wiCiZ+Cj/c+I8UDVn+KdZ7aweQCoiY 01xKnKQfj7qGmx9kRuxB9ahCcWLlpyPBf8FAic7GrefbQEPt7wV3EOr/bNi6NWxPy4rB Jb5D8yo/m9pfs674Zmtunm9tFzZIDDrbRLOvMOnaLQ5eTC6A9aipJQV8Wd6/OAZbBqeF yxhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686902634; x=1689494634; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hULyAVDg1y9tDeonTJB2nq2Om4nQ0EG3JOer8JbQBgk=; b=J0LrhD71fzOzZT7/RTbWmxjOHGOuU5uavXHuBDNf46sASO0Kvz35W/vIknKs3Jt+y3 5A2RVrVkmTiC+gLemnUhdQR9l8XiJFUscOG2Y5/4Gfey3H21v6Wu+PCUQloQOhj0XpW+ UwSnMvG8nj8hzjPn9z8A7s5kPgZZsC35rZzdtc/ervCphv/6HQTVAmG9VXgupN2zp/S1 ylp3P6rgPsohgnjpOJRUemA73OjgCDkRuTwDghI8NXhXD8DVS3OMdVQpPgt8WAqAhRW3 V7e5XP77/++4aI+Jb8nwcXey2JBDAz0Eai2Okn/NJ9/l5Hm2WsX6/HJpPsCpO8fDfdnK ZmmQ== X-Gm-Message-State: AC+VfDxiKZW8Pq6+jDeSpHQ/nBWc3sGRVzSXwsBapWqx370M6aG5mkM8 nW/NajlLXv3pDYDw75bC7bCsKQ== X-Google-Smtp-Source: ACHHUZ6I3r39l8aDjCeT+3PLWduhsdthB5fB5sV2c3c0A+8gjY/rggU6SYdfOnmk0HXZbGrejZLc0Q== X-Received: by 2002:a2e:86d2:0:b0:2ad:9139:c871 with SMTP id n18-20020a2e86d2000000b002ad9139c871mr1103205ljj.19.1686902634418; Fri, 16 Jun 2023 01:03:54 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id u3-20020aa7d543000000b00514bddcb87csm9908991edr.31.2023.06.16.01.03.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jun 2023 01:03:53 -0700 (PDT) Message-ID: Date: Fri, 16 Jun 2023 10:03:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3 2/3] soc: dt-bindings: add loongson-2 pm To: Yinbo Zhu , 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 References: <20230615091757.24686-1-zhuyinbo@loongson.cn> <20230615091757.24686-3-zhuyinbo@loongson.cn> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20230615091757.24686-3-zhuyinbo@loongson.cn> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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. > + - 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 Best regards, Krzysztof