blob: 3b023e32827678ea10b0b544e70e2aaf0c4c9216 (
plain)
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
|
/*
*
* This is the overlay device tree file for the teensy 4.1 in the robosoccer mendelcollege robot.
*
* For more information on overlay files see
* https://docs.zephyrproject.org/latest/build/dts/howtos.html#set-devicetree-overlays
* https://www.digikey.be/en/maker/tutorials/2025/introduction-to-zephyr-part-4-devicetree-tutorial
*
*/
/ {
aliases {
powerswitch = &soft_power_switch;
redled = &red_led;
greenled = &green_led;
bueled = &blue_led;
en3a = &pwm_dev0;
};
buttons {
compatible = "gpio-keys";
debounce-interval-ms = <50>;
polling-mode;
soft_power_switch: d5 {
gpios = <&gpio4 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
leds {
compatible = "gpio-leds";
red_led: red-led {
gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
label = "LED Pin 34 --> RED";
};
green_led: green-led {
gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
label = "LED Pin 33 --> GREEN";
};
blue_led: blue-led {
gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
label = "LED Pin 16 --> BLUE";
};
};
pwmdevs {
compatible = "imx-pwm";
pwm_dev0: pwm_dev_0 {
pwms = <&gpio2 10>;
};
};
};
&flexpwm1 {
status = "ok";
flexpwm1_pwm0: flexpwm1_pwm0 {
status = "ok";
};
};
|