Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1464244pxb; Sun, 17 Jan 2021 09:49:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwwwbkAm8ARgOi7KLewFGaPCopkzf+8MQJGlfUTwiO8PEZpmeROkJWm/t8xphhPfjnvUdTs X-Received: by 2002:a17:906:8046:: with SMTP id x6mr6602860ejw.351.1610905745907; Sun, 17 Jan 2021 09:49:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610905745; cv=none; d=google.com; s=arc-20160816; b=rfpcQ2gzVuwpdqdxV8gPa5+A+EVqtiZaOka5QaEqvghzvmRe6f6tX4cORflbSmJxcY 0ohkl4F3AM6WQd3P99Uu060U70rbSKRxwboZi1flNKn6+3UACDwqzIEzFqRNmmR98iEj X6YjRmqqgusvWwpCr1lsVqbqyh1YZDmMUVy+Z97xL4CA/sXt4uwiw3HKmxiZy891LlqX nRg2if+inIAKPh0App+bYn6e9XC/ky50y+1npWEyGv0ZfAeCjLnJiAI1iYfwQ6PWJplJ fqXb2aVMLba63Yeb85z067Li9eyjS1KsqlnhIdiL4hVoA1qqM00Ii8r5eaa/y806MwRO 0NHQ== 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:dkim-signature; bh=AC5FWFmc+QTt0xSwIGW5Ve415efkuLFNzYSONRpyY3A=; b=kQuQAGcLBuqLz4wPcPHLoYX4Z6Mt2olUwJsUQWTj4qxGOBOpOSvIiFmRrO2jln816Y o78NEHSbKOVS1DRXH4QZ+UK3iGtI5hjTZQF6iFiamDiIYq7Ix+V/ZgkKi1RWOTH7KQqg 9XsTGQuOKcDgGQt6QKSn0zyHCMX/2LhvGZxzBHG4lnh0uB2l+o13x9r/fohjACVunpQQ F6QGF2TfpWwAjdMI8AKW2qtw8DDiD17bl4KjGLkmGmajEfSS5mXOP5AtPOgfnt+/PrI7 H03n3OqtLIfRXVGx6AcZxkaT9kQfLQhRpGMPGmPqe4Q6D6PUBWYCG5HuUdhSyQbSwOdo vvCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z3jIlgWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si5549913ejx.196.2021.01.17.09.48.42; Sun, 17 Jan 2021 09:49:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z3jIlgWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729349AbhAQQOB (ORCPT + 99 others); Sun, 17 Jan 2021 11:14:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729562AbhAQQKt (ORCPT ); Sun, 17 Jan 2021 11:10:49 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2F7CC061573; Sun, 17 Jan 2021 08:10:08 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id u19so14911182edx.2; Sun, 17 Jan 2021 08:10:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=AC5FWFmc+QTt0xSwIGW5Ve415efkuLFNzYSONRpyY3A=; b=Z3jIlgWoZFgSihGakcm0/3i9PnUa5Mldf0etdusMFVD6qeABjeb9Bzg/TMV0v8wYS7 2YP50bGWIYaL7bDG1A1C9LnD9ZDKvcns0g8fxORrfS70yeEq6uaani6aQ4ce63nWqZKb XcRC/Pr8aIsx4GyJF0QB1RqXm12XctFH99pmdZvc1cH6qiGGqN9stfgt8w/jFf2icHZb hb2cA8rzhusgWU52WHErYn0VksmsInJEjY9qAF/yNxCEVtbK3Jn6ltVhxyX5o2RBbroG DHHceUgDFwGHPn740YhOjzdXPNZQcrH4Kv1g9PU/4mi9lRUplXaHt71bJU1jLl9p11xf wuew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=AC5FWFmc+QTt0xSwIGW5Ve415efkuLFNzYSONRpyY3A=; b=BvBD4/tz+xoWPKAPFHVRMy041jDe6MYBBY0ZSj9b536lxyFIwfhl3QBKtnpyj9XO5B LD+HWCogp1yQ9QAdPyRlrHFBpk8L4P+D5ONETWsQXF0tr9ZGLKRrdLwrHMTANqUiUyZi DsS4NNS6PDUKouHF6gSOTTNR5kuuk4TlU5Ocojm/Sr/Q/26CyJEsCbWNlo3VTvgX+vai zQPHCB1kXvNPZFohUsy4sT4Xup0h62Og4EBLHt8ft31nCCUYlqQk/UijfNE/femohny5 a/hsw7saSh+ZdfJwoj81YwQQSf5QTTevKUw7YzZi/o8y4xZD6m7+/NNbeq8Jz8x0DxRb MDyw== X-Gm-Message-State: AOAM530Dkn7oXgVKvuPVn3FPwdjQRXEakR1RUGZw4ImJ8+zzFAWLZWcC D76aebR653btm2N/w4gyZSJkcLL07zk= X-Received: by 2002:a05:6402:17cb:: with SMTP id s11mr16034374edy.119.1610899807548; Sun, 17 Jan 2021 08:10:07 -0800 (PST) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id dm6sm4885472ejc.32.2021.01.17.08.10.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Jan 2021 08:10:06 -0800 (PST) Subject: Re: [PATCH 1/2] dt-bindings: powerpc: Add a schema for the 'sleep' property To: Rob Herring , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Heiko Stuebner , "open list:ARM/Rockchip SoC..." References: <20201008142420.2083861-1-robh@kernel.org> From: Johan Jonker Message-ID: <752e9355-defb-6d3c-248b-f626247d4cee@gmail.com> Date: Sun, 17 Jan 2021 17:10:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20201008142420.2083861-1-robh@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, This patch generates notifications in the Rockchip ARM and arm64 tree. Could you limit the scope to PowerPC only. Kind regards, Johan Jonker make ARCH=arm dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/powerpc/sleep.yaml make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/powerpc/sleep.yaml Example: /arch/arm64/boot/dts/rockchip/rk3399pro-rock-pi-n10.dt.yaml: pinctrl: sleep: {'ddrio-pwroff': {'rockchip,pins': [[0, 1, 1, 168]]}, 'ap-pwroff': {'rockchip,pins': [[1, 5, 1, 168]]}} is not of type 'array' From schema: /Documentation/devicetree/bindings/powerpc/sleep.yaml On 10/8/20 4:24 PM, Rob Herring wrote: > Document the PowerPC specific 'sleep' property as a schema. It is > currently only documented in booting-without-of.rst which is getting > removed. > > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: linuxppc-dev@lists.ozlabs.org > Signed-off-by: Rob Herring > --- > .../devicetree/bindings/powerpc/sleep.yaml | 47 +++++++++++++++++++ > 1 file changed, 47 insertions(+) > create mode 100644 Documentation/devicetree/bindings/powerpc/sleep.yaml > > diff --git a/Documentation/devicetree/bindings/powerpc/sleep.yaml b/Documentation/devicetree/bindings/powerpc/sleep.yaml > new file mode 100644 > index 000000000000..6494c7d08b93 > --- /dev/null > +++ b/Documentation/devicetree/bindings/powerpc/sleep.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/powerpc/sleep.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: PowerPC sleep property > + > +maintainers: > + - Rob Herring > + > +description: | > + Devices on SOCs often have mechanisms for placing devices into low-power > + states that are decoupled from the devices' own register blocks. Sometimes, > + this information is more complicated than a cell-index property can > + reasonably describe. Thus, each device controlled in such a manner > + may contain a "sleep" property which describes these connections. > + > + The sleep property consists of one or more sleep resources, each of > + which consists of a phandle to a sleep controller, followed by a > + controller-specific sleep specifier of zero or more cells. > + > + The semantics of what type of low power modes are possible are defined > + by the sleep controller. Some examples of the types of low power modes > + that may be supported are: > + > + - Dynamic: The device may be disabled or enabled at any time. > + - System Suspend: The device may request to be disabled or remain > + awake during system suspend, but will not be disabled until then. > + - Permanent: The device is disabled permanently (until the next hard > + reset). > + > + Some devices may share a clock domain with each other, such that they should > + only be suspended when none of the devices are in use. Where reasonable, > + such nodes should be placed on a virtual bus, where the bus has the sleep > + property. If the clock domain is shared among devices that cannot be > + reasonably grouped in this manner, then create a virtual sleep controller > + (similar to an interrupt nexus, except that defining a standardized > + sleep-map should wait until its necessity is demonstrated). > + > +select: true > + > +properties: > + sleep: > + $ref: /schemas/types.yaml#definitions/phandle-array > + > +additionalProperties: true >