boards: riscv: tlsr9518adk80d: add Telink B91 PWM driver support
Added PWM driver board support. Signed-off-by: Yuriy Vynnychek <yura.vynnychek@telink-semi.com>
This commit is contained in:
parent
0830738975
commit
0c483a25ca
3 changed files with 27 additions and 2 deletions
|
@ -18,6 +18,9 @@ config UART_TELINK_B91
|
|||
config PINMUX_TELINK_B91
|
||||
default y if PINMUX
|
||||
|
||||
config PWM_TELINK_B91
|
||||
default y if PWM
|
||||
|
||||
config ENTROPY_TELINK_B91_TRNG
|
||||
default y if ENTROPY_GENERATOR
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.. _tlst9518adk80d:
|
||||
.. _tlsr9518adk80d:
|
||||
|
||||
Telink TLSR9518ADK80D
|
||||
#####################
|
||||
|
@ -63,10 +63,12 @@ The Zephyr TLSR9518ADK80D board configuration supports the following hardware fe
|
|||
+----------------+------------+------------------------------+
|
||||
| UART | on-chip | serial |
|
||||
+----------------+------------+------------------------------+
|
||||
| FLASH (MSPI) | on-chip | flash |
|
||||
| PWM | on-chip | pwm |
|
||||
+----------------+------------+------------------------------+
|
||||
| TRNG | on-chip | entopy |
|
||||
+----------------+------------+------------------------------+
|
||||
| FLASH (MSPI) | on-chip | flash |
|
||||
+----------------+------------+------------------------------+
|
||||
| RADIO | on-chip | ieee802154, OpenThread |
|
||||
+----------------+------------+------------------------------+
|
||||
|
||||
|
@ -77,6 +79,8 @@ The following example projects are supported:
|
|||
- samples/philosophers
|
||||
- samples/basic/threads
|
||||
- samples/basic/blinky
|
||||
- samples/basic/blinky_pwm
|
||||
- samples/basic/fade_led
|
||||
- samples/basic/button
|
||||
- samples/subsys/nvs
|
||||
- samples/subsys/console/echo
|
||||
|
@ -140,6 +144,7 @@ Peripheral's pins on the SoC are mapped to the following GPIO pins in the
|
|||
|
||||
- UART0 RX: PB2, TX: PB3
|
||||
- UART1 RX: PC6, TX: PC7
|
||||
- PWM Channel 0: PB4
|
||||
|
||||
Serial Port
|
||||
-----------
|
||||
|
|
|
@ -16,6 +16,8 @@
|
|||
led0 = &led_blue;
|
||||
led1 = &led_green;
|
||||
sw0 = &key_1;
|
||||
pwm-led0 = &pwm_led_blue;
|
||||
pwm-0 = &pwm0;
|
||||
};
|
||||
|
||||
leds {
|
||||
|
@ -42,6 +44,15 @@
|
|||
};
|
||||
};
|
||||
|
||||
pwm_leds {
|
||||
compatible = "pwm-leds";
|
||||
|
||||
pwm_led_blue: pwm_led_0 {
|
||||
pwms = <&pwm0 0 0>;
|
||||
label = "PWM LED Blue";
|
||||
};
|
||||
};
|
||||
|
||||
keys {
|
||||
compatible = "gpio-keys";
|
||||
key_1: button_1 {
|
||||
|
@ -104,6 +115,12 @@
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm0 {
|
||||
status = "okay";
|
||||
clock-frequency = <93750>;
|
||||
pinctrl-0 = <&pwm_ch0_pb4>;
|
||||
};
|
||||
|
||||
&flash_mspi {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue