1/* 2 * Copyright (c) 2022 STMicroelectronics 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Application overlay for creating quadrature decoder device instance 7 */ 8 9/ { 10 aliases { 11 qdec0 = &qdec; 12 }; 13}; 14 15&timers3 { 16 status = "okay"; 17 18 qdec: qdec { 19 status = "okay"; 20 pinctrl-0 = <&tim3_ch1_pa6 &tim3_ch2_pa7>; 21 pinctrl-names = "default"; 22 st,input-polarity-inverted; 23 st,input-filter-level = <FDIV32_N8>; 24 st,counts-per-revolution = <16>; 25 }; 26}; 27