dts: arm: st: f1: add st,stm32-qdec child nodes (disabled)
Add st,stm32-qdec child nodes (disabled) under TIM nodes in the
STM32F1 DTSI files. Boards can enable encoder/decoder functionality
using overlays. No functional change.
Signed-off-by: Ritesh Kudkelwar <ritesh.kumar0793@gmail.com>
diff --git a/dts/arm/st/f1/stm32f1.dtsi b/dts/arm/st/f1/stm32f1.dtsi
index 2715562..aaeadb3 100644
--- a/dts/arm/st/f1/stm32f1.dtsi
+++ b/dts/arm/st/f1/stm32f1.dtsi
@@ -16,6 +16,7 @@
#include <zephyr/dt-bindings/reset/stm32f0_1_3_reset.h>
#include <zephyr/dt-bindings/adc/adc.h>
#include <zephyr/dt-bindings/power/stm32_pwr.h>
+#include <zephyr/dt-bindings/sensor/qdec_stm32.h>
#include <freq.h>
/ {
@@ -284,6 +285,12 @@
status = "disabled";
#pwm-cells = <3>;
};
+
+ qdec {
+ compatible = "st,stm32-qdec";
+ st,input-filter-level = <NO_FILTER>;
+ status = "disabled";
+ };
};
timers2: timers@40000000 {
@@ -307,6 +314,12 @@
compatible = "st,stm32-counter";
status = "disabled";
};
+
+ qdec {
+ compatible = "st,stm32-qdec";
+ st,input-filter-level = <NO_FILTER>;
+ status = "disabled";
+ };
};
timers3: timers@40000400 {
@@ -330,6 +343,12 @@
compatible = "st,stm32-counter";
status = "disabled";
};
+
+ qdec {
+ compatible = "st,stm32-qdec";
+ st,input-filter-level = <NO_FILTER>;
+ status = "disabled";
+ };
};
timers4: timers@40000800 {
@@ -353,6 +372,12 @@
compatible = "st,stm32-counter";
status = "disabled";
};
+
+ qdec {
+ compatible = "st,stm32-qdec";
+ st,input-filter-level = <NO_FILTER>;
+ status = "disabled";
+ };
};
rtc: rtc@40002800 {
diff --git a/dts/arm/st/f1/stm32f103Xc.dtsi b/dts/arm/st/f1/stm32f103Xc.dtsi
index 0738b83..fccc025 100644
--- a/dts/arm/st/f1/stm32f103Xc.dtsi
+++ b/dts/arm/st/f1/stm32f103Xc.dtsi
@@ -9,6 +9,7 @@
#include <mem.h>
#include <st/f1/stm32f103Xb.dtsi>
+#include <zephyr/dt-bindings/sensor/qdec_stm32.h>
/ {
sram0: memory@20000000 {
@@ -57,6 +58,12 @@
status = "disabled";
#pwm-cells = <3>;
};
+
+ qdec {
+ compatible = "st,stm32-qdec";
+ st,input-filter-level = <NO_FILTER>;
+ status = "disabled";
+ };
};
timers6: timers@40001000 {
diff --git a/dts/arm/st/f1/stm32f105.dtsi b/dts/arm/st/f1/stm32f105.dtsi
index 23efd57..b84450c 100644
--- a/dts/arm/st/f1/stm32f105.dtsi
+++ b/dts/arm/st/f1/stm32f105.dtsi
@@ -5,6 +5,7 @@
*/
#include <zephyr/dt-bindings/clock/stm32f10x_clock.h>
+#include <zephyr/dt-bindings/sensor/qdec_stm32.h>
#include <st/f1/stm32f1.dtsi>
/ {
@@ -115,6 +116,12 @@
status = "disabled";
#pwm-cells = <3>;
};
+
+ qdec {
+ compatible = "st,stm32-qdec";
+ st,input-filter-level = <NO_FILTER>;
+ status = "disabled";
+ };
};
timers6: timers@40001000 {