NVIDIA Tegra Power Management Controller (PMC)
Schema identifier ($id): "http://devicetree.org/schemas/arm/tegra/nvidia,tegra186-pmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nvidia,tegra186-pmc", "nvidia,tegra194-pmc", "nvidia,tegra234-pmc", "nvidia,tegra264-pmc"
reg — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 5
reg-names — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Exact value (
const):"pmc"
Item 2
Exact value (
const):"wake"
Item 3
Item 4
Item 5
Exact value (
const):"misc"
interrupt-controller — not listed as required here #
true — No constraints added by this property rule.
#interrupt-cells — not listed as required here #
Specifies the number of cells needed to encode an interrupt source. The value must be 2.
Exact value (const): 2
nvidia,invert-interrupt — not listed as required here #
If present, inverts the PMU interrupt signal.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"nvidia,tegra186-pmc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
reg-names— not listed as required hereMaximum number of items (
maxItems):4Rule for matching array elements (
contains)Exact value (
const):"scratch"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"nvidia,tegra194-pmc"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):5
reg-names— not listed as required hereMinimum number of items (
minItems):5
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"nvidia,tegra234-pmc","nvidia,tegra264-pmc"When the condition matches (
then) #Properties and child nodes (
properties)
reg-names— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"misc"
Properties matching a name pattern (patternProperties) #
^[a-z0-9]+-[a-z0-9]+$ — name matches this regular expression #
Condition (if) #
Value type (
type):"object"
When the condition matches (then) #
These are pad configuration nodes. On Tegra SoCs a pad is a set of pins which are configured as a group. The pin grouping is a fixed attribute of the hardware. The PMC can be used to set pad power state and signaling voltage. A pad can be either in active or power down mode. The support for power state and signaling voltage configuration varies depending on the pad in question. 3.3 V and 1.8 V signaling voltages are supported on pins where software controllable signaling voltage switching is available.
Pad configurations are described with pin configuration nodes which are placed under the pmc node and they are referred to by the pinctrl client properties. For more information see
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txtThe following pads are present on Tegra186:
csia, csib, dsi, mipi-bias, pex-clk-bias, pex-clk3, pex-clk2, pex-clk1, usb0, usb1, usb2, usb-bias, uart, audio, hsic, dbg, hdmi-dp0, hdmi-dp1, pex-cntrl, sdmmc2-hv, sdmmc4, cam, dsib, dsic, dsid, csic, csid, csie, dsif, spi, ufs, dmic-hv, edp, sdmmc1-hv, sdmmc3-hv, conn, audio-hv, ao-hvThe following pads are present on Tegra194:
csia, csib, mipi-bias, pex-clk-bias, pex-clk3, pex-clk2, pex-clk1, eqos, pex-clk-2-bias, pex-clk-2, dap3, dap5, uart, pwr-ctl, soc-gpio53, audio, gp-pwm2, gp-pwm3, soc-gpio12, soc-gpio13, soc-gpio10, uart4, uart5, dbg, hdmi-dp3, hdmi-dp2, hdmi-dp0, hdmi-dp1, pex-cntrl, pex-ctl2, pex-l0-rst, pex-l1-rst, sdmmc4, pex-l5-rst, cam, csic, csid, csie, csif, spi, ufs, csig, csih, edp, sdmmc1-hv, sdmmc3-hv, conn, audio-hv, ao-hvProperties and child nodes (
properties)
pins— required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/stringMust contain the name of the pad(s) to be configured.
low-power-enable— not listed as required hereConfigure the pad into power down mode.
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/flag
low-power-disable— not listed as required hereConfigure the pad into active mode.
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/flag
power-source— not listed as required hereShared schema rule (
$ref):/schemas/types.yaml#/definitions/uint32Must contain either TEGRA_IO_PAD_VOLTAGE_1V8 or TEGRA_IO_PAD_VOLTAGE_3V3 to select between signalling voltages.
The values are defined in
include/dt-bindings/pinctrl/pinctrl-tegra-io-pad.hThe power state can be configured on all of the above pads except for ao-hv. Following pads have software configurable signaling voltages: sdmmc2-hv, dmic-hv, sdmmc1-hv, sdmmc3-hv, audio-hv, ao-hv.
phandle— not listed as required here
true— No constraints added by this property rule.Required in this object (
required):"pins"Properties not matched by properties or patternProperties in this schema (
additionalProperties)
falseNot allowed by this rule.
Required in this object (required): "compatible", "reg", "reg-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Property dependencies (dependencies) #
interrupt-controller — applies when this property is present #
Also requires: "#interrupt-cells"
#interrupt-cells — applies when this property is present #
Required in this object (required): "interrupt-controller"
Examples (examples) #
#include <dt-bindings/clock/tegra186-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/pinctrl-tegra-io-pad.h>
#include <dt-bindings/memory/tegra186-mc.h>
#include <dt-bindings/reset/tegra186-reset.h>
pmc@c3600000 {
compatible = "nvidia,tegra186-pmc";
reg = <0x0c360000 0x10000>,
<0x0c370000 0x10000>,
<0x0c380000 0x10000>,
<0x0c390000 0x10000>;
reg-names = "pmc", "wake", "aotag", "scratch";
nvidia,invert-interrupt;
sdmmc1_3v3: sdmmc1-3v3 {
pins = "sdmmc1-hv";
power-source = <TEGRA_IO_PAD_VOLTAGE_3V3>;
};
sdmmc1_1v8: sdmmc1-1v8 {
pins = "sdmmc1-hv";
power-source = <TEGRA_IO_PAD_VOLTAGE_1V8>;
};
};
sdmmc1: mmc@3400000 {
compatible = "nvidia,tegra186-sdhci";
reg = <0x03400000 0x10000>;
interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&bpmp TEGRA186_CLK_SDMMC1>,
<&bpmp TEGRA186_CLK_SDMMC_LEGACY_TM>;
clock-names = "sdhci", "tmclk";
resets = <&bpmp TEGRA186_RESET_SDMMC1>;
reset-names = "sdhci";
interconnects = <&mc TEGRA186_MEMORY_CLIENT_SDMMCRA &emc>,
<&mc TEGRA186_MEMORY_CLIENT_SDMMCWA &emc>;
interconnect-names = "dma-mem", "write";
iommus = <&smmu TEGRA186_SID_SDMMC1>;
pinctrl-names = "sdmmc-3v3", "sdmmc-1v8";
pinctrl-0 = <&sdmmc1_3v3>;
pinctrl-1 = <&sdmmc1_1v8>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)