Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: tegra: pmc: Update scratch as an optional aperture

Scratch address space register is used to store reboot reason. For
some Tegra234 systems, the scratch space is not available to store
the reboot reason. This is because scratch region on these systems
is not accessible by the kernel as restricted by the Hypervisor.
Such systems would delist scratch aperture from PMC DT node.

Accordingly, this change makes "scratch" as an optional aperture for
Tegra234 in PMC dt-binding document.

Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Petlozu Pravareshwar and committed by
Thierry Reding
4e00c62b 6613476e

+36 -18
+36 -18
Documentation/devicetree/bindings/arm/tegra/nvidia,tegra186-pmc.yaml
··· 27 27 - const: pmc 28 28 - const: wake 29 29 - const: aotag 30 - - const: scratch 30 + - enum: [ scratch, misc ] 31 31 - const: misc 32 32 33 33 interrupt-controller: true ··· 41 41 description: If present, inverts the PMU interrupt signal. 42 42 $ref: /schemas/types.yaml#/definitions/flag 43 43 44 - if: 45 - properties: 46 - compatible: 47 - contains: 48 - const: nvidia,tegra186-pmc 49 - then: 50 - properties: 51 - reg: 52 - maxItems: 4 44 + allOf: 45 + - if: 46 + properties: 47 + compatible: 48 + contains: 49 + const: nvidia,tegra186-pmc 50 + then: 51 + properties: 52 + reg: 53 + maxItems: 4 54 + reg-names: 55 + maxItems: 4 56 + contains: 57 + const: scratch 53 58 54 - reg-names: 55 - maxItems: 4 56 - else: 57 - properties: 58 - reg: 59 - minItems: 5 59 + - if: 60 + properties: 61 + compatible: 62 + contains: 63 + const: nvidia,tegra194-pmc 64 + then: 65 + properties: 66 + reg: 67 + minItems: 5 68 + reg-names: 69 + minItems: 5 60 70 61 - reg-names: 62 - minItems: 5 71 + - if: 72 + properties: 73 + compatible: 74 + contains: 75 + const: nvidia,tegra234-pmc 76 + then: 77 + properties: 78 + reg-names: 79 + contains: 80 + const: misc 63 81 64 82 patternProperties: 65 83 "^[a-z0-9]+-[a-z0-9]+$":