Skip to content

Commit 87a2282

Browse files
add documentation for WiFi
1 parent 4d5290d commit 87a2282

File tree

2 files changed

+43
-6
lines changed

2 files changed

+43
-6
lines changed

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,20 @@ Evaluation board for AllWinner's RISC-V 64 SoC F133/D1s
1111
## About the Chip
1212
D1s/F133: RISC-V 64 single core @1.008G with in package 64MB DDR2
1313

14+
## Guides
15+
[Quick Start](docs/quickStart.md)
16+
17+
[Troubleshooting](docs/troubleshooting.md)
18+
19+
[Wi-Fi](docs/WiFi.md)
20+
1421
## Pin Out
1522
![resources](img/resources.jpg)
1623

1724
![pinout](img/pinc.jpg)
1825

1926
Pins for LCD and DVP camera can also be used as IOs. See schematic below for detailed pin assignment.
2027

21-
## Guides
22-
[Quick Start](docs/quickStart.md)
23-
24-
[Troubleshooting](docs/troubleshooting.md)
25-
2628
## Schematic & BOM
2729
![schematic](img/schematic.png)
2830

@@ -50,7 +52,7 @@ No. I have no time and resource to batch manufacture this board. Some commercial
5052

5153
> Where to buy some D1s chips?
5254
53-
The supply is not yet very sufficient, but it should be more available within a month (hopefully can be purchased directly from Allwinner). For now there are some suppliers providing samples on taobao.
55+
There are several suppliers providing samples on taobao.
5456

5557
> More information? Like what can this board do now?
5658

docs/WiFi.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# WiFi
2+
Xassette-Asterisk supports SDIO Wi-Fi module since hw v0.2. The module is connected to SoC via `sdc2` which shares pins with SPI flash, thus the flash won't be available when Wi-Fi module is in use.
3+
4+
## Module Selection
5+
Due to the limited area of PCB, there is no onboard antenna for the module. Thus the module must have an IPEX socket to connect external antenna. RTL8189ftv is the module used to test the Wi-Fi functionality, and it will be the example for the following sections.
6+
7+
## Kernel Configuration
8+
To enable the `sdc2` interface as SDIO card controller, the board device tree must configure `sdc2` as below:
9+
```c
10+
&sdc2 {
11+
non-removable;
12+
bus-width = <4>;
13+
no-mmc;
14+
no-sd;
15+
cap-sd-highspeed;
16+
cap-sdio-irq;
17+
keep-power-in-suspend;
18+
ignore-pm-notify;
19+
max-frequency = <150000000>;
20+
ctl-spec-caps = <0x308>;
21+
status = "okay";
22+
};
23+
```
24+
and the `no-sdio` property must be removed from the `sdc2` node in chip's device tree (sun20iw1p1.dtsi).
25+
26+
After this, the SD card will probably be probed as `mmcblk1` (originally `mmcblk0`) and causes the VFS fail to mount the root partition. Changing the path of root (in bootargs) in u-boot solves the problem.
27+
28+
The firmware image with configuration supports Wi-Fi is available in [release](https://github.com/SdtElectronics/Xassette-Asterisk/releases/tag/fw-v0.2). It can be flashed to the card following [Quick Start](docs/quickStart.md).
29+
30+
## Driver
31+
Driver for RTL8189ftv can be compiled following [sunxi WiKi](https://linux-sunxi.org/Wifi#RTL8189FTV). This driver is included in the firmware mentioned above. Load it with
32+
```
33+
insmod 8189fs
34+
```
35+
and the module is ready to work.

0 commit comments

Comments
 (0)