Skip to content

Commit 118dbe4

Browse files
committed
add LIONTRON K-A311D
1 parent 1eb6594 commit 118dbe4

File tree

6 files changed

+4543
-0
lines changed

6 files changed

+4543
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
[CAINIAO CNIoT-CORE](devices/cainiao-cniot-core/README.md)
22

33
[CAINIAO LEMO XIAOC](devices/cainiao-lemo-xiaoc/README.md)
4+
5+
[LIONTRON K-A311D](devices/liontron-k-a311d/README.md)

devices/liontron-k-a311d/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# 固件
2+
3+
# 硬件
4+
5+
亮钻K-A311D,Amlogic A311D SoC,4 GB DDR,32 GB eMMC,一个USB 2.0 Type-A,一个USB 3.2 Gen1 Type-A,千兆网口和AP6255 WiFi/BT
6+
7+
http://www.liontron.cn/showinfo-118-217-0.html
8+
9+
http://en.liontron.cn/showinfo-118-218-0.html
10+
11+
eMMC短接点
12+
13+
![emmc-short](pictures/emmc-short.jpg)
14+
15+
Micro USB用于在USB下载模式下传输数据
16+
17+
主板上的USB 2.0 Type-A为USB 2.0 Hub芯片扩展而来,而Hub芯片和主板上的Micro USB复用同一USB 2.0信号
18+
19+
USB信号复用芯片在Micro USB的上方,有4221的丝印。搜索4221 switch chip找到名为BCT4221A的芯片手册,量了下引脚,基本确定是该芯片。在该板子上,BCT4221A的使能引脚被短接到GND,即一直使能输出。只要切换S引脚的高低电平就能在Type-A和Micro USB之间切换输出。不去控制S引脚,USB信号默认连接到Micro USB
20+
21+
# PHY LED
22+
23+
该设备的RJ45接口上有两个LED,左边的黄灯(LED1),右边的绿灯(LED2)
24+
25+
可以使用[wkz/phytool](https://github.com/wkz/phytool)工具在用户空间来测试LED:
26+
27+
```
28+
# 强制LED2常亮
29+
phytool write end0/0/0x1e 0xb7 && phytool write end0/0/0x1f 0xe028
30+
31+
# 强制LED1常亮
32+
phytool write end0/0/0x1e 0xb7 && phytool write end0/0/0x1f 0xe005
33+
34+
# 读出LED1的默认配置
35+
phytool read end0/0/0x1f
36+
0x0670
37+
38+
# LED1平时熄灭,有TX/RX流量时闪烁
39+
phytool write end0/0/0x1e 0xb8 && phytool write end0/0/0x1f 0x2600
40+
41+
# 10/100/1000Mbps link时LED2常亮
42+
phytool write end0/0/0x1e 0xb9 && phytool write end0/0/0x1f 0x0070
43+
```
44+
45+
TODO: 在内核中完成PHY LED的配置
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
gpiochip1: GPIOs 410-495, parent: platform/pinctrl@ff634480, periphs-banks:
2+
gpio-445 ( |amlsd ) out hi
3+
gpio-458 ( |amlsd ) in hi
4+
gpio-466 ( |lte-pon ) out hi
5+
gpio-482 ( |sdio_wifi ) out hi
6+
gpio-483 ( |sdio_wifi ) in hi
7+
gpio-484 ( |? ) out hi
8+
gpio-485 ( |? ) out hi
9+
gpio-487 ( |power-hold ) out hi
10+
gpio-493 ( |bt_rfkill ) out hi
11+
gpio-495 ( |bt_rfkill ) out hi
12+
13+
gpiochip0: GPIOs 496-511, parent: platform/pinctrl@ff800014, aobus-banks:
14+
gpio-503 ( |key ) in hi
15+
gpio-507 ( |? ) out hi
124 KB
Binary file not shown.

0 commit comments

Comments
 (0)