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 @@ -15,5 +15,6 @@ supported:
1515 - i2c
1616 - pwm
1717 - usart
18+ - tsc
1819ram : 40
1920flash : 256
Original file line number Diff line number Diff line change 550550 reg = <0x40009400 0x400>;
551551 interrupts = <18 1>;
552552 interrupt-names = "combined";
553+ };
554+
555+ tsc: tsc@40024000 {
556+ compatible = "st,stm32-tsc";
557+ reg = <0x40024000 0x400>;
558+ clocks = <&rcc STM32_CLOCK(AHB1, 24U)>;
559+ resets = <&rctl STM32_RESET(AHB1, 24U)>;
560+ interrupts = <21 0>;
561+ interrupt-names = "global";
553562 status = "disabled";
554563 };
555564 };
You can’t perform that action at this time.
0 commit comments