-
Notifications
You must be signed in to change notification settings - Fork 845
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: overlays: max30210: Added example overlay
For further information about writing the devicetree for max30210, refer to bindings/devicetree/iio/temperature/adi,max30210.yaml. Added max30210.dtbo into Makefile, in order to build it automatically with make. Signed-off-by: Daniel Matyas <[email protected]>
- Loading branch information
1 parent
894a0c9
commit 5768e80
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+) | ||
/* Overlay for MAX30210 | ||
* | ||
* Copyright 2023 Analog Devices Inc. | ||
*/ | ||
|
||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "bcrm, bcm2711"; | ||
}; | ||
|
||
&{/} { | ||
vdd: regulator { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "vdd"; | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
regulator-boot-on; | ||
regulator-always-on; | ||
}; | ||
}; | ||
|
||
&i2c1 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
temperature-sensor@40 { | ||
compatible = "adi,max30210"; | ||
reg = <0x40>; | ||
vdd-supply = <&vdd>; | ||
interrupt-parent = <&gpio>; | ||
// /* IRQ_TYPE_EDGE_BOTH | IRQ_TYPE_LEVEL_HIGH */ | ||
interrupts = <17 0x0>; | ||
// adi,external-convert-enable; | ||
// adi,external-convert-rising-edge; | ||
}; | ||
}; |