dts: nxp: k6x: add temperature sensor nodes
Add device tree nodes for the internal temperature sensor in the NXP Kinetis K6x SoC series. A temperature sensor node is added for each ADC in the SoC to allow the user to choose which ADC instance to use for the sensor readings. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This commit is contained in:
parent
774367b14a
commit
05dca5df04
1 changed files with 24 additions and 0 deletions
|
@ -73,6 +73,30 @@
|
|||
reg = <0x20000000 0x30000>;
|
||||
};
|
||||
|
||||
temp0: temp0 {
|
||||
compatible = "nxp,kinetis-temperature";
|
||||
io-channels = <&adc0 26>, <&adc0 27>;
|
||||
io-channel-names = "SENSOR", "BANDGAP";
|
||||
bandgap-voltage = <1000000>;
|
||||
vtemp25 = <716000>;
|
||||
sensor-slope-cold = <1620>;
|
||||
sensor-slope-hot = <1620>;
|
||||
label = "TEMP0";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
temp1: temp1 {
|
||||
compatible = "nxp,kinetis-temperature";
|
||||
io-channels = <&adc1 26>, <&adc1 27>;
|
||||
io-channel-names = "SENSOR", "BANDGAP";
|
||||
bandgap-voltage = <1000000>;
|
||||
vtemp25 = <716000>;
|
||||
sensor-slope-cold = <1620>;
|
||||
sensor-slope-hot = <1620>;
|
||||
label = "TEMP1";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
soc {
|
||||
|
||||
mpu@4000d000 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue