boards: riscv: tlsr9518adk80d: add Telink B91 I2C driver support

Added I2C driver board support.

Signed-off-by: Yuriy Vynnychek <yura.vynnychek@telink-semi.com>
This commit is contained in:
Yuriy Vynnychek 2021-07-30 16:49:53 +03:00 committed by Christopher Friedt
parent 587304836d
commit 0da70a02aa
3 changed files with 13 additions and 0 deletions

View file

@ -36,4 +36,7 @@ config IEEE802154_TELINK_B91
config NET_CONFIG_IEEE802154_DEV_NAME
default "IEEE802154_b91"
config I2C_TELINK_B91
default y if I2C
endif

View file

@ -73,6 +73,8 @@ The Zephyr TLSR9518ADK80D board configuration supports the following hardware fe
+----------------+------------+------------------------------+
| SPI (Master) | on-chip | spi |
+----------------+------------+------------------------------+
| I2C (Master) | on-chip | i2c |
+----------------+------------+------------------------------+
The following example projects are supported:
@ -109,6 +111,7 @@ Limitations
- DMA mode is not supported by I2C, SPI and Serial Port.
- UART hardware flow control is not implemented.
- SPI Slave mode is not implemented.
- I2C Slave mode is not implemented.
Default configuration and IOs
=============================
@ -151,6 +154,7 @@ Peripheral's pins on the SoC are mapped to the following GPIO pins in the
- PWM Channel 0: PB4
- PSPI CS0: PC4, CLK: PC5, MISO: PC6, MOSI: PC7
- HSPI CS0: PA1, CLK: PA2, MISO: PA3, MOSI: PA4
- I2C SCL: PE1, SDA: PE3
Serial Port
-----------

View file

@ -133,6 +133,12 @@
pinctrl-0 = <&hspi_clk_pa2 &hspi_miso_io1_pa3 &hspi_mosi_io0_pa4>;
};
&i2c {
status = "okay";
clock-frequency = <I2C_BITRATE_FAST>;
pinctrl-0 = <&i2c_scl_pe1 &i2c_sda_pe3>;
};
&flash_mspi {
partitions {
compatible = "fixed-partitions";