| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/arm/tegra/nvidia,tegra186-pmc.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: NVIDIA Tegra Power Management Controller (PMC) |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Thierry Reding <[email protected]> |
| 11 |
- Jon Hunter <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
enum: |
| 16 |
- nvidia,tegra186-pmc |
| 17 |
- nvidia,tegra194-pmc |
| 18 |
- nvidia,tegra234-pmc |
| 19 |
- nvidia,tegra264-pmc |
| 20 |
|
| 21 |
reg: |
| 22 |
minItems: 3 |
| 23 |
maxItems: 5 |
| 24 |
|
| 25 |
reg-names: |
| 26 |
minItems: 3 |
| 27 |
items: |
| 28 |
- const: pmc |
| 29 |
- const: wake |
| 30 |
- enum: [ aotag, scratch, misc ] |
| 31 |
- enum: [ scratch, misc ] |
| 32 |
- const: misc |
| 33 |
|
| 34 |
interrupt-controller: true |
| 35 |
|
| 36 |
"#interrupt-cells": |
| 37 |
description: Specifies the number of cells needed to encode an |
| 38 |
interrupt source. The value must be 2. |
| 39 |
const: 2 |
| 40 |
|
| 41 |
nvidia,invert-interrupt: |
| 42 |
description: If present, inverts the PMU interrupt signal. |
| 43 |
$ref: /schemas/types.yaml#/definitions/flag |
| 44 |
|
| 45 |
allOf: |
| 46 |
- if: |
| 47 |
properties: |
| 48 |
compatible: |
| 49 |
contains: |
| 50 |
const: nvidia,tegra186-pmc |
| 51 |
then: |
| 52 |
properties: |
| 53 |
reg: |
| 54 |
minItems: 4 |
| 55 |
maxItems: 4 |
| 56 |
reg-names: |
| 57 |
maxItems: 4 |
| 58 |
contains: |
| 59 |
const: scratch |
| 60 |
|
| 61 |
- if: |
| 62 |
properties: |
| 63 |
compatible: |
| 64 |
contains: |
| 65 |
const: nvidia,tegra194-pmc |
| 66 |
then: |
| 67 |
properties: |
| 68 |
reg: |
| 69 |
minItems: 5 |
| 70 |
reg-names: |
| 71 |
minItems: 5 |
| 72 |
|
| 73 |
- if: |
| 74 |
properties: |
| 75 |
compatible: |
| 76 |
contains: |
| 77 |
enum: |
| 78 |
- nvidia,tegra234-pmc |
| 79 |
- nvidia,tegra264-pmc |
| 80 |
then: |
| 81 |
properties: |
| 82 |
reg-names: |
| 83 |
contains: |
| 84 |
const: misc |
| 85 |
|
| 86 |
patternProperties: |
| 87 |
"^[a-z0-9]+-[a-z0-9]+$": |
| 88 |
if: |
| 89 |
type: object |
| 90 |
then: |
| 91 |
description: | |
| 92 |
These are pad configuration nodes. On Tegra SoCs a pad is a set of |
| 93 |
pins which are configured as a group. The pin grouping is a fixed |
| 94 |
attribute of the hardware. The PMC can be used to set pad power |
| 95 |
state and signaling voltage. A pad can be either in active or |
| 96 |
power down mode. The support for power state and signaling voltage |
| 97 |
configuration varies depending on the pad in question. 3.3 V and |
| 98 |
1.8 V signaling voltages are supported on pins where software |
| 99 |
controllable signaling voltage switching is available. |
| 100 |
|
| 101 |
Pad configurations are described with pin configuration nodes |
| 102 |
which are placed under the pmc node and they are referred to by |
| 103 |
the pinctrl client properties. For more information see |
| 104 |
|
| 105 |
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt |
| 106 |
|
| 107 |
The following pads are present on Tegra186: |
| 108 |
|
| 109 |
csia, csib, dsi, mipi-bias, pex-clk-bias, pex-clk3, pex-clk2, |
| 110 |
pex-clk1, usb0, usb1, usb2, usb-bias, uart, audio, hsic, dbg, |
| 111 |
hdmi-dp0, hdmi-dp1, pex-cntrl, sdmmc2-hv, sdmmc4, cam, dsib, |
| 112 |
dsic, dsid, csic, csid, csie, dsif, spi, ufs, dmic-hv, edp, |
| 113 |
sdmmc1-hv, sdmmc3-hv, conn, audio-hv, ao-hv |
| 114 |
|
| 115 |
The following pads are present on Tegra194: |
| 116 |
|
| 117 |
csia, csib, mipi-bias, pex-clk-bias, pex-clk3, pex-clk2, |
| 118 |
pex-clk1, eqos, pex-clk-2-bias, pex-clk-2, dap3, dap5, uart, |
| 119 |
pwr-ctl, soc-gpio53, audio, gp-pwm2, gp-pwm3, soc-gpio12, |
| 120 |
soc-gpio13, soc-gpio10, uart4, uart5, dbg, hdmi-dp3, hdmi-dp2, |
| 121 |
hdmi-dp0, hdmi-dp1, pex-cntrl, pex-ctl2, pex-l0-rst, |
| 122 |
pex-l1-rst, sdmmc4, pex-l5-rst, cam, csic, csid, csie, csif, |
| 123 |
spi, ufs, csig, csih, edp, sdmmc1-hv, sdmmc3-hv, conn, |
| 124 |
audio-hv, ao-hv |
| 125 |
|
| 126 |
properties: |
| 127 |
pins: |
| 128 |
$ref: /schemas/types.yaml#/definitions/string |
| 129 |
description: Must contain the name of the pad(s) to be |
| 130 |
configured. |
| 131 |
|
| 132 |
low-power-enable: |
| 133 |
description: Configure the pad into power down mode. |
| 134 |
$ref: /schemas/types.yaml#/definitions/flag |
| 135 |
|
| 136 |
low-power-disable: |
| 137 |
description: Configure the pad into active mode. |
| 138 |
$ref: /schemas/types.yaml#/definitions/flag |
| 139 |
|
| 140 |
power-source: |
| 141 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 142 |
description: | |
| 143 |
Must contain either TEGRA_IO_PAD_VOLTAGE_1V8 or |
| 144 |
TEGRA_IO_PAD_VOLTAGE_3V3 to select between signalling |
| 145 |
voltages. |
| 146 |
|
| 147 |
The values are defined in |
| 148 |
|
| 149 |
include/dt-bindings/pinctrl/pinctrl-tegra-io-pad.h |
| 150 |
|
| 151 |
The power state can be configured on all of the above pads |
| 152 |
except for ao-hv. Following pads have software configurable |
| 153 |
signaling voltages: sdmmc2-hv, dmic-hv, sdmmc1-hv, sdmmc3-hv, |
| 154 |
audio-hv, ao-hv. |
| 155 |
|
| 156 |
phandle: true |
| 157 |
|
| 158 |
required: |
| 159 |
- pins |
| 160 |
|
| 161 |
additionalProperties: false |
| 162 |
|
| 163 |
required: |
| 164 |
- compatible |
| 165 |
- reg |
| 166 |
- reg-names |
| 167 |
|
| 168 |
additionalProperties: false |
| 169 |
|
| 170 |
dependencies: |
| 171 |
interrupt-controller: ['#interrupt-cells'] |
| 172 |
"#interrupt-cells": |
| 173 |
required: |
| 174 |
- interrupt-controller |
| 175 |
|
| 176 |
examples: |
| 177 |
- | |
| 178 |
#include <dt-bindings/clock/tegra186-clock.h> |
| 179 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 180 |
#include <dt-bindings/pinctrl/pinctrl-tegra-io-pad.h> |
| 181 |
#include <dt-bindings/memory/tegra186-mc.h> |
| 182 |
#include <dt-bindings/reset/tegra186-reset.h> |
| 183 |
|
| 184 |
pmc@c3600000 { |
| 185 |
compatible = "nvidia,tegra186-pmc"; |
| 186 |
reg = <0x0c360000 0x10000>, |
| 187 |
<0x0c370000 0x10000>, |
| 188 |
<0x0c380000 0x10000>, |
| 189 |
<0x0c390000 0x10000>; |
| 190 |
reg-names = "pmc", "wake", "aotag", "scratch"; |
| 191 |
nvidia,invert-interrupt; |
| 192 |
|
| 193 |
sdmmc1_3v3: sdmmc1-3v3 { |
| 194 |
pins = "sdmmc1-hv"; |
| 195 |
power-source = <TEGRA_IO_PAD_VOLTAGE_3V3>; |
| 196 |
}; |
| 197 |
|
| 198 |
sdmmc1_1v8: sdmmc1-1v8 { |
| 199 |
pins = "sdmmc1-hv"; |
| 200 |
power-source = <TEGRA_IO_PAD_VOLTAGE_1V8>; |
| 201 |
}; |
| 202 |
}; |
| 203 |
|
| 204 |
sdmmc1: mmc@3400000 { |
| 205 |
compatible = "nvidia,tegra186-sdhci"; |
| 206 |
reg = <0x03400000 0x10000>; |
| 207 |
interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; |
| 208 |
clocks = <&bpmp TEGRA186_CLK_SDMMC1>, |
| 209 |
<&bpmp TEGRA186_CLK_SDMMC_LEGACY_TM>; |
| 210 |
clock-names = "sdhci", "tmclk"; |
| 211 |
resets = <&bpmp TEGRA186_RESET_SDMMC1>; |
| 212 |
reset-names = "sdhci"; |
| 213 |
interconnects = <&mc TEGRA186_MEMORY_CLIENT_SDMMCRA &emc>, |
| 214 |
<&mc TEGRA186_MEMORY_CLIENT_SDMMCWA &emc>; |
| 215 |
interconnect-names = "dma-mem", "write"; |
| 216 |
iommus = <&smmu TEGRA186_SID_SDMMC1>; |
| 217 |
pinctrl-names = "sdmmc-3v3", "sdmmc-1v8"; |
| 218 |
pinctrl-0 = <&sdmmc1_3v3>; |
| 219 |
pinctrl-1 = <&sdmmc1_1v8>; |
| 220 |
}; |