878ba61aa9
New and updated SoC support. Also included are some cleanups where the platform maintainers hadn't separated cleanups from new developent in separate branches. Some of the larger things worth pointing out: - A large set of changes from Alexandre Belloni and Nicolas Ferre preparing at91 platforms for multiplatform and cleaning up quite a bit in the process. - Removal of CSR's "Marco" SoC platform that never made it out to the market. We love seeing these since it means the vendor published support before product was out, which is exactly what we want! New platforms this release are: - Conexant Digicolor (CX92755 SoC) - Hisilicon HiP01 SoC - CSR/sirf Atlas7 SoC - ST STiH418 SoC - Common code changes for Nvidia Tegra132 (64-bit SoC) We're seeing more and more platforms having a harder time labelling changes as cleanups vs new development -- which is a good sign that we've come quite far on the cleanup effort. So over time we might start combining the cleanup and new-development branches more. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJU4uiiAAoJEIwa5zzehBx3LtoQAIP4eInJAumhB67MexzWGIBx eOsloBRMEBrjBQdSYsdsypN6T61WjDu1aieCxEGzIqitcMa59AIyyzglmlXy3UmV XQuSnIBag2fsOqrvqd+c6ewzAMxm2/Nbi3+zjzApkf27NDlBLhEjxuK6pAAf4Yw9 gyWqB9g0d4V06XdqRInRvyyVfMu6fdApHLnadtjcMdiorQGd1bcOE1sQYygy6N6e d6vGvyKSv4ygyDG9//njzm6C5OnmHliimMToeuDC2Scel69RM97EnMXys988CqUH 0Ru7XANEujtHXSOBYOyCv1kk4V5NguGzlfepe23oidOew8MjUdyRvKrwUiMt3AnT SVqcZ9UU5wjJC6j+iADh+E7zww2H0rA6vFRzXy297dDuLg2C2ONFljBj/tIKGc71 ++gLc6LRn7UmSyK98JMzkxDhmnnPn8w2O0M5GdabAqzZSfHlL1juW9ljp9Al5P6y apLRzqMGjEoyC4huXvB3XVfrxGfepe5pco6wVlwmF3ilwf7iHnfuHONC1aw2mPRO aOKiS+0gHWL3rNZtZQtyW7Ws0I2HJFip2CWIloBK1/2ntEoh51PH7jGw8iu/6jTk //DCXqPBNXcLqonB9CHJZ/EWt0wup0BcHyLjlWX7iEjsdP/QJXrDgnrV3qdHibbh AJASjs0YVDcdvRsRStlg =szd9 -----END PGP SIGNATURE----- Merge tag 'soc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc Pull ARM SoC platform changes from Olof Johansson: "New and updated SoC support. Also included are some cleanups where the platform maintainers hadn't separated cleanups from new developent in separate branches. Some of the larger things worth pointing out: - A large set of changes from Alexandre Belloni and Nicolas Ferre preparing at91 platforms for multiplatform and cleaning up quite a bit in the process. - Removal of CSR's "Marco" SoC platform that never made it out to the market. We love seeing these since it means the vendor published support before product was out, which is exactly what we want! New platforms this release are: - Conexant Digicolor (CX92755 SoC) - Hisilicon HiP01 SoC - CSR/sirf Atlas7 SoC - ST STiH418 SoC - Common code changes for Nvidia Tegra132 (64-bit SoC) We're seeing more and more platforms having a harder time labelling changes as cleanups vs new development -- which is a good sign that we've come quite far on the cleanup effort. So over time we might start combining the cleanup and new-development branches more" * tag 'soc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (124 commits) ARM: at91/trivial: unify functions and machine names ARM: at91: remove at91_dt_initialize and machine init_early() ARM: at91: change board files into SoC files ARM: at91: remove at91_boot_soc ARM: at91: move alternative initial mapping to board-dt-sama5.c ARM: at91: merge all SOC_AT91SAM9xxx ARM: at91: at91rm9200: set idle and restart from rm9200_dt_device_init() ARM: digicolor: select syscon and timer ARM: zynq: Simplify SLCR initialization ARM: zynq: PM: Fixed simple typo. ARM: zynq: Setup default gpio number for Xilinx Zynq ARM: digicolor: add low level debug support ARM: initial support for Conexant Digicolor CX92755 SoC ARM: OMAP2+: Add dm816x hwmod support ARM: OMAP2+: Add clock domain support for dm816x ARM: OMAP2+: Add board-generic.c entry for ti81xx ARM: at91: pm: remove warning to remove SOC_AT91SAM9263 usage ARM: at91: remove unused mach/system_rev.h ARM: at91: stop using HAVE_AT91_DBGUx ARM: at91: fix ordering of SRAM and PM initialization ...
116 lines
4.6 KiB
Plaintext
116 lines
4.6 KiB
Plaintext
NVIDIA Tegra Power Management Controller (PMC)
|
|
|
|
The PMC block interacts with an external Power Management Unit. The PMC
|
|
mostly controls the entry and exit of the system from different sleep
|
|
modes. It provides power-gating controllers for SoC and CPU power-islands.
|
|
|
|
Required properties:
|
|
- name : Should be pmc
|
|
- compatible : For Tegra20, must contain "nvidia,tegra20-pmc". For Tegra30,
|
|
must contain "nvidia,tegra30-pmc". For Tegra114, must contain
|
|
"nvidia,tegra114-pmc". For Tegra124, must contain "nvidia,tegra124-pmc".
|
|
Otherwise, must contain "nvidia,<chip>-pmc", plus at least one of the
|
|
above, where <chip> is tegra132.
|
|
- reg : Offset and length of the register set for the device
|
|
- clocks : Must contain an entry for each entry in clock-names.
|
|
See ../clocks/clock-bindings.txt for details.
|
|
- clock-names : Must include the following entries:
|
|
"pclk" (The Tegra clock of that name),
|
|
"clk32k_in" (The 32KHz clock input to Tegra).
|
|
|
|
Optional properties:
|
|
- nvidia,invert-interrupt : If present, inverts the PMU interrupt signal.
|
|
The PMU is an external Power Management Unit, whose interrupt output
|
|
signal is fed into the PMC. This signal is optionally inverted, and then
|
|
fed into the ARM GIC. The PMC is not involved in the detection or
|
|
handling of this interrupt signal, merely its inversion.
|
|
- nvidia,suspend-mode : The suspend mode that the platform should use.
|
|
Valid values are 0, 1 and 2:
|
|
0 (LP0): CPU + Core voltage off and DRAM in self-refresh
|
|
1 (LP1): CPU voltage off and DRAM in self-refresh
|
|
2 (LP2): CPU voltage off
|
|
- nvidia,core-power-req-active-high : Boolean, core power request active-high
|
|
- nvidia,sys-clock-req-active-high : Boolean, system clock request active-high
|
|
- nvidia,combined-power-req : Boolean, combined power request for CPU & Core
|
|
- nvidia,cpu-pwr-good-en : Boolean, CPU power good signal (from PMIC to PMC)
|
|
is enabled.
|
|
|
|
Required properties when nvidia,suspend-mode is specified:
|
|
- nvidia,cpu-pwr-good-time : CPU power good time in uS.
|
|
- nvidia,cpu-pwr-off-time : CPU power off time in uS.
|
|
- nvidia,core-pwr-good-time : <Oscillator-stable-time Power-stable-time>
|
|
Core power good time in uS.
|
|
- nvidia,core-pwr-off-time : Core power off time in uS.
|
|
|
|
Required properties when nvidia,suspend-mode=<0>:
|
|
- nvidia,lp0-vec : <start length> Starting address and length of LP0 vector
|
|
The LP0 vector contains the warm boot code that is executed by AVP when
|
|
resuming from the LP0 state. The AVP (Audio-Video Processor) is an ARM7
|
|
processor and always being the first boot processor when chip is power on
|
|
or resume from deep sleep mode. When the system is resumed from the deep
|
|
sleep mode, the warm boot code will restore some PLLs, clocks and then
|
|
bring up CPU0 for resuming the system.
|
|
|
|
Hardware-triggered thermal reset:
|
|
On Tegra30, Tegra114 and Tegra124, if the 'i2c-thermtrip' subnode exists,
|
|
hardware-triggered thermal reset will be enabled.
|
|
|
|
Required properties for hardware-triggered thermal reset (inside 'i2c-thermtrip'):
|
|
- nvidia,i2c-controller-id : ID of I2C controller to send poweroff command to. Valid values are
|
|
described in section 9.2.148 "APBDEV_PMC_SCRATCH53_0" of the
|
|
Tegra K1 Technical Reference Manual.
|
|
- nvidia,bus-addr : Bus address of the PMU on the I2C bus
|
|
- nvidia,reg-addr : I2C register address to write poweroff command to
|
|
- nvidia,reg-data : Poweroff command to write to PMU
|
|
|
|
Optional properties for hardware-triggered thermal reset (inside 'i2c-thermtrip'):
|
|
- nvidia,pinmux-id : Pinmux used by the hardware when issuing poweroff command.
|
|
Defaults to 0. Valid values are described in section 12.5.2
|
|
"Pinmux Support" of the Tegra4 Technical Reference Manual.
|
|
|
|
Example:
|
|
|
|
/ SoC dts including file
|
|
pmc@7000f400 {
|
|
compatible = "nvidia,tegra20-pmc";
|
|
reg = <0x7000e400 0x400>;
|
|
clocks = <&tegra_car 110>, <&clk32k_in>;
|
|
clock-names = "pclk", "clk32k_in";
|
|
nvidia,invert-interrupt;
|
|
nvidia,suspend-mode = <1>;
|
|
nvidia,cpu-pwr-good-time = <2000>;
|
|
nvidia,cpu-pwr-off-time = <100>;
|
|
nvidia,core-pwr-good-time = <3845 3845>;
|
|
nvidia,core-pwr-off-time = <458>;
|
|
nvidia,core-power-req-active-high;
|
|
nvidia,sys-clock-req-active-high;
|
|
nvidia,lp0-vec = <0xbdffd000 0x2000>;
|
|
};
|
|
|
|
/ Tegra board dts file
|
|
{
|
|
...
|
|
pmc@7000f400 {
|
|
i2c-thermtrip {
|
|
nvidia,i2c-controller-id = <4>;
|
|
nvidia,bus-addr = <0x40>;
|
|
nvidia,reg-addr = <0x36>;
|
|
nvidia,reg-data = <0x2>;
|
|
};
|
|
};
|
|
...
|
|
clocks {
|
|
compatible = "simple-bus";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
clk32k_in: clock {
|
|
compatible = "fixed-clock";
|
|
reg=<0>;
|
|
#clock-cells = <0>;
|
|
clock-frequency = <32768>;
|
|
};
|
|
};
|
|
...
|
|
};
|