mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 10:34:55 +08:00
d69c6ddd01
The correct syntax for JSON pointers begins with a '/' after the '#'. Without a '/', the string should be interpreted as a subschema identifier. The jsonschema module currently doesn't handle subschema identifiers and incorrectly allows JSON pointers to begin without a '/'. Let's fix this before it becomes a problem when jsonschema module is fixed. Converted with: perl -p -i -e 's/yaml#definitions/yaml#\/definitions/g' `find Documentation/devicetree/bindings/ -name "*.yaml"` Cc: Maxime Ripard <mripard@kernel.org> Cc: Jonathan Cameron <jic23@kernel.org> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Daniel Thompson <daniel.thompson@linaro.org> Cc: Jingoo Han <jingoohan1@gmail.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Mark Brown <broonie@kernel.org> Cc: netdev@vger.kernel.org Acked-By: Vinod Koul <vkoul@kernel.org> Acked-by: Lee Jones <lee.jones@linaro.org> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Sebastian Reichel <sre@kernel.org> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Jakub Kicinski <kuba@kernel.org> Link: https://lore.kernel.org/r/20201217223429.354283-1-robh@kernel.org Signed-off-by: Rob Herring <robh@kernel.org>
48 lines
1.9 KiB
YAML
48 lines
1.9 KiB
YAML
# 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 <robh@kernel.org>
|
|
|
|
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
|