File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 99#include <st/u0/stm32u083mctx-pinctrl.dtsi>
1010#include "arduino_r3_connector.dtsi"
1111#include <zephyr/dt-bindings/input/input-event-codes.h>
12+ #include <zephyr/dt-bindings/input/stm32-tsc-defines.h>
1213
1314/ {
1415 model = "STMicroelectronics STM32U83C-DK board";
124125 status = "okay";
125126 };
126127};
128+
129+ &tsc {
130+ status = "okay";
131+ pinctrl-0 = <&tsc_g1_io1_pb12 &tsc_g1_io2_pb13 &tsc_g6_io1_pd10 &tsc_g6_io2_pd11>;
132+ pinctrl-names = "default";
133+
134+ st,spread-spectrum;
135+ st,spread-spectrum-prescaler = <2>;
136+ st,spread-spectrum-deviation = <100>;
137+
138+ tsc_group1: g1 {
139+ group = <1>;
140+ st,use-as-shield;
141+ channel-ios = <TSC_IO2>;
142+ sampling-io = <TSC_IO1>;
143+ };
144+
145+ tsc_group6: g6 {
146+ group = <6>;
147+ channel-ios = <TSC_IO2>;
148+ sampling-io = <TSC_IO1>;
149+ };
150+ };
Original file line number Diff line number Diff line change @@ -16,5 +16,6 @@ supported:
1616 - i2c
1717 - pwm
1818 - usart
19+ - tsc
1920ram : 40
2021flash : 256
Original file line number Diff line number Diff line change 541541 reg = <0x40009400 0x400>;
542542 interrupts = <18 1>;
543543 interrupt-names = "combined";
544+ };
545+
546+ tsc: tsc@40024000 {
547+ compatible = "st,stm32-tsc";
548+ reg = <0x40024000 0x400>;
549+ clocks = <&rcc STM32_CLOCK(AHB1, 24U)>;
550+ resets = <&rctl STM32_RESET(AHB1, 24U)>;
551+ interrupts = <21 0>;
552+ interrupt-names = "global";
544553 status = "disabled";
545554 };
546555 };
You can’t perform that action at this time.
0 commit comments