Re: the OlinuXino A13 BOM?

Started by figoarzaki, June 06, 2017, 08:21:36 AM

Previous topic - Next topic

figoarzaki

Out of topic, because i dont want to post another thread

Do you know where i can find axp209 register of olinuxino a13?, what register that installed on axp209 on the olinuxino a13 board?

LubOlimex

A13 uses I2C to communicate with AXP209. So I guess it should be the TWI registers: http://linux-sunxi.org/Two_Wire_Interface_Controller_Register_guide - make sure to identify which I2C port is used (usually TWI0; pins PB0 and PB1).

Note that TWI and I2C is basically the same but some manufacturers use TWI to avoid legal trouble with Philips since I2C is trademarked.
Technical support and documentation manager at Olimex

figoarzaki

no, i mean the register that installed on axp209 on the olinuxino a13 board, like this

enum registers {
   REG_POWER_STATUS   = 0x00,
   REG_POWER_MODE      = 0x01,
   REG_OTG_VBUS      = 0x02,
   REG_CHIP_ID      = 0x03,
   REG_CHIP_PWROUT_CTL   = 0x12,
   REG_DCDC2_VOLTAGE   = 0x23,
   REG_DCDC2_LDO3_CTL   = 0x25,
   REG_DCDC3_VOLTAGE   = 0x27,
   REG_LDO24_VOLTAGE   = 0x28,
   REG_LDO3_VOLTAGE   = 0x29,
   REG_VBUS_IPSOUT      = 0x30,
   REG_PWROFF_VOLTAGE   = 0x31,
   REG_SHTDWN_SETTING   = 0x32,
};

but on the olinuxino a13 board

LubOlimex

This is in the u-boot source files. Probably in one of these files:

root@debian:/home/gogo/a13_kernel_34_no_staging/u-boot-mainline-03032015/u-boot# find -name *209*
./include/axp209.h
./spl/drivers/power/axp209.o
./spl/drivers/power/.axp209.o.cmd
./spl/drivers/power/axp209.su
./drivers/power/axp209.o
./drivers/power/.axp209.o.cmd
./drivers/power/axp209.c
./drivers/power/axp209.su


Most of the values can be controlled indirectly via the script file, which is the easier and recommended method of changing such parameters; refer to http://linux-sunxi.org/Fex_Guide ([target] part) and also refer to the script that we use in the latest image here: https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A13/A13-build/script.fex - check here for some methods of editing the script file: https://www.olimex.com/wiki/index.php?title=How_to_edit_board_configurations_and_definitions_in_the_official_Debian_Linux

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

figoarzaki

if i have a new axp209 and place it on olinuxino board, the axp209 is auto-programmed by the processor?

LubOlimex

It is just that the A13 processor sends requires settings for the AXP209 during u-boot over I2C/TWI interface. AXP209 doesn't require special programming, the operating system takes care of its initialization. So if you just replaced the AXP209, there is nothing extra to do (as long as your image has the settings properly set).

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

figoarzaki

okay thanks!,
but why you not upload them on github?

LubOlimex

Well, we do. The script file is available here: https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A13/A13-build/script.fex

The rest is per default of the u-boot sources.
Technical support and documentation manager at Olimex

figoarzaki

no, i mean the axp209.

but, by the way thank you for helping me!