Skip to content

Commit f53c283

Browse files
KozhinovAlexanderkartben
authored andcommitted
opamp: introduce new mode
Some MCUs are supporting external resistor dividers for gain setting in standalone mode. Add OPAMP_FUNCTIONAL_MODE_STANDALONE to the opamp_functional_mode enum. Signed-off-by: Alexander Kozhinov <[email protected]>
1 parent 783d4a1 commit f53c283

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

dts/bindings/opamp/opamp-controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ properties:
1313
- "inverting"
1414
- "non_inverting"
1515
- "follower"
16+
- "standalone"
1617
description: |
1718
Selects opamp functional mode.
1819

include/zephyr/dt-bindings/opamp/opamp.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ enum opamp_functional_mode {
1919
OPAMP_FUNCTIONAL_MODE_NON_INVERTING,
2020
/** Follower mode */
2121
OPAMP_FUNCTIONAL_MODE_FOLLOWER,
22+
/**
23+
* @brief Standalone mode.
24+
* The gain is set by external resistors. The API call to set the gain
25+
* is ignored in this mode or has no impact.
26+
*/
27+
OPAMP_FUNCTIONAL_MODE_STANDALONE,
2228
};
2329

2430
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_OPAMP_OPAMP_H_ */

0 commit comments

Comments
 (0)