<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/bsp/cvitek/drivers/drv_wdt.c, branch copilot/remove-vbus-code-implementation</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/bsp/cvitek/drivers/drv_wdt.c?h=copilot%2Fremove-vbus-code-implementation</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/bsp/cvitek/drivers/drv_wdt.c?h=copilot%2Fremove-vbus-code-implementation'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2024-11-25T02:48:36Z</updated>
<entry>
<title>support milkv-duo rt-smart</title>
<updated>2024-11-25T02:48:36Z</updated>
<author>
<name>flyingcys</name>
<email>flyingcys@163.com</email>
</author>
<published>2024-11-13T15:23:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=8ed4ae144fda951d7a3f5ffbfbf810b1ce1bf2c8'/>
<id>urn:sha1:8ed4ae144fda951d7a3f5ffbfbf810b1ce1bf2c8</id>
<content type='text'>
1. switches memory management to SLA

2. use ioremap modification driver

Signed-off-by: flyingcys flyingcys@163.com
</content>
</entry>
<entry>
<title>[bsp][cvitek]: 将adc wdt驱动的局部函数移至源文件</title>
<updated>2024-07-21T09:37:09Z</updated>
<author>
<name>Z8MAN8</name>
<email>1468559561@qq.com</email>
</author>
<published>2024-07-19T02:36:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=2a3bb2bf951a9296dbb9064cdf31a0d425e9457f'/>
<id>urn:sha1:2a3bb2bf951a9296dbb9064cdf31a0d425e9457f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bsp: cvitek: switch to device init function for some drivers</title>
<updated>2024-07-18T13:35:35Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2024-07-04T02:07:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7c1d205a4e81365ce6846ce08bfb338372a52749'/>
<id>urn:sha1:7c1d205a4e81365ce6846ce08bfb338372a52749</id>
<content type='text'>
Some drivers use INIT_BOARD_EXPORT, it is not necessary,
it is enough to use INIT_DEVICE_EXPORT for genearl drivers.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
<entry>
<title>bsp: cvitek: fix the wdt timeout unit problem</title>
<updated>2024-07-17T08:56:07Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2024-06-13T06:24:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=1bcf232d12d49303cd2eb0143c3aa1855dffd916'/>
<id>urn:sha1:1bcf232d12d49303cd2eb0143c3aa1855dffd916</id>
<content type='text'>
See `components/drivers/include/drivers/watchdog.h`

maco definition of
RT_DEVICE_CTRL_WDT_GET_TIMEOUT
RT_DEVICE_CTRL_WDT_SET_TIMEOUT
RT_DEVICE_CTRL_WDT_GET_TIMELEFT

The wdt timeout time unit is defined as seconds in the API, but
the code incorrectly uses ms.

Correct this and comply with the API definition.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Reviewed-by: Yuanjie He &lt;943313837@qq.com&gt;
Reviewed-by: Shell &lt;smokewood@qq.com&gt;
</content>
</entry>
<entry>
<title>bsp: cvitek: remove warning when building wdt driver</title>
<updated>2024-07-17T01:05:26Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2024-06-13T03:04:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=2d5eb2669f3fd9b4a1b52cf25d19a3915b767cae'/>
<id>urn:sha1:2d5eb2669f3fd9b4a1b52cf25d19a3915b767cae</id>
<content type='text'>
```
./bsp/cvitek/drivers/drv_wdt.c: In function '_wdt_control':
warning: assignment to 'void *' from 'unsigned int' makes pointer
from integer without a cast [-Wint-conversion]
  119 |         wdt_device-&gt;parent.user_data = (rt_uint32_t)(*(rt_uint32_t *)arg);
      |                                      ^
warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  122 |         *(rt_uint32_t *)arg = (rt_uint32_t)wdt_device-&gt;parent.user_data;
      |                               ^
```

Rootcasue: It's not portable to store integar in a pointer.

Solution: use global _wdt_dev to store the timeout value.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
</content>
</entry>
<entry>
<title>Accumulated patchsets for bsp/cvitek (#8968)</title>
<updated>2024-05-22T00:19:07Z</updated>
<author>
<name>Chen Wang</name>
<email>unicorn_wang@outlook.com</email>
</author>
<published>2024-05-22T00:19:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5dd3b7427a6a0b1f474e98159cfca15c36893810'/>
<id>urn:sha1:5dd3b7427a6a0b1f474e98159cfca15c36893810</id>
<content type='text'>
* bsp: cvitek: kconfig: add wdt for cv18xx_riscv

Add Watchdog timer in Kconfig.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* drv: cvitek: remove using macro from source file

Building of source file should be controlled by SConscript,
but not in source file itself.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* bsp: cvitek: kconfig: add i2c for cv18xx_riscv

Add I2C in Kconfig for c906B.

Note, the IRQ# is different from that of c906L.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* bsp: cvitek: kconfig: add rtc for cv18xx_riscv

Add RTC in Kconfig for c906B.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* bsp: cvitek: fix channel issue for pwm driver

The original code confuses the concepts of controllers and channels.
Fixed it and do some code cleanup.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* bsp:cvitek: add i2c pinmux config for cv18xx_riscv

Pinmux in driver code is controlled by SOC type, bcos driver
code should be general and support all pins defined by SoC.

Pinmux configuration in Kconfig is controlled by BOARD type,
bcos when we operate on board, it does not expose all chip-level
pin signals and we can only use part of them.

Following is I2C signals exported by duo family. Details see
https://milkv.io/docs/duo/overview.

Note: we have not added support for duo-S.

Duo
===

NAME    I2C         CV1800B/GPIO    &lt;PINNAME&gt;__&lt;FUNCNAME&gt;
----    ---         ------------    ---------------------
GP0     I2C0_SCL    XGPIOA[28]      IIC0_SCL__IIC0_SCL
GP1     I2C0_SDA    XGPIOA[29]      IIC0_SDA__IIC0_SDA

GP4     I2C1_SCL    PWR_GPIO[19]    SD1_D2__IIC1_SCL
GP9     I2C1_SCL    PWR_GPIO[18]    SD1_D3__IIC1_SCL
GP11    I2C1_SCL    XGPIOC[10]      PAD_MIPIRX0N__IIC1_SCL
GP5     I2C1_SDA    PWR_GPIO[20]    SD1_D1__IIC1_SDA
GP8     I2C1_SDA    PWR_GPIO[21]    SD1_D0__IIC1_SDA
GP10    I2C1_SDA    XGPIOC[9]       PAD_MIPIRX1P__IIC1_SDA

GP7     I2C3_SCL    PWR_GPIO[22]    SD1_CMD__IIC3_SCL
GP6     I2C3_SDA    PWR_GPIO[23]    SD1_CLK__IIC3_SDA

Duo 256m
========

NAME    I2C         CV1800B/GPIO    &lt;PINNAME&gt;__&lt;FUNCNAME&gt;
----    ---         ------------    ---------------------
GP4     I2C1_SCL    PWR_GPIO[19]    SD1_D2__IIC1_SCL
GP9     I2C1_SCL    PWR_GPIO[18]    SD1_D3__IIC1_SCL
GP5     I2C1_SDA    PWR_GPIO[20]    SD1_D1__IIC1_SDA
GP8     I2C1_SDA    PWR_GPIO[21]    SD1_D0__IIC1_SDA

GP11    I2C2_SCL    XGPIOC[15]      PAD_MIPI_TXP1__IIC2_SCL
GP10    I2C2_SDA    XGPIOC[14]      PAD_MIPI_TXM1__IIC2_SDA

GP7     I2C3_SCL    PWR_GPIO[22]    SD1_CMD__IIC3_SCL
GP6     I2C3_SDA    PWR_GPIO[23]    SD1_CLK__IIC3_SDA

Duo S
=====

NAME    I2C         CV1800B/GPIO    &lt;PINNAME&gt;__&lt;FUNCNAME&gt;
----    ---         ------------    ---------------------

J3-B18  I2C1_SCL    XGPIOB[18]      VIVO_D3__IIC1_SCL
J3-B12  I2C1_SCL    XGPIOB[12]      VIVO_D9__IIC1_SCL
J3-B11  I2C1_SDA    XGPIOB[11]      VIVO_D10__IIC1_SDA

J3-B13  I2C2_SCL    XGPIOB[13]      VIVO_D8__IIC2_SCL
J4-E1   I2C2_SCL    PWR_GPIO[1]     PWR_GPIO1__IIC2_SCL
J3-B14  I2C2_SDA    XGPIOB[14]      VIVO_D7__IIC2_SDA
J4-E2   I2C2_SDA    PWR_GPIO[2]     PWR_GPIO2__IIC2_SDA

J3-B20  I2C4_SCL    XGPIOB[20]      VIVO_D1__IIC4_SCL
J4-B1   I2C4_SCL    XGPIOB[1]       ADC3__IIC4_SCL
J3-B21  I2C4_SDA    XGPIOB[21]      VIVO_D0__IIC4_SDA
J4-B2   I2C4_SDA    XGPIOB[2]       ADC2__IIC4_SDA

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Signed-off-by: flyingcys &lt;flyingcys@163.com&gt;

* bsp:cvitek: remove using macro from source file for i2c

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* bsp:cvitek: unify menu message text for i2c as other drivers

Other dirvers has no extra word "HW".

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

* bsp:cvitek: add i2c pinmux config for c906_little

Porting what we have done in commit "bsp:cvitek: add i2c pinmux config
for cv18xx_riscv" to c906_little.

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;

---------

Signed-off-by: Chen Wang &lt;unicorn_wang@outlook.com&gt;
Signed-off-by: flyingcys &lt;flyingcys@163.com&gt;
Co-authored-by: flyingcys &lt;flyingcys@163.com&gt;</content>
</entry>
<entry>
<title>[bsp][cvitek] add wdt driver</title>
<updated>2024-03-03T19:40:15Z</updated>
<author>
<name>Z8MAN8</name>
<email>1468559561@qq.com</email>
</author>
<published>2024-03-03T16:37:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5e892607faa4b74b4f7aeab04ca53aff6b9b6c21'/>
<id>urn:sha1:5e892607faa4b74b4f7aeab04ca53aff6b9b6c21</id>
<content type='text'>
</content>
</entry>
</feed>
