Sunteți pe pagina 1din 80

Allwinner Technology CO., Ltd.

Crane_Fex_Guide
V0.4
2011-11-4

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.

Revision History
Version
V0.1
V0.2
V0.3
V0.4

Date
2011-08-26
2011-09-28
2011-10-25
2011-11-04

Section/ Page

Changes compared to previous issue


Initial version
SPI configuration
Update lcd,g2d,rtp,wifi

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.

Table of Contents
Revision History ............................................................................................................ 1
Table of Contents ........................................................................................................... 2
1 Remark .................................................................................................................... 5
2 System ..................................................................................................................... 5
2.1
[Target] ...................................................................................................... 5
2.2
[card_boot] ................................................................................................ 5
2.3
[card_boot0_para] ..................................................................................... 6
2.4
[card_boot2_para] ..................................................................................... 6
2.5
[twi_para] .................................................................................................. 7
2.6
[uart_para] ................................................................................................. 8
2.7
[jtag_para] ................................................................................................. 8
3 SDRAM .................................................................................................................. 9
3.1
[dram_para] ............................................................................................... 9
4 GPU (Mali) ........................................................................................................... 11
4.1
[mali_para] .............................................................................................. 11
5 2D AccelerationG2D ..................................................................................... 11
5.1
[g2d_para] ............................................................................................... 11
6 Ethernet MAC ....................................................................................................... 12
6.1
[emac_para] ............................................................................................. 12
7 TWI ....................................................................................................................... 14
7.1
[twi0_para] .............................................................................................. 14
7.2
[twi1_para] .............................................................................................. 14
7.3
[twi2_para] .............................................................................................. 14
8 UART .................................................................................................................... 16
8.1
[uart_para0] ............................................................................................. 16
8.2
[uart_para1] ............................................................................................. 16
8.3
[uart_para2] ............................................................................................. 17
8.4
[uart_para3] ............................................................................................. 17
8.5
[uart_para4] ............................................................................................. 18
8.6
[uart_para5] ............................................................................................. 19
8.7
[uart_para6] ............................................................................................. 19
8.8
[uart_para7] ............................................................................................. 19
9 SPI ......................................................................................................................... 21
9.1
[spi0_para] .............................................................................................. 21
9.2
[spi1_para] .............................................................................................. 21
Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.


9.3
9.4
9.5
9.6
10
11
12
13
14
15
16
17
18

19

20
21

22
23
24

25

[spi2_para] .............................................................................................. 22
[spi3_para] .............................................................................................. 23
[spi_devices] ........................................................................................... 23
[spi_board0] ............................................................................................ 24
RTP ................................................................................................................ 25
10.1
[rtp_para]................................................................................................. 25
CTR ................................................................................................................ 26
11.1
[ctp_para] ................................................................................................ 26
Touch Key ...................................................................................................... 28
12.1
[tkey_para] .............................................................................................. 28
Motor.............................................................................................................. 29
13.1
[motor_para] ........................................................................................... 29
NAND Flash .................................................................................................. 30
14.1
[nand_para] ............................................................................................. 30
Display Initialization ...................................................................................... 31
15.1
[disp_init] ................................................................................................ 31
LCD Screen 0 ................................................................................................. 34
16.1
[lcd0_para] .............................................................................................. 34
LCD Screen 1 ................................................................................................. 39
17.1
[lcd1_para] .............................................................................................. 39
CSI ................................................................................................................. 44
18.1
[csi0_para]............................................................................................... 44
18.2
[csi1_para]............................................................................................... 47
TV Out/In ....................................................................................................... 52
19.1
[tvout_para] ............................................................................................. 52
19.2
[tvin_para] ............................................................................................... 52
SATA .............................................................................................................. 52
20.1
[sata_para] ............................................................................................... 52
SD / MMC...................................................................................................... 53
21.1
[mmc0_para] ........................................................................................... 53
21.2
[mmc1_para] ........................................................................................... 54
21.3
[mmc2_para] ........................................................................................... 55
21.4
[mmc3_para] ........................................................................................... 56
Memory Stick ................................................................................................. 57
22.1
[ms_para] ................................................................................................ 57
SIM Card ........................................................................................................ 58
23.1
[smc_para]............................................................................................... 58
PS/2Mouse ..................................................................................................... 58
24.1
[ps2_0_para] ........................................................................................... 58
24.2
[ps2_1_para] ........................................................................................... 59
CAN ............................................................................................................... 59

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.


26
27

28

29
30
31
32
33
34
35
36
37
38
39
40
41
42

25.1
[can_para] ............................................................................................... 59
Key Matrix ..................................................................................................... 60
26.1
[keypad_para] ......................................................................................... 60
USB ................................................................................................................ 62
27.1
[usbc0]..................................................................................................... 62
27.2
[usbc1]..................................................................................................... 63
27.3
[usbc2]..................................................................................................... 63
USB Device ................................................................................................... 65
28.1
[usb_feature] ........................................................................................... 65
28.2
[msc_feature] .......................................................................................... 65
G-Sensor ........................................................................................................ 66
29.1
[g-sensor_para] ....................................................................................... 66
GPS ................................................................................................................ 67
30.1
[gps_para] ............................................................................................... 67
WIFI (SDIO) .................................................................................................. 67
31.1
[sdio_wifi_para] ...................................................................................... 67
WIFI (USB) ................................................................................................... 68
32.1
[usb_wifi_para] ....................................................................................... 68
3G ................................................................................................................... 69
33.1
[3g_para] ................................................................................................. 69
gyroscope ....................................................................................................... 69
34.1
[gy_para] ................................................................................................. 69
Light Sensor ................................................................................................... 70
35.1
[ls_para] .................................................................................................. 70
Compass ......................................................................................................... 70
36.1
[compass_para] ....................................................................................... 70
Bluetooth ........................................................................................................ 71
37.1
[bt_para] .................................................................................................. 71
I2S .................................................................................................................. 72
38.1
[i2s_para] ................................................................................................ 72
S/PDIF............................................................................................................ 73
39.1
[spdif_para] ............................................................................................. 73
Audio.............................................................................................................. 73
40.1
[audio_para] ............................................................................................ 73
IR.................................................................................................................... 73
41.1
[ir_para]................................................................................................... 73
PMU ............................................................................................................... 75
42.1
[pmu_para] .............................................................................................. 75

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.

1 Remark
1. Following configurations inBLUE characters refer to IC pin configurations, and
configurations in BLACK characters refer to internal control configurations.
2. GPIO Configuration Description Format:
Port: port+number<function><internal resistence><drive strength><output level>

2 System
2.1 [Target]
Configuration Item
boot_clock=xx
dcdc2_vol=1400
dcdc3_vol=1250
ldo2_vol=3000
ldo3_vol=2800
ldo4_vol=2800
Configuration Examples
[target]
boot_clock
dcdc2_vol
dcdc3_vol
ldo2_vol
ldo3_vol
ldo4_vol

Description
boot frequency; MHZ
Dcdc2 output voltagemV
Dcdc3 output voltagemV
Ldo2 output voltagemV
Ldo3 output voltagemV
Ldo4 output voltagemV

= 1008
= 1400
= 1250
= 3000
= 2800
= 2800

2.2 [card_boot]

Configuration Item
Logical_start=xx
Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Description

Allwinner Technology CO., Ltd.


Sprite_gpio0=
Configuration Examples
[card_boot]
logical_start
sprite_gpio0

Sprite GPIO configuration

= 40960
=

2.3 [card_boot0_para]
Configuration Item
card_ctrl=0

Description
Card boot controller 0
Speed mode;
0 : low speed, 1: high speed
4-line card
GPIO configuration of SD card data cable 1
GPIO configuration of SD card data cable 0
GPIO configuration of SD card clock signal
GPIO configuration of SD card command signal
GPIO configuration of SD card data cable 3
GPIO configuration of SD card data cable 2

card_high_speed=xx
card_line=4
sdc_d1=xx
sdc_d0=xx
sdc_clk=xx
sdc_cmd=xx
sdc_d3=xx
sdc_d2=xx
Configuration Examples
card_ctrl
card_high_speed
card_line
sdc_d1
sdc_d0
sdc_clk
sdc_cmd
sdc_d3
sdc_d2

=0
=1
=4
= port:PF0<2><1><default><default>
= port:PF1<2><1><default><default>
= port:PF2<2><1><default><default>
= port:PF3<2><1><default><default>
= port:PF4<2><1><default><default>
= port:PF5<2><1><default><default>

2.4 [card_boot2_para]
Configuration Items
card_ctrl=2
card_high_speed=xx

Description
Card boot controller 2
Speed mode;

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.


0 : low speed, 1: high speed
4-line card
GPIO configuration of SD card command
signal
GPIO configuration of SD card clock
signal
GPIO configuration of SD card data cable
0
GPIO configuration of SD card data cable
1
GPIO configuration of SD card data cable
3
GPIO configuration of SD card data cable
2

card_line=4
sdc_ cmd =xx
sdc_ clk =xx
sdc_ d0 =xx
sdc_ d1 =xx
sdc_d3=xx
sdc_d2=xx

Configuration Examples
card_ctrl
card_high_speed
card_line
sdc_cmd
sdc_clk
sdc_d0
sdc_d1
sdc_d2
sdc_d3

=2
=1
=4
= port:PC6<3><1>
= port:PC7<3><1>
= port:PC8<3><1>
= port:PC9<3><1>
= port:PC10<3><1>
= port:PC11<3><1>

2.5 [twi_para]
Configuration Items
twi_port= xx
twi_scl=xx
twi_sda=xx
Configuration Examples
twi_port
twi_scl
twi_sda

Description
Boot TWI port
GPIO configuration of Boot TWI clock
GPIO configuration of Boot TWI data

=0
= port: PB0<2><default><default><default>
= port: PB1<2><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.


2.6 [uart_para]
Configuration Items
uart_debug_port=xx
uart_debug_tx=xx
uart_debug_rx=xx

Configuration Examples
uart_debug_port
uart_debug_tx
uart_debug_rx

Description
Boot serial port controller number
GPIO configuration of Boot serial port
TX
GPIO configuration of Boot serial port
RX

=0
= port: PB22<2>
= port: PB23<2>

2.7 [jtag_para]
Configuration Items
jtag_enable=xx
jtag_ms=xx
jtag_ck=xx
jtag_do=xx
jtag_di=xx

Configuration Examples
[jtag_para]
jtag_enable
jtag_ms
jtag_ck
jtag_do
jtag_di

Description
JTAG enable
GPIO configuration of Test Mode Select
(TMS) input
GPIO configuration of Test Clock Input
GPIO configuration of Test Data Output
(TDO)
GPIO configuration of Test Data Input
(TDI

=1
= port: PB14<3>
= port: PB15<3>
= port: PB16<3>
= port: PB17<3>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.

3 SDRAM
3.1 [dram_para]
Configuration Items
dram_baseaddr=xx
dram_clk =xx
dram_type =xx

dram_rank_num =xx

dram_chip_density =xx
dram_io_width=xx
dram_bus_width=xx
dram_cas=xx
dram_zq=xx

dram_odt_en=xx

dram_size=xx
dram_tpr0=xx
dram_tpr1=xx
dram_tpr2=xx
dram_tpr3=xx

Description
DRAM base address: 0x40000000 (Fixed)
DRAM clock MHz; a multiple of 24 that
ranges from 120 to 480
DRAM type;
2 : DDR2, 3: DDR3
DRAM chip select number;
1: ONE chip select;
2 : TWO chip select;
Density of single-chip DRAM, Mb, such as
20481024,etc
Bit width of single-chip DRAMusually set
as 16
BUS width of all DRAM: if two 16-bit
DRAM are used, it should be set as 32.
DRAM CASwhich can be 6,7,8 and 9
depending on DRAM spec and speed.
DRAMC internal parameters, which are set
by vendors and cannot be modified.
ODT enable;
0 disable
1 enable
This item is set to 0 for power saving
consideration.
Size of all DRAM, MB;
DRAMC internal parameters, which are set
by vendors and cannot be modified;
DRAMC internal parameters, which are set
by vendors and cannot be modified;
DRAMC internal parameters, which are set
by vendors and cannot be modified;
DRAMC internal parameters, which are set

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
2011-11-4

Allwinner Technology CO., Ltd.


dram_tpr4=xx
dram_tpr5=xx
dram_emr1=xx
dram_emr2=xx
dram_emr3=xx

Configuration Examples:
[dram_para]
dram_baseaddr
dram_clk
dram_type
dram_rank_num
dram_chip_density
dram_io_width
dram_bus_width
dram_cas
dram_zq
dram_odt_en
dram_size
dram_tpr0
dram_tpr1
dram_tpr2
dram_tpr3
dram_tpr4
dram_tpr5
dram_emr1
dram_emr2
dram_emr3

by vendors and cannot be modified;


DRAMC internal parameters, which
by vendors and cannot be modified;
DRAMC internal parameters, which
by vendors and cannot be modified;
DRAMC internal parameters, which
by vendors and cannot be modified;
DRAMC internal parameters, which
by vendors and cannot be modified;
DRAMC internal parameters, which
by vendors and cannot be modified;

= 0x40000000
= 360
=3
=1
= 2048
= 16
= 32
=6
= 0x7b
=0
= 512
= 0x30926692
= 0x1090
= 0x1a0c8
= 0x0
= 0x0
= 0x0
= 0x0
= 0x0
= 0x0

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
10
2011-11-4

are set
are set
are set
are set
are set

Allwinner Technology CO., Ltd.

4 GPU (Mali)
4.1 [mali_para]
Configuration Items
mali_used=xx
mali_clkdiv=xx

Description
MALI enable
960MHz / mali_clkdiv as the GPU input
clock

5 2D AccelerationG2D
5.1 [g2d_para]
Configuration Items
g2d_used=xx
g2d_size=xx

Description
g2d enable / disable
g2d reserved memory sizedefault to be
0x1000000

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
11
2011-11-4

Allwinner Technology CO., Ltd.

6 Ethernet MAC
6.1 [emac_para]
Configuration Items
emac_used =xx
emac_rxd3 =xx
emac_rxd2 =xx
emac_rxd1 =xx
emac_rxd0 =xx
emac_txd3 =xx
emac_txd2 =xx
emac_txd1 =xx
emac_txd0 =xx
emac_rxclk =xx
emac_rxerr =xx
emac_rxdV =xx
emac_mdc =xx
emac_mdio =xx
emac_txen=xx
emac_txclk=xx
emac_crs =xx
emac_col=xx
emac_reset =xx
dram_emr3=xx
Configuration Examples
[emac_para]
emac_used
emac_rxd3
emac_rxd2
emac_rxd1
emac_rxd0
emac_txd3

Description
Emac enable
GPIO configuration of emac RX data line
/
/
/
GPIO configuration of emac data TX line
/
/
/
GPIO configuration of emac RX clock
GPIO configuration of emac RX error
GPIO configuration of emac RX enable
GPIO configuration of emac mii clock
GPIO configuration of emac mii data
GPIO configuration of emac TX enable
GPIO configuration of emac TX clock
GPIO configuration of emac carrier state
GPIO configuration of emac conflict test
GPIO configuration of emac phy reset
signal
/

=1
= port: PA00<2><default><default><default>
= port: PA01<2><default><default><default>
= port: PA02<2><default><default><default>
= port: PA03<2><default><default><default>
= port: PA04<2><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
12
2011-11-4

Allwinner Technology CO., Ltd.


emac_txd2
emac_txd1
emac_txd0
emac_rxclk
emac_rxerr
emac_rxdV
emac_mdc
emac_mdio
emac_txen
emac_txclk
emac_crs
emac_col
emac_reset

= port: PA05<2><default><default><default>
= port: PA06<2><default><default><default>
= port: PA07<2><default><default><default>
= port: PA08<2><default><default><default>
= port: PA09<2><default><default><default>
= port: PA10<2><default><default><default>
= port: PA11<2><default><default><default>
= port: PA12<2><default><default><default>
= port: PA13<2><default><default><default>
= port: PA14<2><default><default><default>
= port: PA15<2><default><default><default>
= port: PA16<2><default><default><default>
= port: PA17<1><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
13
2011-11-4

Allwinner Technology CO., Ltd.

7 TWI
7.1 [twi0_para]
Configuration Items
twi0_used =xx
twi0_scl =xx
twi0_sda=xx
Configuration Examples
twi0_used
twi0_scl
twi0_sda

Description
TWI enable/disable;
1: enable0: disable
GPIO configuration of TWI SCK
GPIO configuration of TWI SDA

=1
= port: PB0<2><default><default><default>
= port: PB1<2><default><default><default>

7.2 [twi1_para]
Configuration Items
twi1_used =xx
twi1_scl =xx
twi1_sda=xx
Configuration Examples
[tw1_para]
Twi1_used
Twi1_scl
Twi1_sda

Description
TWI enable/disable; 1: enable0: disable
GPIO configuration of TWI SCK
GPIO configuration of TWI SDA

=1
= port: PB0<2><default><default><default>
= port: PB1<2><default><default><default>

7.3 [twi2_para]

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
14
2011-11-4

Allwinner Technology CO., Ltd.


Configuration Items
twi2_used =xx
twi2_scl =xx
twi2_sda=xx
Configuration Examples
[twi2_para]
Twi2_used
Twi2_scl
Twi2_sda

Description
TWI enable/disable; 1: enable0: disable
GPIO configuration of TWI SCK
GPIO configuration of TWI SDA

=1
= port: PB0<2><default><default><default>
= port: PB1<2><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
15
2011-11-4

Allwinner Technology CO., Ltd.

8 UART
8.1 [uart_para0]
Configuration Items
uart_used =xx
uart_port =xx
uart0_tx =xx
uart0_rx=xx
Configuration Examples
[uart_para0]
uart_used
uart_port
uart0_tx
uart0_rx

Description
UART enable/disable; 1: enable, 0:disable
UART port number
GPIO configuration of UART TX
GPIO configuration of UART RX

=1
=0
= port: PB22<2>
= port: PB23<2>

8.2 [uart_para1]
Configuration Items
uart_used =xx
uart_port =xx
uart_type =xx
uart1_tx =xx
uart1_rxxx
uart1_rts=xx
uart1_cts=xx
uart1_dtr=xx
uart1_dsr=xx
uart1_dcd=xx
uart1_ring=xx

Description
UART enable/disable;1: enable0:disable
UART port number
UART type
GPIO configuration of UART TX
GPIO configuration of UART RX
GPIO configuration of UART RTS
GPIO configuration of UART CTS
GPIO configuration of UART DTR
GPIO configuration of UART DSR
GPIO configuration of UART DCD
GPIO configuration of UART RING

Configuration Examples
[uart_para1]
Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
16
2011-11-4

Allwinner Technology CO., Ltd.


uart_used
uart_port
uart_type
uart1_tx
uart1_rx
uart1_rts
uart1_cts
uart1_dtr
uart1_dsr
uart1_dcd
uart1_ring

=0
=1
=8
= port:PA10<4><default><default><default>
= port:PA11<4><default><default><default>
= port:PA12<4><default><default><default>
= port:PA13<4><default><default><default>
= port:PA14<4><default><default><default>
= port:PA15<4><default><default><default>
= port:PA16<4><default><default><default>
= port:PA17<4><default><default><default>

8.3 [uart_para2]
Configuration Items
uart_used =xx
uart_port =xx
uart_type =xx
uart2_tx =xx
uart2_rxxx
uart2_rts=xx
uart2_cts=xx
Configuration Examples
[uart_para2]
uart_used
uart_port
uart_type
uart2_tx
uart2_rx
uart2_rts
uart2_cts

Description
UART enable/disable;1: enable0:disable
UART port number
UART type
GPIO configuration of UART TX
GPIO configuration of UART RX
GPIO configuration of UART RTS
GPIO configuration of UART CTS

=0
=2
=4
= port:PI18<3><default><default><default>
= port:PI19<3><default><default><default>
= port:PI16<3><default><default><default>
= port:PI17<3><default><default><default>

8.4 [uart_para3]
Configuration Items
Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
17
2011-11-4

Description

Allwinner Technology CO., Ltd.


uart_used =xx
uart_port =xx
uart_type =xx
uart3_tx =xx
uart3_rxxx
uart3_rts=xx
uart3_cts=xx
Configuration Examples
[uart_para3]
uart_used
uart_port
uart_type
uart3_tx
uart3_rx
uart3_rts
uart3_cts

UART enable/disable;1: enable0:disable


UART port number
UART type
GPIO configuration of UART TX
GPIO configuration of UART RX
GPIO configuration of UART RTS
GPIO configuration of UART CTS

=0
=3
=4
= port:PH00<4><default><default><default>
= port:PH01<4><default><default><default>
= port:PH02<4><default><default><default>
= port:PH03<4><default><default><default>

8.5 [uart_para4]
Configuration Items
uart_used =xx
uart_port =xx
uart_type =xx
uart4_tx =xx
uart4_rxxx
Configuration Examples
[uart_para4]
uart_used
uart_port
uart_type
uart4_tx
uart4_rx

Description
UART enable/disable;1: enable0:disable
UART port number
UART type
GPIO configuration of UART TX
GPIO configuration of UART RX

=0
=4
=2
= port:PH04<4><default><default><default>
= port:PH05<4><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
18
2011-11-4

Allwinner Technology CO., Ltd.


8.6 [uart_para5]
Configuration Items
uart_used =xx
uart_port =xx
uart_type =xx
uart5_tx =xx
uart5_rxxx
Configuration Examples
[uart_para5]
uart_used
uart_port
uart_type
uart5_tx
uart5_rx

Description
UART enable/disable;1: enable0:disable
UART port number
UART type
GPIO configuration of UART TX
GPIO configuration of UART RX

=0
=5
=2
= port:PH06<4><default><default><default>
= port:PH07<4><default><default><default>

8.7 [uart_para6]
Configuration Items
uart_used =xx
uart_port =xx
uart_type =xx
uart6_tx =xx
uart6_rxxx
Configuration Examples
[uart_para6]
uart_used
uart_port
uart_type
uart6_tx
uart6_rx

Description
UART enable/disable;1: enable0:disable
UART port number
UART type
GPIO configuration of UART TX
GPIO configuration of UART RX

=0
=6
=2
= port:PA12<4><default><default><default>
= port:PA13<4><default><default><default>

8.8 [uart_para7]
Configuration Items
Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
19
2011-11-4

Description

Allwinner Technology CO., Ltd.


uart_used =xx
uart_port =xx
uart_type =xx
uart7_tx =xx
uart7_rxxx
Configuration Examples
[uart_para7]
uart_used
uart_port
uart_type
uart7_tx
uart7_rx

UART enable/disable;1: enable0:disable


UART port number
UART type
GPIO configuration of UART TX
GPIO configuration of UART RX

=0
=7
=2
= port:PA14<4><default><default><default>
= port:PA15<4><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
20
2011-11-4

Allwinner Technology CO., Ltd.

9 SPI
9.1 [spi0_para]
Configuration Items
spi_used =xx
spi_cs0 =xx
spi_cs1 =xx
spi_sclk =xx
spi_mosixx
spi_miso=xx
Configuration Examples
[spi0_para]
spi_used
spi_cs_bitmap
;--- spi0 mapping0 --spi_cs0
;spi_cs1
spi_sclk
spi_mosi
spi_miso
;--- spi0 mapping1 --;spi_mosi
;spi_miso
;spi_sclk
;spi_cs0

Description
SPI enable/disable;1: enable0: disable
GPIO configuration of SPI CS0
GPIO configuration of SPI CS1
GPIO configuration of SPI CLK
GPIO configuration of SPI MOSI
GPIO configuration of SPI MISO

=0
=1
= port:PI10<3><default><default><default>
= port:PI14<3><default><default><default>
= port:PI11<3><default><default><default>
= port:PI12<3><default><default><default>
= port:PI13<3><default><default><default>
= port:PC00<3><default><default><default>
= port:PC01<3><default><default><default>
= port:PC02<3><default><default><default>
= port:PC23<3><default><default><default>

9.2 [spi1_para]
Configuration Items
spi_used =xx
spi_cs0 =xx
spi_cs1 =xx

Description
SPI enable/disable;1: enable0: disable
GPIO configuration of SPI CS0
GPIO configuration of SPI CS1

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
21
2011-11-4

Allwinner Technology CO., Ltd.


spi_sclk =xx
spi_mosixx
spi_miso=xx
Configuration Examples
[spi1_para]
spi_used
spi_cs_bitmap
;--- spi1 mapping0 --spi_cs0
spi_sclk
spi_mosi
spi_miso
;spi_cs1
;--- spi1 mapping1 --;spi_cs1
;spi_cs0
;spi_scl
;spi_mosi
;spi_miso

GPIO configuration of SPI CLK


GPIO configuration of SPI MOSI
GPIO configuration of SPI MISO

=0
=1
= port:PA00<4><default><default><default>
= port:PA01<4><default><default><default>
= port:PA02<4><default><default><default>
= port:PA03<4><default><default><default>
= port:PA04<4><default><default><default>
= port:PI15<2><default><default><default>
= port:PI16<2><default><default><default>
= port:PI17<2><default><default><default>
= port:PI18<2><default><default><default>
= port:PI19<2><default><default><default>

9.3 [spi2_para]
Configuration Items
spi_used =xx
spi_cs0 =xx
spi_cs1 =xx
spi_sclk =xx
spi_mosixx
spi_miso=xx
Configuration Examples
spi_used
spi_cs_bitmap
;--- spi2 mapping0 --;spi_cs1
spi_cs0
spi_sclk

Description
SPI enable/disable;1: enable0: disable
GPIO configuration of SPI CS0
GPIO configuration of SPI CS1
GPIO configuration of SPI CLK
GPIO configuration of SPI MOSI
GPIO configuration of SPI MISO

=0
=1
= port:PB13<2><default><default><default>
= port:PB14<2><default><default><default>
= port:PB15<2><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
22
2011-11-4

Allwinner Technology CO., Ltd.


spi_mosi
spi_miso
;--- spi2 mapping1 --spi_cs0
spi_sclk
spi_mosi
spi_miso

= port:PB16<2><default><default><default>
= port:PB17<2><default><default><default>
= port:PC19<3><default><default><default>
= port:PC20<3><default><default><default>
= port:PC21<3><default><default><default>
= port:PC22<3><default><default><default>

9.4 [spi3_para]
Configuration Items
spi_used =xx
spi_cs0 =xx
spi_cs1 =xx
spi_sclk =xx
spi_mosixx
spi_miso=xx
Configuration Examples
[spi3_para]
spi_used
spi_cs_bitmap
;--- spi3 mapping0 --spi_cs0
spi_sclk
spi_mosi
spi_miso
spi_cs1

Description
SPI enable/disable;1: enable0: disable
GPIO configuration of SPI CS0
GPIO configuration of SPI CS1
GPIO configuration of SPI CLK
GPIO configuration of SPI MOSI
GPIO configuration of SPI MISO

=0
=1
= port:PA05<3><default><default><default>
= port:PI06<3><default><default><default>
= port:PI07<3><default><default><default>
= port:PI08<3><default><default><default>
= port:PA09<3><default><default><default>

9.5 [spi_devices]
Configuration Items
spi_dev_num=xx

Description
This item is related to following
[spi_board0], which defines the number
of SPI devices connected to the main
board.

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
23
2011-11-4

Allwinner Technology CO., Ltd.


9.6 [spi_board0]
Configuration Items
modalias=xx
max_speed_hz =xx
bus_num =xx
chip_select=xx
modexx
full_duplex=xx
manual_cs=xx

Description
Spi modual name
Maximum speed
Spi device controller number
Therotically, 0/1/2/3 CS are supported,
but now only 1/2 CS are supported.
GPIO configuration of SPI MOSI
Work mode; 1: full-duplex, 0: half-duplex
CS level select: not supported now

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
24
2011-11-4

Allwinner Technology CO., Ltd.

10 RTP
10.1[rtp_para]
Configuration Items
rtp_used=xx
rtp_screen_size =xx

rtp_regidity_level=xx

rtp_press_threshold_enable=xx

rtp_press_thresholdxx

rtp_sensitive_level=xx

rtp_exchange_x_y_flag=xx

Description
RTP enable/disable
Screen size: the diagonal length measured
in unit of inch
Screen rigidity: by measuring the time
(unit: 10ms) hardware cannot get data
after gentle press and then liftNormally,
to screens we recommend, 5 inch screen
is set to 5and 7 inch screen is set to 7;
Screens provided by suppliers may not
meet the requirement on rigidity, so
proper adjustment should be made.
RTP press threshold enable/disable;
Recommend: select 0 to disable
Its only valid when rtp_press_threshold_
enable is 1: its value ranges from 0 to
0xFFFFFF, and the smaller, the more
sensitive. Recommend: 0xF
Sensitive level: its value ranges from 0 to
0xF, and the larger, the more sensitive.
Recommend: 0xF
If the X axis and Y axis need to
exchange, set it to 1, otherwise set it to 0
in most cases.

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
25
2011-11-4

Allwinner Technology CO., Ltd.

11 CTR
11.1[ctp_para]
Configuration Items
ctp_used=xx
ctp_name =xx
ctp_twi_id=xx
ctp_twi_addr =xx
ctp_screen_max_xxx
ctp_screen_max_y=xx
ctp_revert_x_flag=xx
ctp_revert_y_flag=xx
ctp_int_port=xx
ctp_wakeup=xx
ctp_io_port=xx

Configuration Examples
ctp_used
ctp_name
ctp_twi_id
ctp_twi_addr
ctp_screen_max_x
ctp_screen_max_y
ctp_revert_x_flag
ctp_revert_y_flag
ctp_int_port
ctp_wakeup
ctp_io_port

Description
CTP enable/disable;
1: enable, 0: disable
CTP name: now support "ft5x_ts" and
"Goodix-TS"
Select TWI adapter: now support 0 and 2
TWI device address
Maximum coordinate of X axis
Maximum coordinate of Y axis
Revert X axis or not;
1: revert, 0: not revert
Revert Y axis or not;
1: revert, 0: not revert
GPIO configuration of CTP interrupt
GPIO configuration of CTP wakeup
CTP IO signal: now share port with
Interrupt

=1
= "ft5x_ts"
=2
= 0x70
= 800
= 480
=0
=0
= port: PH21<6><default>
= port: PB13<1><default><default><1>
= port: PH21<0><default>

Note:
Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
26
2011-11-4

Allwinner Technology CO., Ltd.


To add new TP IC to the support list, corresponding modification should be made
based on the original TP IC code and A10 BSP configuration. To be more specific,
1. In sys_config, ctp_twi_id should be in line with the hardware;
2. In the driver code, the TWI slave device name and address should be in line with
the ctp_name and ctp_twi_addr. Moreover, other subkeys in sysconfig should be
correctly configured.

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
27
2011-11-4

Allwinner Technology CO., Ltd.

12 Touch Key
12.1[tkey_para]

Configuration Items
tkey_used =xx
tkey_name =xx
tkey_twi_id=xx
tkey_twi_addr=xx
tkey_intxx

Configuration Examples
tkey_used
tkey_name
tkey_twi_id
tkey_twi_addr
tkey_int

Description
Touch key is used or not:
1: used; 0: not used
Touch key name: now only support
hv_keypad
To selelct twi adapter: now support 0 and
2
To define TWI device address: related to
hardware
GPIO configuration of touch key
interrupt

=0
= "hv_keypad"
=2
= 0x62
= port: PI13<6><default><default><default>

Note:
If touch key is supported, set tkey_used to 1 and configure related subkey value,
otherwise, set tkey_used to 0.

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
28
2011-11-4

Allwinner Technology CO., Ltd.

13 Motor
13.1[motor_para]
Configuration Items
motor_used =xx
motor_shake=xx
Configuration Examples
motor_used
motor_shake

Description
Motor enable/disable;
1: enable, 0: disable
GPIO configuration of motor shake

=0
= port: PB03<1><default><default><1>

Note:
motor_shake = port: PB03<1><default><default><0>
the IO output is default to be 0, so that it wont shake after initialization.

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
29
2011-11-4

Allwinner Technology CO., Ltd.

14 NAND Flash
14.1[nand_para]
Configuration Items
nand_used =xx
nand_we =xx
nand_ale =xx
nand_cle =xx
nand_ce1 =xx
nand_ce0 =xx
nand_nre =xx
nand_rb0=xx
nand_rb1 =xx
nand_d0=xx
nand_d1=xx
nand_d2=xx
nand_d3=xx
nand_d4=xx
nand_d5=xx
nand_d6=xx
nand_d7=xx
nand_wp=xx
nand_ce2=xx
nand_ce3=xx
nand_ce4=xx
nand_ce5=xx
nand_ce6=xx
nand_ce7=xx
nand_spi=xx
nand_ndqs=xx

Description
Nand enable/disable
GPIO configuration of nand write clock
GPIO configuration of nand address
enable
GPIO configuration of nand commend
enable
GPIO configuration of nand chip select1
GPIO configuration of nand chip select0
GPIO configuration of nand read clock
GPIO configuration of nand R/B1
GPIO configuration of nand R/B0
GPIO configuration of nand data
/
/
/
/
/
/
/
GPIO configuration of nand write
protection
GPIO configuration of nand chip select2
GPIO configuration of nand chip select3
GPIO configuration of nand chip select4
GPIO configuration of nand chip select5
GPIO configuration of nand chip select6
GPIO configuration of nand chip select7
/
GPIO configuration of nand DDR clock

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
30
2011-11-4

Allwinner Technology CO., Ltd.


Configuration Examples
[nand_para]
nand_used
nand_we
nand_ale
nand_cle
nand_ce1
nand_ce0
nand_nre
nand_rb0
nand_rb1
nand_d0
nand_d1
nand_d2
nand_d3
nand_d4
nand_d5
nand_d6
nand_d7
nand_wp
nand_ce2
nand_ce3
nand_ce4
nand_ce5
nand_ce6
nand_ce7
nand_spi
nand_ndqs

=1
= port:PC00<2><default><default><default>
= port:PC01<2><default><default><default>
= port:PC02<2><default><default><default>
= port:PC03<2><default><default><default>
= port:PC04<2><default><default><default>
= port:PC05<2><default><default><default>
= port:PC06<2><default><default><default>
= port:PC07<2><default><default><default>
= port:PC08<2><default><default><default>
= port:PC09<2><default><default><default>
= port:PC10<2><default><default><default>
= port:PC11<2><default><default><default>
= port:PC12<2><default><default><default>
= port:PC13<2><default><default><default>
= port:PC14<2><default><default><default>
= port:PC15<2><default><default><default>
= port:PC16<2><default><default><default>
= port:PC17<2><default><default><default>
= port:PC18<2><default><default><default>
=
=
=
=
= port:PC23<3><default><default><default>
= port:PC24<2><default><default><default>

15 Display Initialization
15.1[disp_init]
Configuration Items
disp_init_enable=xx
disp_mode =xx

Description
Display initialization enable/disable
Display mode
0:screen0<screen0,fb0>
1:screen1<screen1,fb0>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
31
2011-11-4

Allwinner Technology CO., Ltd.

screen0_output_type=xx
screen0_output_mode =xx

screen1_output_typexx
screen1_output_mode=xx

fb0_framebuffer_num=xx

fb0_format=xx

fb0_pixel_sequence=xx
fb0_scaler_mode_enable=xx
fb1_framebuffer_num=xx
fb1_format=xx

fb1_pixel_sequence=xx
fb1_scaler_mode_enable=xx

2:two_diff_screen_diff_contents
<screen0,screen1,fb0,fb1>;
3:two_same_screen_diff_contets
<screen0,screen1,fb0>
4:two_diff_screen_same_contents
<screen0,screen1,fb0>
Screen 0 output type;
(0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)
Screen0 output mode
(used for tv/hdmi output, 0:480i 1:576i
2:480p 3:576p 4:720p50 5:720p60
6:1080i50
7:1080i60
8:1080p24
9:1080p50 10:1080p60 11:pal 14:ntsc)
Screen 1 output type;
(0:none; 1:lcd; 2:tv; 3:hdmi; 4:vga)
Screen1 output mode:
(used for tv/hdmi output, 0:480i 1:576i
2:480p 3:576p 4:720p50 5:720p60
6:1080i50
7:1080i60
8:1080p24
9:1080p50 10:1080p60 11:pal 14:ntsc)
fb0 buffer number: how many buffers are
divided to fb0, for example, if
double-buffer are used, set it to 2.
fb0 format:
(4:RGB655
5:RGB565
6:RGB556
7:ARGB1555 8:RGBA5551 9:RGB888
10:ARGB8888 12:ARGB4444)
fb0 pixel sequence(0:ARGB 1:BGRA
2:ABGR 3:RGBA)
fb0 scaler mode enable/disable
fb1 buffer number
fb1 format :
(4:RGB655
5:RGB565
6:RGB556
7:ARGB1555 8:RGBA5551 9:RGB888
10:ARGB8888 12:ARGB4444)
fb1 pixel sequence(0:ARGB 1:BGRA
2:ABGR 3:RGBA)
fb1scaler mode enable/disable

Configuration Examples
Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
32
2011-11-4

Allwinner Technology CO., Ltd.


[disp_init]
disp_init_enable
disp_mode
screen0_output_type
screen0_output_mode
screen1_output_type
screen1_output_mode
fb0_framebuffer_num
fb0_format
fb0_pixel_sequence
fb0_scaler_mode_enable
fb1_framebuffer_num
fb1_format
fb1_pixel_sequence
fb1_scaler_mode_enable

=1
=0
=1
=4
=1
=4
=2
= 10
=0
=0
=2
= 10
=0
=0

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
33
2011-11-4

Allwinner Technology CO., Ltd.

16 LCD Screen 0
16.1[lcd0_para]
Configuration Items
lcd_used=xx
lcd_x=xx
lcd_y =xx
lcd_dclk_freq=xx
lcd_pwm_not_used=xx

lcd_pwm_ch=xx
lcd_pwm_freqxx
lcd_pwm_pol =xx
lcd_if =xx
lcd_hbp=xx
lcd_ht=xx
lcd_vbp=xx
lcd_vt=xx
lcd_hv_if =xx
lcd_hv_smode=xx
lcd_hv_s888_if=xx
lcd_hv_syuv_if=xx
lcd_hv_vspw=xx
lcd_hv_hspw=xx
lcd_lvds_ch=xx
lcd_lvds_mode=xx
lcd_lvds_bitwidth=xx
lcd_lvds_io_cross=xx

Description
lcd0 interface enable/disable:
valid when all following setup are
enabled
lcd active width
lcd active height
pixel clock, in unit of MHZ
PWM enable/disable; 0: use PWM;1: not
use PWM( directly pull high/low PWM
IO).
PWM channel; 0:PWM0; 1:PWM1.
Generally LCD0 uses PWM0 and LCD1
uses PWM1.
pwm freq, in unit of HZ
pwm polarity
lcd interface(0:hv(sync+de); 1:8080; 2:ttl;
3:lvds)
hsync back porch
hsync total cycle
vsync back porch
vysnc total cycle *2
hv interface(0:hv parallel 1:hv serial)
serial i/f mode(0:RGB888 1:CCIR656)
serial RGB format
serial YUV format
vysnc plus width
hsync plus width
0:single channel; 1:dual channel
0:NS mode; 1:JEIDA mode
0:24bit; 1:18bit
0:normal; 1:pn cross

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
34
2011-11-4

Allwinner Technology CO., Ltd.


lcd_cpu_if=xx

lcd_frm=xx
lcd_io_cfg0=xx
lcd_gamma_correction_en=xx
lcd_gamma_tbl_0=xx
lcd_gamma_tbl_1=xx
lcd_gamma_tbl_255=xx
lcd_bl_en_used=xx
lcd_bl_en=xx
lcd_power_used=xx
lcd_power=xx
lcd_pwm_used=xx

lcd_pwm=xx
lcd_gpio_0=xx
lcd_gpio_1=xx
lcd_gpio_2=xx
lcd_gpio_3=xx
lcdd0=xx
lcdd1=xx
lcdd2=xx
lcdd3=xx
lcdd4=xx
lcdd5=xx
lcdd6=xx
lcdd7=xx
lcdd8=xx

cpu i/f mode(0:18bit; 1:16bit mode0;


2:16bit mode1; 3:16bit mode2;
4:16bit mode3; 5:9bit; 6:8bit 256K;
7:8bit 65K)
0:disable; 1:enable rgb666 dither;
2:enable rgb656 dither
lcd io inv
Gamma correction enable/disable: if to
enable, write the 256 gama parameters.
The
first
gamma
parameter,
(red<<16)||(gree<<8)||blue.
The
second
gamma
parameter,
(red<<16)||(gree<<8)||blue.
The
256th
gamma
parameter,
(red<<16)||(gree<<8)||blue.
LCD_BL_EN is used or not
GPIO configuration of LCD_BL_EN
LCD_VCC control pin is used or not
GPIO configuration of LCD_VCC
control
lcd PWM pin is used or not (always used,
and no modification is needed.)
GPIO configuration of lcd PWM (PWM0
uses PB02 and PWM1 uses PI03. No
modification is needed. )
SCL GPIO configuration of 2/3-wire I/F
SDA GPIO configuration 2/3-wire I/F
SCEN GPIO configuration of 2/3-wire
I/F
GPIO configuration of LCD RESET
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
35
2011-11-4

Allwinner Technology CO., Ltd.


lcdd9=xx
lcdd10=xx
lcdd11=xx
lcdd12=xx
lcdd13=xx
lcdd14=xx
lcdd15=xx
lcdd16=xx
lcdd17=xx
lcdd18=xx
lcdd19=xx
lcdd20=xx
lcdd21=xx
lcdd22=xx
lcdd23=xx
lcdclk=xx
lcdde=xx
lcdhsync=xx
lcdvsync=xx

Configuration Examples
[lcd0_para]
lcd_used
lcd_x
lcd_y
lcd_dclk_freq
lcd_pwm_freq
lcd_pwm_pol
lcd_srgb
lcd_swap
lcd_if
lcd_hbp
lcd_ht
lcd_vbp
lcd_vt

GPIO configuration of lcd data


GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd signalrelated
to the actual electic circuit
GPIO configuration of lcd signalrelated
to the actual electic circuit
GPIO configuration of lcd signalrelated
to the actual electic circuit
GPIO configuration of lcd signalrelated
to the actual electic circuit

=1
= 800
= 480
= 33
= 1000
=0
= 0x00202020
=0
=0
= 215
= 1055
= 34
= 1050

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
36
2011-11-4

Allwinner Technology CO., Ltd.


lcd_hv_if
lcd_hv_smode
lcd_hv_s888_if
lcd_hv_syuv_if
lcd_hv_vspw
lcd_hv_hspw
lcd_hv_lde_used
lcd_hv_lde_iovalue
lcd_ttl_stvh
lcd_ttl_stvdl
lcd_ttl_stvdp
lcd_ttl_ckvt
lcd_ttl_ckvh
lcd_ttl_ckvd
lcd_ttl_oevt
lcd_ttl_oevh
lcd_ttl_oevd
lcd_ttl_sthh
lcd_ttl_sthd
lcd_ttl_oehh
lcd_ttl_oehd
lcd_ttl_revd
lcd_ttl_datarate
lcd_ttl_revsel
lcd_ttl_datainv_en
lcd_ttl_datainv_sel
lcd_lvds_ch
lcd_lvds_mode
lcd_lvds_bitwidth
lcd_lvds_io_cross
lcd_cpu_if
lcd_cpu_da
lcd_frm
lcd_io_cfg0
lcd_io_cfg1
lcd_io_strength
lcd_bl_en_used
lcd_bl_en
lcd_power_used
lcd_power

=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
= 0x10000000
=0
=0
=1
= port:PH07<1><0><default><1>
=1
= port:PH08<1><0><default><1>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
37
2011-11-4

Allwinner Technology CO., Ltd.


lcd_pwm_used
lcd_pwm
lcd_gpio_0
lcd_gpio_1
lcd_gpio_2
lcd_gpio_3
lcdd0
lcdd1
lcdd2
lcdd3
lcdd4
lcdd5
lcdd6
lcdd7
lcdd8
lcdd9
lcdd10
lcdd11
lcdd12
lcdd13
lcdd14
lcdd15
lcdd16
lcdd17
lcdd18
lcdd19
lcdd20
lcdd21
lcdd22
lcdd23
lcdclk
lcdde
lcdhsync
lcdvsync

=1
= port:PB02<2><default><default><default>
=
=
=
=
= port:PD00<2><default><default><default>
= port:PD01<2><default><default><default>
= port:PD02<2><default><default><default>
= port:PD03<2><default><default><default>
= port:PD04<2><default><default><default>
= port:PD05<2><default><default><default>
= port:PD06<2><default><default><default>
= port:PD07<2><default><default><default>
= port:PD08<2><default><default><default>
= port:PD09<2><default><default><default>
= port:PD10<2><default><default><default>
= port:PD11<2><default><default><default>
= port:PD12<2><default><default><default>
= port:PD13<2><default><default><default>
= port:PD14<2><default><default><default>
= port:PD15<2><default><default><default>
= port:PD16<2><default><default><default>
= port:PD17<2><default><default><default>
= port:PD18<2><default><default><default>
= port:PD19<2><default><default><default>
= port:PD20<2><default><default><default>
= port:PD21<2><default><default><default>
= port:PD22<2><default><default><default>
= port:PD23<2><default><default><default>
= port:PD24<2><default><default><default>
= port:PD25<2><default><default><default>
= port:PD26<2><default><default><default>
= port:PD27<2><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
38
2011-11-4

Allwinner Technology CO., Ltd.

17 LCD Screen 1
17.1[lcd1_para]
Configuration Items
lcd_used=xx
lcd_x=xx
lcd_y =xx
lcd_dclk_freq=xx
lcd_pwm_not_used=xx

lcd_pwm_ch=xx
lcd_pwm_freqxx
lcd_pwm_pol =xx
lcd_if =xx
lcd_hbp=xx
lcd_ht=xx
lcd_vbp=xx
lcd_vt=xx
lcd_hv_if =xx
lcd_hv_smode=xx
lcd_hv_s888_if=xx
lcd_hv_syuv_if=xx
lcd_hv_vspw=xx
lcd_hv_hspw=xx
lcd_lvds_ch=xx
lcd_lvds_mode=xx
lcd_lvds_bitwidth=xx
lcd_lvds_io_cross=xx
lcd_cpu_if=xx

Description
Lcd1 interface enable/disable:
valid when all following setup are
enabled
lcd active width
lcd active height
pixel clock, in unit of MHz
PWM enable/disable; 0: use PWM; 1: not
use PWM (directly pull high/low PWM
IO).
PWM channel; 0:PWM0; 1:PWM1.
Generally LCD0 uses PWM0 and LCD1
uses PWM1.
pwm freq, in unit of Hz
pwm polarity
lcd interface(0:hv(sync+de); 1:8080; 2:ttl;
3:lvds)
hsync back porch
hsync total cycle
vsync back porch
vysnc total cycle *2
hv interface(0:hv parallel 1:hv serial)
serial i/f mode(0:RGB888 1:CCIR656)
serial RGB format
serial YUV format
vysnc plus width
hsync plus width
0:single channel; 1:dual channel
0:NS mode; 1:JEIDA mode
0:24bit; 1:18bit
0:normal; 1:pn cross
cpu i/f mode(0:18bit; 1:16bit mode0;
2:16bit mode1; 3:16bit mode2;

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
39
2011-11-4

Allwinner Technology CO., Ltd.

lcd_frm=xx
lcd_io_cfg0=xx
lcd_gamma_correction_en=xx
lcd_gamma_tbl_0=xx
lcd_gamma_tbl_1=xx
lcd_gamma_tbl_255=xx
lcd_bl_en_used=xx
lcd_bl_en=xx
lcd_power_used=xx
lcd_power=xx
lcd_pwm_used=xx

lcd_pwm=xx
lcd_gpio_0=xx
lcd_gpio_1=xx
lcd_gpio_2=xx
lcd_gpio_3=xx
lcdd0=xx
lcdd1=xx
lcdd2=xx
lcdd3=xx
lcdd4=xx
lcdd5=xx
lcdd6=xx
lcdd7=xx
lcdd8=xx
lcdd9=xx
lcdd10=xx

4:16bit mode3; 5:9bit; 6:8bit 256K;


7:8bit 65K)
0:disable; 1:enable rgb666 dither;
2:enable rgb656 dither
lcd io inv
Gamma correction enable/disable: if
enable, write the 256 gama parameters.
The
first
gamma
parameter,
(red<<16)||(gree<<8)||blue.
The
second
gamma
parameter,
(red<<16)||(gree<<8)||blue.
The
256th
gamma
parameter,
(red<<16)||(gree<<8)||blue.
LCD_BL_EN is used or not
GPIO configuration of LCD_BL_EN
LCD_VCC control pin is used or not
GPIO configuration of LCD_VCC
control
lcd PWM pin is used or not (always used,
and no modification is needed.)
GPIO configuration of lcd PWM (PWM0
uses PB02 and PWM1 uses PI03. No
modification is needed. )
SCL GPIO configuration of 2/3-wire I/F
SDA GPIO configuration 2/3-wire I/F
SCEN GPIO configuration of 2/3-wire
I/F
GPIO configuration of LCD RESET
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
40
2011-11-4

Allwinner Technology CO., Ltd.


lcdd11=xx
lcdd12=xx
lcdd13=xx
lcdd14=xx
lcdd15=xx
lcdd16=xx
lcdd17=xx
lcdd18=xx
lcdd19=xx
lcdd20=xx
lcdd21=xx
lcdd22=xx
lcdd23=xx
lcdclk=xx
lcdde=xx
lcdhsync=xx
lcdvsync=xx

Configuration Examples
[lcd1_para]
lcd_used
lcd_x
lcd_y
lcd_dclk_freq
lcd_pwm_freq
lcd_pwm_pol
lcd_srgb
lcd_swap
lcd_if
lcd_hbp
lcd_ht
lcd_vbp
lcd_vt
lcd_hv_if
lcd_hv_smode
lcd_hv_s888_if

GPIO configuration of lcd data


GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd data
GPIO configuration of lcd signalrelated
to the actual electic circuit
GPIO configuration of lcd signalrelated
to the actual electic circuit
GPIO configuration of lcd signalrelated
to the actual electic circuit
GPIO configuration of lcd signalrelated
to the actual electic circuit

=0
= 800
= 480
= 33
= 1000
=0
= 0x00202020
=0
=0
= 215
= 1055
= 34
= 1050
=0
=0
=0

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
41
2011-11-4

Allwinner Technology CO., Ltd.


lcd_hv_syuv_if
lcd_hv_vspw
lcd_hv_hspw
lcd_hv_lde_used
lcd_hv_lde_iovalue
lcd_ttl_stvh
lcd_ttl_stvdl
lcd_ttl_stvdp
lcd_ttl_ckvt
lcd_ttl_ckvh
lcd_ttl_ckvd
lcd_ttl_oevt
lcd_ttl_oevh
lcd_ttl_oevd
lcd_ttl_sthh
lcd_ttl_sthd
lcd_ttl_oehh
lcd_ttl_oehd
lcd_ttl_revd
lcd_ttl_datarate
lcd_ttl_revsel
lcd_ttl_datainv_en
lcd_ttl_datainv_sel
lcd_lvds_ch
lcd_lvds_mode
lcd_lvds_bitwidth
lcd_lvds_io_cross
lcd_cpu_if
lcd_cpu_da
lcd_frm
lcd_io_cfg0
lcd_io_cfg1
lcd_io_strength
lcd_bl_en_used
lcd_bl_en
lcd_power_used
lcd_power
lcd_pwm_used
lcd_pwm
lcd_gpio_0

=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
=0
= 0x10000000
=0
=0
=1
= port:PH07<1><0><default><1>
=1
= port:PH08<1><0><default><1>
=1
= port:PB02<2><default><default><default>
=

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
42
2011-11-4

Allwinner Technology CO., Ltd.


lcd_gpio_1
lcd_gpio_2
lcd_gpio_3
lcdd0
lcdd1
lcdd2
lcdd3
lcdd4
lcdd5
lcdd6
lcdd7
lcdd8
lcdd9
lcdd10
lcdd11
lcdd12
lcdd13
lcdd14
lcdd15
lcdd16
lcdd17
lcdd18
lcdd19
lcdd20
lcdd21
lcdd22
lcdd23
lcdclk
lcdde
lcdhsync
lcdvsync

=
=
=
= port:PD00<2><default><default><default>
= port:PD01<2><default><default><default>
= port:PD02<2><default><default><default>
= port:PD03<2><default><default><default>
= port:PD04<2><default><default><default>
= port:PD05<2><default><default><default>
= port:PD06<2><default><default><default>
= port:PD07<2><default><default><default>
= port:PD08<2><default><default><default>
= port:PD09<2><default><default><default>
= port:PD10<2><default><default><default>
= port:PD11<2><default><default><default>
= port:PD12<2><default><default><default>
= port:PD13<2><default><default><default>
= port:PD14<2><default><default><default>
= port:PD15<2><default><default><default>
= port:PD16<2><default><default><default>
= port:PD17<2><default><default><default>
= port:PD18<2><default><default><default>
= port:PD19<2><default><default><default>
= port:PD20<2><default><default><default>
= port:PD21<2><default><default><default>
= port:PD22<2><default><default><default>
= port:PD23<2><default><default><default>
= port:PD24<2><default><default><default>
= port:PD25<2><default><default><default>
= port:PD26<2><default><default><default>
= port:PD27<2><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
43
2011-11-4

Allwinner Technology CO., Ltd.

18 CSI
18.1[csi0_para]
Configuration Items
csi_used =xx
csi_twi_id =xx

csi_mname=xx

csi_twi_addr=xx

csi_if

csi_mode

csi_dev_qty

csi_vflip

csi_hflip

Description
csi0 enable/disable
csi0 TWI
csi0 module namewhich should be align
with the driver, and reference can be
made to readme in driver directory.
Options: ov7670gc0308gt2005hi704,
sp0338, mt9m112
csi0 IIC address: reference can be made
to Readme in driver directory
CSI interface timing:
0:8bit data linewith Hsync,Vsync
1:16bit data linewith Hsync,Vsync
2:24bit data linewith Hsync,Vsync
3:8bit data cable,BT656 embedded sync
signal, single-channel
4:8bit data cable, BT656 embedded sync
signal, dual-channel
5:8bit data cable, BT656 embedded sync
signal, quad-channel
csi receive buffer mode:
0: one csi for one buffer
1two csi for one buffer
Device quantity connected to csi.
Options:1, 2
Whether images received by csi are
upside down or not by default:
0normal
1upside down
Whether images received by csi is
left-right reversed or not:

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
44
2011-11-4

Allwinner Technology CO., Ltd.

csi_stby_mode

csi_iovdd

csi_avdd

csi_dvdd

csi_pckxx
csi_ck=xx
csi_hsync=xx
csi_vsync=xx
csi_d0=xx

0normal
1left-right reversed
modes when csi enters Standby
0 not disable the power, only pull
standby io
1disable the power, and pull standby io
csi io power source
axp20_pll: power comes from pmu
ldo3
axp20_hdmi: power comes from pmu
ldo4
: power comes from non-pmu ldo
Usually, it is configured as on EVB,
and axp20_pll in many solutions.
csi avdd power source
axp20_pll: power comes from pmu
ldo3
axp20_hdmi: power comes from pmu
ldo4
: power comes from non-pmu ldo
Usually, it is configured as on EVB,
and axp20_pll in many solutions.
csi dvdd power source
axp20_pll: power comes from pmu
ldo3
axp20_hdmi: power comes from pmu
ldo4
: power comes from non-pmu ldo
Usually, it is configured as on EVB
and in many solutions.
GPIO configuration of Clock from
modules to csi0
GPIO configuration of Clock from csi0 to
modules
GPIO configuration of Hsync signal from
modules to csi0
GPIO configuration of Vsync signal from
modules to csi0
GPIO configuration of 8/16-bit data from
modules to csi0

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
45
2011-11-4

Allwinner Technology CO., Ltd.


csi_d15=xx
Reset GPIO configuration of control
module: Reset is valid by default (high /
low valid depends on modules)
Power GPIO configuration of control
module: if csi_stby_mode is set to 0
csi_power_en is set to 1 by defaultif
csi_stby_mode is set to 1csi_power_en
is set to 0 by default.
Standby GPIO configuration of control
module: standby is valid by default (high
/low valid depends on modules)
If two modules are connected to one CSI
in the mean time, extra io control is
needed; Reset GPIO configuration of
control module: Reset is valid by default
(high / low valid depends on modules)
If two modules are connected to one CSI
in the mean time, extra io control is
needed; Power GPIO configuration of
control module: if csi_stby_mode is set to
0csi_power_en is set to 1 by defaultif
csi_stby_mode is set to 1csi_power_en
is set to 0 by default.
If two modules are connected to one CSI
in the mean time, extra io control is
needed; Standby GPIO configuration of
control module: standby is valid by
default (high /low valid depends on
modules)

csi_reset=xx

csi_power_en=xx

csi_stby=xx

csi_reset_b=xx

csi_power_en_b=xx

csi_stby_b=xx

Configuration Examples
[csi0_para]
csi_used
csi_twi_id
csi_mname
csi_twi_addr
csi_if
csi_mode
csi_dev_qty

=1
=1
= "gt2005"
= 0x78
=0
=0
=1

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
46
2011-11-4

Allwinner Technology CO., Ltd.


csi_vflip
csi_hflip
csi_stby_mode
csi_iovdd
csi_avdd
csi_dvdd
csi_pck
csi_ck
csi_hsync
csi_vsync
csi_d0
csi_d1
csi_d2
csi_d3
csi_d4
csi_d5
csi_d6
csi_d7
csi_d8
csi_d9
csi_d10
csi_d11
csi_d12
csi_d13
csi_d14
csi_d15
csi_reset
csi_power_en
csi_stby
csi_reset_b
csi_power_en_b
csi_stby_b

=0
=0
=1
= "axp20_pll"
= "axp20_pll"
= ""
= port:PE00<3><default><default><default>
= port:PE01<3><default><default><default>
= port:PE02<3><default><default><default>
= port:PE03<3><default><default><default>
= port:PE04<3><default><default><default>
= port:PE05<3><default><default><default>
= port:PE06<3><default><default><default>
= port:PE07<3><default><default><default>
= port:PE08<3><default><default><default>
= port:PE09<3><default><default><default>
= port:PE10<3><default><default><default>
= port:PE11<3><default><default><default>
=
=
=
=
=
=
=
=
= port:PH13<1><default><default><0>
= port:PH16<1><default><default><0>
= port:PH18<1><default><default><0>
=
=
=

18.2[csi1_para]
Configuration Items
csi_used =xx
csi_twi_id =xx

Description
csi1 enable/disable
csi1 TWI

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
47
2011-11-4

Allwinner Technology CO., Ltd.


csi_mname=xx

csi_twi_addr=xx

csi_if

csi_mode
csi_dev_qty

csi_vflip

csi_hflip

csi_stby_mode

csi_iovdd

csi_avdd

Csi1 module namewhich should be align with the


driver, and reference can be made to readme in
driver directory. Options: ov7670 gc0308
gt2005hi704, sp0338, mt9m112
CSI1 TWI address: reference can be made to
Readme in driver directory
Interface timing of the modules being used
0:8bit data cablewith Hsync,Vsync
1:16bit data cablewith Hsync,Vsync
2:24bit data cablewith Hsync,Vsync
3:8bit data cable,BT656 embedded sync signal,
single-channel
4:8bit data cable, BT656 embedded sync signal,
dual-channel
5:8bit data cable, BT656 embedded sync signal,
quad-channel
csi receive buffer mode:
0: one csi for one buffer
1two csi for one buffer
Device quantity connected to csi. Options:1, 2
Whether images received by csi are upside down
or not by default:
0normal
1upside down
Whether images received by csi is left-right
reversed or not:
0normal
1left-right reversed
modes when csi enters Standby
0not disable the power, only pull standby io
1disable the power, and pull standby io
csi io power source
axp20_pll: power comes from pmu ldo3
axp20_hdmi: power comes from pmu ldo4
: power comes from non-pmu ldo
Usually, it is configured as on EVB, and
axp20_hdmi in many solutions.
csi avdd power source
axp20_pll: power comes from pmu ldo3
axp20_hdmi: power comes from pmu ldo4

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
48
2011-11-4

Allwinner Technology CO., Ltd.

csi_dvdd

csi_pckxx
csi_ck=xx
csi_hsync=xx
csi_vsync=xx
csi_d0=xx

csi_d23=xx
csi_reset=xx

csi_power_en=xx

csi_stby=xx

csi_reset_b=xx

csi_power_en_b=xx

csi_stby_b=xx

: power comes from non-pmu ldo


Usually, it is configured as on EVB, and
axp20_hdmi in many solutions.
csi dvdd power source
axp20_pll: power comes from pmu ldo3
axp20_hdmi: power comes from pmu ldo4
: power comes from non-pmu ldo
Usually, it is configured as on EVB and in many
solutions.
GPIO configuration of Clock from modules to csi1
GPIO configuration of Clock from csi1 to modules
GPIO configuration of Hsync signal from modules
to csi1
GPIO configuration of Vsync signal from modules
to csi1
GPIO configuration of 8/16/24-bit data from
modules to csi0
Reset GPIO configuration of control module:
Reset is valid by default (high / low valid depends
on modules)
Power GPIO configuration of control module: if
csi_stby_mode is set to 0csi_power_en is set to 1
by default if csi_stby_mode is set to 1
csi_power_en is set to 0 by default.
Standby GPIO configuration of control module:
standby is valid by default (high /low valid
depends on modules)
If two modules are connected to one CSI in the
mean time, extra io control is needed; Reset GPIO
configuration of control module: Reset is valid by
default (high / low valid depends on modules)
If two modules are connected to one CSI in the
mean time, extra io control is needed; Power GPIO
configuration of control module: if csi_stby_mode
is set to 0csi_power_en is set to 1 by defaultif
csi_stby_mode is set to 1csi_power_en is set to 0
by default.
If two modules are connected to one CSI in the
mean time, extra io control is needed; Standby

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
49
2011-11-4

Allwinner Technology CO., Ltd.


GPIO configuration of control module: standby is
valid by default (high /low valid depends on
modules)
Configuration Examples
[csi1_para]
csi_used
csi_mname
csi_twi_id
csi_twi_addr
csi_if
csi_mode
csi_dev_qty
csi_vflip
csi_hflip
csi_stby_mode
csi_iovdd
csi_avdd
csi_dvdd
csi_pck
csi_ck
csi_hsync
csi_vsync
csi_d0
csi_d1
csi_d2
csi_d3
csi_d4
csi_d5
csi_d6
csi_d7
csi_d8
csi_d9
csi_d10
csi_d11
csi_d12
csi_d13
csi_d14
csi_d15
csi_d16

=1
= "gc0308"
=1
= 0x42
=0
=0
=1
=0
=0
=1
= "axp20_hdmi"
= "axp20_hdmi"
= ""
= port:PG00<3><default><default><default>
= port:PG01<3><default><default><default>
= port:PG02<3><default><default><default>
= port:PG03<3><default><default><default>
= port:PG04<3><default><default><default>
= port:PG05<3><default><default><default>
= port:PG06<3><default><default><default>
= port:PG07<3><default><default><default>
= port:PG08<3><default><default><default>
= port:PG09<3><default><default><default>
= port:PG10<3><default><default><default>
= port:PG11<3><default><default><default>
=
=
=
=
=
=
=
=
=

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
50
2011-11-4

Allwinner Technology CO., Ltd.


csi_d17
csi_d18
csi_d19
csi_d20
csi_d21
csi_d22
csi_d23
csi_reset
csi_power_en
csi_stby
csi_reset_b
csi_power_en_b
csi_stby_b

=
=
=
=
=
=
=
= port:PH14<1><default><default><0>
= port:PH17<1><default><default><0>
= port:PH19<1><default><default><1>
=
=
=

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
51
2011-11-4

Allwinner Technology CO., Ltd.

19 TV Out/In
19.1[tvout_para]
Configuration Items
tvout_used =xx
tvout_channel_num=xx
tv_en =xx

Description

19.2[tvin_para]
Configuration Items
tvin_used =xx
tvin_channel_num=xx

Description

20 SATA
20.1[sata_para]
Configuration Items
sata_used=xx
sata_power_en=xx

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
52
2011-11-4

Description

Allwinner Technology CO., Ltd.

21 SD / MMC
21.1[mmc0_para]
Configuration Items
sdc_used=xx
sdc_detmode=xx

bus_width=xx
sdc_d1=xx
sdc_d0xx
sdc_clk=xx
sdc_cmd=xx
sdc_d3=xx
sdc_d2=xx
sdc_det=xx
sdc_use_wp=xx
sdc_wp=xx
Configuration Examples
[mmc0_para]
sdc_used
sdc_detmode
bus_width
sdc_d1
sdc_d0
sdc_clk
sdc_cmd
sdc_d3
sdc_d2
sdc_det
sdc_use_wp
sdc_wp

Description
SDC enable/disable; 1: enable0: disable
Detect mode:1--gpio2--data3 detect
3--no detect, and the card is always
there(no plug)4 - manual mode(from
proc file system node)
Bit width1--1bit4--4bit
GPIO configuration of SDC DATA1
GPIO configuration of SDC DATA0
GPIO configuration of SDC CLK
GPIO configuration of SDC CMD
GPIO configuration of SDC DATA3
GPIO configuration of SDC DATA2
GPIO configuration of SDC DET
SDC write protection 1--enable
0--disable
GPIO configuration of SDC WP

=1
=1
=4
= port:PF0<2><1><default><default>
= port:PF1<2><1><default><default>
= port:PF2<2><1><default><default>
= port:PF3<2><1><default><default>
= port:PF4<2><1><default><default>
= port:PF5<2><1><default><default>
= port:PH1<0><1><default><default>
=0
=

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
53
2011-11-4

Allwinner Technology CO., Ltd.


21.2[mmc1_para]
Configuration Items
sdc_used=xx

sdc_detmode=xx

bus_width=xx
sdc_d1=xx
sdc_d0xx
sdc_clk=xx
sdc_cmd=xx
sdc_d3=xx
sdc_d2=xx
sdc_det=xx
sdc_use_wp=xx
sdc_wp=xx
Configuration Examples
[mmc1_para]
sdc_used
sdc_detmode
bus_width
sdc_cmd
sdc_clk
sdc_d0
sdc_d1
sdc_d2
sdc_d3
sdc_det
sdc_use_wp
sdc_wp

Description
SDC enable/disable; 1: enable0: disable
Detect mode:1--gpio2--data3 detect
3--no detect, and the card is always
there(no plug)4 - manual mode(from
proc file system node)
Bit width1--1bit4--4bit
GPIO configuration of SDC DATA1
GPIO configuration of SDC DATA0
GPIO configuration of SDC CLK
GPIO configuration of SDC CMD
GPIO configuration of SDC DATA3
GPIO configuration of SDC DATA2
GPIO configuration of SDC DET
SDC write protection 1--enable
0--disable
GPIO configuration of SDC WP

=1
=1
=4
= port:PH22<5><1><default><default>
= port:PH23<5><1><default><default>
= port:PH24<5><1><default><default>
= port:PH25<5><1><default><default>
= port:PH26<5><1><default><default>
= port:PH27<5><1><default><default>
= port:PH2<0><1><default><default>
=0
=

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
54
2011-11-4

Allwinner Technology CO., Ltd.


21.3[mmc2_para]
Configuration Items
sdc_used=xx

sdc_detmode=xx

bus_width=xx
sdc_d1=xx
sdc_d0xx
sdc_clk=xx
sdc_cmd=xx
sdc_d3=xx
sdc_d2=xx
sdc_det=xx
sdc_use_wp=xx
sdc_wp=xx
Configuration Examples
[mmc2_para]
sdc_used
sdc_detmode
bus_width
sdc_cmd
sdc_clk
sdc_d0
sdc_d1
sdc_d2
sdc_d3
sdc_det
sdc_use_wp
sdc_wp

Description
SDC enable/disable; 1: enable0: disable
Detect mode:1--gpio2--data3 detect
3--no detect, and the card is always
there(no plug)4 - manual mode(from
proc file system node)
Bit width1--1bit4--4bit
GPIO configuration of SDC DATA1
GPIO configuration of SDC DATA0
GPIO configuration of SDC CLK
GPIO configuration of SDC CMD
GPIO configuration of SDC DATA3
GPIO configuration of SDC DATA2
GPIO configuration of SDC DET
SDC write protection 1--enable
0--disable
GPIO configuration of SDC WP

=1
=1
=4
= port:PH22<5><1><default><default>
= port:PH23<5><1><default><default>
= port:PH24<5><1><default><default>
= port:PH25<5><1><default><default>
= port:PH26<5><1><default><default>
= port:PH27<5><1><default><default>
= port:PH2<0><1><default><default>
=0
=

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
55
2011-11-4

Allwinner Technology CO., Ltd.


21.4[mmc3_para]
Configuration Items
sdc_used=xx

sdc_detmode=xx

bus_width=xx
sdc_d1=xx
sdc_d0xx
sdc_clk=xx
sdc_cmd=xx
sdc_d3=xx
sdc_d2=xx
sdc_det=xx
sdc_use_wp=xx
sdc_wp=xx
Configuration Examples
[mmc3_para]
sdc_used
sdc_detmode
bus_width
sdc_cmd
sdc_clk
sdc_d0
sdc_d1
sdc_d2
sdc_d3
sdc_det
sdc_use_wp
sdc_wp

Description
SDC enable/disable; 1: enable0:disable
Detect mode:1--gpio2--data3 detect
3--no detect, and the card is always
there(no plug)4 - manual mode(from
proc file system node)
Bit width1-1bit4-4bit
GPIO configuration of SDC DATA1
GPIO configuration of SDC DATA0
GPIO configuration of SDC CLK
GPIO configuration of SDC CMD
GPIO configuration of SDC DATA3
GPIO configuration of SDC DATA2
GPIO configuration of SDC DET
SDC write protection 1--enable
0--disable
GPIO configuration of SDC WP

=1
=1
=4
= port:PH22<5><1><default><default>
= port:PH23<5><1><default><default>
= port:PH24<5><1><default><default>
= port:PH25<5><1><default><default>
= port:PH26<5><1><default><default>
= port:PH27<5><1><default><default>
= port:PH2<0><1><default><default>
=0
=

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
56
2011-11-4

Allwinner Technology CO., Ltd.

22 Memory Stick
22.1[ms_para]
Configuration Items
ms_used =xx
ms_bs=xx
ms_clk=xx
ms_d0=xx
ms_d1xx
ms_d2=xx
ms_d3=xx
ms_det=xx
Configuration Examples
[ms_para]
ms_used
ms_bs
ms_clk
ms_d0
ms_d1
ms_d2
ms_d3
ms_det

Description
MS enable/disable1--enable0--disable
GPIO configuration of MS BS
GPIO configuration of MS CLK
GPIO configuration of MS DATA0
GPIO configuration of MS DATA1
GPIO configuration of MS DATA2
GPIO configuration of MS DATA3
GPIO configuration of MS DET

=0
= port:PH06<5><default><default><default>
= port:PH07<5><default><default><default>
= port:PH08<5><default><default><default>
= port:PH09<5><default><default><default>
= port:PH10<5><default><default><default>
= port:PH11<5><default><default><default>
=

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
57
2011-11-4

Allwinner Technology CO., Ltd.

23 SIM Card
23.1[smc_para]
Configuration Items
smc_used =xx
smc_rst=xx
smc_vppen=xx
smc_vppp=xx
smc_detxx
smc_vccen=xx
smc_sck=xx
smc_sda=xx

Description

24 PS/2Mouse
24.1[ps2_0_para]
Configuration Items
ps2_used=xx
ps2_scl =xx
ps2_sda=xx
Configuration Examples
[ps2_0_para]
ps2_used
ps2_scl
ps2_sda

Description
PS/2enable/disable1--enable0--disable
GPIO configuration of PS/2 SCK
GPIO configuration of PS/2 SDA

=0
= port:PI20<2><1><default><default>
= port:PI21<2><1><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
58
2011-11-4

Allwinner Technology CO., Ltd.


24.2[ps2_1_para]
Configuration Items
ps2_used=xx
ps2_scl =xx
ps2_sda=xx
Configuration Examples
[ps2_1_para]
ps2_used
ps2_scl
ps2_sda

Description
PS/2 enable/disable1--enable0--disable
GPIO configuration of PS/2 SCK
GPIO configuration of PS/2 SDA

=0
= port:PI20<2><1><default><default>
= port:PI21<2><1><default><default>

25 CAN
25.1[can_para]
Configuration Items
can_used=xx
can_tx=xx
can_rx=xx
Configuration Examples
[can_para]
can_used
can_tx
can_rx

Description
CAN enable/disable 1--enable
0--disable
GPIO configuration of CANT TX
GPIO configuration of CAN RX

=0
= port:PA16<3><default><default><default>
= port:PA17<3><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
59
2011-11-4

Allwinner Technology CO., Ltd.

26 Key Matrix
26.1[keypad_para]
Configuration Items
kp_used=xx
kp_in_size=xx
kp_out_size=xx
kp_in0=xx
kp_in1xx
kp_in2=xx
kp_in3=xx
kp_in4=xx
kp_in5=xx
kp_in6=xx
kp_in7=xx
kp_out0=xx
kp_out1=xx
kp_out2=xx
kp_out3=xx
kp_out4=xx
kp_out5=xx
kp_out6=xx
kp_out7=xx
Configuration Examples
[keypad_para]
kp_used
kp_in_size
kp_out_size
kp_in0
kp_in1
kp_in2
kp_in3
kp_in4
kp_in5

Description
KEYPAD enable/disable;
1: enable0: disable
KEYPAD rank width
KEYPAD row width
GPIO configuration of KEYPAD IN0
GPIO configuration of KEYPAD IN1
GPIO configuration of KEYPAD IN2
GPIO configuration of KEYPAD IN3
GPIO configuration of KEYPAD IN4
GPIO configuration of KEYPAD IN5
GPIO configuration of KEYPAD IN6
GPIO configuration of KEYPAD IN7
GPIO configuration of KEYPAD OUT0
GPIO configuration of KEYPAD OUT1
GPIO configuration of KEYPAD OUT2
GPIO configuration of KEYPAD OUT3
GPIO configuration of KEYPAD OUT4
GPIO configuration of KEYPAD OUT5
GPIO configuration of KEYPAD OUT6
GPIO configuration of KEYPAD OUT7

=0
=8
=8
= port:PH08<4><1><default><default>
= port:PH09<4><1><default><default>
= port:PH10<4><1><default><default>
= port:PH11<4><1><default><default>
= port:PH14<4><1><default><default>
= port:PH15<4><1><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
60
2011-11-4

Allwinner Technology CO., Ltd.


kp_in6
kp_in7
kp_out0
kp_out1
kp_out2
kp_out3
kp_out4
kp_out5
kp_out6
kp_out7

= port:PH16<4><1><default><default>
= port:PH17<4><1><default><default>
= port:PH18<4><1><default><default>
= port:PH19<4><1><default><default>
= port:PH22<4><1><default><default>
= port:PH23<4><1><default><default>
= port:PH24<4><1><default><default>
= port:PH25<4><1><default><default>
= port:PH26<4><1><default><default>
= port:PH27<4><1><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
61
2011-11-4

Allwinner Technology CO., Ltd.

27 USB
27.1[usbc0]
Configuration Items
usb_used =xx

usb_port_type =xx
usb_detect_type=xx
usb_id_gpio=xx
usb_det_vbus_gpioxx

usb_drv_vbus_gpio=xx

usb_host_init_state=xx

Configuration Examples
[usbc0]
usb_used
usb_port_type
usb_detect_type
usb_id_gpio
usb_det_vbus_gpio
usb_drv_vbus_gpio
usb_host_init_state

Description
USB enable/disable;
1:enable, 0:disable. This flag is only valid
to specific USB controller module.
USB port type;
0device only 1host only 2OTG
USB detect type:
0no detect
1vbus/id detect
USB ID pin configuration: please refer to
Configuration and GPIO.doc.
USB DET_VBUS pin configuration: please
refer to Configuration and GPIO.doc.
USB DRY_VBUS pin configuration:
please refer to Configuration and
GPIO.doc.
Host initialization state in host only mode:
0usb doesnt work after initialization;
1usb works after initialization.

=1
=2
=1
= port:PH4<0><1><default><default>
= port:PH5<0><0><default><default>
= port:PB9<1><0><default><0>
=0

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
62
2011-11-4

Allwinner Technology CO., Ltd.


27.2[usbc1]
Configuration Items
usb_used =xx

usb_port_type =xx
usb_detect_type=xx
usb_id_gpio=xx

usb_det_vbus_gpioxx

usb_drv_vbus_gpio=xx

usb_host_init_state=xx

Configuration Examples
[usbc1]
usb_used
usb_port_type
usb_detect_type
usb_id_gpio
usb_det_vbus_gpio
usb_drv_vbus_gpio
usb_host_init_state

Description
USB
enable/disable:
1--enable,
0--disable. This flag is only valid to
specific USB controller module.
USB port type;
0device only 1host only 2OTG
USB detect type:
0no detect 1vbus/id detect
USB ID pin configuration: please refer to
Configuration and GPIO.doc.
USB DET_VBUS pin configuration:
please refer to Configuration and
GPIO.doc.
USB DRY_VBUS pin configuration:
please refer to Configuration and
GPIO.doc.
Host initialization state in host only
mode:
0usb doesnt work after initialization;
1usb works after initialization.

=1
=1
=0
=
=
= port:PH6<1><0><default><0>
=1

27.3[usbc2]
Configuration Items
usb_used =xx

USB

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
63
2011-11-4

Description
enable/disable:

1--enable,

Allwinner Technology CO., Ltd.

usb_port_type =xx
usb_detect_type=xx
usb_id_gpio=xx

usb_det_vbus_gpioxx

usb_drv_vbus_gpio=xx

usb_host_init_state=xx

Configuration Examples
[usbc2]
usb_used
usb_port_type
usb_detect_type
usb_id_gpio
usb_det_vbus_gpio
usb_drv_vbus_gpio
usb_host_init_state

0--disable. This flag is only valid to


specific USB controller module.
USB port type;
0device only 1host only 2OTG
USB detect type:
0no detect 1vbus/id detect
USB ID pin configuration: please refer to
Configuration and GPIO.doc.
USB DET_VBUS pin configuration:
please refer to Configuration and
GPIO.doc.
USB DRY_VBUS pin configuration:
please refer to Configuration and
GPIO.doc.
Host initialization state in host only
mode:
0usb doesnt work after initialization;
1usb works after initialization.

=1
=1
=0
=
=
= port:PH3<1><0><default><0>
=1

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
64
2011-11-4

Allwinner Technology CO., Ltd.

28 USB Device
28.1[usb_feature]
Configuration Items
vendor_id=xx
mass_storage_id =xx
adb_id =xx
manufacturer_name=xx
product_namexx
serial_number=xx
Configuration Examples
[usb_feature]
vendor_id
mass_storage_id
adb_id
manufacturer_name
product_name
serial_number

Description
USB vendor ID
U-disk ID
USB adjust bridge ID
USB manufacturer name
USB product name
USB serial number

= 0x18D1
= 0x0001
= 0x0002
= "USB Developer"
= "Android"
= "20080411"

28.2[msc_feature]
Configuration Items
vendor_name=xx
product_name=xx
release=xx
luns=xx

Configuration Examples
[msc_feature]
vendor_name
product_name

Description
U-disk vendor name
U-disk product name
Release version
U-disk logical unit number (U-disk letter
number in PC)

= "USB 2.0"
= "USB Flash Driver"

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
65
2011-11-4

Allwinner Technology CO., Ltd.


release
luns

= 100
=2

29 G-Sensor
29.1[g-sensor_para]
Configuration Items
gsensor_used=xx
gsenser_name =xx
gsensor_twi_id =xx
gsensor_twi_addr=xx
gsensor_int1xx
gsensor_int2=xx
Configuration Examples
[gsensor_para]
gsensor_used
gsenser_name
gsensor_twi_id
gsensor_twi_addr
gsensor_int1
gsensor_int2

Description
G-sensor is used or not
The driver name is G-sensor, and the
EVB1.2 supports bma250 and mxc622x.
TWI ID;
0TWI0;1:TWI1;2:TWI2
TWI address
GPIO configuration of interrupt1
GPIO configuration of interrupt2

=1
= "bma250"
=1
= 0x18
= port: PH00<6><1><default><default>
= port: PI10<6><1><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
66
2011-11-4

Allwinner Technology CO., Ltd.

30 GPS
30.1[gps_para]
Configuration Items
gps_used=xx
gps_spi_id =xx
gps_spi_cs_num =xx
gps_lradc=xx
gps_clkxx
gps_sign=xx
gps_mag
gps_vcc_en
gps_osc_en
gps_rx_en

Description

31 WIFI (SDIO)
31.1[sdio_wifi_para]
Configuration Items
sdio_wifi_used=xx
sdio_wifi_sdc_id=xx
sdio_wifi_mod_sel=xx
swl_n20_shdn=xx
swl_n20_host_wakeup=xx
swl_n20_vdd_enxx
swl_n20_vcc_en =xx

Description
SDIO WIFI enable/disable;
1: enable0: disable
SDIO WIFI SDC ID
sdio_wifi select: 0-none,1-swl-n20(wifi), 2-usi
bm-01(wifi+bt+fm), 3-ar6302qfn, 4-apm6xxx,
5-swb b23(wifi+bt+fm)
GPIO configuration of swl_n20_shdn
GPIO configuration of swl_n20_host_wakeup
GPIO configuration of swl_n20_vdd_en
GPIO configuration of swl_n20_vcc_en

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
67
2011-11-4

Allwinner Technology CO., Ltd.


Configuration Examples
[sdio_wifi_para]
sdio_wifi_used
sdio_wifi_sdc_id
sdio_wifi_mod_sel
sdio_wifi_shdn
sdio_wifi_host_wakeup
sdio_wifi_vdd_en
sdio_wifi_vcc_en

=1
=3
=1
= port:PH09<1><default><default><0>
= port:PH10<1><default><default><1>
= port:PH11<1><default><default><0>
= port:PH12<1><default><default><0>

32 WIFI (USB)
32.1[usb_wifi_para]
Configuration Items
usb_wifi_used=xx

usb_wifi_usbc_num=xx

Configuration Examples
[usb_wifi_para]
usb_wifi_used
usb_wifi_usbc_num

Description
USB Wifi enable/disable
1enable; 0:disable
USB controller number of USB Wifi
xx=012, which should be used in
conjuction
with
USB
controller
configuration usb_host_init_state, for
example, if xx=2, the [USBC2]
usb_host_init_state should be 0.

=0
=2

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
68
2011-11-4

Allwinner Technology CO., Ltd.

33 3G
33.1[3g_para]
Configuration Items
3g_used=xx
3g_usbc_num=xx
3g_uart_num=xx
3g_pwr=xx
3g_wakeupxx
3g_int =xx

Description

34 gyroscope
34.1[gy_para]
Configuration Items
gy_used=xx
gy_twi_id=xx
gy_twi_addr=xx
gy_int1=xx
gy_int2xx

Description
Gyroscope is used or not
Gyroscope TWI ID
Gyroscope TWI address
Gyroscope interrupr1
Gyroscope interrupt2

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
69
2011-11-4

Allwinner Technology CO., Ltd.

35 Light Sensor
35.1[ls_para]
Configuration Items
ls_used =xx
ls_twi_id=xx
ls_twi_addr =xx
ls_int=xx

Description
Light sensor is used or not
Light sensor TWI ID
Light sensor TWI address
Light sensor interrupt

36 Compass
36.1[compass_para]
Configuration Items
compass_used=xx
compass_twi_id=xx
compass_twi_addr =xx
compass_int =xx

Description
Compass is used or not
Compass TWI ID
Compass TWI address
Compass interrupt

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
70
2011-11-4

Allwinner Technology CO., Ltd.

37 Bluetooth
37.1 [bt_para]
Configuration Items
bt_used=xx
bt_uart_id=xx
bt_wakeup =xx
bt_gpio=xx
bt_rst=xx
Configuration Examples
[bt_para]
bt_used
bt_uart_id
bt_wakeup
bt_gpio
bt_rst

Description
Bluetooth enable/disable
1:enable; 0:disable
Bluetooth UART controller ID
GPIO configuration of Bluetooth wakeup
Bluetooth GPIO configuration
GPIO configuration of Bluetooth RESET

=0
=2
= port:PI20<1><default><default><default>
= port:PI21<1><default><default><default>
= port:PB05<1><default><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
71
2011-11-4

Allwinner Technology CO., Ltd.

38 I2S
38.1[i2s_para]
Configuration Items
i2s_used=xx
i2s_channel=xx
i2s_mclk =xx
i2s_bclk=xx
i2s_lrclk =xx
i2s_dout0
i2s_dout1
i2s_dout2
i2s_dout3
i2s_din
Configuration Examples
i2s_used
i2s_channel
i2s_mclk
i2s_bclk
i2s_lrclk
i2s_dout0
i2s_dout1
i2s_dout2
i2s_dout3
i2s_din

Description
I2S enable/disable;
0: disabled, 1: enable
Channel control
GPIO configuration of I2S MCLK
GPIO configuration of I2S BCLK
GPIO configuration of I2S LRCK
GPIO configuration of I2S out0
Not used now
Not used now
Not used now
GPIO configuration of I2S IN

=0
=2
= port:PB5<2><1><default><default>
= port:PB6<2><1><default><default>
= port:PB7<2><1><default><default>
= port:PB8<2><1><default><default>
=
=
=
= port:PB12<2><1><default><default>

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
72
2011-11-4

Allwinner Technology CO., Ltd.

39 S/PDIF
39.1[spdif_para]
Configuration Items
spdif_used=xx
spdif_mclk =xx
spdif_dout =xx
spdif_din=xx

Description
SPDIF is used or not
GPIO configuration of SPDIF MCLK
GPIO configuration of SPDIF out
GPIO configuration of SPDIF IN

40 Audio
40.1[audio_para]
Configuration Items
audio_used =xx
audio_pa_ctrl=xx
audio_lr_change=xx

Configuration Examples
[audio_para]
audio_used
audio_pa_ctrl
audio_lr_change=xx

Description
Audio loudspeaker enable/disable;
1enabledefault0disable
Audio GPIO control
Sound track reverse;
1: reverse, 0: not reverse

=1
= port:PH15<1><default><default><0>
=0

41 IR
41.1[ir_para]
Configuration Items
Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
73
2011-11-4

Description

Allwinner Technology CO., Ltd.


ir_used=xx
ir0_rx =xx

IR is used or not
IR RX

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
74
2011-11-4

Allwinner Technology CO., Ltd.

42 PMU
42.1[pmu_para]
Configuration Items
pmu_used=xx
pmu_twi_addr=xx
pmu_twi_id=xx
pmu_irq_id=xx
pmu_battery_rdc=xx
pmu_battery_cap=xx

pmu_init_chgcur=xx

pmu_suspend_chgcur=xx

pmu_resume_chgcur=xx

pmu_shutdown_chgcur=xx

pmu_init_chgvol=xx
pmu_init_chgend_rate=xx
pmu_init_chg_enabled=xx

Description
Pmu enable/disable;
0disable1enable
Pmu TWI address
Pmu TWI ID;
0twi01twi12twi2
Pmu interrupt ID;
0NMI1INT1, 2INT2
Battery resistencem
Battery capacitymAh
Startup charge currentmA
300/400/500/600/700/800/900
/1000/1100/1200/1300
/1400/1500/1600/1700/1800
Suspend charge currentmA
300/400/500/600/700/800/900
/1000/1100/1200/1300
/1400/1500/1600/1700/1800
Resume charge currentmA
300/400/500/600/700/800/900
/1000/1100/1200/1300
/1400/1500/1600/1700/1800
Shurdown charge currentmA
300/400/500/600/700/800/900
/1000/1100/1200/1300
/1400/1500/1600/1700/1800
Target
charge
voltage mV
4100/4150/4200/4360
Charge end current rate%1015
Charge enable/disable;
0disable1enable

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
75
2011-11-4

Allwinner Technology CO., Ltd.


pmu_init_adc_freq=xx
pmu_init_adc_freqc=xx
pmu_init_chg_pretime=xx
pmu_init_chg_csttime=xx

pmu_bat_para1=xx

pmu_bat_para2=xx

pmu_bat_para3=xx

pmu_bat_para4=xx

pmu_bat_para5=xx

pmu_bat_para6=xx

pmu_bat_para7=xx

pmu_bat_para8=xx

pmu_bat_para9=xx

pmu_bat_para10=xx

pmu_bat_para11=xx
pmu_bat_para12=xx

ADC sample rateHz25/50/100/200


Coulomb sample rateHz25/50/100/200
Precharge timeoutmin40/50/60/70
Constant current charge timeout, min
360/480/600/720
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
76
2011-11-4

Allwinner Technology CO., Ltd.

pmu_bat_para13=xx

pmu_bat_para14=xx

pmu_bat_para15=xx

pmu_bat_para16=xx

pmu_usbvol_limit=xx
pmu_usbvol=xx
pmu_usbcur_limit=xx
pmu_usbcur=xx
pmu_pwroff_vol=xx

pmu_pwron_vol=xx
pmu_pekoff_time=xx
pmu_pekoff_en=xx
pmu_peklong_time=xx
pmu_pekon_time=xx
pmu_pwrok_time=xx
pmu_pwrnoe_time=xx
pmu_intotp_en=xx

please refer to the Battery Parameter Test


Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Zero-load battery voltage parameter, %:
please refer to the Battery Parameter Test
Guide.
Recommend: Fixed to be 100.
USB voltage limit;
0: disable, 1: enable
USB limit voltagemV
4000/4100/4200/4300/4400/4500/4600/4700
USB current limit;
0: disable, 1: enable
USB limit currentmA100/500/900
Hardware protection voltage at startupmV
2600/2700/2800/2900/3000/3100/3200/3300
Hardware protection voltage during power
on, mV2600/2700/2800/2900/3000/3100/
3200/3300
Power off timems4000/6000/8000/10000
Power off;
0: disable, 1: enable
Long-press interrupt time ms
1000/1500/2000/2500
Power on timems128/1000/2000/3000
Pwrok delay after the power startupms
8/64
Power off delay after n_oe changes from
low to highms128/1000/2000/3000
Over-temperature protection;
0disable1enable

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
77
2011-11-4

Allwinner Technology CO., Ltd.


Configuration Examples
pmu_used
pmu_twi_addr
pmu_twi_id
pmu_irq_id
pmu_battery_rdc
pmu_battery_cap
pmu_init_chgcur
pmu_suspend_chgcur
pmu_resume_chgcur
pmu_shutdown_chgcur
pmu_init_chgvol
pmu_init_chgend_rate
pmu_init_chg_enabled
pmu_init_adc_freq
pmu_init_adc_freqc
pmu_init_chg_pretime
pmu_init_chg_csttime
pmu_bat_para1
pmu_bat_para2
pmu_bat_para3
pmu_bat_para4
pmu_bat_para5
pmu_bat_para6
pmu_bat_para7
pmu_bat_para8
pmu_bat_para9
pmu_bat_para10
pmu_bat_para11
pmu_bat_para12
pmu_bat_para13
pmu_bat_para14
pmu_bat_para15
pmu_bat_para16
pmu_usbvol_limit
pmu_usbvol
pmu_usbcur_limit
pmu_usbcur
pmu_pwroff_vol

=1
= 0x34
=0
=0
= 200
= 2600
= 300
= 1000
= 300
= 1000
= 4200
= 15
=1
= 100
= 100
= 50
= 720
=0
=0
=1
=5
=7
= 13
= 16
= 26
= 36
= 46
= 53
= 61
= 73
= 84
= 92
= 100
=1
= 4400
=0
= 900
= 3300

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
78
2011-11-4

Allwinner Technology CO., Ltd.


pmu_pwron_vol
pmu_pekoff_time
pmu_pekoff_en
pmu_peklong_time
pmu_pekon_time
pmu_pwrok_time
pmu_pwrnoe_time
pmu_intotp_en

= 2900
= 6000
=1
= 1500
= 1000
= 64
= 2000
=1

Crane_Fex_Guide V0.4
Copyright 2011 Allwinner Technology. All Rights Reserved.
79
2011-11-4

S-ar putea să vă placă și