File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-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,pulse-generator-prescaler = <2>;
135+ st,charge-transfer-pulse-high = <2>;
136+ st,charge-transfer-pulse-low = <2>;
137+ st,spread-spectrum;
138+ st,spread-spectrum-prescaler = <2>;
139+ st,spread-spectrum-deviation = <100>;
140+ st,max-count-value = <8191>;
141+
142+ tsc_group1: g1 {
143+ group = <1>;
144+ st,use-as-shield;
145+ channel-ios = <TSC_IO2>;
146+ sampling-io = <TSC_IO1>;
147+ };
148+
149+ tsc_group6: g6 {
150+ group = <6>;
151+ channel-ios = <TSC_IO2>;
152+ sampling-io = <TSC_IO1>;
153+ };
154+ };
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