File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Hardware features
2
+ CONFIG_PWM=y
2
3
CONFIG_I2C=y
3
4
CONFIG_SPI=y
4
5
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 Ayush Singh <
[email protected] >
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ &pinctrl {
8
+ /* MB1 PWM */
9
+ pwm0_default: pwm0_default {
10
+ pinmux = <17 IOC_PORT_MCU_PORT_EVENT1>;
11
+ bias-disable;
12
+ drive-strength = <2>;
13
+ };
14
+
15
+ /* MB2 PWM */
16
+ pwm1_default: pwm1_default {
17
+ pinmux = <19 IOC_PORT_MCU_PORT_EVENT3>;
18
+ bias-disable;
19
+ drive-strength = <2>;
20
+ };
21
+ };
22
+
23
+ &gpt0 {
24
+ status = "okay";
25
+ };
26
+
27
+ &gpt1 {
28
+ status = "okay";
29
+ };
30
+
31
+ &pwm0 {
32
+ status = "okay";
33
+ pinctrl-0 = <&pwm0_default>;
34
+ pinctrl-names = "default";
35
+ };
36
+
37
+ &pwm1 {
38
+ status = "okay";
39
+ pinctrl-0 = <&pwm1_default>;
40
+ pinctrl-names = "default";
41
+ };
You can’t perform that action at this time.
0 commit comments