1/*
2 * Copyright (c) 2023 FTP Technologies
3 * Copyright (c) 2023, Google LLC
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Application overlay for ADC devices
8 */
9
10 #include <zephyr/dt-bindings/battery/battery.h>
11
12test_adc_mcp9700a: mcp9700a {
13	status = "okay";
14	compatible = "microchip,mcp970x";
15	family = "MCP9700/9700A";
16	io-channels = <&test_adc 0>;
17};
18
19test_voltage: voltage {
20	status = "okay";
21	compatible = "voltage-divider";
22	io-channels = <&test_adc 1>;
23	io-channel-names = "VOLTAGE";
24	output-ohms = <47000>; /* R1 */
25	full-ohms = <(100000 + 47000)>; /* R2 + R1 */
26	power-gpios = <&test_gpio 0 0>;
27};
28
29test_current: current_amp {
30	status = "okay";
31	compatible = "current-sense-amplifier";
32	io-channels = <&test_adc 2>;
33	io-channel-names = "CURRENT_AMP";
34	sense-resistor-milli-ohms = <1>;
35	sense-gain-mult = <1>;
36	sense-gain-div = <1>;
37};
38
39test_composite_fuel_gauge: composite_fuel_gauge {
40	compatible = "zephyr,fuel-gauge-composite";
41	status = "okay";
42	battery-voltage = <&test_voltage>;
43	battery-current = <&test_current>;
44	device-chemistry = "lithium-ion-polymer";
45	ocv-capacity-table-0 = <BATTERY_OCV_CURVE_LITHIUM_ION_POLYMER_DEFAULT>;
46	charge-full-design-microamp-hours = <1000000>;
47};
48
49test_adc_emul: adc-emul {
50	compatible = "zephyr,adc-emul";
51	nchannels = <2>;
52	ref-internal-mv = <3300>;
53	ref-external1-mv = <5000>;
54	#io-channel-cells = <1>;
55	status = "okay";
56};
57
58test_adc_ntc_thermistor_generic: ntc-thermistor-generic {
59	compatible = "ntc-thermistor-generic";
60	io-channels = <&test_adc 0>;
61	pullup-uv = <3300000>;
62	pullup-ohm = <0>;
63	pulldown-ohm = <10000>;
64	connected-positive;
65	zephyr,compensation-table = <0 0>, <1 1>;
66};
67
68test_adc_epcos_b57861s0103a039: epcos-b57861s0103a039 {
69	compatible = "epcos,b57861s0103a039";
70	io-channels = <&test_adc 0>;
71	pullup-uv = <3300000>;
72	pullup-ohm = <0>;
73	pulldown-ohm = <10000>;
74	connected-positive;
75};
76
77test_murata_ncp15wb473: murata-ncp15wb473 {
78	compatible = "murata,ncp15wb473";
79	io-channels = <&test_adc 0>;
80	pullup-uv = <3300000>;
81	pullup-ohm = <0>;
82	pulldown-ohm = <10000>;
83	connected-positive;
84};
85
86test_tdk_ntcg163jf103ft1: tdk-ntcg163jf103ft1 {
87	compatible = "tdk,ntcg163jf103ft1";
88	io-channels = <&test_adc 0>;
89	pullup-uv = <3300000>;
90	pullup-ohm = <0>;
91	pulldown-ohm = <10000>;
92	connected-positive;
93};
94
95test_lm35: lm35 {
96	compatible = "lm35";
97	io-channels = <&test_adc 0>;
98	status = "okay";
99};
100
101test_murata_ncp15xh103: murata-ncp15xh103 {
102	compatible = "murata,ncp15xh103";
103	io-channels = <&test_adc 0>;
104	pullup-uv = <3300000>;
105	pullup-ohm = <0>;
106	pulldown-ohm = <10000>;
107	connected-positive;
108};
109
110test_seeed_grove_light: seeed-grove-light {
111	compatible = "seeed,grove-light";
112	io-channels = <&test_adc 0>;
113};
114
115test_seeed_grove_temperature: seeed-grove-temperature {
116	compatible = "seeed,grove-temperature";
117	io-channels = <&test_adc 0>;
118};
119
120test_veaa_x_3: test_veaa_x_3 {
121	status = "okay";
122	compatible = "festo,veaa-x-3";
123	io-channels = <&test_adc 3>;
124	dac = <&test_dac>;
125	dac-channel-id = <2>;
126	dac-resolution = <12>;
127	pressure-range-type = "D2";
128};
129