mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
57d1617137
This change updates the ti-soc-thermal driver to use standard GPIO DT bindings to read the GPIO number associated to thermal shutdown IRQ, in case the device features it. Previously, the code was using a specific DT bindings. As now OMAP supports the standard way to model GPIOs, there is no point in having a ti specific binding. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Grant Likely <grant.likely@linaro.org> Cc: Rob Herring <rob.herring@calxeda.com> Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
75 lines
1.9 KiB
Plaintext
75 lines
1.9 KiB
Plaintext
* Texas Instrument OMAP SCM bandgap bindings
|
|
|
|
In the System Control Module, OMAP supplies a voltage reference
|
|
and a temperature sensor feature that are gathered in the band
|
|
gap voltage and temperature sensor (VBGAPTS) module. The band
|
|
gap provides current and voltage reference for its internal
|
|
circuits and other analog IP blocks. The analog-to-digital
|
|
converter (ADC) produces an output value that is proportional
|
|
to the silicon temperature.
|
|
|
|
Required properties:
|
|
- compatible : Should be:
|
|
- "ti,omap4430-bandgap" : for OMAP4430 bandgap
|
|
- "ti,omap4460-bandgap" : for OMAP4460 bandgap
|
|
- "ti,omap4470-bandgap" : for OMAP4470 bandgap
|
|
- "ti,omap5430-bandgap" : for OMAP5430 bandgap
|
|
- interrupts : this entry should indicate which interrupt line
|
|
the talert signal is routed to;
|
|
Specific:
|
|
- gpios : this entry should be used to inform which GPIO
|
|
line the tshut signal is routed to. The informed GPIO will
|
|
be treated as an IRQ;
|
|
- regs : this entry must also be specified and it is specific
|
|
to each bandgap version, because the mapping may change from
|
|
soc to soc, apart of depending on available features.
|
|
|
|
Example:
|
|
OMAP4430:
|
|
bandgap {
|
|
reg = <0x4a002260 0x4 0x4a00232C 0x4>;
|
|
compatible = "ti,omap4430-bandgap";
|
|
};
|
|
|
|
OMAP4460:
|
|
bandgap {
|
|
reg = <0x4a002260 0x4
|
|
0x4a00232C 0x4
|
|
0x4a002378 0x18>;
|
|
compatible = "ti,omap4460-bandgap";
|
|
interrupts = <0 126 4>; /* talert */
|
|
gpios = <&gpio3 22 0>; /* tshut */
|
|
};
|
|
|
|
OMAP4470:
|
|
bandgap {
|
|
reg = <0x4a002260 0x4
|
|
0x4a00232C 0x4
|
|
0x4a002378 0x18>;
|
|
compatible = "ti,omap4470-bandgap";
|
|
interrupts = <0 126 4>; /* talert */
|
|
gpios = <&gpio3 22 0>; /* tshut */
|
|
};
|
|
|
|
OMAP5430:
|
|
bandgap {
|
|
reg = <0x4a0021e0 0xc
|
|
0x4a00232c 0xc
|
|
0x4a002380 0x2c
|
|
0x4a0023C0 0x3c>;
|
|
compatible = "ti,omap5430-bandgap";
|
|
interrupts = <0 126 4>; /* talert */
|
|
};
|
|
|
|
DRA752:
|
|
bandgap {
|
|
reg = <0x4a0021e0 0xc
|
|
0x4a00232c 0xc
|
|
0x4a002380 0x2c
|
|
0x4a0023C0 0x3c
|
|
0x4a002564 0x8
|
|
0x4a002574 0x50>;
|
|
compatible = "ti,dra752-bandgap";
|
|
interrupts = <0 126 4>; /* talert */
|
|
};
|