Skip to content

Commit

Permalink
update lpi4a and lpi3h docs (#626)
Browse files Browse the repository at this point in the history
* lpi4a: add description for full image

* lpi3h: add instruction for lpi3h gpio usage
  • Loading branch information
wu-yue-yu authored Feb 26, 2024
1 parent 8ea537c commit a9c8d10
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/hardware/en/lichee/th1520/lpi4a/3_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ ISCAS mirror(including test mirror, ordinary users please use the mirror in the
- Fixed MIPI screen brightness not being adjustable
- Fixed Bluetooth not working with new WIFI/BT module
- Usage Instructions:
- The image occupies a large amount of space, and the internal testing version cannot use this image due to the eMMC capacity being only 8GB. Therefore, internal testing users should use the BASIC version image;
- Auto login enabled, default login user is sipeed
- Sudo without password enabled
- NPU drivers loaded automatically, no manual initialization needed
Expand Down
15 changes: 15 additions & 0 deletions docs/hardware/en/longan/h618/lpi3h/6_peripheral.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ TODO

![io_map](./../../../../zh/longan/h618/lpi3h/assets/peripheral/io_map.jpeg)

![pin_num](./../../../../zh/longan/h618/lpi3h/assets/peripheral/pin_num.png)

Referring to the two tables above, you can find the position and number of the GPIO to be used. Taking the example of lighting up the two LEDs on the board, you can use the following command to manipulate the corresponding GPIO in the user space:

```shell
num=194
echo ${num} > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio${num}/direction
echo 0 > /sys/class/gpio/gpio${num}/value
num=196
echo ${num} > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio${num}/direction
echo 0 > /sys/class/gpio/gpio${num}/value
```

## UART

### System serial port
Expand Down
1 change: 1 addition & 0 deletions docs/hardware/zh/lichee/th1520/lpi4a/3_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ ISCAS 镜像站(内含测试镜像,普通用户请使用前面网盘中的
- 修复MIPI屏幕亮度无法调节的问题
- 修复新 WIFI/BT 模块的蓝牙无法使用的问题
- 使用说明:
- 该镜像占用空间较大,内测版由于 EMMC 容量只有 8G,故无法使用本镜像,内测版用户请使用 BASIC 版本镜像;
- 该镜像开启了自动登陆,默认登陆用户为 sipeed;
- 该镜像开启了免密码 sudo 功能;
- 该镜像会自动加载 NPU 相关的驱动,无需手动初始化;
Expand Down
15 changes: 15 additions & 0 deletions docs/hardware/zh/longan/h618/lpi3h/6_peripheral.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ TODO

![io_map](./assets/peripheral/io_map.jpeg)

![pin_num](./assets/peripheral/pin_num.png)

参考上面的两个表格,可以找到要使用的 GPIO 对应的位置和序号,以点亮底板上的两个 LED 灯为例,可以使用命令在用户空间操作对应的 GPIO :

```shell
num=194
echo ${num} > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio${num}/direction
echo 0 > /sys/class/gpio/gpio${num}/value
num=196
echo ${num} > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio${num}/direction
echo 0 > /sys/class/gpio/gpio${num}/value
```

## UART

### 系统串口
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a9c8d10

Please sign in to comment.