Welcome, Guest

Author Topic: Re: the OlinuXino A13 BOM?  (Read 1814 times)

figoarzaki

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: the OlinuXino A13 BOM?
« on: June 06, 2017, 08:21:36 AM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1817
  • Karma: +46/-2
Re: Re: the OlinuXino A13 BOM?
« Reply #1 on: June 06, 2017, 10:18:41 AM »
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

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: Re: the OlinuXino A13 BOM?
« Reply #2 on: June 06, 2017, 10:38:01 AM »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1817
  • Karma: +46/-2
Re: Re: the OlinuXino A13 BOM?
« Reply #3 on: June 06, 2017, 12:58:22 PM »
This is in the u-boot source files. Probably in one of these files:

Code: [Select]
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

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: Re: the OlinuXino A13 BOM?
« Reply #4 on: June 06, 2017, 01:46:15 PM »
if i have a new axp209 and place it on olinuxino board, the axp209 is auto-programmed by the processor?

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1817
  • Karma: +46/-2
Re: Re: the OlinuXino A13 BOM?
« Reply #5 on: June 07, 2017, 08:06:29 AM »
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

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: Re: the OlinuXino A13 BOM?
« Reply #6 on: June 07, 2017, 01:02:17 PM »
okay thanks!,
but why you not upload them on github?

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1817
  • Karma: +46/-2
Re: Re: the OlinuXino A13 BOM?
« Reply #7 on: June 08, 2017, 08:32:52 AM »
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

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Re: the OlinuXino A13 BOM?
« Reply #8 on: June 08, 2017, 06:18:51 PM »
no, i mean the axp209.

but, by the way thank you for helping me!