Talk:Fex Guide

From linux-sunxi.org
Jump to: navigation, search

I'm seeing some tags that aren't mentioned in the [Fex Guide] - sb_pwm[n] and pwm_gpio. Where can we find documentation on these tags?
Seen in pcdunio.fex

[sb_pwm0]
pwm_gpio = port:PH06<1><default><default><default>

[sb_pwm1]
pwm_gpio = port:PB02<2><default><default><default>

[sb_pwm2]
pwm_gpio = port:PI03<2><default><default><default>

[sb_pwm3]
pwm_gpio = port:PH05<1><default><default><default>

[sb_pwm4]
pwm_gpio = port:PI10<1><default><default><default>

[sb_pwm5]
pwm_gpio = port:PI12<1><default><default><default>

Some additional useful parametres, not mentioned in main

[clock]

Used after [target] If I understand correctly, it is a way to set up the clock of GPU. Since what I saw in fex file can relate only to video. After setting the clock, can set the divider in [mali_para] to 1. Now I wonder if the whole section doesthe same as parametres pll4_freq and pll6_freq in [target] section

usage example

[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll7 = 297
pll8 = 336

...
[mali_para]
mali_used = 1
mali_clkdiv = 1

_________________________________________________________________________________

[ctp_list_para]

Set up a list of used ctp devices. Not sure if it replaces insmod in boot.img, but may have a try. Makes adding ctp more easy. Heres the example

[ctp_list_para]
ctp_det_used = 1
gslX680 = 0
ft5x_ts = 0
gt82x = 0
gt9xx_ts = 0
gt811 = 0
aw5306_ts = 1
zet622x = 1

_________________________________________________________________________________

[disp_init]

Additional switches for disp_init

lcd<num>_backlight

lcd<num>_bright

lcd<num>_contrast

lcd<num>_saturation

lcd<num>_hue

example:

[disp_init]
...
lcd0_backlight = 197
lcd1_backlight = 197
lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50
lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

_________________________________________________________________________________

[camera_list_para]

Seems like the same as ctp_list_para, but sets up camera drivers list to use. Also not sure that can replace insmod.

camera_list_para_used = 1
sp0718 = 1
sp2518 = 1
ov7670 = 0
gc0308 = 1
gt2005 = 0
hi704 = 0
sp0838 = 1
mt9m112 = 0
mt9m113 = 0
gc2035 = 0
ov2655 = 0
hi253 = 0
gc0307 = 0
mt9d112 = 0
ov5640 = 0
gc2015 = 0
ov2643 = 0
gc0329 = 0
gc0309 = 0
tvp5150 = 0
s5k4ec = 0
ov5650_mv9335 = 0
siv121d = 0
nt99252 = 1

_________________________________________________________________________________

Something really interesting in usage of [gsensor_para]. It can also use the parametr like [gsensor_list_para]. But in fex I saw it was used the way like in example - without settings in gsensor itself.

[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 3
gsensor_int1 =
gsensor_int2 =

[gsensor_list_para]
gsensor_det_used = 1
mma865x = 0
bma250 = 0
mma8452 = 0
mma7660 = 1
afa750 = 0
lis3de_acc = 0
lis3dh_acc = 0
kxtik = 0
dmard10 = 0
dmard06 = 0
mxc622x = 0
fxos8700 = 0
lsm303d = 0
stk831x = 1
Personal tools
Namespaces

Variants
Actions
Navigation
Tools