|
1 | 1 | /* |
2 | 2 | * Copyright (c) 2017 Linaro Limited |
3 | 3 | * Copyright (c) 2019 Centaur Analytics, Inc |
| 4 | + * Copyright (c) 2022 Valerio Setti < [email protected]> |
4 | 5 | * |
5 | 6 | * SPDX-License-Identifier: Apache-2.0 |
6 | 7 | */ |
|
11 | 12 | #include <zephyr/dt-bindings/gpio/gpio.h> |
12 | 13 | #include <zephyr/dt-bindings/pwm/pwm.h> |
13 | 14 | #include <zephyr/dt-bindings/pwm/stm32_pwm.h> |
| 15 | +#include <zephyr/dt-bindings/sensor/qdec_stm32.h> |
14 | 16 | #include <freq.h> |
15 | 17 |
|
16 | 18 | / { |
|
281 | 283 | status = "disabled"; |
282 | 284 | #pwm-cells = <3>; |
283 | 285 | }; |
| 286 | + |
| 287 | + qdec { |
| 288 | + compatible = "st,stm32-qdec"; |
| 289 | + status = "disabled"; |
| 290 | + st,input-filter-level = <NO_FILTER>; |
| 291 | + }; |
284 | 292 | }; |
285 | 293 |
|
286 | 294 | timers2: timers@40000000 { |
|
302 | 310 | compatible = "st,stm32-counter"; |
303 | 311 | status = "disabled"; |
304 | 312 | }; |
| 313 | + |
| 314 | + qdec { |
| 315 | + compatible = "st,stm32-qdec"; |
| 316 | + status = "disabled"; |
| 317 | + st,input-filter-level = <NO_FILTER>; |
| 318 | + }; |
305 | 319 | }; |
306 | 320 |
|
307 | 321 | timers3: timers@40000400 { |
|
323 | 337 | compatible = "st,stm32-counter"; |
324 | 338 | status = "disabled"; |
325 | 339 | }; |
| 340 | + |
| 341 | + qdec { |
| 342 | + compatible = "st,stm32-qdec"; |
| 343 | + status = "disabled"; |
| 344 | + st,input-filter-level = <NO_FILTER>; |
| 345 | + }; |
326 | 346 | }; |
327 | 347 |
|
328 | 348 | timers4: timers@40000800 { |
|
344 | 364 | compatible = "st,stm32-counter"; |
345 | 365 | status = "disabled"; |
346 | 366 | }; |
| 367 | + |
| 368 | + qdec { |
| 369 | + compatible = "st,stm32-qdec"; |
| 370 | + status = "disabled"; |
| 371 | + st,input-filter-level = <NO_FILTER>; |
| 372 | + }; |
347 | 373 | }; |
348 | 374 |
|
349 | 375 | timers5: timers@40000c00 { |
|
365 | 391 | compatible = "st,stm32-counter"; |
366 | 392 | status = "disabled"; |
367 | 393 | }; |
| 394 | + |
| 395 | + qdec { |
| 396 | + compatible = "st,stm32-qdec"; |
| 397 | + status = "disabled"; |
| 398 | + st,input-filter-level = <NO_FILTER>; |
| 399 | + }; |
368 | 400 | }; |
369 | 401 |
|
370 | 402 | timers9: timers@40014000 { |
|
0 commit comments