Skip to content

Commit 1c77d51

Browse files
committed
variant: nicla_sense: set peripherals to deferred-init
1 parent e93524f commit 1c77d51

1 file changed

Lines changed: 27 additions & 6 deletions

File tree

variants/arduino_nicla_sense_me_nrf52832/arduino_nicla_sense_me_nrf52832.overlay

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,17 @@
2929
prescaler = <1>; // Optional: sets the RTC tick to ~30.5 µs
3030
};
3131

32+
&adc {
33+
zephyr,deferred-init;
34+
};
35+
3236
&pinctrl {
37+
empty_default: empty_default {
38+
group1 {
39+
psels = <>;
40+
};
41+
};
42+
3343
pwm1_default: pwm1_default {
3444
group1 {
3545
psels = <NRF_PSEL(PWM_OUT0, 0, 10)>,
@@ -93,23 +103,34 @@
93103

94104
&pwm0 {
95105
status = "okay";
96-
pinctrl-0 = <&pwm1_default>;
106+
zephyr,deferred-init;
107+
pinctrl-0 = <&empty_default>;
97108
pinctrl-1 = <&pwm1_sleep>;
98-
pinctrl-names = "default", "sleep";
109+
pinctrl-2 = <&pwm1_default>;
110+
pinctrl-names = "default", "sleep", "arduino";
99111
};
100112

101113
&pwm1 {
102114
status = "okay";
103-
pinctrl-0 = <&pwm2_default>;
115+
zephyr,deferred-init;
116+
pinctrl-0 = <&empty_default>;
104117
pinctrl-1 = <&pwm2_sleep>;
105-
pinctrl-names = "default", "sleep";
118+
pinctrl-2 = <&pwm2_default>;
119+
pinctrl-names = "default", "sleep", "arduino";
106120
};
107121

108122
&pwm2 {
109123
status = "okay";
110-
pinctrl-0 = <&pwm3_default>;
124+
zephyr,deferred-init;
125+
pinctrl-0 = <&empty_default>;
111126
pinctrl-1 = <&pwm3_sleep>;
112-
pinctrl-names = "default", "sleep";
127+
pinctrl-2 = <&pwm3_default>;
128+
pinctrl-names = "default", "sleep", "arduino";
129+
};
130+
131+
&i2c1 {
132+
status = "okay";
133+
zephyr,deferred-init;
113134
};
114135

115136
/ {

0 commit comments

Comments
 (0)