dts: esp32s3: add PCNT device
Add PCNT node device to esp32s3 Update PCNT binding to include esp32s3 Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
This commit is contained in:
parent
f8d747f85c
commit
2c1da15e35
3 changed files with 15 additions and 2 deletions
|
|
@ -100,6 +100,10 @@ Current Zephyr's ESP32-S3-DevKitM board supports the following features:
|
||||||
+------------+------------+-------------------------------------+
|
+------------+------------+-------------------------------------+
|
||||||
| LEDC | on-chip | pwm |
|
| LEDC | on-chip | pwm |
|
||||||
+------------+------------+-------------------------------------+
|
+------------+------------+-------------------------------------+
|
||||||
|
| MCPWM | on-chip | pwm |
|
||||||
|
+------------+------------+-------------------------------------+
|
||||||
|
| PCNT | on-chip | qdec |
|
||||||
|
+------------+------------+-------------------------------------+
|
||||||
|
|
||||||
Prerequisites
|
Prerequisites
|
||||||
-------------
|
-------------
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ description: |
|
||||||
rising and/or falling edges of an input signal.
|
rising and/or falling edges of an input signal.
|
||||||
|
|
||||||
The ESP32's PCNT module has 8 independent counting “units” numbered from 0 to 7.
|
The ESP32's PCNT module has 8 independent counting “units” numbered from 0 to 7.
|
||||||
The ESP32S2's PCNT module has 4 independent counting “units” numbered from 0 to 3.
|
ESP32S2 and ESP32S3 have 4 independent counting “units” numbered from 0 to 3.
|
||||||
|
|
||||||
Each pulse counter unit has a 16-bit signed counter register.
|
Each pulse counter unit has a 16-bit signed counter register.
|
||||||
|
|
||||||
|
|
@ -88,7 +88,7 @@ child-binding:
|
||||||
|
|
||||||
description: |
|
description: |
|
||||||
The PCNT unit index.
|
The PCNT unit index.
|
||||||
The ESP32 has 8 PCNT units. ESP32S2 has 4 PCNT units.
|
The ESP32 has 8 PCNT units. ESP32S2/S3 have 4 PCNT units.
|
||||||
|
|
||||||
filter:
|
filter:
|
||||||
type: int
|
type: int
|
||||||
|
|
|
||||||
|
|
@ -286,5 +286,14 @@
|
||||||
#pwm-cells = <3>;
|
#pwm-cells = <3>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pcnt: pcnt@60017000 {
|
||||||
|
compatible = "espressif,esp32-pcnt";
|
||||||
|
reg = <0x60017000 DT_SIZE_K(4)>;
|
||||||
|
interrupts = <PCNT_INTR_SOURCE>;
|
||||||
|
interrupt-parent = <&intc>;
|
||||||
|
clocks = <&rtc ESP32_PCNT_MODULE>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue