-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.overlay
105 lines (88 loc) · 2.5 KB
/
app.overlay
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/ {
openzirk_leds {
compatible = "gpio-leds";
led_vl_o: led_vl_o {
gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
label = "LED VL Orange";
};
led_vl_b: led_vl_b {
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
label = "LED VL Blue";
};
led_rl_o: led_rl_o {
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
label = "LED RL Orange";
};
led_rl_b: led_rl_b {
gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
label = "LED RL Blue";
};
led_debug_r: led_debug_r {
gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
label = "LED Debug Red";
};
led_debug_g: led_debug_g {
gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
label = "LED Debug green";
};
};
dip_switch {
compatible = "dipswitch";
gpios = <&gpio0 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
<&gpio0 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
<&gpio0 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
<&gpio0 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
zephyr,user {
io-channels = <&adc 0>, <&adc 1>, <&adc 2>;
current_sensor_threshold_mv = <150>;
current_sensor_minimal_active_time_ms = <800>;
temp_warm_threshold = <35>;
pump_duty_cycle_s = <60>;
pump_mandatory_cooldown_min = <10>;
};
chosen {
zephyr,console = &cdc_acm_uart0;
};
temp_probes_enable: temp_probes_enable {
compatible = "power-switch";
gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
label = "Term probes Enable";
};
ssr: ssr {
compatible = "power-switch";
gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
label = "SSR Enable";
};
};
&adc {
vref-mv = <3000>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
channel@2 {
reg = <2>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};
&zephyr_udc0 {
cdc_acm_uart0: cdc_acm_uart0 {
compatible = "zephyr,cdc-acm-uart";
};
};