Skip to content
Snippets Groups Projects
Commit 7a39d33f authored by Oleksii Kutuzov's avatar Oleksii Kutuzov
Browse files

[E58][DTB] Adjust stm32 configuration for the new driver

New driver requires a slightly different configuration in device tree
parent 5d832db0
No related branches found
No related tags found
No related merge requests found
...@@ -1107,6 +1107,13 @@ pins-enable { ...@@ -1107,6 +1107,13 @@ pins-enable {
output-high; output-high;
}; };
}; };
pinctrl_stm32: stm32irq {
irq-pin {
pinmux = <PINMUX_GPIO13__FUNC_B_GPIO13>;
};
};
/* /*
touch_pins: touchdefault { touch_pins: touchdefault {
touch_pin_irq: pin-irq { touch_pin_irq: pin-irq {
...@@ -1221,17 +1228,20 @@ &i2c3 { ...@@ -1221,17 +1228,20 @@ &i2c3 {
stm32: stm32@40 { stm32: stm32@40 {
compatible = "seco,stm32";
reg = <0x40>; reg = <0x40>;
#pwm-cells = <2>; compatible = "seco,stm32";
npwm = <0>; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_stm32>;
interrupt-parent = <&pio>;
interrupts = <EC_IRQ_OD_PIN IRQ_TYPE_EDGE_FALLING>; // IRQ from STM32 to CPU
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
ngpios =/bits/ 16 <STM32_NGPIOS>; ngpios =/bits/ 16 <STM32_NGPIOS>;
interrupt-parent = <&pio>;
interrupts = <EC_IRQ_OD_PIN IRQ_TYPE_EDGE_FALLING>;// IRQ from STM32 to CPU
#interrupt-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>;
cpu-irq = <SMARC_CPU_IRQ_PIN>;
#pwm-cells = <2>;
npwm = <0>;
status = "okay"; status = "okay";
gpio-line-names = gpio-line-names =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment